1 2019-10-17 Richard Biener <rguenther@suse.de>
4 * dwarf2out.c (gen_formal_parameter_die): Also try to match
5 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
7 2019-10-16 Jakub Jelinek <jakub@redhat.com>
9 * tree-ssa-strlen.c (maybe_invalidate): Use
10 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
12 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
13 Jim Wilson <jimw@sifive.com>
15 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
17 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
18 passing regs to SIBCALL_REGS.
20 2019-10-16 Martin Sebor <msebor@redhat.com>
22 PR tree-optimization/83821
23 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
24 the length of a string when available.
25 (handle_builtin_memset) Add argument.
26 (handle_store, strlen_check_and_optimize_call): Same.
27 (check_and_optimize_stmt): Same. Pass it to callees.
29 2019-10-16 Martin Sebor <msebor@redhat.com>
31 PR tree-optimization/91996
32 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
34 (compare_nonzero_chars): Add an overload.
35 (count_nonzero_bytes): Add an argument. Call overload above.
36 Handle non-constant lengths in some range.
37 (handle_store): Add an argument.
38 (check_and_optimize_stmt): Pass an argument to handle_store.
40 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
42 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
44 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
46 * config/mips/mips.c (mips_expand_builtin_insn): Force the
47 operands which correspond to the same input-output register to
48 have the same pseudo assigned to them.
50 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
52 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
54 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
56 * config/aarch64/aarch64.c (aarch64_classify_symbol):
57 Apply reasonable limit to symbol offsets.
59 2019-10-16 Richard Biener <rguenther@suse.de>
61 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
62 (vect_is_simple_reduction): Delay checking to
63 vectorizable_reduction and relax the checking.
64 (vectorizable_reduction): Check we have a simple use. Check
65 for bogus condition reductions.
66 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
67 are looking at the last stmt in a pattern sequence when
68 filling in backedge PHI values.
70 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
71 Jiufu Guo <guojiufu@linux.ibm.com>
74 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
75 the callee explicitly disables some isa_flags the caller is using.
77 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
79 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
81 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
83 * genmodes.c (mode_data::order): New field.
84 (blank_mode): Update accordingly.
85 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
86 (make_vector_modes): Likewise.
87 (VECTOR_MODES): Update use accordingly.
88 (cmp_modes): Sort by the new order field ahead of sorting by size.
89 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
90 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
91 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
92 (aarch64_classify_vector_mode): Handle the new partial modes.
93 (aarch64_vl_bytes): New function.
94 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
95 when counting the number of registers in an SVE mode.
96 (aarch64_class_max_nregs): Likewise.
97 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
99 (aarch64_classify_address): Treat partial vectors analogously
101 (aarch64_print_address_internal): Consolidate the printing of
102 MUL VL addresses, using aarch64_vl_bytes as the number of
103 bytes represented by "VL".
104 (aarch64_vector_mode_supported_p): Reject partial vector modes.
106 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
108 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
109 rather than known_lt when choosing frame layouts.
111 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
113 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
114 that all the adjustments add up to the full frame size.
115 Use crtl->outgoing_args_size directly as the final adjustment
118 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
120 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
121 "frame" reference instead of always referring directly to
122 "cfun->machine->frame".
124 2019-10-16 Richard Biener <rguenther@suse.de>
126 PR tree-optimization/92119
127 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
128 against missing bswap lhs.
130 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
133 * poly-int.h (constant_lower_bound_with_limit): New function.
134 (constant_upper_bound_with_limit): Likewise.
135 * doc/poly-int.texi: Document them.
136 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
137 into the worst-case INTEGER_CST bounds.
139 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
142 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
143 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
144 * ipa-predicat.h (struct expr_eval_op): New struct.
145 (expr_eval_ops): New typedef.
146 (struct condition): Add type and param_ops fields, remove size field.
147 (add_condition): Replace size parameter with type parameter, add
149 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
150 (predicate::add_clause): Add comparisons on type and param_ops.
151 (dump_condition): Add debug dump for param_ops.
152 (remap_after_inlining): Adjust call arguments to add_condition.
153 (add_condition): Replace size parameter with type parameter, add
154 param_ops parameter. Unshare constant value used in conditions.
155 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
156 parameter expressions using param_ops.
157 (decompose_param_expr): New function.
158 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
159 to replace call to unmodified_parm_or_parm_agg_item.
160 (set_switch_stmt_execution_predicate): Likewise.
161 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
163 (inline_read_section): Read param_ops from summary stream.
164 (ipa_fn_summary_write): Write param_ops to summary stream.
166 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
168 PR rtl-optimization/92107
169 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
172 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
174 * config/darwin.c: Update description of fix and continue.
176 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
178 * config/darwin.c (darwin_binds_local_p): Update to call
179 default_binds_local_p_3 () directly. amend comments.
181 2019-10-15 Richard Biener <rguenther@suse.de>
183 * lto-streamer-out.c (lto_variably_modified_type_p): New.
184 (tree_is_indexable): Use it.
185 * tree-streamer-out.c (pack_ts_type_common_value_fields):
186 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
187 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
189 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
191 * config/msp430/msp430.md (zero_extendqipsi2): New.
192 (zero_extendqisi2): Optimize case where src register and base dst
193 register are the same.
194 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
195 (zero_extendpsisi2): Optimize r->m case.
196 Add unnamed insn patterns to catch insns combine searches for when
197 optimizing pointer manipulation.
199 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
201 * config/msp430/msp430.md: Group zero_extend* insns together.
203 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
205 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
207 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
209 (msp430_subreg): Likewise.
210 (msp430_split_addsi): Likewise.
211 (msp430_print_operand_addr): Likewise.
212 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
213 (USE_STORE_POST_INCREMENT): Define.
214 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
215 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
216 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
217 (msp430_general_dst_operand): New.
218 (msp430_general_dst_nonv_operand): New.
219 (msp430_nonsubreg_operand): Remove.
220 (msp430_nonsubreg_dst_operand): New.
221 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
222 of defunct msp430_nonsubreg_operand.
223 (msp430_nonsubregnonpostinc_or_imm_operand): New.
225 2019-10-15 Richard Biener <rguenther@suse.de>
227 PR tree-optimization/91929
228 * tree-ssa-pre.c (pre_expr_d::loc): New member.
229 (get_or_alloc_expr_for_name): Initialize it.
230 (get_or_alloc_expr_for_constant): Likewise.
231 (phi_translate_1): Copy it.
232 (create_expression_by_pieces): Use the original location
233 of the expression for the inserted stmt.
234 (compute_avail): Record the location of the stmt for the
237 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
239 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
240 before using tree_to_uhwi.
242 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
244 * config/s390/s390.md: Run %a0:DI splitters only after reload.
246 2019-10-15 Richard Biener <rguenther@suse.de>
248 PR tree-optimization/92094
249 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
250 do not adjust the reduction definition def type.
251 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
252 defines the latch argument of the PHI.
254 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
257 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
258 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
259 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
260 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
261 _mm_maskz_roundscale_round_sd): New intrinsics.
262 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
263 __builtin_ia32_rndscales?_mask_round builtins instead of
264 __builtin_ia32_rndscales?_round.
265 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
266 __builtin_ia32_rndscalesd_round): Remove.
267 (__builtin_ia32_rndscaless_mask_round,
268 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
270 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
271 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
272 ... this, adjust and add subst atrributes to make it maskable.
274 2019-10-15 Richard Biener <rguenther@suse.de>
277 * common.opt (fallow-store-data-races): New.
278 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
279 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
280 * doc/invoke.texi (fallow-store-data-races): Document.
281 (--param allow-store-data-races): Remove docs.
282 * opts.c (default_options_table): Enable -fallow-store-data-races
284 (default_options_optimization): Do not enable --param
285 allow-store-data-races at -Ofast.
286 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
287 instead of PARAM_ALLOW_STORE_DATA_RACES.
288 * tree-ssa-loop-im.c (execute_sm): Likewise.
290 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
292 PR tree-optimization/92085
293 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
294 instead of calling it unconditionally after
295 delete_dead_or_redundant_assignment and fix indentation.
297 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
299 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
301 (*fmsub<SDF:mode>4): Likewise.
302 *fnmsub<SDF:mode>4): Likewise.
303 (*fnmadd<SDF:mode>4): Likewise.
305 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
307 * doc/tree-ssa.texi: Update renamed macro name.
309 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
311 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
314 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
316 * config/darwin.c: Use unsigned ints for the picbase label
317 counters, initialise the vars explicitly.
318 (update_pic_label_number_if_needed): Move a variable declaration
319 to where it's needed.
320 (machopic_output_function_base_name): Use a more strict checking
321 assert, and and unsigned int for the picbase label counter.
322 (machopic_get_function_picbase): Likewise.
324 2019-10-14 Richard Biener <rguenther@suse.de>
327 * dse.c (scan_insn): Use param max_active_local_stores.
328 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
329 based on optimization level.
330 * loop-invariant.c (move_loop_invariants): Adjust
331 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
332 * opts.c (default_options_optimization): Do not adjust
333 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
334 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
336 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
338 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
340 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
342 * config/arm/arm.c (arm_option_override): Don't override sched
345 2019-10-14 Richard Biener <rguenther@suse.de>
347 PR tree-optimization/92069
348 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
349 cycles do not set vect_nested_cycle on the latch definition.
351 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
353 * function-abi.h (expr_callee_abi): Declare.
354 * function-abi.cc (expr_callee_abi): New function.
356 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
358 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
360 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
361 non-zero being represented as [1,MAX].
363 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
365 * tree-sra.c (dump_access): Add missing braces.
367 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
369 * config/darwin.c (machopic_indirection_name): Rework the
370 function to emit linker-visible symbols only for indirections
371 in the data section. Clean up the code and update comments.
373 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
375 * config/darwin.c (machopic_indirect_data_reference): Remove
378 2019-10-13 Nathan Sidwell <nathan@acm.org>
380 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
382 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
384 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
387 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
389 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
390 so non-virutal are before virutals.
391 (output_function): Avoid body modifications.
393 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
395 * config/pa/pa.c (pa_output_call): Load descriptor address to register
396 %r22. Load function address before global pointer.
397 (pa_attr_length_indirect_call): Adjust length of inline versions of
399 (pa_output_indirect_call): Remove fast inline version of $$dyncall
400 before normal cases. Update inline $$dyncall sequences to preserve
401 function descriptor address in register %r22.
402 (TRAMPOLINE_CODE_SIZE): Adjust.
403 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
404 register %r22 contains trampoline address.
405 (pa_trampoline_init): Adjust offsets.
406 (pa_trampoline_adjust_address): Likewise.
407 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
409 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
412 * config/darwin.c (machopic_indirection): New field to flag
413 non-lazy-symbol-pointers in the data section.
414 (machopic_indirection_name): Compute if an indirection should
415 appear in the data section.
416 (machopic_output_data_section_indirection): New callback split
417 from machopic_output_indirection.
418 (machopic_output_stub_indirection): Likewise.
419 (machopic_output_indirection): Retain the code for non-lazy
420 symbol pointers in their regular section.
421 (machopic_finish): Use the new callbacks to order the indirection
424 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
426 * config/darwin-protos.h (machopic_finish): Delete.
427 * config/darwin.c (machopic_finish): Make static.
429 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
431 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
432 sections when building kernel extension code.
434 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
436 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
439 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
441 * gcc/config/pa/pa.c (pa_option_override): Remove trailing comma
444 2019-10-12 Jakub Jelinek <jakub@redhat.com>
447 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
448 <case VEC_COND_EXPR>: Return false with *handled = false.
449 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
450 recursing on the first operand.
451 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
452 instead of tree_could_trap_p.
453 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
455 2019-10-11 Jim Wilson <jimw@sifive.com>
457 PR rtl-optimization/91860
458 * combine.c (subst): If new_rtx is a constant, also check for
459 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
461 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
463 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
464 INTVAL when calling store_bit_field.
466 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
468 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
471 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
473 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
474 vectorizable_live_operation.
475 (vectorizable_live_operation): Adjust parameters.
476 * tree-vect-stmts.c (vect_init_vector,
477 vect_gen_widened_results_half): Fix typo in function comment.
478 (can_vectorize_live_stmts): Adjust function comment.
479 Adjust parameters. Adjust call to vectorizable_live_operation.
480 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
481 (vect_transform_stmt): Adjust function comment. Adjust call to
482 can_vectorize_live_stmts.
483 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
485 2019-10-11 Richard Biener <rguenther@suse.de>
487 PR tree-optimization/90883
488 PR tree-optimization/91091
489 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
490 alias-sets both for recording VN table entries and continuing
491 walking after translating through copies. Handle same-sized
492 reads from SSA names by returning the plain SSA name.
493 (eliminate_dom_walker::eliminate_stmt): Properly handle
494 non-size precision stores in redundant store elimination.
496 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
498 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
499 (ggc_collect): Dump later to not interfere with release_page dump.
500 (ggc_trim): New function.
501 * ggc-none.c (ggc_trim): New.
502 * ggc.h (ggc_trim): Declare.
504 2019-10-11 Richard Biener <rguenther@suse.de>
506 PR tree-optimization/92066
507 PR tree-optimization/92046
508 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
509 Fix bogus cost model check.
511 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
513 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
514 (LANG_HOOKS_DECLS): Add it.
515 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
516 update comment for omp_is_optional_argument.
517 * omp-general.c (omp_is_allocatable_or_ptr): New.
518 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
519 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
520 Fortran's optional arguments and allocatable/pointer scalars
521 with use_device_addr.
523 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
526 * config/s390/2827.md: Add new opcodes.
527 * config/s390/2964.md: Likewise.
528 * config/s390/3906.md: Likewise.
529 * config/s390/8561.md: Likewise.
530 * config/s390/s390-builtins.def (s390_vfchesb): Use
531 the new vec_cmpgev4sf_quiet_nocc.
532 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
533 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
534 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
535 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
536 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
537 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
538 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
539 * config/s390/s390-modes.def (CCSFPS): New mode.
540 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
541 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
542 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
543 (s390_expand_vec_compare): Use non-signaling patterns where
545 (s390_reverse_condition): Support CCSFPS.
546 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
547 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
548 (asm_fcmp_op): Likewise.
549 (*smaxv2df3_vx): Use pattern for quiet comparison.
550 (*sminv2df3_vx): Likewise.
551 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
552 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
553 (vec_cmpgt<mode>_quiet_nocc): Likewise.
554 (vec_cmplt<mode>_quiet_nocc): New expander.
555 (vec_cmpge<mode>_quiet_nocc): New pattern.
556 (vec_cmple<mode>_quiet_nocc): New expander.
557 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
558 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
559 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
560 (*vec_cmpge<mode>_signaling_nocc): Likewise.
561 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
562 (vec_cmpungt<mode>): New expander.
563 (vec_cmpunge<mode>): Likewise.
564 (vec_cmpuneq<mode>): Use quiet patterns.
565 (vec_cmpltgt<mode>): Allow only on z14+.
566 (vec_cmpordered<mode>): Use quiet patterns.
567 (vec_cmpunordered<mode>): Likewise.
568 (VEC_CMP_EXPAND): Add ungt and unge.
570 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
572 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
574 * lto-streamer-out.c: Include tree-dfa.h.
575 (output_cfg): Do not use cfun.
576 (lto_prepare_function_for_streaming): New.
577 (output_function): Do not push cfun; do not initialize loop optimizer.
578 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
579 * passes.c (ipa_write_summaries): Use it.
580 (ipa_write_optimization_summaries): Do not modify bodies.
581 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
582 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
583 * tree-ssa-dse.c (pass_dse::execute): Update use of
584 renumber_gimple_stmt_uids.
585 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
587 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
589 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
590 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
592 2019-10-10 Joseph Myers <joseph@codesourcery.com>
594 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
596 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
597 Also define DFP macros for these conditions.
598 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
599 DEC128_SUBNORMAL_MIN): Do not define.
600 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
601 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
603 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
604 Sandra Loosemore <sandra@codesourcery.com>
607 * doc/lto.texi (IPA): Reference to the IPA passes.
608 * doc/passes.texi (Pass manager): Add node IPA passes and
609 description for each IPA pass.
611 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
613 * ipa-reference.c: Do not include splay-tree.h
614 (reference_vars_to_consider): Turn to hash map.
615 (get_static_name, ipa_init, analyze_function, propagate,
616 stream_out_bitmap, ipa_reference_write_optimization_summary,
617 ipa_reference_write_optimization_summary): Update.
619 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
621 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
623 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
625 * config/darwin.c: Lookup Objective C metadata and force indirection
628 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
630 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
632 (mem_operand_gpr): Add check for prefixed addresses.
633 (mem_operand_ds_form): Add check for prefixed addresses.
634 (rs6000_legitimate_offset_address_p): If we support prefixed
635 addresses, check for a 34-bit offset instead of 16-bit.
636 (rs6000_legitimate_address_p): Add check for prefixed addresses.
637 Do not allow load/store with update if the address is prefixed.
638 (rs6000_mode_dependent_address): If we support prefixed
639 addresses, check for a 34-bit offset instead of 16-bit.
641 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
644 * config/s390/vector.md (vcond_comparison_operator): New
646 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
648 2019-10-10 David Malcolm <dmalcolm@redhat.com>
651 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
653 * configure.ac (--with-documentation-root-url): New option.
654 * configure: Regenerate.
655 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
656 option URL, add it as a new string field of the diagnostic option.
657 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
658 (print_option_information): If get_option_url is non-NULL, call
659 it, and if the result is non-NULL, potentially emit an escape
660 sequence to markup the option text with the resulting URL.
661 * diagnostic.h (diagnostic_context::get_option_url): New callback.
662 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
663 example of JSON output.
664 * opts-diagnostic.h (get_option_url): New decl.
665 * opts.c (get_option_url): New function.
666 * toplev.c (general_init): Initialize the get_option_url callback.
668 2019-10-10 David Malcolm <dmalcolm@redhat.com>
671 * common.opt (fdiagnostics-urls=): New option.
672 (diagnostic-url.h): Add SourceInclude.
673 (diagnostic_url_rule): New enum.
674 * diagnostic-color.c: Include "diagnostic-url.h".
675 (diagnostic_urls_enabled_p): New function.
676 * diagnostic-url.h: New file.
677 * diagnostic.c: Include "diagnostic-url.h".
678 (diagnostic_urls_init): New function.
679 * diagnostic.h (diagnostic_urls_init): New decl.
680 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
681 -fdiagnostics-urls to the list.
682 (-fdiagnostics-urls): New option.
683 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
684 (driver::global_initializations): Call diagnostic_urls_init.
685 * opts-global.c (init_options_once): Likewise.
686 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
687 * pretty-print.c (pretty_printer::pretty_printer): Initialize
689 (pp_begin_url): New function.
690 (pp_end_url): New function.
691 (selftest::test_urls): New selftest.
692 (selftest::pretty_print_c_tests): Call it.
693 * pretty-print.h (pretty_printer::show_urls): New field.
694 (pp_begin_url): New decl.
695 (pp_end_url): New decl.
697 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
700 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
702 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
705 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
706 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
707 also for TARGET_FPU_SH4_300.
708 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
710 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
711 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
712 (*negsf2_i): Split into ...
713 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
714 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
715 (**abssf2_i): Split into ...
716 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
717 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
718 (*negdf2_i): Split into ...
719 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
720 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
721 (**abssf2_i): Split into ...
722 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
724 2019-10-10 Richard Biener <rguenther@suse.de>
727 * opts.c (finish_options): Do not influence global --params
728 from options that are adjustable per function.
729 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
730 Apply --param adjustment based on active cost-model.
731 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
732 further store-sinking when vectorization or if-conversion
735 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
738 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
739 rather than ggc_alloc_cleared to alloc symbol table.
740 * toplev.c (general_init): Likewise.
741 * cgraph.h (symbol_table): Explicitly construct every field.
743 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
745 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
747 * config.gcc: Add z15 as option for --with-arch and --with-tune
749 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
750 error reporting for unsupported builtins.
751 * config/s390/s390-opts.h (enum processor_type): Rename
752 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
753 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
754 * config/s390/driver-native.c (s390_host_detect_local_cpu):
756 * config/s390/s390-builtins.def: Likewise.
757 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
758 (s390_expand_builtin): Add missing check for unsupported builtins.
759 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
760 (s390_rtx_costs): Likewise.
761 (s390_get_sched_attrmask): Rename arch13 to z15.
762 (s390_get_unit_mask): Likewise.
763 (s390_is_fpd): Likewise.
764 (s390_is_fxd): Likewise.
765 * config/s390/s390.h (enum processor_flags): Likewise.
766 * config/s390/s390.md: Likewise.
767 * config/s390/vector.md: Likewise.
768 * config/s390/vx-builtins.md: Likewise.
769 * config/s390/s390.opt: Add z15 to processor_type value.
771 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
774 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
776 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
777 ("split_stack_data", "split_stack_call")
778 ("split_stack_call_<mode>", "split_stack_cond_call")
779 ("split_stack_cond_call_<mode>"): Remove.
780 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
782 * config/s390/s390.c (s390_output_split_stack_data): New function.
783 (s390_expand_split_stack_prologue): Use the merged expander.
785 2019-10-09 Martin Sebor <msebor@redhat.com>
787 PR tree-optimization/90879
788 * builtins.c (check_access): Avoid using maxbound when null.
789 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
790 * doc/invoke.texi (-Wstring-compare): Document new warning option.
791 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
793 (get_range_strlen): Overwrite initial maxbound when non-null.
794 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
796 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
797 (used_only_for_zero_equality): New function.
798 (handle_builtin_memcmp): Call it.
799 (determine_min_objsize): Return an integer instead of tree.
800 (get_len_or_size, strxcmp_eqz_result): New functions.
801 (maybe_warn_pointless_strcmp): New function.
802 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
803 between a longer string and a smaller array.
804 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
806 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
808 * config/darwin.c (darwin_override_options): Make the check for
809 Objective-C ABI version more specific for 64bit code.
811 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
813 * config/darwin.c (machopic_indirect_data_reference): Set flag to
814 indicate that the new symbol is an indirection.
815 (machopic_indirect_call_target): Likewise.
816 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
817 (MACHO_SYMBOL_INDIRECTION_P): New.
818 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
820 2019-10-08 Jason Merrill <jason@redhat.com>
822 * doc/invoke.texi: Document -fconcepts-ts.
824 2019-10-09 Richard Biener <rguenther@suse.de>
826 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
827 allow stmts other than GIMPLE_ASSIGN in nested cycles.
829 2019-10-08 Richard Biener <rguenther@suse.de>
831 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
832 (_stmt_vec_info::force_single_cycle): Likewise.
833 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
834 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
835 * tree-vect-loop.c (vectorizable_reduction): Set
836 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
837 (vect_transform_reduction): Use them to remove redundant code.
838 (vect_transform_cycle_phi): Likewise.
840 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
842 PR tree-optimization/90836
843 * gcc/match.pd (popcount): New pattern.
845 2019-10-08 Martin Sebor <msebor@redhat.com>
849 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
850 again once nbytes has been set. Set the access size when not yet set.
852 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
854 * config/darwin.c (machopic_select_section): Remove dead code for
855 old Objective-C section selection method, replace with unreachable.
857 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
859 * config/darwin.c (machopic_indirect_data_reference): Check for
860 required indirections before making direct access to defined
862 (machopic_output_indirection): Place the indirected pointes for
863 required indirections into the non-lazy symbol pointers section.
864 (darwin_encode_section_info):
865 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
866 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
868 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
871 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
872 instead of ALL_SSE_REG to check if function call preserves some
873 256-bit SSE registers.
875 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
877 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
878 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
879 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
881 2019-10-08 Richard Biener <rguenther@suse.de>
883 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
884 (_stmt_vec_info::is_reduc_info): Add.
885 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
886 (vectorizable_condition): Remove.
887 (vectorizable_shift): Likewise.
888 (vectorizable_reduction): Adjust.
889 (info_for_reduction): New.
890 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
891 (vect_analyze_scalar_cycles_1): ... here.
892 (vect_analyze_loop_operations): Adjust.
893 (needs_fold_left_reduction_p): Simplify for single caller.
894 (vect_is_simple_reduction): Likewise. Remove stmt restriction
895 for nested cycles not part of double reductions.
896 (vect_model_reduction_cost): Pass in the reduction type.
897 (info_for_reduction): New function.
898 (vect_create_epilog_for_reduction): Use it, access reduction
899 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
900 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
901 (vectorize_fold_left_reduction): Remove pointless assert.
902 (vectorizable_reduction): Analyze the full reduction when
903 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
904 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
905 stmt code-generation to vectorizable_* in most cases. Verify
906 code-generation only for cases handled by
907 vect_transform_reductuon.
908 (vect_transform_reduction): Use info_for_reduction to get at
909 reduction meta. Simplify.
910 (vect_transform_cycle_phi): Likewise.
911 (vectorizable_live_operation): Likewise.
912 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
913 at the PHI node for STMT_VINFO_REDUC_TYPE.
914 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
915 longer necessary code.
916 * tree-vect-stmts.c (vectorizable_shift): Make static again.
917 (vectorizable_condition): Likewise. Get at reduction related
918 info via info_for_reduction.
919 (vect_analyze_stmt): Adjust.
920 (vect_transform_stmt): Likewise.
921 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
922 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
924 2019-10-08 Joseph Myers <joseph@codesourcery.com>
926 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
927 -fno-fp-int-builtin-inexact default for C2X.
929 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
930 Richard Biener <rguenther@suse.de>
932 PR tree-optimization/91532
933 * tree-if-conv.c: Include tree-ssa-dse.h.
934 (ifcvt_local_dce): Change param from bb to loop,
935 and call dse_classify_store.
936 (tree_if_conversion): Pass loop instead of loop->header as arg
938 * tree-ssa-dse.c: Include tree-ssa-dse.h.
939 (delete_dead_or_redundant_assignment): Remove static qualifier from
940 declaration, and add prototype in tree-ssa-dse.h.
941 (dse_store_status): Move to tree-ssa-dse.h.
942 (dse_classify_store): Remove static qualifier and add new tree param
943 stop_at_vuse, and add prototype in tree-ssa-dse.h.
944 * tree-ssa-dse.h: New header.
946 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
948 * config/darwin.c (machopic_output_indirection): Don't put
949 hidden symbol indirections into the .data section, use the
950 non-lazy symbol pointers section as normal.
951 (darwin_encode_section_info): Record if a symbol is hidden.
952 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
953 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
955 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
957 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
958 predicates instead of accessing bits directly.
959 (machopic_indirect_call_target): Likewise.
960 (machopic_output_indirection): Likewise.
961 (darwin_encode_section_info): Improve description. Use renamed
962 symbol flags. Use predicate macros for variables and functions.
964 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
965 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
966 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
967 (MACHO_SYMBOL_VARIABLE_P): New.
968 (MACHO_SYMBOL_DEFINED_P):New.
969 (MACHO_SYMBOL_STATIC_P): New.
970 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
971 (SYMBOL_FLAG_SUBT_DEP): New.
972 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
974 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
976 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
977 (msp430_expand_epilogue): Likewise.
978 * config/msp430/predicates.md: Likewise.
979 * config/msp430/msp430.md: Likewise.
980 Replace blocks of 8 spaces with tabs.
982 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
984 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
985 * config/msp430/msp430.c (msp430_split_addsi): New.
986 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
987 a block of C code for splitting addsi.
989 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
991 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
992 ix86_expand_rounddf_32): Reorder functions.
993 * config/i386/i386-protos.h: Update.
995 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
997 * config.in: Regenerate.
998 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
999 Add new "Yx" constraint.
1000 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
1002 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
1004 * config/msp430/msp430.c (msp430_option_override): Allow the lower
1005 code/data region to be selected in the small memory model.
1006 (msp430_section_attr): Don't warn if the "section" and "lower"
1007 attributes are used together.
1008 (msp430_handle_generic_attribute): Likewise.
1009 (msp430_var_in_low_mem): New function.
1010 (TARGET_ENCODE_SECTION_INFO): Define.
1011 (msp430_encode_section_info): New function.
1012 (gen_prefix): Return early in the small memory model.
1013 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
1014 ".lower" prefix if -m{code,data}-region=lower have been passed.
1015 (msp430_output_aligned_decl_common): Emit common symbols when
1016 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
1018 (TARGET_ASM_FILE_END): Define.
1019 (msp430_file_end): New function.
1020 (msp430_do_not_relax_short_jumps): Allow relaxation when
1021 function will be in the lower region.
1022 (msp430_op_not_in_high_mem): New function.
1023 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
1024 the 'X' operand selector.
1025 Clarify comment for 'x' operand selector.
1026 * config/msp430/msp430.h (LINK_SPEC): Propagate
1027 -m{code,data}-region to the linker via spec function
1028 msp430_propagate_region_opt.
1029 (msp430_propagate_region_opt): New prototype.
1030 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
1031 (SYMBOL_FLAG_LOW_MEM): Define.
1032 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
1034 (zero_extendqihi2): Fix operand number used by "%X" selector.
1035 (zero_extendqisi2): Likewise.
1036 (zero_extendhisi2): Likewise.
1037 (movqi): Use "Yx" constraint in place of "%X" operand selector.
1042 (addhi3_cy): Likewise.
1043 (addchi4_cy): Likewise.
1047 (bic<mode>3): Likewise.
1048 (and<mode>3): Likewise.
1049 (ior<mode>3): Likewise.
1050 (xor<mode>3): Likewise.
1051 (slli_1): Add missing "%X" operand selector.
1059 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
1061 (cbranchhi4_real): Likewise.
1062 (cbranchqi4_reversed): Likewise.
1063 (cbranchhi4_reversed): Likewise.
1064 (*bitbranch<mode>4): Likewise.
1065 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
1066 * config/msp430/msp430.opt (mcode-region=): Set default to
1067 MSP430_REGION_LOWER. Improve docstring.
1068 (mdata-region=): Likewise.
1069 (muse-lower-region-prefix): New option.
1070 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
1071 mdata-region=none multilib.
1072 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
1073 mdata-region=none multilib.
1074 MULTILIB_EXCEPTIONS: Remove.
1075 MULTILIB_REQUIRED: Define.
1076 * configure: Regenerate.
1077 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
1078 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
1079 * doc/extend.texi: Clarify comment for {upper,lower,either}
1080 function attributes.
1081 Add separate description for "lower" variable attribute.
1083 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1086 * optabs-tree.c (vcond_icode_p): New function.
1087 (vcond_eq_icode_p): Likewise.
1088 (expand_vec_cond_expr_p): Use vcond_icode_p and
1090 * optabs.c (can_vcond_compare_p): New function.
1091 * optabs.h (can_vcond_compare_p): Likewise.
1093 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1096 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
1097 caller passes a non-trapping condition.
1098 (is_gimple_condexpr): Allow trapping conditions.
1099 (is_gimple_condexpr_1): New helper function.
1100 (is_gimple_condexpr_for_cond): New function, acts like old
1102 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
1103 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
1104 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
1105 * gimplify.c (gimplify_cond_expr): Use
1106 is_gimple_condexpr_for_cond.
1107 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
1108 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
1110 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
1111 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
1112 is_gimple_condexpr_for_cond, remove pointless tmp check
1113 (forward_propagate_into_cond): Remove pointless tmp check.
1115 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1117 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
1118 match that of other gsi_next_* functions. Adjust the comment.
1119 (gsi_start_nonvirtual_phis): New function.
1120 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
1121 gsi_next_nonvirtual_phi accordingly. (No functional change.)
1123 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1125 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
1126 setjmp situation here. Fix a verb's ending: "the exact variables or
1127 elements for which there are warnings depends" -> "... depend".
1129 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1131 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
1133 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1135 * ipa-prop.c (ipa_vr::nonzero_p): New.
1136 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
1138 * ipa-prop.h (class ipa_vr): Add nonzero_p.
1139 * tree-vrp.c (range_has_numeric_bounds_p): New.
1140 (range_int_cst_p): Use range_has_numeric_bounds_p.
1141 (get_range_op_handler): New.
1142 (supported_types_p): New.
1143 (defined_ranges_p): New.
1144 (drop_undefines_to_varying): New.
1145 (range_fold_binary_symbolics_p): New.
1146 (range_fold_unary_symbolics_p): New.
1147 (range_fold_unary_expr): Extract out into above functions.
1148 (range_fold_binary_expr): Same.
1149 (value_range_base::normalize_addresses): New.
1150 (value_range_base::normalize_symbolics): Normalize addresses.
1151 * tree-vrp.h (class value_range_base): Add normalize_addresses.
1153 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1155 * tree-vrp.c (value_range_base::singleton_p): Use
1156 value_range_base::num_pairs instead of vrp_val_is* to check
1157 if a range has one sub-range.
1159 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1161 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
1162 DEF is not a true earlyclobber but is tied to a specific input
1163 operand, and so is effectively earlyclobber wrt inputs that have
1165 (make_early_clobber_and_input_conflicts): Pass this case to the above.
1167 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1169 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
1170 (pod_mode): Mark operators likewise.
1171 (scalar_int_mode): Mark non-default constructors and
1172 operators with CONSTEXPR.
1173 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
1174 (fixed_size_mode): Likewise.
1176 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1179 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
1180 and wrap the unspec_volatile in a parallel.
1181 (*avx_vzeroupper): New define_insn. Use a match_parallel around
1182 the unspec_volatile.
1183 * config/i386/predicates.md (vzeroupper_pattern): Expect the
1184 unspec_volatile to be wrapped in a parallel.
1185 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
1186 (ix86_add_reg_usage_to_vzerouppers): New functions.
1187 (rest_of_handle_insert_vzeroupper): Use them to add register
1188 usage information to the vzeroupper instructions.
1190 2019-10-07 Richard Biener <rguenther@suse.de>
1192 PR tree-optimization/91975
1193 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
1196 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
1198 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
1199 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
1201 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
1203 * config/darwin.c (darwin_override_options): Adjust objective-c
1204 ABI version error messages to avoid punctuation and contracted
1207 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
1209 * ipa-inline.c: Fix type; compute size rather than self_size
1210 for size of caller function.
1212 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
1215 * config/darwin.c (darwin_rodata_section): Add relocation flag,
1216 choose const_data section for constants with relocations.
1217 (machopic_select_section): Pass relocation flag to
1218 darwin_rodata_section ().
1220 2019-10-05 Jakub Jelinek <jakub@redhat.com>
1222 PR tree-optimization/91734
1223 * generic-match-head.c: Include fold-const-call.h.
1224 * match.pd (sqrt(x) cmp c): Check the boundary value and
1225 in case inexact computation of c*c affects comparison of the boundary,
1226 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
1227 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
1228 for -frounding-math. For c2, try the next smaller or larger floating
1229 point constant depending on comparison code and if it has the same
1230 sqrt as c2, use it instead of c2.
1232 2019-10-04 Martin Sebor <msebor@redhat.com>
1235 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
1236 MEM_REF right operand. Avoid failing for MEM_REF assignments from
1237 uninitialized objects.
1239 2019-10-04 Martin Sebor <msebor@redhat.com>
1241 * builtins.c (compute_objsize): Add an argument.
1242 * tree-object-size.c (addr_object_size): Same.
1243 (compute_builtin_object_size): Same.
1244 * tree-object-size.h (compute_builtin_object): Same.
1246 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
1248 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
1250 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
1252 * match.pd (sinh (x) / cosh (x)): New simplification rule.
1254 2019-10-04 Martin Jambor <mjambor@suse.cz>
1256 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
1257 fntype when switching to calling memcpy instead of memset.
1259 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1261 * hash-table.h (hash_table::empty_slow): Don't assign
1262 size_t values to int variables.
1264 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1266 * expr.c (convert_mode_scalar): Remove shadowing local var.
1267 (emit_block_move): Rename local vars.
1268 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
1269 (emit_push_insn): Rename local vars.
1270 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
1271 shadowing local vars.
1272 (store_constructor): Remove shadowing local vars. Rename local var.
1273 (store_field, expand_cond_expr_using_cmove,
1274 expand_expr_real_2): Remove shadowing local vars.
1275 (expand_expr_real_1,
1276 do_store_flag): Remove shadowing local vars. Rename local vars.
1278 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1280 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
1282 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1284 * genmatch.c (commutate): Rename local var.
1285 (lower_cond): Reuse local var.
1286 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
1287 dt_operand::gen, dt_operand::gen_gimple_expr,
1288 dt_simplify::gen): Add a param. Rename generated vars.
1289 (decision_tree::insert_operand,
1290 (capture_info::walk_match, capture_info::walk_result,
1291 capture_info::walk_c_expr): Rename local vars.
1292 (expr::gen_transform): Rename generated vars.
1293 Use snprintf. Rename local vars.
1294 (capture::gen_transform, dt_operand::get_name,
1295 dt_operand::gen_opname): Rename generated vars.
1296 (write_predicate): Adjust call to gen_kids.
1297 (parser::get_internal_capture_id): Rename generated vars.
1298 (parser::parse_expr): Rename local vars.
1299 (parser::parse_if): Remove local var.
1300 (parser::parse_pattern, add_operator): Rename local vars.
1302 2019-10-04 Joseph Myers <joseph@codesourcery.com>
1304 * builtins.def (DEF_C2X_BUILTIN): New macro.
1305 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
1306 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
1307 (strndup): Use DEF_C2X_BUILTIN.
1308 * coretypes.h (enum function_class): Add function_c2x_misc.
1310 2019-10-04 Maya Rashish <coypu@sdf.org>
1312 * ira-color.c (update_costs_from_allocno): Call
1313 ira_init_register_move_cost_if_necessary.
1315 2019-10-04 Jeff Law <law@redhat.com>
1317 * config/h8300/h8300.md (cpymemsi): Disable.
1318 (movmd, movmd_internal_<mode>, movstr, movsd):
1319 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
1320 (movmd splitter, movsd splitter): Likewise.
1322 * range-op.cc (range_tests): Avoid two tests when ints and
1323 shorts are the same size.
1325 2019-10-04 Richard Biener <rguenther@suse.de>
1328 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
1331 2019-10-04 Richard Biener <rguenther@suse.de>
1333 PR tree-optimization/91982
1334 * tree-vect-loop.c (vectorizable_live_operation): Also guard
1335 against EXTRACT_LAST_REDUCTION.
1336 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
1338 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
1340 * range-op.o (value_range_from_overflowed_bounds): Rename from
1341 adjust_overflow_bound.
1342 (value_range_with_overflow): Rename from
1343 create_range_with_overflow.
1344 (create_possibly_reversed_range): Adjusted for above renames.
1345 (operator_*::wi_fold): Same.
1346 (cross_product_operator::wi_cross_productor): Same.
1348 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1350 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
1351 -Wshadow=compatible-local): Fix description.
1352 Add an example where -Wshadow=compatible-local does not
1355 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
1357 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
1359 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
1360 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
1362 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
1364 * expr.c (emit_block_move_hints): Slightly cleaner fix to
1365 can_move_by_pieces issue.
1367 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
1370 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
1371 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
1372 is available and the user has not set one on the command line.
1374 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1377 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
1378 instead of REGNO equality check on addr.reg.
1380 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
1382 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
1383 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
1384 * doc/invoke.texi (inline-heuristics-hint-percent,
1385 inline-heuristics-hint-percent-O2): Document.
1386 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
1388 (can_inline_edge_by_limits_p): Use it.
1390 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
1392 * config/arm/arm.c (arm_print_value): Use real_to_decimal
1393 to print CONST_DOUBLEs.
1395 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
1397 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
1398 * ipa-prop.c (ipcp_free_transformation_sum): New function.
1399 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
1401 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
1403 * Makefile.in (OBJS): Add range.o and range-op.o.
1404 Remove wide-int-range.o.
1405 * function-tests.c (test_ranges): New.
1406 (function_tests_c_tests): Call test_ranges.
1407 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
1408 range_fold_unary_expr instead of extract_range_from_unary_expr.
1409 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
1410 * range-op.cc: New file.
1411 * range-op.h: New file.
1412 * range.cc: New file.
1413 * range.h: New file.
1414 * selftest.h (range_tests): New prototype.
1415 * ssa.h: Include range.h.
1416 * tree-vrp.c (value_range_base::value_range_base): New
1418 (value_range_base::singleton_p): Do not call
1419 ranges_from_anti_range until sure we will need to.
1420 (value_range_base::type): Rename gcc_assert to
1421 gcc_checking_assert.
1422 (vrp_val_is_max): New argument.
1423 (vrp_val_is_min): Same.
1424 (wide_int_range_set_zero_nonzero_bits): Move from
1426 (extract_range_into_wide_ints): Remove.
1427 (extract_range_from_multiplicative_op): Remove.
1428 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
1429 from extract_range_from_binary_expr.
1430 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
1431 from extract_range_from_binary_expr.
1432 (extract_range_from_binary_expr): Remove.
1433 (normalize_for_range_ops): New.
1434 (range_fold_binary_expr): New.
1435 (range_fold_unary_expr): New.
1436 (value_range_base::num_pairs): New.
1437 (value_range_base::lower_bound): New.
1438 (value_range_base::upper_bound): New.
1439 (value_range_base::upper_bound): New.
1440 (value_range_base::contains_p): New.
1441 (value_range_base::invert): New.
1442 (value_range_base::union_): New.
1443 (value_range_base::intersect): New.
1444 (range_compatible_p): New.
1445 (value_range_base::operator==): New.
1446 (determine_value_range_1): Call range_fold_*expr instead of
1447 extract_range_from_*expr.
1448 * tree-vrp.h (class value_range_base): Add new constructors.
1449 Add methods for union_, intersect, operator==, contains_p,
1450 num_pairs, lower_bound, upper_bound, invert.
1451 (vrp_val_is_min): Add handle_pointers argument.
1452 (vrp_val_is_max): Same.
1453 (extract_range_from_unary_expr): Remove.
1454 (extract_range_from_binary_expr): Remove.
1455 (range_fold_unary_expr): New.
1456 (range_fold_binary_expr): New.
1457 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
1458 range_fold_binary_expr instead of extract_range_from_binary_expr.
1459 (vr_values::extract_range_basic): Same.
1460 (vr_values::extract_range_from_unary_expr): Call
1461 range_fold_unary_expr instead of extract_range_from_unary_expr.
1462 * wide-int-range.cc: Remove.
1463 * wide-int-range.h: Remove.
1465 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
1467 * config/rs6000/rs6000.c (mem_operand_gpr): Use
1468 SIGNED_16BIT_OFFSET_EXTRA_P macro.
1469 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
1470 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
1473 2019-10-02 Joseph Myers <joseph@codesourcery.com>
1475 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
1476 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
1477 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
1478 * glimits.h: Likewise.
1480 2019-10-03 Jakub Jelinek <jakub@redhat.com>
1482 PR rtl-optimization/91976
1483 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
1484 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
1485 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
1487 2019-10-02 Martin Sebor <msebor@redhat.com>
1489 PR tree-optimization/80936
1490 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
1492 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1494 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
1495 instead of reg_class_contents[ALL_REGS].
1497 2019-09-30 Jason Merrill <jason@redhat.com>
1499 Add some hash_map_safe_* functions like vec_safe_*.
1500 * hash-map.h (default_hash_map_size): New variable.
1501 (create_ggc): Use it as default argument.
1502 (hash_map_maybe_create, hash_map_safe_get)
1503 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
1505 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
1507 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
1508 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
1509 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
1510 (can_inline_edge_by_limits_p): Use it.
1511 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
1512 (want_inline_small_function_p): Use O2 bounds.
1513 (edge_badness): LIkewise.
1514 * opts.c (default_options): Add OPT_finline_functions.
1515 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
1516 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
1518 * doc/invoke.texi (-finline-functions): Update documentation.
1519 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
1520 inline-min-speedup-O2): Document.
1521 (early-inlining-insns-O2): Simplify docs.
1523 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
1525 PR rtl-optimization/87047
1526 * ifcvt.c (average_cost): New static function. Use it...
1527 (noce_process_if_block): ... here.
1529 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1531 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
1532 * config/rs6000/rs6000-string.c (expand_block_move): Add
1534 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
1535 (cpymemsi): Add might_overlap parm to expand_block_move() call.
1537 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1539 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
1540 (expand_builtin_memcpy): Use might_overlap parm.
1541 (expand_builtin_mempcpy_args): Use might_overlap parm.
1542 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
1543 (expand_builtin_memory_copy_args): Add might_overlap parm.
1544 * expr.c (emit_block_move_via_cpymem): Rename to
1545 emit_block_move_via_pattern, add might_overlap parm, use cpymem
1546 or movmem optab as appropriate.
1547 (emit_block_move_hints): Add might_overlap parm, do the right
1548 thing for might_overlap==true.
1549 * expr.h (emit_block_move_hints): Update prototype.
1551 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
1553 * tree-eh.h (unsplit_eh_edges): Declare.
1554 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
1555 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
1556 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
1557 (struct store_immediate_info): Add lp_nr field.
1558 (store_immediate_info::store_immediate_info): Add NR2 parameter and
1559 initialize lp_nr with it.
1560 (struct merged_store_group): Add lp_nr and only_constants fields.
1561 (merged_store_group::merged_store_group): Initialize them.
1562 (merged_store_group::can_be_merged_into): Deal with them.
1563 (pass_store_merging): Rename terminate_and_release_chain into
1564 terminate_and_process_chain.
1565 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
1566 renaming and remove useless assertions.
1567 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
1568 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
1569 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
1570 instead of always recomputing it and compare lp_nr.
1571 (imm_store_chain_info::output_merged_store): If the group is in an
1572 active EH region, register new stores if they can throw. Moreover,
1573 if the insertion has created new basic blocks, adjust the PHI nodes
1574 of the post landing pad.
1575 (imm_store_chain_info::output_merged_stores): If the original stores
1576 are in an active EH region, deregister them.
1577 (lhs_valid_for_store_merging_p): Prettify.
1578 (adjust_bit_pos): New function extracted from...
1579 (mem_valid_for_store_merging): ...here. Use it for the base address
1580 and also for the offset if it is the addition of a constant.
1581 (lp_nr_for_store): New function.
1582 (pass_store_merging::process_store): Change return type to bool.
1583 Call lp_nr_for_store to initialize the store info. Propagate the
1584 return status of various called functions to the return value.
1585 (store_valid_for_store_merging_p): New predicate.
1586 (enum basic_block_status): New enumeration.
1587 (get_status_for_store_merging): New function.
1588 (pass_store_merging::execute): If the function can throw and catch
1589 non-call exceptions, unsplit the EH edges on entry and clean up the
1590 CFG on exit if something changed. Call get_status_for_store_merging
1591 for every basic block and keep the chains open across basic blocks
1592 when possible. Terminate and process open chains at the end, if any.
1594 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1596 * reginfo.c (globalize_reg): Fix shadowed variable in
1599 2019-10-02 Martin Jambor <mjambor@suse.cz>
1601 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
1602 do not compute some stuff when set.
1603 (cgraph_node::create_edge): Likewise.
1604 (cgraph_node::create_indirect_edge): Renamed last parameter to
1605 coning_p and flipped its meaning, don't even calculate
1606 inline_failed when set.
1607 * cgraph.h (cgraph_node::create_edge): Add new parameter.
1608 (symbol_table::::create_edge): Likewise.
1609 (cgraph_node::create_indirect_edge): Rename last parameter, flip
1611 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
1612 call graph edge creating functions.
1614 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1617 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
1620 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
1622 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
1624 2019-10-02 Richard Biener <rguenther@suse.de>
1626 * tree-vectorizer.h (vect_transform_reduction): Declare.
1627 * tree-vect-stmts.c (vect_transform_stmt): Use it.
1628 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
1629 stmt transform to ...
1630 (vect_transform_reduction): ... this.
1632 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
1634 * omp-low.c (lower_omp_target): Dereference optional argument
1635 to work with the right pointer.
1637 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
1639 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
1641 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
1642 * langhooks.h (omp_is_optional_argument): New hook.
1643 * omp-general.c (omp_is_optional_argument): New.
1644 * omp-general.h (omp_is_optional_argument): New declaration.
1645 * omp-low.c (lower_omp_target): Create temporary for received value
1646 and take the address for new_var if the original variable was a
1647 DECL_BY_REFERENCE. Use size of referenced object when a
1648 pass-by-reference optional argument used as argument to firstprivate.
1650 2019-10-02 Jakub Jelinek <jakub@redhat.com>
1652 PR tree-optimization/91940
1653 * tree-vect-patterns.c: Include tree-vector-builder.h and
1655 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
1656 unpromoting the argument back to uint16_t, or by converting into a
1657 rotate, or into shifts plus ior.
1659 2019-10-02 Richard Biener <rguenther@suse.de>
1661 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
1663 (vect_transform_cycle_phi): Declare.
1664 * tree-vect-stmts.c (vect_transform_stmt): Call
1665 vect_transform_cycle_phi.
1666 * tree-vect-loop.c (vectorizable_reduction): Split out
1667 PHI transformation stage to ...
1668 (vect_transform_cycle_phi): ... here.
1670 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1673 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
1674 eliminable registers.
1675 (make_hard_regno_live): Likewise, and don't make them live.
1677 2019-10-01 David Malcolm <dmalcolm@redhat.com>
1679 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
1680 Call pp_emit_prefix.
1681 (layout::print_source_line): Likewise.
1682 (layout::start_annotation_line): Likewise.
1683 (diagnostic_show_locus): Remove call to temporarily clear the
1685 (selftest::test_one_liner_fixit_remove): Add test coverage for the
1686 interaction of pp_set_prefix with rulers and fix-it hints.
1687 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
1688 prefix when calling diagnostic_show_locus, rather than destroying
1690 (print_parseable_fixits): Temporarily clear prefix.
1691 * pretty-print.c (pp_format): Save and restore line_length, rather
1692 than assuming it is zero.
1693 (pp_output_formatted_text): Remove assertion that line_length is
1696 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1698 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
1700 (nonoverlapping_refs_since_match_p): ... this; handle also
1702 (alias_stats): Update stats.
1703 (dump_alias_stats): Likewise.
1704 (cheap_array_ref_low_bound): New function.
1705 (aliasing_matching_component_refs_p): Add partial_overlap
1707 pass it to nonoverlapping_refs_since_match_p.
1708 (aliasing_component_refs_walk): Update call of
1709 aliasing_matching_component_refs_p
1710 (nonoverlapping_array_refs_p): New function.
1711 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
1712 indirect_refs_may_alias_p): Update calls of
1713 nonoverlapping_refs_since_match_p.
1715 2019-10-01 Maya Rashish <coypu@sdf.org>
1718 * ira-color.c (allocno_copy_cost_saving): Call
1719 ira_init_register_move_cost_if_necessary.
1721 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
1723 * Makefile.in (gnat_install_lib): New variable.
1724 * configure.ac: Substitute it.
1725 * configure: Regenerate.
1727 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1730 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
1731 is matched with non-C++ type
1733 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1735 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
1738 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1740 * doc/invoke.texi (early-inlining-insns-O2): Document.
1741 (early-inlining-insns): Update.
1742 * params.def (early-inlining-insns-O2): New bound.
1743 (early-inlining-insns): Update docs.
1744 * ipa-inline.c (want_early_inline_function_p): Use new bound.
1746 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
1749 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
1750 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
1751 a memory access insn.
1753 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
1755 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
1758 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1761 * config/s390/s390.c (s390_expand_vec_compare): Use
1762 gen_vec_cmpordered and gen_vec_cmpunordered.
1763 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
1764 vec_unordered): Delete.
1765 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
1766 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
1767 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
1768 (vec_cmp<code>): Generic dispatcher.
1770 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1773 * config/s390/vector.md (V_HW): Add V1TI in order to make
1774 vcond$a$b generate vcondv1tiv1tf.
1776 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1778 PR rtl-optimization/91948
1779 * ira-build.c (ira_create_allocno): Initialize
1780 ALLOCNO_CROSSED_CALLS_ABIS.
1781 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
1782 than regno to ira_need_caller_save_p.
1784 2019-10-01 Alexandre Oliva <oliva@adacore.com>
1786 * config/i386/i386-options.c
1787 (ix86_recompute_optlev_based_flags): New, moved out of...
1788 (ix86_option_override_internal): ... this. Call it.
1789 (ix86_override_options_after_change): Call it here too.
1792 * dwarf2out.c (override_type_for_decl_p): New.
1793 (gen_variable_die): Use it.
1795 2019-10-01 Richard Biener <rguenther@suse.de>
1797 * tree-vect-loop.c (vectorizable_reduction): Move variables
1798 to where they are used.
1800 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1802 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
1803 (build_def_use): Use PC instead of CC0 in a comment.
1805 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1807 * rtl.def (CLOBBER_HIGH): Delete.
1808 * doc/rtl.texi (clobber_high): Remove documentation.
1809 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
1810 (reg_is_clobbered_by_clobber_high): Delete.
1811 (gen_hard_reg_clobber_high): Likewise.
1812 * alias.c (record_set): Remove CLOBBER_HIGH handling.
1813 * cfgexpand.c (expand_gimple_stmt): Likewise.
1814 * combine-stack-adj.c (single_set_for_csa): Likewise.
1815 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
1816 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
1817 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
1818 * cse.c (invalidate_reg): Remove clobber_high parameter.
1819 (invalidate): Update call accordingly.
1820 (canonicalize_insn): Remove CLOBBER_HIGH handling.
1821 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
1822 (count_reg_usage, insn_live_p): Likewise.
1823 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
1824 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
1825 (cselib_invalidate_rtx_note_stores): Update call accordingly.
1826 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
1827 (cselib_invalidate_regno, cselib_process_insn): Likewise.
1828 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
1829 (mark_nonreg_stores_2): Likewise.
1830 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
1831 (df_get_call_refs): Likewise.
1832 * dwarf2out.c (mem_loc_descriptor): Likewise.
1833 * emit-rtl.c (verify_rtx_sharing): Likewise.
1834 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
1835 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
1836 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
1837 * genemit.c (gen_exp, gen_insn): Likewise.
1838 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
1839 * haifa-sched.c (haifa_classify_rtx): Likewise.
1840 * ira-build.c (create_insn_allocnos): Likewise.
1841 * ira-costs.c (scan_one_insn): Likewise.
1842 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
1843 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
1844 * jump.c (mark_jump_label_1): Likewise.
1845 * lra-int.h (lra_insn_reg::clobber_high): Delete.
1846 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
1848 (mark_not_eliminable): Likewise.
1849 * lra-lives.c (process_bb_lives): Likewise.
1850 * lra.c (new_insn_reg): Remove clobber_high parameter.
1851 (collect_non_operand_hard_regs): Likewise. Update call to new
1852 insn_reg. Remove CLOBBER_HIGH handling.
1853 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
1854 to collect_non_operand_hard_regs.
1855 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
1856 Update call to new_insn_reg.
1857 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
1858 * postreload.c (reload_cse_simplify, reload_combine_note_use)
1859 (move2add_note_store): Likewise.
1860 * print-rtl.c (print_pattern): Likewise.
1861 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
1862 (if_test_bypass_p): Likewise.
1863 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
1864 * reginfo.c (reg_scan_mark_refs): Likewise.
1865 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
1866 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
1867 (forget_old_reloads_1): Likewise.
1868 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
1869 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
1870 (dbr_schedule): Likewise.
1871 * resource.c (update_live_status, mark_referenced_resources)
1872 (mark_set_resources): Likewise.
1873 * rtl.c (copy_rtx): Likewise.
1874 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
1875 (note_pattern_stores): Likewise.
1876 (reg_is_clobbered_by_clobber_high): Delete.
1877 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
1878 CLOBBER_HIGH handling.
1880 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1883 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
1884 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
1885 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
1886 Handle ARM_PCS_TLSDESC.
1887 (aarch64_tlsdesc_abi_id): New function.
1888 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
1889 rtx instead of a list of clobbers and clobber_highs.
1890 (tlsdesc_small_<mode>): Update accordingly.
1892 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1894 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
1895 extra callee_abi argument.
1896 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
1897 Insert a CALLEE_ABI unspec into the call pattern as the second
1898 element in the PARALLEL.
1899 (aarch64_simd_call_p): Delete.
1900 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
1901 the new CALLEE_ABI element of the PARALLEL.
1902 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
1903 from the function type, if given.
1904 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
1905 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
1906 when passed the function_arg_info end marker.
1907 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
1908 final argument of gen_sibcall.
1909 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
1910 (call): Make operand 2 a const_int_operand and pass it to expand_call.
1911 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
1913 (call_value): Likewise operand 3.
1914 (sibcall): Likewise operand 2. Place the unspec before rather than
1916 (sibcall_value): Likewise operand 3.
1917 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
1918 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
1919 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
1921 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
1923 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1925 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
1926 choose_hard_reg_mode.
1927 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1929 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1931 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
1932 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
1933 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
1935 2019-09-30 David Malcolm <dmalcolm@redhat.com>
1937 * diagnostic-show-locus.c (line_label::line_label): Initialize
1939 (line_label::comparator): Reverse the sort order by m_state_idx,
1940 so that when the list is walked backwards the labels appear in
1941 order of insertion into the rich_location.
1942 (line_label::m_has_vbar): New field.
1943 (layout::print_any_labels): When dealing with multiple labels at
1944 the same line and column, only print vertical bars for the one
1945 with the highest label_line.
1946 (selftest::test_one_liner_labels): Update test for multiple labels
1947 to expect the labels to be in the order of insertion into the
1948 rich_location. Add a test for many such labels, where the column
1949 numbers are out-of-order relative to the insertion order.
1951 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1953 * config/i386/i386.h (ix86_frame::expensive_p): New field.
1954 (ix86_frame::expensive_count): Likewise.
1955 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
1956 of use_fast_prologue_epilogue robust against incidental changes
1959 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
1962 * config/s390/vector.md (vec_unordered<mode>): Call
1963 gen_vec_ordered<mode>.
1965 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
1967 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
1968 New pattern for ASRD.
1969 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
1970 * internal-fn.def (IFN_DIV_POW2): New internal function.
1971 * optabs.def (sdiv_pow2_optab): New optab.
1972 * tree-vect-patterns.c (vect_recog_divmod_pattern):
1973 Modify pattern to support new operation.
1974 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
1975 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
1976 Document new target selector.
1978 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1980 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
1981 to test whether we're compiling a vector PCS function and to test
1982 whether the function needs to save a particular register.
1983 Remove the vector PCS handling of df_set_regs_ever_live.
1984 (aarch64_components_for_bb): Use crtl->abi to test whether
1985 the function needs to save a particular register.
1986 (aarch64_process_components): Use crtl->abi to test whether
1987 we're compiling a vector PCS function.
1988 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
1989 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
1991 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1993 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
1995 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
1996 whether the block calls a function that clobbers more registers
1997 than the current function is allowed to.
1998 (aarch64_use_simple_return_insn_p): Delete.
1999 * config/aarch64/aarch64.md (simple_return): Remove condition.
2001 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2003 * function-abi.h (function_abi_aggregator): New class.
2004 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
2006 * ira.c (update_equiv_regs_prescan): New function. Call
2007 set_paradoxical_subreg here rather than...
2008 (update_equiv_regs): ...here.
2009 (ira): Call update_equiv_regs_prescan.
2011 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2013 * hard-reg-set.h (regs_invalidated_by_call): Only define if
2015 (call_used_or_fixed_regs): Likewise.
2016 (call_used_or_fixed_reg_p): Likewise.
2017 * reginfo.c (regs_invalidated_by_call): New macro.
2019 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2021 * shrink-wrap.c: Include function-abi.h.
2022 (requires_stack_frame_p): Use crtl->abi to test whether the
2023 current function can use a register without saving it first.
2025 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2027 * sel-sched-ir.h (_def::crosses_call): Replace with...
2028 (_def::crossed_call_abis): ..this new field.
2029 (def_list_add): Take a mask of ABIs instead of a crosses_call
2031 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
2032 of _def accordingly.
2033 * sel-sched.c: Include function-abi.h.
2034 (hard_regs_data::regs_for_call_clobbered): Delete.
2035 (reg_rename::crosses_call): Replace with...
2036 (reg_rename::crossed_call_abis): ...this new field.
2037 (fur_static_params::crosses_call): Replace with...
2038 (fur_static_params::crossed_call_abis): ...this new field.
2039 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
2040 (init_hard_regs_data): Use crtl->abi to test which registers the
2041 current function would need to save before it uses them.
2042 (mark_unavailable_hard_regs): Update handling of call-clobbered
2043 registers, using call_clobbers_in_region to find out which registers
2044 might be call-clobbered (but without taking -fipa-ra into account
2045 for now). Remove separate handling of partially call-clobbered
2047 (verify_target_availability): Use crossed_call_abis instead of
2049 (get_spec_check_type_for_insn, find_used_regs): Likewise.
2050 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
2052 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2054 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
2055 function to test whether a register is fully or partly clobbered.
2057 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2059 * rtlanal.c: Include function-abi.h.
2060 (reg_set_p): Use insn_callee_abi to get the ABI of the called
2061 function and clobbers_reg_p to test whether the register
2063 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
2064 to get the ABI of the called function and full_reg_clobbers to
2065 get the set of fully call-clobbered registers. Warn about the
2066 pitfalls of using this mode.
2068 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2070 * reload.c: Include function-abi.h.
2071 (find_equiv_reg): Use clobbers_reg_p to test whether either
2072 of the equivalent registers is clobbered by a call.
2073 * reload1.c: Include function-abi.h.
2074 (reg_reloaded_call_part_clobbered): Delete.
2075 (reload): Use crtl->abi to test which registers would need
2076 saving in the prologue before use.
2077 (find_reg): Likewise.
2078 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
2079 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
2080 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
2082 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2084 * regrename.h (du_head::call_clobber_mask): New field.
2085 (du_head::need_caller_save_reg): Replace with...
2086 (du_head::call_abis): ...this new field.
2087 * regrename.c: Include function-abi.h.
2088 (call_clobbered_in_chain_p): New function.
2089 (check_new_reg_p): Use crtl->abi when deciding whether a register
2090 is free for use after RA. Use call_clobbered_in_chain_p to test
2091 whether a candidate register would be clobbered by a call.
2092 (find_rename_reg): Don't add call-clobber conflicts here.
2093 (rename_chains): Check call_abis instead of need_caller_save_reg.
2094 (merge_chains): Update for changes to du_head.
2095 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
2096 target. Record the ABI identifier in call_abis and the set of
2097 fully or partially clobbered registers in call_clobber_mask.
2098 Add fully-clobbered registers to hard_conflicts here rather
2099 than in find_rename_reg.
2100 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
2101 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
2102 * config/aarch64/falkor-tag-collision-avoidance.c: Include
2104 * config/c6x/c6x.c: Likewise.
2106 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2108 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
2109 mode of the register when deciding whether it is no longer
2110 available after a call.
2112 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2114 * recog.c: Include function-abi.h.
2115 (peep2_find_free_register): Use crtl->abi when deciding whether
2116 a register is free for use after RA.
2118 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2120 * postreload-gcse.c: Include regs.h and function-abi.h.
2121 (record_opr_changes): Use insn_callee_abi to get the ABI of the
2122 call insn target. Conservatively assume that partially-clobbered
2123 registers are altered.
2125 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2127 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
2128 when deciding whether a register is free for use after RA.
2129 (reload_combine): Remove unnecessary use of fixed_reg_set.
2130 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
2131 call insn target. Use reg_mode when testing whether a register
2132 is no longer available.
2134 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2136 * target.def (return_call_with_max_clobbers): Delete.
2137 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2138 * doc/tm.texi: Regenerate.
2139 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
2140 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2141 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
2142 (lra_reg::call_insn): Delete.
2143 * lra.c: Include function-abi.h.
2144 (initialize_lra_reg_info_element): Don't initialize the fields above.
2145 (lra): Use crtl->abi to test whether the current function needs to
2146 save a register in the prologue. Remove special pre-inheritance
2147 lra_create_live_ranges pass for flag_ipa_ra.
2148 * lra-assigns.c: Include function-abi.h
2149 (find_hard_regno_for_1): Use crtl->abi to test whether the current
2150 function needs to save a register in the prologue.
2151 (lra_assign): Assert that registers aren't allocated to a
2152 conflicting register, rather than checking only for overlaps
2153 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
2154 and for registers that are not live across a call.
2155 * lra-constraints.c (last_call_for_abi): New variable.
2156 (full_and_partial_call_clobbers): Likewise.
2157 (setup_next_usage_insn): Remove the register from
2158 full_and_partial_call_clobbers.
2159 (need_for_call_save_p): Use call_clobbered_in_region_p to test
2160 whether the register needs a caller save.
2161 (need_for_split_p): Use full_and_partial_reg_clobbers instead
2162 of call_used_or_fixed_regs.
2163 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
2164 full_and_partial_call_clobbers.
2165 * lra-lives.c (check_pseudos_live_through_calls): Replace
2166 last_call_used_reg_set and call_insn arguments with an abi argument.
2167 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
2168 as the set of conflicting registers.
2169 (calls_have_same_clobbers_p): Delete.
2170 (process_bb_lives): Track the ABI of the last call instead of an
2171 insn/HARD_REG_SET pair. Update calls to
2172 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
2173 the set of registers that could be clobbered by an EH edge.
2174 Include partially-clobbered as well as fully-clobbered registers.
2175 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
2176 * lra-remat.c: Include function-abi.h.
2177 (call_used_regs_arr_len, call_used_regs_arr): Delete.
2178 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
2179 registers and bitmap_view to combine them into dead_regs.
2180 (call_used_input_regno_present_p): Take a function_abi argument
2181 and use it to test whether a register is call-clobbered.
2182 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
2183 call insn target. Update tje call to call_used_input_regno_present_p.
2184 (do_remat): Likewise.
2185 (lra_remat): Remove the initialization of call_used_regs_arr_len
2186 and call_used_regs_arr.
2188 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2190 * loop-iv.c: Include regs.h and function-abi.h.
2191 (simplify_using_initial_values): Use insn_callee_abi to get the
2192 ABI of the call insn target. Conservatively assume that
2193 partially-clobbered registers are altered.
2195 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2197 * function-abi.h (call_clobbers_in_region): Declare.
2198 (call_clobbered_in_region_p): New function.
2199 * function-abi.cc (call_clobbers_in_region): Likewise.
2200 * ira-int.h: Include function-abi.h.
2201 (ira_allocno::crossed_calls_abis): New field.
2202 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
2203 (ira_need_caller_save_regs): New function.
2204 (ira_need_caller_save_p): Likewise.
2205 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
2206 of call_used_or_fixed_regs.
2207 (do_reload): Use crtl->abi to test whether the current function
2208 needs to save a register in the prologue. Count registers that
2209 need to be saved rather than registers that don't.
2210 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
2211 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2212 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
2213 (propagate_some_info_from_allocno): Likewise.
2214 (copy_info_to_removed_store_destinations): Likewise.
2215 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
2216 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
2217 (ira_build): Use ira_need_caller_save_regs instead of
2218 call_used_or_fixed_regs.
2219 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
2220 whether the current function would need to save a register
2222 (calculate_spill_cost): Likewise.
2223 (allocno_reload_assign): Use ira_need_caller_save_regs and
2224 ira_need_caller_save_p instead of call_used_or_fixed_regs.
2225 * ira-conflicts.c (ira_build_conflicts): Use
2226 ira_need_caller_save_regs rather than call_used_or_fixed_regs
2227 as the set of call-clobbered registers. Remove the
2228 call_used_or_fixed_regs mask from the calculation of
2229 temp_hard_reg_set and mask its use instead. Remove special
2230 handling of partially-clobbered registers.
2231 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
2232 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
2233 calculate the set of conflicting registers for calls that
2234 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
2235 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
2236 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2237 Use eh_edge_abi to calculate the set of registers that could
2238 be clobbered by an EH edge. Include partially-clobbered as
2239 well as fully-clobbered registers.
2241 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2243 * haifa-sched.c: Include function-abi.h.
2244 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
2245 the function would need to save a register before using it.
2247 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2249 * gcse.c: Include function-abi.h.
2250 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
2251 the call insn target. Invalidate partially call-clobbered
2252 registers as well as fully call-clobbered ones.
2254 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2256 * function.c (aggregate_value_p): Work out which ABI the
2257 function is using before testing which registers are at least
2258 partly preserved by a call.
2260 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2262 * early-remat.c: Include regs.h and function-abi.h.
2263 (early_remat::maybe_add_candidate): Don't check for call-clobbered
2265 (early_remat::restrict_remat_for_unavail_regs): New function.
2266 (early_remat::restrict_remat_for_call): Likewise.
2267 (early_remat::process_block): Before calling emit_remat_insns
2268 for a previous call in the block, invalidate any candidates
2269 that would clobber call-preserved registers.
2270 (early_remat::emit_remat_insns_for_block): Likewise for the
2271 final call in a block. Do the same thing for live-in registers
2272 when calling emit_remat_insns at the head of a block.
2274 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2276 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
2277 whether the current function needs to save at least part of a
2278 register before using it.
2279 (df_get_exit_block_use_set): Likewise for epilogue restores.
2281 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2283 * df-problems.c: Include regs.h and function-abi.h.
2284 (df_rd_problem_data): Rename sparse_invalidated_by_call to
2285 sparse_invalidated_by_eh and dense_invalidated_by_call to
2286 dense_invalidated_by_eh.
2287 (df_print_bb_index): Update accordingly.
2288 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
2289 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
2290 that are clobbered by an EH edge. Clobber partially-clobbered
2291 registers as well as fully-clobbered ones.
2292 (df_md_confluence_n): Likewise.
2293 (df_rd_local_compute): Likewise. Update for changes to
2295 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
2296 of registers that are clobbered by an EH edge. Includde partially-
2297 clobbered registers as well as fully-clobbered ones.
2299 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2301 * cselib.c (cselib_process_insn): If we know what mode a
2302 register was set in, check whether it is clobbered in that
2303 mode by a call. Only fall back to reg_raw_mode if that fails.
2305 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2307 * cse.c: Include regs.h and function-abi.h.
2308 (invalidate_for_call): Take the call insn as an argument.
2309 Use insn_callee_abi to get the ABI of the call and invalidate
2310 partially clobbered registers as well as fully clobbered ones.
2311 (cse_insn): Update call accordingly.
2313 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2315 * combine.c: Include function-abi.h.
2316 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
2317 of the target of call insns. Invalidate partially-clobbered
2318 registers as well as fully-clobbered ones.
2320 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2322 * cfgloopanal.c: Include regs.h and function-abi.h.
2323 (init_set_costs): Use default_function_abi to test whether
2324 a general register is call-clobbered.
2326 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2328 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
2329 instead of the call-clobbered sets.
2331 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2333 * caller-save.c (setup_save_areas): Remove redundant |s of
2335 (save_call_clobbered_regs): Likewise. Use the call ABI rather
2336 than call_used_or_fixed_regs to decide whether a REG_RETURNED
2339 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2341 * rtl.h (predefined_function_abi): Declare.
2342 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2343 instead of a boolean call_save flag.
2344 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
2346 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2347 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2348 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
2349 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2350 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2351 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
2352 * reginfo.c (init_reg_modes_target): Likewise.
2353 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2354 instead of a boolean call_save flag.
2355 * targhooks.c: Include function-abi.h.
2356 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
2357 using eh_edge_abi to choose the mode.
2359 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2361 * target.def (hard_regno_call_part_clobbered): Take an ABI
2362 identifier instead of an rtx_insn.
2363 * doc/tm.texi: Regenerate.
2364 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
2365 (hook_bool_uint_uint_mode_false): New function.
2366 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
2367 (hook_bool_uint_uint_mode_false): New function.
2368 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2369 Take an ABI identifier instead of an rtx_insn.
2370 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
2371 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
2372 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
2373 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
2374 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
2376 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
2377 * cselib.c: Include function-abi.h.
2378 (cselib_process_insn): Update call to
2379 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2380 to get the appropriate ABI identifier.
2381 * function-abi.cc (predefined_function_abi::initialize): Update call
2382 to targetm.hard_regno_call_part_clobbered.
2383 * ira-conflicts.c (ira_build_conflicts): Likewise.
2384 * ira-costs.c (ira_tune_allocno_costs): Likewise.
2385 * lra-constraints.c: Include function-abi.h.
2386 (need_for_call_save_p): Update call to
2387 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2388 to get the appropriate ABI identifier.
2389 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
2390 * regcprop.c (copyprop_hardreg_forward_1): Update call
2391 to targetm.hard_regno_call_part_clobbered.
2392 * reginfo.c (choose_hard_reg_mode): Likewise.
2393 * regrename.c (check_new_reg_p): Likewise.
2394 * reload.c (find_equiv_reg): Likewise.
2395 * reload1.c (emit_reload_insns): Likewise.
2396 * sched-deps.c: Include function-abi.h.
2397 (deps_analyze_insn): Update call to
2398 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2399 to get the appropriate ABI identifier.
2400 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
2401 call to targetm.hard_regno_call_part_clobbered.
2402 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
2404 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2406 * config/i386/i386.c: Include function-abi.h.
2407 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
2408 if they preserve some 256-bit or 512-bit SSE registers.
2410 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2412 * target.def (insn_callee_abi): New hook.
2413 (remove_extra_call_preserved_regs): Delete.
2414 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
2415 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2416 * doc/tm.texi: Regenerate.
2417 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
2418 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
2419 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
2421 (aarch64_remove_extra_call_preserved_regs): Delete.
2422 (aarch64_insn_callee_abi): New function.
2423 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2424 (TARGET_INSN_CALLEE_ABI): New macro.
2425 * rtl.h (get_call_fndecl): Declare.
2426 (cgraph_rtl_info): Fix formatting. Tweak comment for
2427 function_used_regs. Remove function_used_regs_valid.
2428 * rtlanal.c (get_call_fndecl): Moved from final.c
2429 * function-abi.h (insn_callee_abi): Declare.
2430 (target_function_abi_info): Mention insn_callee_abi.
2431 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
2432 way to get_call_reg_set_usage did.
2433 (insn_callee_abi): New function.
2434 * regs.h (get_call_reg_set_usage): Delete.
2435 * final.c: Include function-abi.h.
2436 (collect_fn_hard_reg_usage): Add fixed and stack registers to
2437 function_used_regs before the main loop rather than afterwards.
2438 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
2439 if function_used_regs ends up not being useful.
2440 (get_call_fndecl): Move to rtlanal.c
2441 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
2442 * caller-save.c: Include function-abi.h.
2443 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
2444 instead of get_call_reg_set_usage.
2445 * cfgcleanup.c: Include function-abi.h.
2446 (old_insns_match_p): Use insn_callee_abi instead of
2447 get_call_reg_set_usage.
2448 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
2450 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
2452 * df-scan.c: Include function-abi.h.
2453 (df_get_call_refs): Use insn_callee_abi instead of
2454 get_call_reg_set_usage.
2455 * ira-lives.c: Include function-abi.h.
2456 (process_bb_node_lives): Use insn_callee_abi instead of
2457 get_call_reg_set_usage.
2458 * lra-lives.c: Include function-abi.h.
2459 (process_bb_lives): Use insn_callee_abi instead of
2460 get_call_reg_set_usage.
2461 * postreload.c: Include function-abi.h.
2462 (reload_combine): Use insn_callee_abi instead of
2463 get_call_reg_set_usage.
2464 * regcprop.c: Include function-abi.h.
2465 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
2466 get_call_reg_set_usage.
2467 * resource.c: Include function-abi.h.
2468 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
2469 instead of get_call_reg_set_usage.
2470 * var-tracking.c: Include function-abi.h.
2471 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
2472 get_call_reg_set_usage.
2474 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2476 * target.def (fntype_abi): New target hook.
2477 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
2478 * doc/tm.texi: Regenerate.
2479 * target.h (predefined_function_abi): Declare.
2480 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
2482 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
2483 * config/aarch64/aarch64.c: Include function-abi.h.
2484 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
2485 (TARGET_FNTYPE_ABI): Define.
2487 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2489 * Makefile.in (OBJS): Add function-abi.o.
2490 (GTFILES): Add function-abi.h.
2491 * function-abi.cc: New file.
2492 * function-abi.h: Likewise.
2493 * emit-rtl.h (rtl_data::abi): New field.
2494 * function.c: Include function-abi.h.
2495 (prepare_function_start): Initialize crtl->abi.
2496 * read-rtl-function.c: Include regs.h and function-abi.h.
2497 (read_rtl_function_body): Initialize crtl->abi.
2498 (read_rtl_function_body_from_file_range): Likewise.
2499 * reginfo.c: Include function-abi.h.
2500 (init_reg_sets_1): Initialize default_function_abi.
2501 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
2502 when making a register global.
2503 * target-globals.h (this_target_function_abi_info): Declare.
2504 (target_globals::function_abi_info): New field.
2505 (restore_target_globals): Copy it.
2506 * target-globals.c: Include function-abi.h.
2507 (default_target_globals): Initialize the function_abi_info field.
2508 (target_globals): Allocate it.
2509 (save_target_globals): Free it.
2511 2019-09-30 Nick Clifton <nickc@redhat.com>
2514 * config/frv/frv.c (frv_register_move_cost): Add break statements
2515 to avoid falling through to the wrong cases. Tidy code.
2517 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2519 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2520 For multi-registers modes, test how big each register part is.
2522 2019-09-30 Nick Clifton <nickc@redhat.com>
2525 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
2526 (TARGET_ASM_SELECT_SECTION): Remove definition.
2527 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
2529 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2531 * emit-rtl.c (init_raw_REG): New function.
2532 (gen_raw_REG): Use init_raw_REG.
2533 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
2535 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
2536 * rtl.h (rtx_init): New function.
2537 (rtx_alloca): New function.
2538 (init_raw_REG): New function.
2539 (alloca_raw_REG): New macro.
2541 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
2543 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
2544 (pcrel_local_address): Replace pcrel_address predicate, use the
2545 new function address_to_insn_form.
2546 (pcrel_external_address): Replace with new implementation using
2547 address_to_insn_form..
2548 (prefixed_mem_operand): Delete predicate which is now unused.
2549 (pcrel_external_mem_operand): Delete predicate which is now
2551 * config/rs6000/rs6000-protos.h (enum insn_form): New
2553 (enum non_prefixed_form): New enumeration.
2554 (address_to_insn_form): New declaration.
2555 (prefixed_load_p): New declaration.
2556 (prefixed_store_p): New declaration.
2557 (prefixed_paddi_p): New declaration.
2558 (rs6000_asm_output_opcode): New declaration.
2559 (rs6000_final_prescan_insn): Move declaration and update calling
2561 (address_is_prefixed): New helper inline function.
2562 * config/rs6000/rs6000.c(print_operand_address): Check for either
2563 PC-relative local symbols or PC-relative external symbols.
2564 (rs6000_emit_move): Support loading PC-relative addresses.
2565 (mode_supports_prefixed_address_p): Delete, no longer used.
2566 (rs6000_prefixed_address_mode_p): Delete, no longer used.
2567 (address_to_insn_form): New function to decode an address format.
2568 (reg_to_non_prefixed): New function to identify what the
2569 non-prefixed memory instruction format is for a register.
2570 (prefixed_load_p): New function to identify prefixed loads.
2571 (prefixed_store_p): New function to identify prefixed stores.
2572 (prefixed_paddi_p): New function to identify prefixed load
2574 (next_insn_prefixed_p): New static state variable.
2575 (rs6000_final_prescan_insn): New function to determine if an insn
2576 uses a prefixed instruction.
2577 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
2578 prefixed instruction.
2579 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
2580 (ASM_OUTPUT_OPCODE): New target hook.
2581 * config/rs6000/rs6000.md (prefixed): New insn attribute for
2582 prefixed instructions.
2583 (prefixed_length): New insn attribute for the size of prefixed
2585 (non_prefixed_length): New insn attribute for the size of
2586 non-prefixed instructions.
2587 (pcrel_local_addr): New insn to load up a local PC-relative
2589 (pcrel_extern_addr): New insn to load up an external PC-relative
2591 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
2592 GPR and loading a 128-bit floating point type to a GPR.
2594 2019-09-30 Richard Biener <rguenther@suse.de>
2596 * gimple.c (gimple_get_lhs): For PHIs return the result.
2597 * tree-vectorizer.h (vectorizable_live_operation): Also get the
2598 SLP instance as argument.
2599 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
2600 double-reduction PHIs with vectorizable_lc_phi.
2601 (vect_analyze_loop_operations): Adjust.
2602 (vect_create_epilog_for_reduction): Remove all code not dealing
2603 with reduction LC PHI or epilogue generation.
2604 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
2605 for live stmts of reductions.
2606 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
2607 do not handle defs that are not vect_internal_def.
2608 (can_vectorize_live_stmts): Adjust.
2609 (vect_analyze_stmt): When the vectorized stmt defined a value
2610 used on backedges adjust the backedge uses of vectorized PHIs.
2612 2019-09-30 Martin Jambor <mjambor@suse.cz>
2615 * tree-inline.c (force_value_to_type): New function.
2616 (setup_one_parameter): Use force_value_to_type to convert type.
2617 * tree-inline.c (force_value_to_type): Declare.
2618 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
2619 with register type mismatches.
2621 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
2623 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
2625 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
2626 * config/rs6000/t-freebsd64: Make use of the above define and build
2627 the 32-bit libraries with secure-plt.
2629 2019-09-30 Jakub Jelinek <jakub@redhat.com>
2632 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
2633 gen_int_mode instead of GEN_INT.
2635 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
2637 * config/darwin.c (gen_macho_low): Amend to include the mode
2639 (machopic_indirect_data_reference): Amend gen_macho_low call
2640 to include mode argument
2641 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
2642 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
2643 the macho_high expander and two define_insn entries.
2645 2019-09-29 Jakub Jelinek <jakub@redhat.com>
2648 * optc-save-gen.awk: Fix up printing string option differences.
2650 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2652 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
2653 vec_perm cost to 1 for non-Power7 VSX architectures.
2655 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2657 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
2658 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
2659 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
2661 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
2663 * config/darwin.c (gen_macho_high): Amend to include the mode
2665 (machopic_indirect_data_reference): Amend gen_macho_high call
2666 to include mode argument.
2667 (machopic_legitimize_pic_address): Likewise.
2668 * config/rs6000/rs6000.c (rs6000_legitimize_address):
2669 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
2670 the macho_high expander and two define_insn entries.
2672 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2675 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
2677 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2680 * config/sh/sh.c (parse_validate_atomic_model_option): Use
2681 std::string::compare instead of std::string::find.
2683 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
2685 * configure: Regenerate.
2687 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2690 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
2691 variables as shared.
2693 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
2695 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
2696 replaces the expander and two define_insn entries.
2697 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
2699 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
2701 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2703 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
2704 (fibonacci_heap::nodes): Likewise.
2705 (fibonacci_heap::min_key): Likewise.
2706 (fibonacci_heap::min): Likewise.
2708 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2710 * cgraph.c (cgraph_node::get_fun): Make const.
2711 * cgraph.h (cgraph_node::get_fun): Likewise.
2713 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2716 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
2719 2019-09-27 Richard Biener <rguenther@suse.de>
2721 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
2722 (STMT_VINFO_REDUC_FN): Likewise.
2723 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
2724 STMT_VINFO_REDUC_FN.
2725 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
2726 for condition reductions.
2727 (vect_create_epilog_for_reduction): Compute all required state
2728 from the stmt to be vectorized.
2729 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
2730 invocation and remove then dead code. For single def-use chains
2731 record only a single vector stmt.
2733 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2735 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
2736 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
2737 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
2738 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
2739 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
2740 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
2741 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
2742 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
2743 (aarch64_general_builtin_rsqrt): Declare.
2744 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
2746 (aarch64_mangle_builtin_type): Rename to...
2747 (aarch64_general_mangle_builtin_type): ...this.
2748 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
2749 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
2750 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
2751 aarch64_general_add_builtin instead of add_builtin_function.
2752 (aarch64_init_builtins): Rename to...
2753 (aarch64_general_init_builtins): ...this. Use
2754 aarch64_general_add_builtin instead of add_builtin_function.
2755 (aarch64_builtin_decl): Rename to...
2756 (aarch64_general_builtin_decl): ...this and remove the unused
2758 (aarch64_expand_builtin): Rename to...
2759 (aarch64_general_expand_builtin): ...this and remove the unused
2761 (aarch64_builtin_rsqrt): Rename to...
2762 (aarch64_general_builtin_rsqrt): ...this.
2763 (aarch64_fold_builtin): Rename to...
2764 (aarch64_general_fold_builtin): ...this. Take the function subcode
2765 and return type as arguments. Remove the "ignored" argument.
2766 (aarch64_gimple_fold_builtin): Rename to...
2767 (aarch64_general_gimple_fold_builtin): ...this. Take the function
2768 subcode and gcall as arguments, and return the new function call.
2769 * config/aarch64/aarch64.c (aarch64_init_builtins)
2770 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
2771 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
2772 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
2773 instead of aarch64_builtin_rsqrt.
2774 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
2775 instead of aarch64_mangle_builtin_type.
2777 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2779 * target.def (check_builtin_call): New target hook.
2780 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
2781 * doc/tm.texi: Regenerate.
2783 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2785 PR tree-optimization/91909
2786 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
2787 reduc_index parameter. When handling COND_REDUCTION, make sure
2788 that the reduction phi operand is in the correct arm of the
2790 (vectorizable_reduction): Pass reduc_index to the above.
2792 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
2794 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
2795 New combine pattern.
2797 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
2799 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
2800 loop instruction into new basic block before the loop when basic
2801 block that precedes the loop is empty.
2803 2019-09-26 Jakub Jelinek <jakub@redhat.com>
2805 * function.c (gimplify_parameters): Use build_clobber function.
2806 * tree-ssa.c (execute_update_addresses_taken): Likewise.
2807 * tree-inline.c (expand_call_inline): Likewise.
2808 * tree-sra.c (clobber_subtree): Likewise.
2809 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
2810 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
2811 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
2812 lower_omp_target): Likewise.
2813 * omp-expand.c (expand_omp_for_generic): Likewise.
2814 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
2816 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
2818 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
2819 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
2820 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
2821 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
2822 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
2823 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
2824 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
2825 LD_ELEMREV_V16QI): Use the PURE attribute.
2827 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
2829 * config/rs6000/darwin.md: Replace the expanders for
2830 load_macho_picbase and reload_macho_picbase with use of '@'
2831 and <mode> in their respective define_insns.
2832 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
2833 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
2834 Pmode to gen_load_macho_picbase.
2835 * config/rs6000/rs6000.md: Likewise.
2837 2019-09-25 Richard Biener <rguenther@suse.de>
2839 PR tree-optimization/91896
2840 * tree-vect-loop.c (vectorizable_reduction): The single
2841 def-use cycle optimization cannot apply when there's more
2842 than one pattern stmt involved.
2844 2019-09-26 Richard Biener <rguenther@suse.de>
2846 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
2847 loop-closed PHIs that are vect_internal_def.
2848 (vect_create_epilog_for_reduction): Exit early for nested cycles.
2850 (vectorizable_lc_phi): New.
2851 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
2852 (vect_transform_stmt): Likewise.
2853 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
2854 (vectorizable_lc_phi): Declare.
2856 2019-09-26 Richard Biener <rguenther@suse.de>
2858 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
2859 vectorizable_reduction for vect_double_reduction_def.
2860 (vect_transform_loop): Likewise.
2861 (vect_create_epilog_for_reduction): Move double-reduction
2862 PHI creation and preheader argument setting of PHIs ...
2863 (vectorizable_reduction): ... here. Also process
2864 vect_double_reduction_def PHIs, creating the vectorized
2865 PHI nodes, remembering the scalar adjustment computed for
2866 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
2867 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
2868 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
2869 Initialize STMT_VINFO_REDUC_CODE.
2870 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
2871 (_stmt_vec_info::reduc_code): Likewise.
2872 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
2873 (STMT_VINFO_REDUC_CODE): Likewise.
2875 2019-09-26 Matt Turner <mattst88@gmail.com>
2878 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
2879 (mtune=): Add Negative(mtune=).
2880 (mcpu=): Add Negative(mcpu=).
2881 * config/arm/arm.opt: Likewise.
2883 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2885 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2886 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
2888 * config/arm/arm_acle.h: Define builtins for the above.
2889 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
2890 (simd32_op): Handle the above.
2891 * config/arm/unspecs.md: Define unspecs for the above.
2893 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2895 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2896 (arm_<sup>xtb16): Likewise.
2897 (arm_usada8): Likewise.
2898 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
2899 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
2900 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
2901 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
2902 __sxtb16, __uxtab16, __uxtb16): Define.
2903 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2904 * config/arm/unspecs.md: Define unspecs for the above.
2905 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
2906 (USXTB16): Likewise.
2907 (simd32_op): New int_attribute.
2908 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
2909 * doc/sourcebuild.exp (arm_simd32_ok): Document.
2911 2019-09-26 Martin Jambor <mjambor@suse.cz>
2913 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
2916 2019-09-26 Martin Jambor <mjambor@suse.cz>
2918 * ipa-sra.c (process_scan_results): Fix continue condition.
2920 2019-09-26 Martin Liska <mliska@suse.cz>
2922 PR tree-optimization/91885
2923 * tree-vectorizer.c (try_vectorize_loop_1): Add
2924 TODO_update_ssa_only_virtuals similarly to what slp pass does.
2926 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
2928 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
2929 aarch64_plus_immediate rather than aarch64_uimm12_shift
2930 to test for valid PLUS immediates.
2932 2019-09-25 Martin Jambor <mjambor@suse.cz>
2934 * tree-sra.c (no_accesses_p): Remove.
2935 (no_accesses_representant): Likewise.
2937 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2939 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
2941 (vaba_s16): Likewise.
2942 (vaba_s32): Likewise.
2943 (vaba_u8): Likewise.
2944 (vaba_u16): Likewise.
2945 (vaba_u32): Likewise.
2946 (vabal_high_s8): Likewise.
2947 (vabal_high_s16): Likewise.
2948 (vabal_high_s32): Likewise.
2949 (vabal_high_u8): Likewise.
2950 (vabal_high_u16): Likewise.
2951 (vabal_high_u32): Likewise.
2952 (vabal_s8): Likewise.
2953 (vabal_s16): Likewise.
2954 (vabal_s32): Likewise.
2955 (vabal_u8): Likewise.
2956 (vabal_u16): Likewise.
2957 (vabal_u32): Likewise.
2958 (vabaq_s8): Likewise.
2959 (vabaq_s16): Likewise.
2960 (vabaq_s32): Likewise.
2961 (vabaq_u8): Likewise.
2962 (vabaq_u16): Likewise.
2963 (vabaq_u32): Likewise.
2964 (vabd_s8): Likewise.
2965 (vabd_s16): Likewise.
2966 (vabd_s32): Likewise.
2967 (vabd_u8): Likewise.
2968 (vabd_u16): Likewise.
2969 (vabd_u32): Likewise.
2970 (vabdl_high_s8): Likewise.
2971 (vabdl_high_s16): Likewise.
2972 (vabdl_high_s32): Likewise.
2973 (vabdl_high_u8): Likewise.
2974 (vabdl_high_u16): Likewise.
2975 (vabdl_high_u32): Likewise.
2976 (vabdl_s8): Likewise.
2977 (vabdl_s16): Likewise.
2978 (vabdl_s32): Likewise.
2979 (vabdl_u8): Likewise.
2980 (vabdl_u16): Likewise.
2981 (vabdl_u32): Likewise.
2982 (vabdq_s8): Likewise.
2983 (vabdq_s16): Likewise.
2984 (vabdq_s32): Likewise.
2985 (vabdq_u8): Likewise.
2986 (vabdq_u16): Likewise.
2987 (vabdq_u32): Likewise.
2988 (vaddlv_s8): Likewise.
2989 (vaddlv_s16): Likewise.
2990 (vaddlv_u8): Likewise.
2991 (vaddlv_u16): Likewise.
2992 (vaddlvq_s8): Likewise.
2993 (vaddlvq_s16): Likewise.
2994 (vaddlvq_s32): Likewise.
2995 (vaddlvq_u8): Likewise.
2996 (vaddlvq_u16): Likewise.
2997 (vaddlvq_u32): Likewise.
2998 (vcvtx_f32_f64): Likewise.
2999 (vcvtx_high_f32_f64): Likewise.
3000 (vcvtxd_f32_f64): Likewise.
3001 (vmla_n_f32): Likewise.
3002 (vmla_n_s16): Likewise.
3003 (vmla_n_s32): Likewise.
3004 (vmla_n_u16): Likewise.
3005 (vmla_n_u32): Likewise.
3006 (vmla_s8): Likewise.
3007 (vmla_s16): Likewise.
3008 (vmla_s32): Likewise.
3009 (vmla_u8): Likewise.
3010 (vmla_u16): Likewise.
3011 (vmla_u32): Likewise.
3012 (vmlal_high_n_s16): Likewise.
3013 (vmlal_high_n_s32): Likewise.
3014 (vmlal_high_n_u16): Likewise.
3015 (vmlal_high_n_u32): Likewise.
3016 (vmlal_high_s8): Likewise.
3017 (vmlal_high_s16): Likewise.
3018 (vmlal_high_s32): Likewise.
3019 (vmlal_high_u8): Likewise.
3020 (vmlal_high_u16): Likewise.
3021 (vmlal_high_u32): Likewise.
3022 (vmlal_n_s16): Likewise.
3023 (vmlal_n_s32): Likewise.
3024 (vmlal_n_u16): Likewise.
3025 (vmlal_n_u32): Likewise.
3026 (vmlal_s8): Likewise.
3027 (vmlal_s16): Likewise.
3028 (vmlal_s32): Likewise.
3029 (vmlal_u8): Likewise.
3030 (vmlal_u16): Likewise.
3031 (vmlal_u32): Likewise.
3032 (vmlaq_n_f32): Likewise.
3033 (vmlaq_n_s16): Likewise.
3034 (vmlaq_n_s32): Likewise.
3035 (vmlaq_n_u16): Likewise.
3036 (vmlaq_n_u32): Likewise.
3037 (vmlaq_s8): Likewise.
3038 (vmlaq_s16): Likewise.
3039 (vmlaq_s32): Likewise.
3040 (vmlaq_u8): Likewise.
3041 (vmlaq_u16): Likewise.
3042 (vmlaq_u32): Likewise.
3043 (vmls_n_f32): Likewise.
3044 (vmls_n_s16): Likewise.
3045 (vmls_n_s32): Likewise.
3046 (vmls_n_u16): Likewise.
3047 (vmls_n_u32): Likewise.
3048 (vmls_s8): Likewise.
3049 (vmls_s16): Likewise.
3050 (vmls_s32): Likewise.
3051 (vmls_u8): Likewise.
3052 (vmls_u16): Likewise.
3053 (vmls_u32): Likewise.
3054 (vmlsl_high_n_s16): Likewise.
3055 (vmlsl_high_n_s32): Likewise.
3056 (vmlsl_high_n_u16): Likewise.
3057 (vmlsl_high_n_u32): Likewise.
3058 (vmlsl_high_s8): Likewise.
3059 (vmlsl_high_s16): Likewise.
3060 (vmlsl_high_s32): Likewise.
3061 (vmlsl_high_u8): Likewise.
3062 (vmlsl_high_u16): Likewise.
3063 (vmlsl_high_u32): Likewise.
3064 (vmlsl_n_s16): Likewise.
3065 (vmlsl_n_s32): Likewise.
3066 (vmlsl_n_u16): Likewise.
3067 (vmlsl_n_u32): Likewise.
3068 (vmlsl_s8): Likewise.
3069 (vmlsl_s16): Likewise.
3070 (vmlsl_s32): Likewise.
3071 (vmlsl_u8): Likewise.
3072 (vmlsl_u16): Likewise.
3073 (vmlsl_u32): Likewise.
3074 (vmlsq_n_f32): Likewise.
3075 (vmlsq_n_s16): Likewise.
3076 (vmlsq_n_s32): Likewise.
3077 (vmlsq_n_u16): Likewise.
3078 (vmlsq_n_u32): Likewise.
3079 (vmlsq_s8): Likewise.
3080 (vmlsq_s16): Likewise.
3081 (vmlsq_s32): Likewise.
3082 (vmlsq_u8): Likewise.
3083 (vmlsq_u16): Likewise.
3084 (vmlsq_u32): Likewise.
3085 (vmovl_high_s8): Likewise.
3086 (vmovl_high_s16): Likewise.
3087 (vmovl_high_s32): Likewise.
3088 (vmovl_high_u8): Likewise.
3089 (vmovl_high_u16): Likewise.
3090 (vmovl_high_u32): Likewise.
3091 (vmovl_s8): Likewise.
3092 (vmovl_s16): Likewise.
3093 (vmovl_s32): Likewise.
3094 (vmovl_u8): Likewise.
3095 (vmovl_u16): Likewise.
3096 (vmovl_u32): Likewise.
3097 (vmovn_high_s16): Likewise.
3098 (vmovn_high_s32): Likewise.
3099 (vmovn_high_s64): Likewise.
3100 (vmovn_high_u16): Likewise.
3101 (vmovn_high_u32): Likewise.
3102 (vmovn_high_u64): Likewise.
3103 (vmovn_s16): Likewise.
3104 (vmovn_s32): Likewise.
3105 (vmovn_s64): Likewise.
3106 (vmovn_u16): Likewise.
3107 (vmovn_u32): Likewise.
3108 (vmovn_u64): Likewise.
3109 (vmull_high_n_s16): Likewise.
3110 (vmull_high_n_s32): Likewise.
3111 (vmull_high_n_u16): Likewise.
3112 (vmull_high_n_u32): Likewise.
3113 (vmull_high_p8): Likewise.
3114 (vmull_high_s8): Likewise.
3115 (vmull_high_s16): Likewise.
3116 (vmull_high_s32): Likewise.
3117 (vmull_high_u8): Likewise.
3118 (vmull_high_u16): Likewise.
3119 (vmull_high_u32): Likewise.
3120 (vmull_n_s16): Likewise.
3121 (vmull_n_s32): Likewise.
3122 (vmull_n_u16): Likewise.
3123 (vmull_n_u32): Likewise.
3124 (vmull_p8): Likewise.
3125 (vmull_s8): Likewise.
3126 (vmull_s16): Likewise.
3127 (vmull_s32): Likewise.
3128 (vmull_u8): Likewise.
3129 (vmull_u16): Likewise.
3130 (vmull_u32): Likewise.
3131 (vpadal_s8): Likewise.
3132 (vpadal_s16): Likewise.
3133 (vpadal_s32): Likewise.
3134 (vpadal_u8): Likewise.
3135 (vpadal_u16): Likewise.
3136 (vpadal_u32): Likewise.
3137 (vpadalq_s8): Likewise.
3138 (vpadalq_s16): Likewise.
3139 (vpadalq_s32): Likewise.
3140 (vpadalq_u8): Likewise.
3141 (vpadalq_u16): Likewise.
3142 (vpadalq_u32): Likewise.
3143 (vpaddl_s8): Likewise.
3144 (vpaddl_s16): Likewise.
3145 (vpaddl_s32): Likewise.
3146 (vpaddl_u8): Likewise.
3147 (vpaddl_u16): Likewise.
3148 (vpaddl_u32): Likewise.
3149 (vpaddlq_s8): Likewise.
3150 (vpaddlq_s16): Likewise.
3151 (vpaddlq_s32): Likewise.
3152 (vpaddlq_u8): Likewise.
3153 (vpaddlq_u16): Likewise.
3154 (vpaddlq_u32): Likewise.
3155 (vpaddq_s8): Likewise.
3156 (vpaddq_s16): Likewise.
3157 (vpaddq_s32): Likewise.
3158 (vpaddq_s64): Likewise.
3159 (vpaddq_u8): Likewise.
3160 (vpaddq_u16): Likewise.
3161 (vpaddq_u32): Likewise.
3162 (vpaddq_u64): Likewise.
3163 (vqdmulh_n_s16): Likewise.
3164 (vqdmulh_n_s32): Likewise.
3165 (vqdmulhq_n_s16): Likewise.
3166 (vqdmulhq_n_s32): Likewise.
3167 (vqmovn_high_s16): Likewise.
3168 (vqmovn_high_s32): Likewise.
3169 (vqmovn_high_s64): Likewise.
3170 (vqmovn_high_u16): Likewise.
3171 (vqmovn_high_u32): Likewise.
3172 (vqmovn_high_u64): Likewise.
3173 (vqmovun_high_s16): Likewise.
3174 (vqmovun_high_s32): Likewise.
3175 (vqmovun_high_s64): Likewise.
3176 (vqrdmulh_n_s16): Likewise.
3177 (vqrdmulh_n_s32): Likewise.
3178 (vqrdmulhq_n_s16): Likewise.
3179 (vqrdmulhq_n_s32): Likewise.
3180 (vrsqrte_u32): Likewise.
3181 (vrsqrteq_u32): Likewise.
3182 (vtst_p8): Likewise.
3183 (vtst_p16): Likewise.
3184 (vtst_p64): Likewise.
3185 (vtstq_p8): Likewise.
3186 (vtstq_p16): Likewise.
3187 (vtstq_p64): Likewise.
3188 (vaddlv_s32): Likewise.
3189 (vaddlv_u32): Likewise.
3190 (vqtbl1_p8): Likewise.
3191 (vqtbl1_s8): Likewise.
3192 (vqtbl1_u8): Likewise.
3193 (vqtbl1q_p8): Likewise.
3194 (vqtbl1q_s8): Likewise.
3195 (vqtbl1q_u8): Likewise.
3196 (vqtbx1_s8): Likewise.
3197 (vqtbx1_u8): Likewise.
3198 (vqtbx1_p8): Likewise.
3199 (vqtbx1q_s8): Likewise.
3200 (vqtbx1q_u8): Likewise.
3201 (vqtbx1q_p8): Likewise.
3202 (vtbl1_s8): Likewise.
3203 (vtbl1_u8): Likewise.
3204 (vtbl1_p8): Likewise.
3205 (vtbl2_s8): Likewise.
3206 (vtbl2_u8): Likewise.
3207 (vtbl2_p8): Likewise.
3208 (vtbl3_s8): Likewise.
3209 (vtbl3_u8): Likewise.
3210 (vtbl3_p8): Likewise.
3211 (vtbl4_s8): Likewise.
3212 (vtbl4_u8): Likewise.
3213 (vtbl4_p8): Likewise.
3214 (vtbx2_s8): Likewise.
3215 (vtbx2_u8): Likewise.
3216 (vtbx2_p8): Likewise.
3217 (vld1_f32): Likewise.
3218 (vld1_f64): Likewise.
3219 (vld1_p8): Likewise.
3220 (vld1_p16): Likewise.
3221 (vld1_p64): Likewise.
3222 (vld1_s8): Likewise.
3223 (vld1_s16): Likewise.
3224 (vld1_s32): Likewise.
3225 (vld1_s64): Likewise.
3226 (vld1_u8): Likewise.
3227 (vld1_u16): Likewise.
3228 (vld1_u32): Likewise.
3229 (vld1_u64): Likewise.
3230 (vld1q_f32): Likewise.
3231 (vld1q_f64): Likewise.
3232 (vld1q_p8): Likewise.
3233 (vld1q_p16): Likewise.
3234 (vld1q_p64): Likewise.
3235 (vld1q_s8): Likewise.
3236 (vld1q_s16): Likewise.
3237 (vld1q_s32): Likewise.
3238 (vld1q_s64): Likewise.
3239 (vld1q_u8): Likewise.
3240 (vld1q_u16): Likewise.
3241 (vld1q_u32): Likewise.
3242 (vld1q_u64): Likewise.
3243 (vpmax_s8): Likewise.
3244 (vpmax_s16): Likewise.
3245 (vpmax_s32): Likewise.
3246 (vpmax_u8): Likewise.
3247 (vpmax_u16): Likewise.
3248 (vpmax_u32): Likewise.
3249 (vpmaxq_s8): Likewise.
3250 (vpmaxq_s16): Likewise.
3251 (vpmaxq_s32): Likewise.
3252 (vpmaxq_u8): Likewise.
3253 (vpmaxq_u16): Likewise.
3254 (vpmaxq_u32): Likewise.
3255 (vpmax_f32): Likewise.
3256 (vpmaxq_f32): Likewise.
3257 (vpmaxq_f64): Likewise.
3258 (vpmaxqd_f64): Likewise.
3259 (vpmaxs_f32): Likewise.
3260 (vpmaxnm_f32): Likewise.
3261 (vpmaxnmq_f32): Likewise.
3262 (vpmaxnmq_f64): Likewise.
3263 (vpmaxnmqd_f64): Likewise.
3264 (vpmaxnms_f32): Likewise.
3265 (vpmin_s8): Likewise.
3266 (vpmin_s16): Likewise.
3267 (vpmin_s32): Likewise.
3268 (vpmin_u8): Likewise.
3269 (vpmin_u16): Likewise.
3270 (vpmin_u32): Likewise.
3271 (vpminq_s8): Likewise.
3272 (vpminq_s16): Likewise.
3273 (vpminq_s32): Likewise.
3274 (vpminq_u8): Likewise.
3275 (vpminq_u16): Likewise.
3276 (vpminq_u32): Likewise.
3277 (vpmin_f32): Likewise.
3278 (vpminq_f32): Likewise.
3279 (vpminq_f64): Likewise.
3280 (vpminqd_f64): Likewise.
3281 (vpmins_f32): Likewise.
3282 (vpminnm_f32): Likewise.
3283 (vpminnmq_f32): Likewise.
3284 (vpminnmq_f64): Likewise.
3285 (vpminnmqd_f64): Likewise.
3286 (vpminnms_f32): Likewise.
3287 (vmla_f32): Likewise.
3288 (vmlaq_f32): Likewise.
3289 (vmlaq_f64): Likewise.
3290 (vmls_f32): Likewise.
3291 (vmlsq_f32): Likewise.
3292 (vmlsq_f64): Likewise.
3293 (vqtbl2_s8): Likewise.
3294 (vqtbl2_u8): Likewise.
3295 (vqtbl2_p8): Likewise.
3296 (vqtbl2q_s8): Likewise.
3297 (vqtbl2q_u8): Likewise.
3298 (vqtbl2q_p8): Likewise.
3299 (vqtbl3_s8): Likewise.
3300 (vqtbl3_u8): Likewise.
3301 (vqtbl3_p8): Likewise.
3302 (vqtbl3q_s8): Likewise.
3303 (vqtbl3q_u8): Likewise.
3304 (vqtbl3q_p8): Likewise.
3305 (vqtbl4_s8): Likewise.
3306 (vqtbl4_u8): Likewise.
3307 (vqtbl4_p8): Likewise.
3308 (vqtbl4q_s8): Likewise.
3309 (vqtbl4q_u8): Likewise.
3310 (vqtbl4q_p8): Likewise.
3311 (vqtbx2_s8): Likewise.
3312 (vqtbx2_u8): Likewise.
3313 (vqtbx2_p8): Likewise.
3314 (vqtbx2q_s8): Likewise.
3315 (vqtbx2q_u8): Likewise.
3316 (vqtbx2q_p8): Likewise.
3317 (vqtbx3_s8): Likewise.
3318 (vqtbx3_u8): Likewise.
3319 (vqtbx3_p8): Likewise.
3320 (vqtbx3q_s8): Likewise.
3321 (vqtbx3q_u8): Likewise.
3322 (vqtbx3q_p8): Likewise.
3323 (vqtbx4_s8): Likewise.
3324 (vqtbx4_u8): Likewise.
3325 (vqtbx4_p8): Likewise.
3326 (vqtbx4q_s8): Likewise.
3327 (vqtbx4q_u8): Likewise.
3328 (vqtbx4q_p8): Likewise.
3329 (vrev16_p8): Likewise.
3330 (vrev16_s8): Likewise.
3331 (vrev16_u8): Likewise.
3332 (vrev16q_p8): Likewise.
3333 (vrev16q_s8): Likewise.
3334 (vrev16q_u8): Likewise.
3335 (vrev32_p8): Likewise.
3336 (vrev32_p16): Likewise.
3337 (vrev32_s8): Likewise.
3338 (vrev32_s16): Likewise.
3339 (vrev32_u8): Likewise.
3340 (vrev32_u16): Likewise.
3341 (vrev32q_p8): Likewise.
3342 (vrev32q_p16): Likewise.
3343 (vrev32q_s8): Likewise.
3344 (vrev32q_s16): Likewise.
3345 (vrev32q_u8): Likewise.
3346 (vrev32q_u16): Likewise.
3347 (vrev64_f32): Likewise.
3348 (vrev64_p8): Likewise.
3349 (vrev64_p16): Likewise.
3350 (vrev64_s8): Likewise.
3351 (vrev64_s16): Likewise.
3352 (vrev64_s32): Likewise.
3353 (vrev64_u8): Likewise.
3354 (vrev64_u16): Likewise.
3355 (vrev64_u32): Likewise.
3356 (vrev64q_f32): Likewise.
3357 (vrev64q_p8): Likewise.
3358 (vrev64q_p16): Likewise.
3359 (vrev64q_s8): Likewise.
3360 (vrev64q_s16): Likewise.
3361 (vrev64q_s32): Likewise.
3362 (vrev64q_u8): Likewise.
3363 (vrev64q_u16): Likewise.
3364 (vrev64q_u32): Likewise.
3365 (vsha1cq_u32): Likewise.
3366 (vsha1mq_u32): Likewise.
3367 (vsha1pq_u32): Likewise.
3368 (vsha1h_u32): Likewise.
3369 (vsha1su0q_u32): Likewise.
3370 (vsha1su1q_u32): Likewise.
3371 (vsha256hq_u32): Likewise.
3372 (vsha256h2q_u32): Likewise.
3373 (vsha256su0q_u32): Likewise.
3374 (vsha256su1q_u32): Likewise.
3375 (vmull_p64): Likewise.
3376 (vmull_high_p64): Likewise.
3377 (vsqrt_f32): Likewise.
3378 (vsqrtq_f32): Likewise.
3379 (vsqrt_f64): Likewise.
3380 (vsqrtq_f64): Likewise.
3381 (vst1_f32): Likewise.
3382 (vst1_f64): Likewise.
3383 (vst1_p8): Likewise.
3384 (vst1_p16): Likewise.
3385 (vst1_p64): Likewise.
3386 (vst1_s8): Likewise.
3387 (vst1_s16): Likewise.
3388 (vst1_s32): Likewise.
3389 (vst1_s64): Likewise.
3390 (vst1_u8): Likewise.
3391 (vst1_u16): Likewise.
3392 (vst1_u32): Likewise.
3393 (vst1_u64): Likewise.
3394 (vst1q_f32): Likewise.
3395 (vst1q_f64): Likewise.
3396 (vst1q_p8): Likewise.
3397 (vst1q_p16): Likewise.
3398 (vst1q_p64): Likewise.
3399 (vst1q_s8): Likewise.
3400 (vst1q_s16): Likewise.
3401 (vst1q_s32): Likewise.
3402 (vst1q_s64): Likewise.
3403 (vst1q_u8): Likewise.
3404 (vst1q_u16): Likewise.
3405 (vst1q_u32): Likewise.
3406 (vst1q_u64): Likewise.
3407 (vst1_s64_x2): Likewise.
3408 (vst1_u64_x2): Likewise.
3409 (vst1_f64_x2): Likewise.
3410 (vst1_s8_x2): Likewise.
3411 (vst1_p8_x2): Likewise.
3412 (vst1_s16_x2): Likewise.
3413 (vst1_p16_x2): Likewise.
3414 (vst1_s32_x2): Likewise.
3415 (vst1_u8_x2): Likewise.
3416 (vst1_u16_x2): Likewise.
3417 (vst1_u32_x2): Likewise.
3418 (vst1_f16_x2): Likewise.
3419 (vst1_f32_x2): Likewise.
3420 (vst1_p64_x2): Likewise.
3421 (vst1q_s8_x2): Likewise.
3422 (vst1q_p8_x2): Likewise.
3423 (vst1q_s16_x2): Likewise.
3424 (vst1q_p16_x2): Likewise.
3425 (vst1q_s32_x2): Likewise.
3426 (vst1q_s64_x2): Likewise.
3427 (vst1q_u8_x2): Likewise.
3428 (vst1q_u16_x2): Likewise.
3429 (vst1q_u32_x2): Likewise.
3430 (vst1q_u64_x2): Likewise.
3431 (vst1q_f16_x2): Likewise.
3432 (vst1q_f32_x2): Likewise.
3433 (vst1q_f64_x2): Likewise.
3434 (vst1q_p64_x2): Likewise.
3435 (vst1_s64_x3): Likewise.
3436 (vst1_u64_x3): Likewise.
3437 (vst1_f64_x3): Likewise.
3438 (vst1_s8_x3): Likewise.
3439 (vst1_p8_x3): Likewise.
3440 (vst1_s16_x3): Likewise.
3441 (vst1_p16_x3): Likewise.
3442 (vst1_s32_x3): Likewise.
3443 (vst1_u8_x3): Likewise.
3444 (vst1_u16_x3): Likewise.
3445 (vst1_u32_x3): Likewise.
3446 (vst1_f16_x3): Likewise.
3447 (vst1_f32_x3): Likewise.
3448 (vst1_p64_x3): Likewise.
3449 (vst1q_s8_x3): Likewise.
3450 (vst1q_p8_x3): Likewise.
3451 (vst1q_s16_x3): Likewise.
3452 (vst1q_p16_x3): Likewise.
3453 (vst1q_s32_x3): Likewise.
3454 (vst1q_s64_x3): Likewise.
3455 (vst1q_u8_x3): Likewise.
3456 (vst1q_u16_x3): Likewise.
3457 (vst1q_u32_x3): Likewise.
3458 (vst1q_u64_x3): Likewise.
3459 (vst1q_f16_x3): Likewise.
3460 (vst1q_f32_x3): Likewise.
3461 (vst1q_f64_x3): Likewise.
3462 (vst1q_p64_x3): Likewise.
3463 (vst2_s64): Likewise.
3464 (vst2_u64): Likewise.
3465 (vst2_f64): Likewise.
3466 (vst2_s8): Likewise.
3467 (vst2_p8): Likewise.
3468 (vst2_s16): Likewise.
3469 (vst2_p16): Likewise.
3470 (vst2_s32): Likewise.
3471 (vst2_u8): Likewise.
3472 (vst2_u16): Likewise.
3473 (vst2_u32): Likewise.
3474 (vst2_f16): Likewise.
3475 (vst2_f32): Likewise.
3476 (vst2_p64): Likewise.
3477 (vst2q_s8): Likewise.
3478 (vst2q_p8): Likewise.
3479 (vst2q_s16): Likewise.
3480 (vst2q_p16): Likewise.
3481 (vst2q_s32): Likewise.
3482 (vst2q_s64): Likewise.
3483 (vst2q_u8): Likewise.
3484 (vst2q_u16): Likewise.
3485 (vst2q_u32): Likewise.
3486 (vst2q_u64): Likewise.
3487 (vst2q_f16): Likewise.
3488 (vst2q_f32): Likewise.
3489 (vst2q_f64): Likewise.
3490 (vst2q_p64): Likewise.
3491 (vst3_s64): Likewise.
3492 (vst3_u64): Likewise.
3493 (vst3_f64): Likewise.
3494 (vst3_s8): Likewise.
3495 (vst3_p8): Likewise.
3496 (vst3_s16): Likewise.
3497 (vst3_p16): Likewise.
3498 (vst3_s32): Likewise.
3499 (vst3_u8): Likewise.
3500 (vst3_u16): Likewise.
3501 (vst3_u32): Likewise.
3502 (vst3_f16): Likewise.
3503 (vst3_f32): Likewise.
3504 (vst3_p64): Likewise.
3505 (vst3q_s8): Likewise.
3506 (vst3q_p8): Likewise.
3507 (vst3q_s16): Likewise.
3508 (vst3q_p16): Likewise.
3509 (vst3q_s32): Likewise.
3510 (vst3q_s64): Likewise.
3511 (vst3q_u8): Likewise.
3512 (vst3q_u16): Likewise.
3513 (vst3q_u32): Likewise.
3514 (vst3q_u64): Likewise.
3515 (vst3q_f16): Likewise.
3516 (vst3q_f32): Likewise.
3517 (vst3q_f64): Likewise.
3518 (vst3q_p64): Likewise.
3519 (vst4_s64): Likewise.
3520 (vst4_u64): Likewise.
3521 (vst4_f64): Likewise.
3522 (vst4_s8): Likewise.
3523 (vst4_p8): Likewise.
3524 (vst4_s16): Likewise.
3525 (vst4_p16): Likewise.
3526 (vst4_s32): Likewise.
3527 (vst4_u8): Likewise.
3528 (vst4_u16): Likewise.
3529 (vst4_u32): Likewise.
3530 (vst4_f16): Likewise.
3531 (vst4_f32): Likewise.
3532 (vst4_p64): Likewise.
3533 (vst4q_s8): Likewise.
3534 (vst4q_p8): Likewise.
3535 (vst4q_s16): Likewise.
3536 (vst4q_p16): Likewise.
3537 (vst4q_s32): Likewise.
3538 (vst4q_s64): Likewise.
3539 (vst4q_u8): Likewise.
3540 (vst4q_u16): Likewise.
3541 (vst4q_u32): Likewise.
3542 (vst4q_u64): Likewise.
3543 (vst4q_f16): Likewise.
3544 (vst4q_f32): Likewise.
3545 (vst4q_f64): Likewise.
3546 (vst4q_p64): Likewise.
3547 (vtbx4_s8): Likewise.
3548 (vtbx4_u8): Likewise.
3549 (vtbx4_p8): Likewise.
3550 (vtrn_f32): Likewise.
3551 (vtrn_p8): Likewise.
3552 (vtrn_p16): Likewise.
3553 (vtrn_s8): Likewise.
3554 (vtrn_s16): Likewise.
3555 (vtrn_s32): Likewise.
3556 (vtrn_u8): Likewise.
3557 (vtrn_u16): Likewise.
3558 (vtrn_u32): Likewise.
3559 (vtrnq_f32): Likewise.
3560 (vtrnq_p8): Likewise.
3561 (vtrnq_p16): Likewise.
3562 (vtrnq_s8): Likewise.
3563 (vtrnq_s16): Likewise.
3564 (vtrnq_s32): Likewise.
3565 (vtrnq_u8): Likewise.
3566 (vtrnq_u16): Likewise.
3567 (vtrnq_u32): Likewise.
3568 (vrsqrte_f16): Likewise.
3569 (vrsqrteq_f16): Likewise.
3570 (vsqrt_f16): Likewise.
3571 (vsqrtq_f16): Likewise.
3572 (vabd_f16): Likewise.
3573 (vabdq_f16): Likewise.
3574 (vpadd_f16): Likewise.
3575 (vpaddq_f16): Likewise.
3576 (vpmax_f16): Likewise.
3577 (vpmaxq_f16): Likewise.
3578 (vpmaxnm_f16): Likewise.
3579 (vpmaxnmq_f16): Likewise.
3580 (vpmin_f16): Likewise.
3581 (vpminq_f16): Likewise.
3582 (vpminnm_f16): Likewise.
3583 (vpminnmq_f16): Likewise.
3584 (vrsqrts_f16): Likewise.
3585 (vrsqrtsq_f16): Likewise.
3587 2019-09-25 Richard Biener <rguenther@suse.de>
3589 PR tree-optimization/91896
3590 * tree-vect-loop.c (vectorizable_reduction): The single
3591 def-use cycle optimization cannot apply when there's more
3592 than one pattern stmt involved.
3594 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3596 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
3597 the 'P' mode iterator, replacing the (removed) SI and DI variants.
3598 (reload_macho_picbase_<mode>): Likewise.
3600 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3602 * config/rs6000/rs6000.md: Move darwin.md include until
3603 after the definition of the mode iterators.
3605 2019-09-23 Martin Sebor <msebor@redhat.com>
3607 PR tree-optimization/91570
3608 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
3609 non-constant minlen, maxlen and maxbound.
3611 2019-09-24 Richard Biener <rguenther@suse.de>
3613 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
3615 (_stmt_vec_info::cond_reduc_code): ... this.
3616 (_stmt_vec_info::induc_cond_initial_val): Add.
3617 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
3618 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
3619 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
3620 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
3621 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
3623 (vect_create_epilog_for_reduction): Drop special
3624 induction condition reduction params, pass in reduction code
3626 (vectorizable_reduction): Perform condition reduction kind
3627 selection only at analysis time. Adjust passing on state.
3629 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3631 * config/aarch64/aarch64.md (mov<mode>): Don't call
3632 aarch64_split_dimode_const_store on volatile MEM.
3634 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
3636 * config/aarch64/aarch64-option-extensions.def (fp16fml):
3637 Update hwcap string for fp16fml.
3639 2019-09-24 Jakub Jelinek <jakub@redhat.com>
3642 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
3643 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
3645 2019-09-24 Martin Liska <mliska@suse.cz>
3647 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
3648 instead of if-elseif-elseif-...
3649 * gimple-expr.c (extract_ops_from_tree): Likewise.
3650 * gimple.c (get_gimple_rhs_num_ops): Likewise.
3651 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
3653 2019-09-24 Martin Jambor <mjambor@suse.cz>
3656 * ipa-param-manipulation.c (carry_over_param): Make a method of
3657 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
3658 in case of a context mismatch.
3659 (ipa_param_body_adjustments::common_initialization): Adjust call to
3661 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
3662 private method carry_over_param.
3664 2019-09-24 Martin Jambor <mjambor@suse.cz>
3667 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
3669 2019-09-24 Richard Biener <rguenther@suse.de>
3671 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
3674 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3676 * config/arm/t-arm (arm-builtins.o): Add dependency on
3677 arm_acle_builtins.def.
3679 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3682 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
3683 canonical CONST_INTs. Use gen_rtvec.
3685 2019-09-23 Richard Biener <rguenther@suse.de>
3687 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
3688 avoid adjusting by + 0 or * 1.
3689 (vect_create_epilog_for_reduction): Get reduction code only
3690 when necessary. Deal with adjustment_def only when necessary.
3692 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3694 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
3697 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3700 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
3703 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
3705 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
3706 code. Merge code blocks with common conditionals. Use declared
3707 macro instead of a magic number for PIC level.
3709 2019-09-21 Martin Sebor <msebor@redhat.com>
3712 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
3713 Simplify computation of the offset of the referenced subobject.
3715 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
3717 * config/darwin.c (machopic_legitimize_pic_address): Check
3720 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3722 * ira-conflicts.c (can_use_same_reg_p): New function.
3723 (process_reg_shuffles): Take an insn parameter. Ignore cases
3724 in which input operand op_num could seemingly never be allocated
3725 to the same register as the destination.
3726 (add_insn_allocno_copies): Update call to process_reg_shuffles.
3728 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3730 * simplify-rtx.c (neg_const_int): Replace with...
3731 (neg_poly_int_rtx): ...this new function.
3732 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
3733 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
3734 (simplify_plus_minus): Likewise for constant terms here.
3736 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
3738 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
3739 HOST_WIDE_PRINT_UNSIGNED.
3741 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
3743 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
3746 2019-09-20 Maya Rashish <coypu@sdf.org>
3749 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
3750 Define to speculation_safe_value_not_needed.
3752 2019-09-20 Richard Biener <rguenther@suse.de>
3753 Uros Bizjak <ubizjak@gmail.com>
3756 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
3758 (general_scalar_chain::convert_op): Force not suitable memory
3759 operands to a register.
3761 2019-09-20 Richard Biener <rguenther@suse.de>
3763 PR tree-optimization/91821
3764 * tree-vect-loop.c (check_reduction_path): Check we can compute
3766 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
3767 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
3768 operands in canonical order.
3769 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
3770 STMT_VINFO_REDUC_IDX.
3771 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
3772 (STMT_VINFO_REDUC_IDX): Likewise.
3774 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
3777 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3779 2019-09-20 Richard Biener <rguenther@suse.de>
3781 PR tree-optimization/91822
3782 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
3784 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
3785 for reduc_index in nested cycles, adjust vectorizable_condition
3787 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
3789 (vect_analyze_stmt): Adjust.
3790 (vect_transform_stmt): Likewise.
3792 2019-09-20 Richard Biener <rguenther@suse.de>
3795 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
3796 Ensure there's a sequence point between allocating the new register
3797 and passing a reference to a reg via regno_reg_rtx.
3799 2019-09-20 Martin Jambor <mjambor@suse.cz>
3801 * coretypes.h (cgraph_edge): Declare.
3802 * ipa-param-manipulation.c: Rewrite.
3803 * ipa-param-manipulation.h: Likewise.
3804 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
3805 (OBJS): Added ipa-sra.o.
3806 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
3807 and ref_p, added fields param_adjustments and performed_splits.
3808 (struct cgraph_clone_info): Remove ags_to_skip and
3809 combined_args_to_skip, new field param_adjustments.
3810 (cgraph_node::create_clone): Changed parameters to use
3811 ipa_param_adjustments.
3812 (cgraph_node::create_virtual_clone): Likewise.
3813 (cgraph_node::create_virtual_clone_with_body): Likewise.
3814 (tree_function_versioning): Likewise.
3815 (cgraph_build_function_type_skip_args): Removed.
3816 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
3817 using ipa_param_adjustments.
3818 (clone_of_p): Likewise.
3819 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
3820 (build_function_decl_skip_args): Likewise.
3821 (duplicate_thunk_for_node): Adjust parameters using
3822 ipa_param_body_adjustments, copy param_adjustments instead of
3824 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
3825 (cgraph_node::create_virtual_clone): Likewise.
3826 (cgraph_node::create_version_clone_with_body): Likewise.
3827 (cgraph_materialize_clone): Likewise.
3828 (symbol_table::materialize_all_clones): Likewise.
3829 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
3830 ipa_replace_map check.
3831 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
3832 (initialize_node_lattices): Make aware that some parameters might have
3833 already been removed.
3834 (want_remove_some_param_p): New function.
3835 (create_specialized_node): Convert to using ipa_param_adjustments and
3836 deal with possibly pre-existing adjustments.
3837 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
3838 (output_node_opt_summary): Do not stream removed fields. Stream
3839 parameter adjustments instead of argumetns to skip.
3840 (input_node_opt_summary): Likewise.
3841 (input_node_opt_summary): Likewise.
3842 * lto-section-in.c (lto_section_name): Added ipa-sra section.
3843 * lto-streamer.h (lto_section_type): Likewise.
3844 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
3846 (copy_decl_to_var): Declare.
3847 * tree-inline.c (update_clone_info): Do not remap old_tree.
3848 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
3849 statements, walk all extra generated statements and remap their
3851 (redirect_all_calls): Add killed SSA names to a hash set.
3852 (remap_ssa_name): Do not remap killed SSA names.
3853 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
3854 half of functionality moved to ipa_param_body_adjustments.
3855 (copy_decl_to_var): Make exported.
3856 (copy_body): Destroy killed_new_ssa_names hash set.
3857 (expand_call_inline): Remap performed splits.
3858 (update_clone_info): Likewise.
3859 (tree_function_versioning): Simplify tree_map processing. Updated to
3860 accept ipa_param_adjustments and use ipa_param_body_adjustments.
3861 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
3862 for the new interface.
3863 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
3864 (simd_clone_compute_base_data_type): Likewise.
3865 (simd_clone_init_simd_arrays): Adjust for the new interface.
3866 (simd_clone_adjust_argument_types): Likewise.
3867 (struct modify_stmt_info): Likewise.
3868 (ipa_simd_modify_stmt_ops): Likewise.
3869 (ipa_simd_modify_function_body): Likewise.
3870 (simd_clone_adjust): Likewise.
3871 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
3872 (type_internals_preclude_sra_p): Make public.
3873 * tree-sra.h: New file.
3874 * ipa-inline-transform.c (save_inline_function_body): Update to
3875 refelct new tree_function_versioning signature.
3876 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
3877 ipa_param_adjustments to get current parameter indices.
3878 (ipcp_modif_dom_walker::before_dom_children): Likewise.
3879 (ipcp_update_bits): Likewise.
3880 (ipcp_update_vr): Likewise.
3881 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
3882 * ipa-sra.c: New file.
3883 * multiple_target.c (create_target_clone): Update to reflet new type
3884 of create_version_clone_with_body.
3885 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
3886 tree_function_versioning.
3887 (modify_function): Update to reflect new type of
3888 tree_function_versioning.
3889 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
3890 * passes.def: Remove old IPA-SRA and add new one.
3891 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
3892 (make_pass_ipa_sra): Declare.
3893 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
3895 * doc/invoke.texi (ipa-sra-max-replacements): New.
3897 2019-09-19 Martin Sebor <msebor@redhat.com>
3900 * builtins.c (component_size): Correct trailing array computation,
3901 rename to component_ref_size and move...
3902 (compute_objsize): Adjust.
3903 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
3904 (builtin_access::strict): Do not consider memmove.
3905 (builtin_access::write_off): New function.
3906 (builtin_memref::builtin_memref): Initialize refsize.
3907 (builtin_memref::set_base_and_offset): Adjust refoff and compute
3909 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
3911 (builtin_access::builtin_access): Initialize dstoff to destination
3912 refeence offset here instead of in maybe_diag_overlap. Adjust
3913 referencess even to unrelated objects. Adjust sizrange of bounded
3914 string functions to reflect bound. For strcat, adjust destination
3915 sizrange by that of source.
3916 (builtin_access::strcat_overlap): Adjust offsets and sizes
3917 to reflect the increase in destination sizrange above.
3918 (builtin_access::overlap): Do not set dstoff here but instead
3919 in builtin_access::builtin_access.
3920 (check_bounds_or_overlap): Use builtin_access::write_off.
3921 (maybe_diag_access_bounds): Add argument. Add informational notes.
3922 (dump_builtin_memref, dump_builtin_access): New functions.
3923 * tree.c (component_ref_size): ...to here.
3924 * tree.h (component_ref_size): Declare.
3925 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
3926 nul in the size of the source string.
3928 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
3931 * doc/cpp.texi: Document support for extended characters in
3933 * doc/cppopts.texi: Likewise.
3935 2019-09-19 Richard Biener <rguenther@suse.de>
3937 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
3938 (check_reduction_path): New overload having the path as result.
3939 (vect_is_simple_reduction): From the detected reduction
3940 path build a SLP reduction chain if possible.
3942 2019-09-19 Richard Biener <rguenther@suse.de>
3945 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
3946 Force operand to a register if it isn't nonimmediate_operand.
3948 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
3950 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
3951 * config/arm/iterators.md (optab): Add and, ior, xor entries.
3952 (logical_op): Remove code attribute.
3953 (logical_OP): Likewise.
3955 2019-09-19 Martin Liska <mliska@suse.cz>
3957 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
3960 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
3962 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
3965 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
3966 for NE comparison of TImode values.
3967 (aarch64_emit_load_exclusive): Add support for TImode.
3968 (aarch64_emit_store_exclusive): Likewise.
3969 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
3970 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
3971 Change iterator from ALLI to ALLI_TI.
3972 (@atomic_compare_and_swap<JUST_TI>): New.
3973 (@atomic_compare_and_swap<JUST_TI>_lse): New.
3974 (aarch64_load_exclusive_pair): New.
3975 (aarch64_store_exclusive_pair): New.
3976 * config/aarch64/iterators.md (JUST_TI): New.
3978 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
3979 strong_zero_p for aarch64_track_speculation; unify some code paths;
3980 use aarch64_gen_compare_reg instead of open-coding.
3982 * config/aarch64/aarch64.opt (-moutline-atomics): New.
3983 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
3984 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
3985 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
3986 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
3987 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
3988 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
3989 (atomic_<atomic_op><ALLI>): Likewise.
3990 (atomic_fetch_<atomic_op><ALLI>): Likewise.
3991 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
3992 * doc/invoke.texi: Document -moutline-atomics.
3994 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
3996 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
3997 trivial predicate for condition branch.
3998 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
4000 (compute_bb_predicates): Update predicate based on post-dominating
4002 (analyze_function_body): Calculate post-dominating information.
4004 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
4006 * tree-vectorizer.h (vectorizable_condition): Take an int
4007 reduction index instead of a boolean flag.
4008 * tree-vect-stmts.c (vectorizable_condition): Likewise.
4009 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
4010 reductions if the reduction accumulator is the "then" rather
4011 than the "else" value.
4012 (vect_analyze_stmt): Update call accordingly.
4013 (vect_transform_stmt): Likewise.
4014 * tree-vect-loop.c (vectorizable_reduction): Likewise,
4015 asserting that the index is > 0.
4017 2019-09-19 Martin Liska <mliska@suse.cz>
4019 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
4020 (sort_congruence_classes_by_decl_uid): Likewise.
4021 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
4023 (sem_item_optimizer::merge_classes): Likewise.
4025 2019-09-19 Richard Biener <rguenther@suse.de>
4027 PR tree-optimization/91812
4028 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
4031 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
4033 * defaults.h (TARGET_UNIT): New macro.
4034 (target_unit): New type.
4035 * rtl.h (native_encode_rtx, native_decode_rtx)
4036 (native_decode_vector_rtx, subreg_size_lsb): Declare.
4037 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
4038 * rtlanal.c (subreg_lsb_1): Delete.
4039 (subreg_size_lsb): New function.
4040 * simplify-rtx.c: Include rtx-vector-builder.h
4041 (simplify_immed_subreg): Delete.
4042 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
4043 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
4045 (simplify_subreg): Use them.
4046 (test_vector_subregs_modes, test_vector_subregs_repeating)
4047 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
4048 (test_vector_subregs): New functions.
4049 (test_vector_ops): Call test_vector_subregs for integer vector
4050 modes with at least 2 elements.
4052 2019-09-19 Richard Biener <rguenther@suse.de>
4054 * tree-parloops.c (parloops_is_slp_reduction): Do not set
4055 LOOP_VINFO_OPERANDS_SWAPPED.
4056 (parloops_is_simple_reduction): Likewise.
4057 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
4058 initialize operands_swapped.
4059 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
4060 (vect_is_slp_reduction): Do not swap operands.
4061 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
4062 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
4064 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
4067 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
4068 Add avx_partial_xmm_update.
4070 2019-09-18 Jim Wilson <jimw@sifive.com>
4073 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
4074 (riscv_move_integer): Likewise.
4075 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
4076 riscv_move_integer arg.
4077 (riscv_legitimize_move): Likewise.
4078 (riscv_force_temporary): New parameter in_splitter. Don't call
4080 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
4082 (riscv_add_offset): Likewise.
4083 (riscv_split_symbol): New parameter in_splitter. Pass to
4084 riscv_force_temporary.
4085 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
4087 (riscv_move_integer): New parameter in_splitter. New local
4088 can_create_psuedo. Don't call riscv_split_integer or force_reg when
4090 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
4091 riscv_split_symbol, and riscv_force_temporary args.
4092 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
4093 riscv_move_integer arg.
4094 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
4096 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4099 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
4100 hard register store cost to 6.
4102 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4105 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
4106 pseudo register store cost from 3 to 6 to make it the same as
4109 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4112 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
4113 (one_cmpldi2): Likewise.
4114 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
4115 of the constant parts is simple.
4116 * config/arm/iterators.md (LOGICAL): Add new code iterator.
4117 (logical_op): Add new code attribute.
4118 (logical_OP): Likewise.
4119 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
4120 (arm_iordi_operand): Add predicate.
4121 (arm_xordi_operand): Add predicate.
4123 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4125 * config/arm/arm.md (maddsidi4): Remove expander.
4126 (mulsidi3adddi): Remove pattern.
4127 (mulsidi3adddi_v6): Likewise.
4128 (mulsidi3_nov6): Likewise.
4129 (mulsidi3_v6): Likewise.
4130 (umulsidi3): Remove expander.
4131 (umulsidi3_nov6): Remove pattern.
4132 (umulsidi3_v6): Likewise.
4133 (umulsidi3adddi): Likewise.
4134 (umulsidi3adddi_v6): Likewise.
4135 (<Us>mulsidi3): Add combined expander.
4136 (<Us>maddsidi4): Likewise.
4137 (<US>mull): Add combined umull and smull pattern.
4138 (<US>mlal): Likewise.
4139 * config/arm/iterators.md (Us): Add new iterator.
4141 2019-09-18 Richard Biener <rguenther@suse.de>
4143 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
4145 (vectorize_fold_left_reduction): Remove assert.
4146 (vectorizable_reduction): Also expect COND_EXPR non-reduction
4147 operand in position 2. Remove assert.
4149 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4151 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
4152 (smulsi3_highpart_nov6): Remove pattern.
4153 (smulsi3_highpart_v6): Likewise.
4154 (umulsi3_highpart): Likewise.
4155 (umulsi3_highpart_nov6): Likewise.
4156 (umulsi3_highpart_v6): Likewise.
4157 (<US>mull_high): Add new combined multiply pattern.
4159 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4161 * config/arm/arm.md (arm_mulsi3): Remove pattern.
4162 (arm_mulsi3_v6): Likewise.
4163 (mulsi3addsi_v6): Likewise.
4164 (mulsi3subsi): Likewise.
4165 (mul): Add new multiply pattern.
4169 2019-09-18 Richard Biener <rguenther@suse.de>
4171 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
4172 (parloops_valid_reduction_input_p): Copy from
4173 valid_reduction_input_p.
4174 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
4175 (parloops_needs_fold_left_reduction_p): Copy from
4176 needs_fold_left_reduction_p.
4177 (parloops_is_simple_reduction): Copy from
4178 vect_is_simple_reduction.
4179 (parloops_force_simple_reduction): Copy from
4180 vect_force_simple_reduction.
4181 (gather_scalar_reductions): Adjust.
4182 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
4183 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
4185 2019-09-18 Richard Biener <rguenther@suse.de>
4187 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
4188 * tree-vect-loop.c (get_initial_def_for_reduction): Make
4190 (vect_create_epilog_for_reduction): Remove dead code.
4192 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4194 * varasm.c (assemble_real): Generate canonical const_ints.
4196 2019-09-18 Richard Biener <rguenther@suse.de>
4199 * lto-streamer-in.c (input_eh_regions): Move EH init to
4200 lto_materialize_function.
4201 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4204 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4206 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
4209 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4211 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
4212 of checking specifically for INTEGER_CST.
4214 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4216 * stor-layout.c (compute_record_mode): Operate on poly_uint64
4217 sizes instead of uhwi sizes.
4219 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4221 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
4222 (add_const_value_attribute): Handle CONST_POLY_INT.
4224 2019-09-18 Martin Liska <mliska@suse.cz>
4226 * dbgcnt.def (store_merging): New counter.
4227 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
4228 Use it in store merging.
4230 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4232 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
4234 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4235 * config/arm/arm.c (arm_sched_variable_issue): New function.
4236 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4238 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4240 * config/arm/types.md (no_reservation): New reservation.
4241 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
4243 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
4244 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
4245 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
4246 * config/arm/arm1020e.md (1020alu_op): Likewise.
4247 * config/arm/arm1026ejs.md (alu_op): Likewise.
4248 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4249 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4250 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4251 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
4252 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4253 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4254 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
4255 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
4256 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4257 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4258 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4259 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
4260 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
4261 * config/arm/fa526.md (526_alu_op): Likewise.
4262 * config/arm/fa606te.md (606te_alu_op): Likewise.
4263 * config/arm/fa626te.md (626te_alu_op): Likewise.
4264 * config/arm/fa726te.md (726te_alu_op): Likewise.
4265 * config/arm/xgene1.md (xgene1_nop): Likewise.
4267 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4269 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
4270 "no_insn" to "branch".
4272 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4274 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
4276 2019-09-17 Richard Biener <rguenther@suse.de>
4279 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
4280 was missing generate locations only once.
4282 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
4285 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
4287 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
4288 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
4289 for switch default case using range analysis information.
4291 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
4294 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
4295 mode attributed is supported by FDPIC.
4297 2019-09-17 Richard Biener <rguenther@suse.de>
4299 PR tree-optimization/91790
4300 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
4301 use the correct DR for setting up realignment.
4303 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
4306 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
4307 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
4308 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
4309 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
4311 2019-09-16 Jason Merrill <jason@redhat.com>
4313 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
4315 2019-09-16 Martin Liska <mliska@suse.cz>
4317 * gimple-fold.c (or_comparisons_1): Remove rules moved
4319 * match.pd: ... here.
4321 2019-09-16 Martin Liska <mliska@suse.cz>
4323 * gimple-fold.c (or_comparisons_1): Remove rules
4325 * match.pd: ... here.
4327 2019-09-16 Martin Liska <mliska@suse.cz>
4329 * genmatch.c (dt_node::append_simplify): Do not print
4330 warning when we have duplicate patterns belonging
4331 to a same simplify rule.
4332 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
4333 (maybe_fold_comparisons_from_match_pd): Handle
4334 tcc_comparison as a results.
4335 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
4337 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4338 Qi Feng <ffengqi@linux.ibm.com>
4341 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
4342 (x > y && x == XXX_MIN): Optimize into 'false'.
4343 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
4344 (x < y && x != XXX_MAX): Optimize into 'x < y'.
4345 (x < y && x == XXX_MAX): Optimize into 'false'.
4346 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
4347 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
4348 (x <= y || x != XXX_MIN): Optimize into 'true'.
4349 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
4350 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
4351 (x >= y || x != XXX_MAX): Optimize into 'true'.
4352 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
4354 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4355 Martin Liska <mliska@suse.cz>
4357 * gimple-fold.c (and_comparisons_1): Add type as first
4359 (and_var_with_comparison): Likewise.
4360 (and_var_with_comparison_1): Likewise.
4361 (or_comparisons_1): Likewise.
4362 (or_var_with_comparison): Likewise.
4363 (or_var_with_comparison_1): Likewise.
4364 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
4365 (maybe_fold_or_comparisons): Likewise.
4366 (maybe_fold_comparisons_from_match_pd): New.
4367 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
4368 (maybe_fold_or_comparisons): Likewise.
4369 * gimple.c (gimple_size): Make it public and add num_ops argument.
4370 (gimple_init): New function.
4371 (gimple_alloc): Call gimple_init.
4372 * gimple.h (gimple_size): New.
4373 (gimple_init): Likewise.
4374 * tree-if-conv.c (fold_or_predicates): Pass type.
4375 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4376 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
4377 (optimize_vec_cond_expr): Likewise.
4378 (ovce_extract_ops): Return type of conditional expression.
4379 * tree-ssanames.c (init_ssa_name_imm_use): New.
4380 (make_ssa_name_fn): Use init_ssa_name_imm_use.
4381 * tree-ssanames.h (init_ssa_name_imm_use): New.
4383 2019-09-16 Richard Biener <rguenther@suse.de>
4385 PR tree-optimization/91756
4386 PR tree-optimization/87132
4387 * tree-ssa-alias.h (enum translate_flags): New.
4388 (get_continuation_for_phi): Use it instead of simple bool flag.
4389 (walk_non_aliased_vuses): Likewise.
4390 * tree-ssa-alias.c (maybe_skip_until): Adjust.
4391 (get_continuation_for_phi): When looking across backedges only
4392 disallow valueization.
4393 (walk_non_aliased_vuses): Adjust.
4394 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
4397 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
4400 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
4401 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4402 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4403 * target.def (have_count_reg_decr_p): New hook.
4404 (doloop_cost_for_generic): Likewise.
4405 (doloop_cost_for_address): Likewise.
4406 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
4407 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4408 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4409 * doc/tm.texi: Regenerate.
4410 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
4412 (record_group): Init doloop_p.
4413 (add_candidate_1): Add optional argument doloop, change the handlings
4415 (add_candidate): Likewise.
4416 (generic_predict_doloop_p): Update attribute.
4417 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
4418 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
4419 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
4421 (get_computation_cost): Update for doloop IV cand extra cost.
4422 (determine_group_iv_cost_cond): Update for doloop IV cand.
4423 (determine_iv_cost): Likewise.
4424 (ivopts_estimate_reg_pressure): Likewise.
4425 (may_eliminate_iv): Update handlings for doloop IV cand.
4426 (add_iv_candidate_for_doloop): New function.
4427 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
4428 (iv_ca_set_no_cp): Update for doloop IV cand.
4429 (iv_ca_set_cp): Likewise.
4430 (iv_ca_dump): Dump register cost.
4431 (find_doloop_use): New function.
4432 (analyze_and_mark_doloop_use): Likewise.
4433 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
4435 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
4438 * cse.c (cse_insn): Do not replace anything with a
4441 2019-09-13 Ian Lance Taylor <iant@golang.org>
4443 * doc/invoke.texi (Optimize Options): Fix typo.
4445 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
4447 PR tree-optimization/89386
4448 * config/i386/sse.md (smulhrs<mode>3): New expander.
4449 (smulhrsv4hi3): Ditto.
4451 2019-09-12 Richard Biener <rguenther@suse.de>
4453 PR tree-optimization/91750
4454 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
4455 in the type of the evolution.
4457 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
4459 PR tree-optimization/89386
4460 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
4461 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
4462 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
4463 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
4464 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
4465 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
4466 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
4467 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
4468 (su, r): Handle the unspecs above.
4469 (bt): New int attribute.
4470 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
4471 * internal-fn.c (first_commutative_argument): Commutativity info for
4473 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
4474 (umulhrs_optab): New optabs.
4475 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
4476 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
4477 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
4479 (vect_vect_recog_func_ptrs): Add it.
4481 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
4483 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
4486 2019-09-11 Nathan Sidwell <nathan@acm.org>
4488 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
4489 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
4491 2019-09-11 Richard Biener <rguenther@suse.de>
4493 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
4494 * lto-wrapper.c (merge_and_complain): Pick up -g.
4495 (append_compiler_options): Likewise.
4496 (run_gcc): Re-instantiate handling -g0 at link-time.
4497 * doc/invoke.texi (flto): Document debug info generation.
4499 2019-09-11 Richard Biener <rguenther@suse.de>
4501 PR tree-optimization/90387
4502 * vr-values.c (vr_values::extract_range_basic): After inlining
4503 simplify non-constant __builtin_constant_p to false.
4505 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
4507 PR rtl-optimization/89795
4508 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
4509 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
4511 2019-09-11 Jakub Jelinek <jakub@redhat.com>
4513 PR tree-optimization/91723
4514 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
4515 instead of pointer equality when checking if argument vectypes are
4519 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
4520 of get_nonzero_bits, only call it for integral types.
4522 2019-09-11 Richard Biener <rguenther@suse.de>
4525 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
4527 * match.pd: Add flag_unsafe_math_optimizations check
4528 before deciding on the widest type in a binary math operation.
4530 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4532 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
4533 and CALL_REALLY_USED_REGISTERS must be defined, and that
4534 CALL_REALLY_USED_REGISTERS is preferred.
4535 * doc/tm.texi: Regenerate.
4536 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
4537 (call_really_used_regs): Likewise.
4538 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
4539 CALL_REALLY_USED_REGISTERS are defined.
4540 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
4541 initial value if defined.
4542 (initial_call_really_used_regs): Delete.
4543 (saved_call_really_used_regs): Likewise.
4544 (CALL_REALLY_USED_REGNO_P): Likewise.
4545 (init_reg_sets): Remove handling of call_really_used_regs.
4546 (save_register_info, restore_register_info, globalize_reg): Likewise.
4547 (init_reg_sets_1): Likewise. Use call_used_regs instead of
4548 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
4549 outside operand_reg_set.
4550 (fix_register): Don't change call_used_regs if
4551 CALL_REALLY_USED_REGISTERS is defined.
4552 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
4553 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
4554 instead of call_really_used_regs.
4555 (csky_conditional_register_usage): Remove the old handling of
4556 call_used_regs and change the handling of call_really_used_regs
4557 to use call_used_regs instead.
4558 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
4559 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
4560 making a register fixed.
4561 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
4562 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
4563 instead of call_really_used_regs.
4564 (m32r_conditional_register_usage): Don't set call_used_regs when
4565 making a register fixed.
4566 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
4567 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
4568 instead of call_really_used_regs.
4569 (mips_interrupt_extra_call_saved_reg_p): Likewise.
4570 (mips_cfun_call_saved_reg_p): Likewise.
4571 (mips_swap_registers): Remove the old handling of call_used_regs
4572 and change the handling of call_really_used_regs to use call_used_regs
4574 (mips_conditional_register_usage): Likewise.
4575 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
4576 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
4577 instead of call_really_used_regs.
4578 (mn10300_get_live_callee_saved_regs): Likewise.
4579 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
4580 (mn10300_conditional_register_usage): Don't set call_used_regs when
4581 making a register fixed.
4582 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
4583 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
4584 Remove the old handling of call_used_regs and change the handling
4585 of call_really_used_regs to use call_used_regs instead.
4586 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
4587 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
4588 instead of call_really_used_regs.
4589 (s390_register_info_gprtofpr, s390_register_info): Likewise.
4590 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
4591 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
4592 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
4593 (s390_conditional_register_usage): Remove the old handling of
4594 call_used_regs and change the handling of call_really_used_regs
4595 to use call_used_regs instead.
4596 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
4597 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
4598 (sh_fix_range, reg_unused_after): Likewise.
4599 (sh_conditional_register_usage): Remove the old handling of
4600 call_used_regs and change the handling of call_really_used_regs
4601 to use call_used_regs instead.
4602 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
4603 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
4604 call_used_regs when making a register fixed.
4605 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
4606 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
4607 call_used_regs when making a register fixed.
4608 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
4609 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
4610 set call_used_regs when making a register fixed.
4611 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
4612 * config/visium/visium.c (visium_conditional_register_usage): Remove
4613 the old handling of call_used_regs and change the handling of
4614 call_really_used_regs to use call_used_regs instead.
4616 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4618 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
4619 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
4620 * reginfo.c (call_used_regs): New macro.
4622 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4624 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
4626 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4627 (bpf_expand_epilogue): Likewise.
4628 * config/c6x/c6x.c (c6x_save_reg): Likewise.
4629 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
4630 (ft32_expand_epilogue): Likewise.
4631 * config/i386/i386.c (ix86_save_reg): Likewise.
4632 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
4633 (moxie_expand_epilogue): Likewise.
4634 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4635 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4636 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4638 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4640 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
4641 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
4642 instead of testing call_used_regs directly.
4643 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
4644 (aarch64_components_for_bb): Likewise.
4645 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
4646 * config/arc/arc.c (arc_must_save_register): Likewise.
4647 (arc_epilogue_uses): Likewise.
4648 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
4649 (legitimize_pic_address, callee_saved_reg_p): Likewise.
4650 (arm_compute_save_reg0_reg12_mask): Likewise.
4651 (arm_compute_save_core_reg_mask): Likewise.
4652 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
4653 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
4654 (cmse_nonsecure_entry_clear_before_return): Likewise.
4655 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
4656 (arm_expand_epilogue): Likewise.
4657 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
4658 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
4659 (_reg_unused_after): Likewise.
4660 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
4661 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
4662 (add_to_reg, hwloop_optimize): Likewise.
4663 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4664 (bpf_expand_epilogue): Likewise.
4665 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
4666 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
4667 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
4668 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
4669 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
4670 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
4671 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
4672 * config/frv/frv.c (frv_stack_info): Likewise.
4673 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
4674 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
4675 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
4676 (move_callee_saved_registers): Likewise.
4677 * config/h8300/h8300.c (byte_reg): Likewise.
4678 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
4679 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
4680 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
4681 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
4682 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
4683 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
4684 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
4685 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
4686 * config/m32c/m32c.c (need_to_save): Likewise.
4687 * config/m68k/m68k.c (m68k_save_reg): Likewise.
4688 * config/mcore/mcore.c (calc_live_regs): Likewise.
4689 * config/microblaze/microblaze.c (microblaze_must_save_register):
4691 * config/mmix/mmix.c (mmix_local_regno): Likewise.
4692 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
4693 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
4694 (mmix_expand_epilogue): Likewise.
4695 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
4696 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
4697 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
4698 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
4699 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
4700 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
4701 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
4702 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
4703 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
4704 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
4705 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
4706 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
4707 * config/rl78/rl78.c (need_to_save): Likewise.
4708 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
4709 (rs6000_stack_info, generate_set_vrsave): Likewise.
4710 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
4711 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
4712 * config/rx/rx.c (rx_get_stack_layout): Likewise.
4713 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4714 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
4715 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
4716 (save_local_or_in_reg_p): Likewise.
4717 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
4718 (xstormy16_epilogue_uses): Likewise.
4719 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4720 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4721 * config/v850/v850.c (compute_register_save_size): Likewise.
4722 * config/vax/vax.c (vax_expand_prologue): Likewise.
4723 * config/visium/visium.c (visium_save_reg_p): Likewise.
4724 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4725 * cselib.c (cselib_process_insn): Likewise.
4726 * df-scan.c (df_get_entry_block_def_set): Likewise.
4727 * function.c (aggregate_value_p): Likewise.
4728 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
4729 * ira-lives.c (process_bb_node_lives): Likewise.
4730 * ira.c (do_reload): Likewise.
4731 * lra-lives.c (process_bb_lives): Likewise.
4732 * lra-remat.c (lra_remat): Likewise.
4733 * lra.c (lra): Likewise.
4734 * postreload.c (reload_combine_recognize_pattern): Likewise.
4735 (reload_cse_move2add): Likewise.
4736 * recog.c (peep2_find_free_register): Likewise.
4737 * regrename.c (check_new_reg_p): Likewise.
4738 * reload.c (find_equiv_reg): Likewise.
4739 * reload1.c (reload, find_reg): Likewise.
4740 * sel-sched.c (init_hard_regs_data): Likewise.
4742 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4744 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
4745 regs_invalidated_by_call & ~fixed_reg_set instead of
4746 call_used_or_fixed_regs & ~fixed_reg_set.
4747 * config/sh/sh.c (output_stack_adjust): Likewise.
4749 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4751 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
4752 (call_used_reg_set): Delete.
4753 (call_used_or_fixed_regs): New macro.
4754 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
4755 of call_used_reg_set.
4756 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
4757 instead of call_used_regs.
4758 (save_call_clobbered_regs): Likewise.
4759 * cfgcleanup.c (old_insns_match_p): Likewise.
4760 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
4761 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4763 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4764 * config/sh/sh.c (output_stack_adjust): Likewise.
4765 * final.c (collect_fn_hard_reg_usage): Likewise.
4766 * ira-build.c (ira_build): Likewise.
4767 * ira-color.c (calculate_saved_nregs): Likewise.
4768 (allocno_reload_assign, calculate_spill_cost): Likewise.
4769 * ira-conflicts.c (ira_build_conflicts): Likewise.
4770 * ira-costs.c (ira_tune_allocno_costs): Likewise.
4771 * ira-lives.c (process_bb_node_lives): Likewise.
4772 * ira.c (setup_reg_renumber): Likewise.
4773 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
4774 * lra-constraints.c (need_for_call_save_p): Likewise.
4775 (need_for_split_p, inherit_in_ebb): Likewise.
4776 * lra-lives.c (process_bb_lives): Likewise.
4777 * lra-remat.c (call_used_input_regno_present_p): Likewise.
4778 * postreload.c (reload_combine): Likewise.
4779 * regrename.c (find_rename_reg): Likewise.
4780 * reload1.c (reload_as_needed): Likewise.
4781 * rtlanal.c (find_all_hard_reg_sets): Likewise.
4782 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4783 * shrink-wrap.c (requires_stack_frame_p): Likewise.
4785 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4787 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
4788 (no_caller_save_reg_set): Delete.
4789 * caller-save.c (init_caller_save): Don't initialize it.
4790 * ira-conflicts.c (ira_build_conflicts): Calculate
4791 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
4793 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4795 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
4796 (target_hard_regs::x_savable_regs): New field.
4797 (call_fixed_reg_set): Delete.
4798 (savable_regs): New macro,
4799 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
4800 (init_reg_sets_1): Likewise. Initialize savable_regs.
4801 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
4802 for all registers. Set savable_regs instead of call_fixed_reg_set.
4803 (setup_save_areas, save_call_clobbered_regs): Replace uses of
4804 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
4805 * config/sh/sh.c (output_stack_adjust): Likewise.
4807 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4809 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
4810 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
4811 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
4813 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4815 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
4816 * rtlanal.c (get_call_rtx_from): Likewise.
4817 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
4818 than the pattern to get_call_rtx_from.
4819 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
4820 an rtx_insn * instead of an rtx.
4821 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
4823 2019-09-10 Martin Liska <mliska@suse.cz>
4825 * common.opt: Use newly added WarnRemoved.
4826 * config/aarch64/aarch64.opt: Likewise.
4827 * config/arm/arm.opt: Likewise.
4828 * config/i386/i386.opt: Likewise.
4829 * config/ia64/ia64.opt: Likewise.
4830 * config/rs6000/rs6000.opt: Likewise.
4831 * doc/options.texi: Document WarnRemoved properly.
4832 * dwarf2out.c (gen_producer_string): Handle renamed
4833 OPT_SPECIAL_warn_removed.
4834 * lto-opts.c (lto_write_options): Likewise.
4835 * lto-wrapper.c (merge_and_complain): Likewise.
4836 * opts-common.c (decode_cmdline_option): Likewise.
4837 (prune_options): Likewise.
4838 (read_cmdline_option): Likewise.
4839 (control_warning_option): Likewise.
4840 * opts.c (print_filtered_help): Likewise.
4841 * optc-gen.awk: Parse for WarnRemoved and make usage
4842 of Deprecated an error.
4843 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
4845 2019-09-10 Arnaud Charlet <charlet@adacore.com>
4847 * doc/install.texi: Fix syntax for html generation.
4849 2019-09-10 Jakub Jelinek <jakub@redhat.com>
4852 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
4853 the shift type to type.
4855 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4857 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
4859 (stack_protect_combined_test_insn): Likewise.
4861 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4862 Mickaël Guêné <mickael.guene@st.com>
4864 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
4865 * config/arm/arm.md (FDPIC_REGNUM): New constant.
4866 (load_tp_soft_fdpic): New pattern.
4867 (load_tp_soft): Disable in FDPIC mode.
4869 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4870 Mickaël Guêné <mickael.guene@st.com>
4872 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
4873 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
4874 (arm_call_tls_get_addr): Add FDPIC support.
4875 (legitimize_tls_address): Likewise.
4876 (arm_emit_tls_decoration): Likewise.
4878 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4879 Mickaël Guêné <mickael.guene@st.com>
4881 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
4883 (arm_trampoline_init): Likewise.
4884 (arm_trampoline_adjust_address): Likewise.
4885 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
4887 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4888 Mickaël Guêné <mickael.guene@st.com>
4890 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
4891 (legitimize_pic_address): Enforce binding rules on function
4892 pointers in FDPIC mode.
4893 (arm_assemble_integer): Likewise.
4895 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4896 Mickaël Guêné <mickael.guene@st.com>
4898 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
4899 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
4902 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4903 Mickaël Guêné <mickael.guene@st.com>
4905 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
4908 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4909 Mickaël Guêné <mickael.guene@st.com>
4911 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
4913 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
4915 * config/arm/arm.c (arm_option_override): Define pic register to
4917 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
4918 have no decl or go through PLT.
4919 (calculate_pic_address_constant): New function.
4920 (legitimize_pic_address): Call calculate_pic_address_constant.
4921 (arm_load_pic_register): Handle TARGET_FDPIC.
4922 (arm_is_segment_info_known): New function.
4923 (arm_pic_static_addr): Add support for FDPIC.
4924 (arm_load_function_descriptor): New function.
4925 (arm_emit_call_insn): Add support for FDPIC.
4926 (arm_assemble_integer): Add support for FDPIC.
4927 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
4928 Define. (FDPIC_REGNUM): New define.
4929 * config/arm/arm.md (call): Add support for FDPIC.
4930 (call_value): Likewise.
4931 (restore_pic_register_after_call): New pattern.
4932 (untyped_call): Disable if FDPIC.
4933 (untyped_return): Likewise.
4934 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
4936 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4937 Mickaël Guêné <mickael.guene@st.com>
4939 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
4940 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
4941 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
4942 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
4943 (CC1_SPEC): Use FDPIC_CC1_SPEC.
4944 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
4945 * config/arm/uclinuxfdpiceabi.h: New file.
4947 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4949 * config.gcc: Handle *-*-uclinuxfdpiceabi.
4951 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4952 Mickaël Guêné <mickael.guene@st.com>
4954 * config/arm/arm.opt: Add -mfdpic option.
4955 * doc/invoke.texi: Add documentation for -mfdpic.
4957 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4959 * expmed.c (extract_bit_field): Update function comment
4961 * expr.c (expand_expr_real): Update function comment
4963 (expand_misaligned_mem_ref): New helper function.
4964 (expand_expr_real_2): Use expand_misaligned_mem_ref.
4965 Remove duplicate assignment to "base" at case MEM_REF.
4966 Remove a shadowed variable "unsignedp" at case VCE.
4968 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4970 * regset.h (regs_invalidated_by_call_regset): Delete.
4971 (fixed_reg_set_regset): Likewise.
4972 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
4973 (fixed_reg_set_regset, persistent_obstack): Likewise.
4974 (init_reg_sets_1, globalize_reg): Update accordingly.
4975 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
4976 instead of a bitmap.
4977 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
4978 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
4979 instead of regs_invalidated_by_call_regset.
4980 (df_lr_confluence_n, df_md_confluence_n): Likewise.
4981 * df-scan.c (df_scan_start_dump): Likewise.
4982 * dse.c (copy_fixed_regs): Likewise.
4983 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
4985 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4987 * array-traits.h: New file.
4988 * coretypes.h (array_traits, bitmap_view): New types.
4989 * bitmap.h: Include "array-traits.h"
4990 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4991 (base_bitmap_view, bitmap_view): New classes.
4992 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4993 * hard-reg-set.h: Include array-traits.h.
4994 (array_traits<HARD_REG_SET>): New struct.
4995 * regset.h (IOR_REG_SET_HRS): New macro.
4996 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
4997 rather than iterating over each hard register.
4998 * sched-deps.c (sched_analyze_insn): Likewise.
4999 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
5001 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5003 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
5004 instead of a HARD_REG_SET *.
5005 * ira-build.c (ior_hard_reg_conflicts): Likewise.
5006 (ira_build): Update call accordingly.
5007 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
5009 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5011 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
5012 (HARD_REG_SET::operator!=): Likewise.
5013 (hard_reg_set_equal_p): Delete.
5014 * cfgcleanup.c (old_insns_match_p): Use == instead of
5015 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
5016 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
5017 (add_allocno_hard_regs_to_forest): Likewise.
5018 (setup_allocno_available_regs_num): Likewise.
5019 * ira.c (setup_pressure_classes): Likewise.
5020 (setup_allocno_and_important_classes): Likewise.
5021 (setup_reg_class_relations): Likewise.
5022 * lra-lives.c (process_bb_lives): Likewise.
5023 * reg-stack.c (change_stack, convert_regs_1): Likewise.
5025 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5027 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
5028 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
5029 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
5030 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
5032 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
5033 * ira.c (setup_reg_renumber): Likewise.
5034 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5035 * regrename.c (regrename_find_superclass): Likewise.
5036 * reload1.c (find_reg): Likewise.
5038 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5040 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
5041 * caller-save.c (setup_save_areas): Use "&~" instead of
5042 AND_COMPL_HARD_REG_SET.
5043 (save_call_clobbered_regs): Likewise.
5044 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
5046 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5047 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5048 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
5049 * config/mips/mips.c (mips_class_max_nregs): Likewise.
5050 (mips_conditional_register_usage): Likewise.
5051 * config/sh/sh.c (output_stack_adjust): Likewise.
5052 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
5053 (setup_profitable_hard_regs): Likewise.
5054 (get_conflict_and_start_profitable_regs): Likewise.
5055 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5056 (ira_build_conflicts): Likewise.
5057 * ira-costs.c (restrict_cost_classes): Likewise.
5058 (setup_regno_cost_classes_by_aclass): Likewise.
5059 * ira-lives.c (process_bb_node_lives): Likewise.
5060 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
5061 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
5062 (setup_allocno_and_important_classes, setup_class_translate_array)
5063 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
5065 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5066 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5067 (process_alt_operands, inherit_in_ebb): Likewise.
5068 * lra-eliminations.c (update_reg_eliminate): Likewise.
5069 * lra-lives.c (process_bb_lives): Likewise.
5070 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
5071 * resource.c (find_dead_or_set_registers): Likewise.
5072 (mark_target_live_regs): Likewise.
5073 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
5074 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5075 (implicit_clobber_conflict_p): Likewise.
5076 * shrink-wrap.c (requires_stack_frame_p): Likewise.
5077 (try_shrink_wrapping): Likewise.
5079 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5081 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
5082 (HARD_REG_SET::operator|=): Likewise.
5083 (IOR_HARD_REG_SET): Delete.
5084 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
5086 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5087 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
5088 * final.c (collect_fn_hard_reg_usage): Likewise.
5089 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
5090 * ira-build.c (merge_hard_reg_conflicts): Likewise.
5091 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
5092 (propagate_some_info_from_allocno): Likewise.
5093 (copy_info_to_removed_store_destinations): Likewise.
5094 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
5095 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
5096 (fast_allocation): Likewise.
5097 * ira-conflicts.c (ira_build_conflicts): Likewise.
5098 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
5099 (process_bb_node_lives): Likewise.
5100 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
5101 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5102 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5103 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
5104 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
5105 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
5106 (process_bb_lives): Likewise.
5107 * lra-spills.c (assign_spill_hard_regs): Likewise.
5108 * postreload.c (reload_combine): Likewise.
5109 * reginfo.c (init_reg_sets_1): Likewise.
5110 * regrename.c (merge_overlapping_regs, find_rename_reg)
5111 (merge_chains): Likewise.
5112 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
5113 (find_reload_regs, finish_spills, choose_reload_regs_init)
5114 (emit_reload_insns): Likewise.
5115 * reorg.c (redundant_insn): Likewise.
5116 * resource.c (find_dead_or_set_registers, mark_set_resources)
5117 (mark_target_live_regs): Likewise.
5118 * rtlanal.c (find_all_hard_reg_sets): Likewise.
5119 * sched-deps.c (sched_analyze_insn): Likewise.
5120 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5121 (find_best_reg_for_expr): Likewise.
5122 * shrink-wrap.c (try_shrink_wrapping): Likewise.
5124 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5126 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
5127 (HARD_REG_SET::operator&): Likewise.
5128 (AND_HARD_REG_SET): Delete.
5129 * caller-save.c (setup_save_areas): Use "&" instead of
5131 (save_call_clobbered_regs): Likewise.
5132 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5133 * config/m32c/m32c.c (reduce_class): Likewise.
5134 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5135 * final.c (get_call_reg_set_usage): Likewise.
5136 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
5137 (setup_left_conflict_sizes_p): Likewise.
5138 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5139 (ira_build_conflicts): Likewise.
5140 * ira-costs.c (restrict_cost_classes): Likewise.
5141 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
5142 (setup_reg_class_relations): Likewise.
5143 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
5144 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
5145 * resource.c (find_dead_or_set_registers): Likewise.
5146 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5148 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5150 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
5151 (COMPL_HARD_REG_SET): Delete.
5152 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
5153 of COMPL_HARD_REG_SET.
5154 (try_rename_operands): Likewise.
5155 * config/sh/sh.c (push_regs): Likewise.
5156 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5157 * lra-constraints.c (contains_reg_p): Likewise.
5158 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
5160 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5162 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
5163 * caller-save.c (save_call_clobbered_regs): Use assignment instead
5164 of COPY_HARD_REG_SET.
5165 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
5166 (epiphany_conditional_register_usage): Likewise.
5167 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5168 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5169 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
5170 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5171 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
5172 * config/mips/mips.c (mips_class_max_nregs): Likewise.
5173 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
5174 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5175 * config/sh/sh.c (output_stack_adjust): Likewise.
5176 * final.c (collect_fn_hard_reg_usage): Likewise.
5177 (get_call_reg_set_usage): Likewise.
5178 * ira-build.c (ira_create_object, remove_low_level_allocnos)
5179 (ira_flattening): Likewise.
5180 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
5181 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
5182 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
5183 (ira_reassign_pseudos): Likewise.
5184 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5185 (ira_build_conflicts): Likewise.
5186 * ira-costs.c (restrict_cost_classes): Likewise.
5187 (setup_regno_cost_classes_by_aclass): Likewise.
5188 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
5189 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
5190 (setup_stack_reg_pressure_class, setup_pressure_classes)
5191 (setup_allocno_and_important_classes, setup_class_translate_array)
5192 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
5193 (ira_setup_eliminable_regset): Likewise.
5194 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5195 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5196 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5197 (process_alt_operands, inherit_in_ebb): Likewise.
5198 * lra-lives.c (process_bb_lives): Likewise.
5199 * lra-spills.c (assign_spill_hard_regs): Likewise.
5200 * lra.c (lra): Likewise.
5201 * mode-switching.c (new_seginfo): Likewise.
5202 * postreload.c (reload_combine): Likewise.
5203 * reg-stack.c (straighten_stack): Likewise.
5204 * reginfo.c (save_register_info, restore_register_info): Likewise.
5205 (init_reg_sets_1, record_subregs_of_mode): Likewise
5206 * regrename.c (create_new_chain, rename_chains): Likewise.
5207 * reload1.c (order_regs_for_reload, find_reg): Likewise.
5208 (find_reload_regs): Likewise.
5209 * resource.c (find_dead_or_set_registers): Likewise.
5210 (mark_target_live_regs): Likewise.
5211 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5213 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5215 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
5216 (note_pattern_stores): Declare.
5217 (note_stores): Take an rtx_insn *.
5218 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
5219 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
5220 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
5221 (note_stores): Take an rtx_insn * as argument and process
5222 CALL_INSN_FUNCTION_USAGE. Rename old function to...
5223 (note_pattern_stores): ...this.
5224 (find_first_parameter_load): Pass the insn rather than
5225 its pattern to note_stores.
5226 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
5227 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
5228 (insert_one_insn): Likewise.
5229 * combine.c (combine_instructions): Likewise.
5230 (likely_spilled_retval_p): Likewise.
5231 (try_combine): Use note_pattern_stores instead of note_stores.
5232 (record_dead_and_set_regs): Pass the insn rather than its pattern
5234 (reg_dead_at_p): Likewise.
5235 * config/bfin/bfin.c (workaround_speculation): Likewise.
5236 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
5238 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
5239 instead of note_stores.
5240 (frv_optimize_membar_local): Pass the insn rather than its pattern
5242 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5243 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
5244 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
5245 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
5246 (mips_reorg_process_insns): Likewise.
5247 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
5248 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
5250 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
5251 its pattern to note_stores.
5252 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
5254 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
5255 the insn to note_stores.
5256 (prescan_insns_for_dce): Update call accordingly.
5257 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
5259 * df-problems.c (can_move_insns_across): Likewise.
5260 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
5261 * function.c (assign_parm_setup_reg): Likewise.
5262 * gcse-common.c (record_last_mem_set_info_common): Likewise.
5263 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
5264 (single_set_gcse): Likewise.
5265 * ira.c (validate_equiv_mem): Likewise.
5266 (update_equiv_regs): Use note_pattern_stores rather than note_stores
5268 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
5269 pattern to note_stores.
5270 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
5271 * loop-iv.c (simplify_using_initial_values): Likewise.
5272 * mode-switching.c (optimize_mode_switching): Likewise.
5273 * optabs.c (emit_libcall_block_1): Likewise.
5274 (expand_atomic_compare_and_swap): Likewise.
5275 * postreload-gcse.c (load_killed_in_block_p): Likewise.
5276 (record_opr_changes): Likewise. Remove explicit handling of
5277 CALL_INSN_FUNCTION_USAGE.
5278 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
5279 * regcprop.c (kill_clobbered_values): Likewise.
5280 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
5282 * regrename.c (build_def_use): Likewise.
5283 * reload1.c (reload): Use note_pattern_stores instead of note_stores
5284 for mark_not_eliminable.
5285 (reload_as_needed): Pass the insn rather than its pattern
5287 (emit_output_reload_insns): Likewise.
5288 * resource.c (mark_target_live_regs): Likewise.
5289 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
5290 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
5291 instead of note_stores.
5292 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
5293 its pattern to note_stores.
5294 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
5295 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
5297 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5299 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
5300 than a #define. Use a structure rather than an array as the
5301 fallback definition. Remove special cases for low array sizes.
5302 (const_hard_reg_set): New typedef.
5303 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
5304 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
5305 (hard_reg_set_empty_p): Likewise.
5306 (SET_HARD_REG_BIT): Use a function rather than a macro to
5307 handle the case in which HARD_REG_SET is a structure.
5308 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
5309 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
5310 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
5311 (IOR_COMPL_HARD_REG_SET): Likewise.
5312 (hard_reg_set_iterator::pset): Constify the pointer target.
5313 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
5314 of a "const HARD_REG_SET". Update the handling of non-integer
5316 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
5317 * reload.h: Likewise.
5318 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
5319 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
5320 of a "const HARD_REG_SET".
5321 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
5322 (range_in_hard_reg_set_p): Likewise.
5323 * ira-costs.c (restrict_cost_classes): Likewise.
5324 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
5325 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5326 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
5327 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
5328 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
5329 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
5330 take an unsigned int and open-code the HARD_REG_SET operations.
5332 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5334 * Makefile.in (OBJS): Remove bt-load.o.
5335 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
5336 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5337 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
5338 document that the option no longer does anything.
5339 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5340 * target.def (branch_target_register_class): Delete.
5341 (branch_target_register_callee_saved): Likewise.
5342 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
5343 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
5344 * doc/tm.texi: Regenerate.
5345 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
5346 (make_pass_branch_target_load_optimize2): Likewise.
5347 * passes.def (pass_branch_target_load_optimize1): Likewise.
5348 (pass_branch_target_load_optimize2): Likewise.
5349 * targhooks.h (default_branch_target_register_class): Likewise.
5350 * targhooks.c (default_branch_target_register_class): Likewise.
5351 * opt-suggestions.c (test_completion_valid_options): Remove
5352 -fbtr-bb-exclusive from the list of test options.
5353 * bt-load.c: Remove.
5355 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
5357 * match.pd: Add flag_unsafe_math_optimizations check
5358 before deciding on the widest type in a binary math operation.
5360 2019-09-09 Martin Liska <mliska@suse.cz>
5362 * config/i386/i386.opt: Update comment of removed
5363 options that are preserved only for backward
5366 2019-09-09 Jakub Jelinek <jakub@redhat.com>
5369 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
5373 * config/i386/avxintrin.h (__v32qs): New typedef.
5374 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
5377 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5379 * doc/invoke.texi (Option Summary): Cover eBPF.
5380 (eBPF Options): New section.
5381 * doc/extend.texi (BPF Built-in Functions): Likewise.
5382 (BPF Kernel Helpers): Likewise.
5384 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5386 * config.gcc: Support for bpf-*-* targets.
5387 * common/config/bpf/bpf-common.c: New file.
5388 * config/bpf/t-bpf: Likewise.
5389 * config/bpf/predicates.md: Likewise.
5390 * config/bpf/constraints.md: Likewise.
5391 * config/bpf/bpf.opt: Likewise.
5392 * config/bpf/bpf.md: Likewise.
5393 * config/bpf/bpf.h: Likewise.
5394 * config/bpf/bpf.c: Likewise.
5395 * config/bpf/bpf-protos.h: Likewise.
5396 * config/bpf/bpf-opts.h: Likewise.
5397 * config/bpf/bpf-helpers.h: Likewise.
5398 * config/bpf/bpf-helpers.def: Likewise.
5400 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5402 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5405 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5407 * opt-functions.awk (integer_range_info): Make sure values are in
5408 numeric context before operating with them.
5410 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
5412 * genemit.c (gen_split): Print the filename and line number where the
5413 splitter (or peephole2) was defined, to the dump file.
5415 2019-09-07 Jakub Jelinek <jakub@redhat.com>
5417 PR tree-optimization/91665
5418 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
5419 incompatible with the type of PHI result.
5421 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
5424 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
5425 gen_unaligned_storedi for 4-byte aligned addresses.
5427 2019-09-06 Jim Wilson <jimw@sifive.com>
5429 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
5432 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5434 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
5436 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5438 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
5439 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
5441 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
5444 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
5445 cost of SSE->integer and integer->SSE moves from 2 to 6.
5448 2019-09-06 Jakub Jelinek <jakub@redhat.com>
5450 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
5451 before testing TYPE_TRANSPARENT_AGGR.
5452 * calls.c (initialize_argument_information, load_register_parameters):
5455 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
5457 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
5459 (cmp_ior): Likewise.
5461 2019-09-06 Martin Liska <mliska@suse.cz>
5463 * doc/match-and-simplify.texi: Separate tuples with ;.
5465 2019-09-06 Martin Liska <mliska@suse.cz>
5468 * Makefile.in: Remove tlink.o.
5469 * collect2.c (do_link): New function isolated
5472 * collect2.h (do_tlink): Remove declaration of do_tlink.
5473 * doc/extend.texi: Remove documentation of -frepo.
5474 * doc/invoke.texi: Likewise.
5475 * doc/sourcebuild.texi: Remove cleanup-repo-files.
5478 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5479 Jim Wilson <jimw@sifive.com>
5482 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
5483 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
5484 paradoxical_subreg_p (operands[0]).
5485 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
5486 use as intermediate value.
5488 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
5490 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
5491 (sync_compare_and_swap<mode>_insn): Likewise.
5493 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5496 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
5497 without movmisalign optab.
5499 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5504 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
5505 types, use type of their first field instead of type of
5508 2019-09-05 Richard Biener <rguenther@suse.de>
5510 PR rtl-optimization/91656
5511 * postreload-gcse.c (record_last_mem_set_info): Revert addition
5514 2019-09-05 Richard Biener <rguenther@suse.de>
5517 * tree-inline.c (declare_return_variable): Mark the return
5518 slot as addressable after building an address of it.
5520 2019-09-05 Arnaud Charlet <charlet@adacore.com>
5522 * doc/install.texi: Update and clarify requirements to build GNAT.
5524 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
5527 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
5528 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
5529 call to be in memory.
5530 (pass_expand::execute): Call discover_nonconstant_array_refs before
5531 setting currently_expanding_to_rtl.
5533 2019-09-04 Caroline Tice <cmtice@google.com>
5535 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
5538 2019-09-04 Marek Polacek <polacek@redhat.com>
5540 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
5542 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
5545 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5546 for QI and HImode moves between SSE and general registers.
5548 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5551 * doc/invoke.texi: Document -Wenum-conversion.
5553 2019-09-04 Richard Biener <rguenther@suse.de>
5555 PR rtl-optimization/36262
5556 * postreload-gcse.c: Include intl.h and gcse.h.
5557 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
5558 to avoid linear list walk.
5559 (record_last_mem_set_info): Gate off if not computing transparentness.
5560 (get_bb_avail_insn): If transparentness isn't computed give up
5562 (gcse_after_reload_main): Skip compute_transp and extended PRE
5563 if gcse_or_cprop_is_too_expensive says so.
5565 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5567 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
5569 (msp430_select_section): Handle decls with the "noinit" attribute with
5570 default_elf_select_section.
5571 Handle SECCAT_RODATA_MERGE_* section types with
5572 default_elf_select_section.
5573 Add comments about handling of unsupported section types.
5574 (msp430_section_type_flags): Remove handling of the noinit section.
5576 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5578 * config/msp430/msp430.c (msp430_attr): Remove warnings about
5579 conflicting msp430-specific attributes.
5580 (msp430_section_attr): Likewise.
5581 Add warnings about conflicts with generic "noinit" and "section"
5583 Fix grammar in -mlarge error message.
5584 (msp430_data_attr): Rename to msp430_persist_attr.
5585 Add warnings about conflicts with generic "noinit" and "section"
5587 Add warning for when variable is not initialized.
5588 Chain conditionals which prevent the attribute being added.
5589 (ATTR_EXCL): New helper.
5590 (attr_reent_exclusions): New exclusion table.
5591 (attr_naked_exclusions): Likewise.
5592 (attr_crit_exclusions): Likewise.
5593 (attr_lower_exclusions): Likewise.
5594 (attr_upper_exclusions): Likewise.
5595 (attr_either_exclusions): Likewise.
5596 (attr_persist_exclusions): Likewise.
5597 (msp430_attribute_table): Update with exclusion rules.
5598 (msp430_output_aligned_decl_common): Don't output common symbol if decl
5601 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5603 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
5604 (msp430_handle_generic_attribute): New function.
5605 * doc/tm.texi: Regenerate.
5606 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
5607 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5608 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5609 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
5611 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
5613 PR tree-optimization/91504
5614 * match.pd: Add ((~a & b) ^a) --> (a | b).
5616 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5619 * config/i386/i386-expand.c (split_double_mode): If there is more than
5620 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
5621 already split matching MEM operand instead of calling adjust_address
5624 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
5626 * config.gcc: Obsolete spu target. Remove references to spu.
5627 * configure.ac: Remove references to spu.
5628 * configure: Regenerate.
5629 * config/spu/: Remove directory.
5630 * common/config/spu/: Remove directory.
5632 * doc/extend.texi: Remove references to spu.
5633 * doc/invoke.texi: Likewise.
5634 * doc/md.texi: Likewise.
5635 * doc/sourcebuild.texi: Likewise.
5637 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5642 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
5643 and SSA_NAME referring to CONSTANT_P correctly.
5645 2019-09-03 Richard Biener <rguenther@suse.de>
5647 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
5648 (vn_nary_op_insert): Likewise.
5649 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
5650 (vn_nary_op_lookup): Likewise.
5651 (vn_nary_op_insert): Likewise.
5653 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
5655 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
5656 (*op0, 1) instead of XEXP (*op1, 0).
5658 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5660 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
5661 (aarch64_fjcvtzs): New define_insn.
5662 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
5663 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
5665 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
5666 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
5667 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5668 __ARM_FEATURE_JCVT where appropriate.
5669 * config/aarch64/arm_acle.h (__jcvt): Define.
5671 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5673 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
5674 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
5675 (aarch64_<frintnzs_op><mode>): New define_insn.
5676 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
5677 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5678 __ARM_FEATURE_FRINT when appropriate.
5679 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
5680 frint32x, frint64z, frint64x.
5681 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
5682 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
5683 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
5684 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
5685 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
5686 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
5687 * config/aarch64/iterators.md (VSFDF): Define.
5688 (FRINTNZX): Likewise.
5689 (frintnzs_op): Likewise.
5691 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
5693 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
5694 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
5696 * config/aarch64/aarch64-tune.md: Regenerated.
5697 * doc/invoke.texi: Document the new processors.
5699 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5701 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
5705 (sve2-sm4): Likewise.
5707 (svesha3): Likewise.
5708 (svebitperm): Likewise.
5710 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5711 Richard Biener <rguenther@suse.de>
5713 PR tree-optimization/91597
5714 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
5715 BIT_AND_EXPR optimization for pointers, even if both operand
5716 ranges don't include NULL, the result can be NULL.
5718 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5721 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
5722 (non_mem_decl_p): ...this.
5723 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
5724 (expand_assignment): Call mem_ref_referes_to_non_mem_p
5725 unconditionally as before.
5727 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5730 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
5731 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
5732 * tree.def (LTGT_EXPR): Likewise.
5733 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
5735 2019-09-02 Jakub Jelinek <jakub@redhat.com>
5738 * fold-const.c (range_check_type): For enumeral and boolean
5739 type, pass 1 to type_for_size langhook instead of
5740 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
5741 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
5742 (build_range_check): Don't call unsigned_type_for for pointer types.
5743 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
5744 range_check_type result.
5746 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5748 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
5749 (replace_ref): Do not replace a chain of only two candidates which are
5750 valid memory references.
5752 2019-09-02 Martin Liska <mliska@suse.cz>
5754 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
5755 Bail out when we'll end up with the same number of clusters as
5757 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
5758 (jump_table_cluster::can_be_handled): Remove the guard
5759 as it's already handled in ::is_enabled. Allocate output
5760 after early bail out.
5762 2019-09-02 Martin Liska <mliska@suse.cz>
5764 PR gcov-profile/91601
5765 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
5766 (path_contains_zero_or_negative_cycle_arc): ... this and handle
5767 also negative edges.
5768 (circuit): Handle also negative edges as they can happen
5771 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
5774 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
5775 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
5776 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
5778 2019-09-01 Jakub Jelinek <jakub@redhat.com>
5781 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
5782 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
5783 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
5787 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
5788 GIMPLE_ASM TREE_LIST operands.
5790 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
5792 * doc/generic.texi (Unary and Binary Expressions): Mark up
5793 an instance of TYPE_MIN.
5795 2019-08-31 Stafford Horne <shorne@gmail.com>
5797 * config/or1k/constraints.md (t): New constraint.
5798 * config/or1k/or1k.h (GOT_REGS): New register class.
5799 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
5801 2019-08-30 Jim Wilson <jimw@sifive.com>
5803 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
5804 and -fpic and -mplt then disable -msave-restore and warn.
5806 2019-08-30 Martin Sebor <msebor@redhat.com>
5809 * tree-ssa-strlen.c (handle_store): Use a fallback location if
5810 the statement doesn't have one.
5811 * gimple-pretty-print.c (percent_G_format): Same.
5814 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
5815 before using them to validate MEM_REF offset.
5817 2019-08-30 Marek Polacek <polacek@redhat.com>
5819 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
5821 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5823 * config/arm/arm.md (unaligned_loaddi,
5824 unaligned_storedi): New unspec insn patterns.
5825 * config/arm/neon.md (unaligned_storev8qi): Likewise.
5826 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
5827 and unaligned_storedi for 4-byte aligned memory.
5828 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
5829 4-byte aligned memory.
5831 2019-08-30 Martin Jambor <mjambor@suse.cz>
5833 tree-optimization/91579
5834 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
5835 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
5837 (arg_needs_copy_p): Removed.
5838 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
5840 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
5842 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5844 * config/i386/i386-features.c
5845 (general_scalar_chain::compute_convert_gain):
5846 Correct cost for double-word shifts.
5847 (general_scalar_to_vector_candidate_p): Reject count operands
5848 greater or equal to mode bitsize.
5850 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5852 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5853 for moves between SSE and non-general registers and between
5854 mask and non-general registers.
5855 (ix86_register_move_cost): Remove stalled comment.
5857 2019-08-29 Richard Biener <rguenther@suse.de>
5859 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5860 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
5862 2019-08-29 Richard Biener <rguenther@suse.de>
5865 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5866 Do not emit scalar copies for debug-insns, instead replace
5867 their uses with the reg copy used in the chain or reset them
5868 if there is a reaching definition outside of the chain as well.
5870 2019-08-29 Jakub Jelinek <jakub@redhat.com>
5873 * config/i386/i386-expand.c (expand_vec_perm_movs,
5874 expand_vec_perm_blend, expand_vec_perm_vpermil,
5875 expand_vec_perm_pshufb, expand_vec_perm_1,
5876 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
5877 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
5878 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
5879 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
5880 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
5881 comments - replace ix86_expand_vec_perm_builtin_1 with
5882 ix86_expand_vec_perm_const_1.
5883 (expand_vec_perm2_vperm2f128_vblend): New function.
5884 (ix86_expand_vec_perm_const_1): New forward declaration. Call
5885 expand_vec_perm2_vperm2f128_vblend as last resort.
5886 (canonicalize_perm): Formatting fix.
5888 PR tree-optimization/91351
5889 * tree-cfg.c (generate_range_test): Use range_check_type instead of
5891 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
5892 range_check_type returns NULL.
5893 * tree-switch-conversion.c (switch_conversion::build_one_array):
5894 Use range_check_type instead of unsigned_type_for, don't perform
5895 linear opt if it returns NULL.
5896 (bit_test_cluster::find_bit_tests): Formatting fix.
5897 (bit_test_cluster::emit): Use range_check_type instead of
5899 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
5902 2019-08-29 Richard Biener <rguenther@suse.de>
5904 PR tree-optimization/91568
5905 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
5906 (vect_update_max_nunits): Add overload for poly_uint64.
5907 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
5908 (vect_build_slp_tree): Record max_nunits into the subtree
5909 and merge it upwards.
5910 (vect_print_slp_tree): Print max_nunits.
5912 2019-08-28 Marek Polacek <polacek@redhat.com>
5914 Implement P1152R4: Deprecating some uses of volatile.
5916 * doc/invoke.texi: Document -Wvolatile.
5918 2019-08-28 Marek Polacek <polacek@redhat.com>
5920 PR c++/91360 - Implement C++20 P1143R2: constinit.
5921 * doc/invoke.texi: Document -Wc++20-compat.
5923 2019-08-28 Martin Sebor <msebor@redhat.com>
5925 PR tree-optimization/91457
5926 * builtins.c (component_size): New function.
5927 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
5928 * builtins.h (compute_objsize): Add argument.
5929 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
5930 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
5931 (vrp_prop::check_mem_ref): Same.
5932 (vrp_prop::search_for_addr_array): Set no-warning bit.
5933 (check_array_bounds): Same.
5935 2019-08-28 Martin Sebor <msebor@redhat.com>
5938 * opts-common.c (option_enabled): Correct checking for language
5941 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
5943 * config/i386/i386.c (ix86_register_move_cost): Do not
5944 limit the cost of moves to/from XMM register to minimum 8.
5946 2019-08-28 Martin Jambor <mjambor@suse.cz>
5949 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
5950 checking assert a normal assert to test it really is redundant.
5951 * ipa-prop.c (compute_complex_assign_jump_func): Removed
5953 (update_jump_functions_after_inlining): Removed combining unary
5954 arithmetic operations with an ancestor jump function.
5955 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
5958 2019-08-28 Richard Biener <rguenther@suse.de>
5960 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
5963 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
5964 Richard Biener <rguenther@suse.de>
5966 * expr.c (expand_assignment): Handle misaligned DECLs.
5967 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
5968 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
5970 (assign_parm_setup_stack): Allocate properly aligned stack slots.
5971 * varasm.c (build_constant_desc): Align constants of misaligned types.
5972 * config/arm/predicates.md (aligned_operand): New predicate.
5973 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
5974 aligned_operand to check restrictions on memory addresses.
5975 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
5976 * config/arm/vec-common.md (mov<VALL>): Likewise.
5978 2019-08-28 Jakub Jelinek <jakub@redhat.com>
5981 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
5982 V_128 iterator instead of VI_128.
5984 2019-08-28 Martin Liska <mliska@suse.cz>
5986 PR tree-optimization/90970
5987 * builtins.c (check_access): Remove assignment to maxread
5988 as it hasn't been used since when it was introduced in r255755.
5990 2019-08-27 Martin Sebor <msebor@redhat.com>
5992 PR tree-optimization/91567
5993 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
5995 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
5998 2019-08-27 Jeff Law <law@redhat.com>
6000 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
6001 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
6003 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
6006 * config/i386/i386-features.c (convert_scalars_to_vector):
6007 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
6008 crtl->stack_realign_processed. Update crtl->drap_reg by calling
6009 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
6010 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
6012 2019-08-27 Richard Biener <rguenther@suse.de>
6014 * config/i386/i386-features.h
6015 (general_scalar_chain::~general_scalar_chain): Add.
6016 (general_scalar_chain::insns_conv): New bitmap.
6017 (general_scalar_chain::n_sse_to_integer): New.
6018 (general_scalar_chain::n_integer_to_sse): Likewise.
6019 (general_scalar_chain::make_vector_copies): Adjust signature.
6020 * config/i386/i386-features.c
6021 (general_scalar_chain::general_scalar_chain): Outline,
6022 initialize new members.
6023 (general_scalar_chain::~general_scalar_chain): New.
6024 (general_scalar_chain::mark_dual_mode_def): Record insns
6025 we need to insert conversions at and count them.
6026 (general_scalar_chain::compute_convert_gain): Account
6027 for conversion instructions at chain boundary.
6028 (general_scalar_chain::make_vector_copies): Generate a single
6029 copy for a def by a specific insn.
6030 (general_scalar_chain::convert_registers): First populate
6031 defs_map, then make copies at out-of chain insns.
6033 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
6035 * config/arm/arm.md (stack_protect_set_insn): Add security-related
6037 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
6039 2019-08-27 Martin Liska <mliska@suse.cz>
6041 * cgraph.c (cgraph_node::remove): Remove dead assignment before
6043 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
6044 Enclose in anonymous namespace.
6045 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
6046 hard_register initialization in braces.
6047 * tree-vrp.h (value_range_base::supports_type_p): Return false
6048 for function with boolean return type.
6050 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
6052 * config/i386/i386.c (emit_i387_cw_initialization)
6053 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
6055 2019-08-26 Martin Sebor <msebor@redhat.com>
6058 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
6059 (sprintf_dom_walker): Remove class.
6060 (get_int_range): Make argument const.
6061 (directive::fmtfunc, directive::set_precision): Same.
6062 (format_none): Same.
6063 (build_intmax_type_nodes): Same.
6064 (adjust_range_for_overflow): Same.
6065 (format_floating): Same.
6066 (format_character): Same.
6067 (format_string): Same.
6068 (format_plain): Same.
6069 (get_int_range): Cast away constness.
6070 (format_integer): Same.
6071 (get_string_length): Call get_range_strlen_dynamic. Handle
6072 null lendata.maxbound.
6073 (should_warn_p): Adjust argument scope qualifier.
6075 (format_directive): Same.
6076 (parse_directive): Same.
6077 (is_call_safe): Same.
6078 (try_substitute_return_value): Same.
6079 (sprintf_dom_walker::handle_printf_call): Rename...
6080 (handle_printf_call): ...to this. Initialize target to host charmap
6081 here instead of in pass_sprintf_length::execute.
6082 (struct call_info): Make global.
6083 (sprintf_dom_walker::compute_format_length): Make global.
6084 (sprintf_dom_walker::handle_gimple_call): Same.
6085 * passes.def (pass_sprintf_length): Replace with pass_strlen.
6086 * print-rtl.c (print_pattern): Reduce the number of spaces to
6087 avoid -Wformat-truncation.
6088 * tree-pass.h (make_pass_warn_printf): New function.
6089 * tree-ssa-strlen.c (strlen_optimize): New variable.
6090 (get_string_length): Add comments.
6091 (get_range_strlen_dynamic): New function.
6092 (check_and_optimize_call): New function.
6093 (handle_integral_assign): New function.
6094 (strlen_check_and_optimize_stmt): Factor code out into
6095 strlen_check_and_optimize_call and handle_integral_assign.
6096 (strlen_dom_walker::evrp): New member.
6097 (strlen_dom_walker::before_dom_children): Use evrp member.
6098 (strlen_dom_walker::after_dom_children): Use evrp member.
6099 (printf_strlen_execute): New function.
6100 (pass_strlen::gate): Update to handle printf calls.
6101 (dump_strlen_info): New function.
6102 (pass_data_warn_printf): New variable.
6103 (pass_warn_printf): New class.
6104 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
6105 (handle_printf_call): Same.
6106 * tree-vrp.c (value_range_base::type): Adjust assertion.
6107 * vr-values.c (vr_values::update_value_range): Use type of the first
6108 argument rather than the second.
6110 2019-08-26 Richard Biener <rguenther@suse.de>
6112 * config/i386/i386-features.c (general_remove_non_convertible_regs):
6114 (convert_scalars_to_vector): Do not call it.
6116 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6117 Uros Bizjak <ubizjak@gmail.com>
6119 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
6120 CASE_MATHFN_FLOATN for roundeven.
6121 * config/i386/i386.c (ix86_i387_mode_needed): Add case
6123 (ix86_mode_needed): Likewise.
6124 (ix86_mode_after): Likewise.
6125 (ix86_mode_entry): Likewise.
6126 (ix86_mode_exit): Likewise.
6127 (ix86_emit_mode_set): Likewise.
6128 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
6129 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
6130 (ix86_entity): Add I387_ROUNDEVEN.
6131 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
6132 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
6133 (define_int_iterator): Likewise.
6134 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
6135 (define_constant): Define ROUND_ROUNDEVEN mode.
6136 (define_attr): Add roundeven mode for i387_cw.
6137 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
6138 * internal-fn.def (ROUNDEVEN): New builtin function.
6139 * optabs.def (roundeven_optab): New optab.
6141 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6143 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
6145 * builtins.def: Added function definitions for roundeven function
6147 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
6148 function call. Adjust condition for floor, ceil, trunc and round.
6149 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
6150 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
6151 (integer_valued_real_call_p): Added case for roundeven function.
6152 * real.c (is_even): New function. Returns true if real number is even,
6153 otherwise returns false.
6154 (is_halfway_below): New function. Returns true if real number is
6155 halfway between two integers, else return false.
6156 (real_roundeven): New function. Round real number to nearest integer,
6157 rounding halfway cases towards even.
6158 * real.h (real_value): Added descriptive comments. Added function
6159 declaration for roundeven function.
6160 * doc/extend.texi (Other Builtins): List roundeven variants among
6161 functions which can be handled as builtins.
6163 2019-08-26 Richard Biener <rguenther@suse.de>
6167 * config/i386/i386-features.h (general_scalar_chain::defs_map):
6169 (general_scalar_chain::replace_with_subreg): Remove.
6170 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6171 (general_scalar_chain::convert_reg): Adjust signature.
6172 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
6173 iterate over all defs of a reg.
6174 (general_scalar_chain::replace_with_subreg): Remove.
6175 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6176 (general_scalar_chain::make_vector_copies): Populate defs_map,
6177 place copy only after defs that are used as vectors in the chain.
6178 (general_scalar_chain::convert_reg): Emit a copy for a specific
6179 def in a specific instruction.
6180 (general_scalar_chain::convert_op): All reg uses are converted here.
6181 (general_scalar_chain::convert_insn): Emit copies for scalar
6182 uses of defs here. Replace uses with the copies we created.
6183 Replace and convert the def. Adjust REG_DEAD notes, remove
6184 REG_EQUIV/EQUAL notes.
6185 (general_scalar_chain::convert_registers): Only handle copies
6186 into the chain here.
6188 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6190 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
6192 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6194 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
6195 Add nop_convert case.
6196 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
6197 Fold all statements if requested.
6198 * tree-ssa-propagate.h (class substitute_and_fold_engine):
6199 Allow to fold all statements.
6200 * tree-vrp.c (class vrp_folder):
6201 Let substitute_and_fold_engine fold all statements.
6203 2019-08-26 Richard Biener <rguenther@suse.de>
6205 PR tree-optimization/91526
6206 * passes.def: Note that after late FRE we do TODO_update_address_taken.
6207 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
6208 TODO_update_address_taken.
6210 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
6212 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
6215 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6217 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
6218 machine mode for unspec_volatile operand.
6220 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
6222 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
6223 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
6224 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
6225 (prefer_neon_for_64bits): Remove.
6226 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
6227 (tune_params): Remove PREF_NEON_64_FALSE uses.
6228 (arm_option_override): Remove prefer_neon selection code.
6229 (arm_print_tune_info): Remove prefer_neon_for_64bits.
6230 * gcc/config/arm/arm-protos.h (tune_params): Remove
6231 prefer_neon_for_64bits.
6232 (prefer_neon_for_64bits): Remove.
6234 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
6237 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
6238 and issue any diagnostics needed before collecting the pre-PCH
6241 2019-08-23 Jakub Jelinek <jakub@redhat.com>
6244 * common.opt (fexcess-precision=): Add Optimization flag. Use
6245 flag_excess_precision variable instead of
6246 flag_excess_precision_cmdline.
6247 * flags.h (class target_flag_state): Remove x_flag_excess_precision
6249 (flag_excess_precision): Don't define.
6250 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
6251 flag_excess_precision_cmdline. Remove comment.
6252 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
6253 and x_flag_excess_precision instead of
6254 frontend_set_flag_excess_precision_cmdline and
6255 x_flag_excess_precision_cmdline.
6256 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
6257 x_flag_excess_precision_cmdline.
6258 * toplev.c (init_excess_precision): Remove.
6259 (lang_dependent_init_target): Don't call it.
6261 2019-08-23 Martin Liska <mliska@suse.cz>
6263 * lto-wrapper.c (run_gcc): When setting jobserver
6264 set also parallel to 1. This was done so before r273908.
6266 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
6268 * config/arm/arm-cpus.in (cortex-m35p): New entry.
6269 (cortex-a76ae): Likewise.
6270 (cortex-a77): Likewise
6271 * config/arm/arm-tables.opt: Regenerate.
6272 * config/arm/arm-tune.md: Likewise.
6273 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
6274 cortex-a77 CPU options.
6276 2019-08-23 Martin Liska <mliska@suse.cz>
6278 * profile.c (instrument_values): Do not set
6280 * tree-profile.c (gimple_gen_interval_profiler): Remove
6282 (gimple_gen_pow2_profiler): Likewise.
6283 (gimple_gen_topn_values_profiler): Likewise.
6284 (gimple_gen_ic_profiler): Likewise.
6285 (gimple_gen_time_profiler): Likewise.
6286 (gimple_gen_average_profiler): Likewise.
6287 (gimple_gen_ior_profiler): Likewise.
6288 * value-prof.c (dump_histogram_value): Use default
6289 in switch statement instead of HIST_TYPE_MAX.
6290 (stream_in_histogram_value): Likewise.
6291 (gimple_duplicate_stmt_histograms): Do not
6292 use NULL for implicitly set arguments.
6293 (gimple_divmod_values_to_profile): Do not use
6295 (gimple_indirect_call_to_profile): Likewise.
6296 (gimple_find_values_to_profile): Use implicit
6297 function call arguments.
6298 * value-prof.h (gimple_alloc_histogram_value):
6300 (gimple_gen_interval_profiler): Remove last argument.
6301 (gimple_gen_pow2_profiler): Likewise.
6302 (gimple_gen_topn_values_profiler): Likewise.
6303 (gimple_gen_ic_profiler): Likewise.
6304 (gimple_gen_time_profiler): Likewise.
6305 (gimple_gen_average_profiler): Likewise.
6306 (gimple_gen_ior_profiler): Likewise.
6308 2019-08-22 Martin Sebor <msebor@redhat.com>
6311 * builtins.c (c_strlen): Rename argument and introduce new local.
6312 Set no-warning bit on original argument.
6313 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
6314 Fold empty and zero constructors into empty strings.
6315 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
6316 for missing initializers.
6317 * tree.c (build_string_literal): Handle optional argument.
6318 * tree.h (build_string_literal): Add defaulted argument.
6319 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
6320 no-warning bit on original expression.
6322 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6325 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6326 and UNSPEC_DARN_RAW.
6327 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
6329 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
6330 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
6331 (darn): Use an unspec_volatile, and UNSPECV_DARN.
6333 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6335 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6336 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
6337 * config/rs6000/rs6000.md (unspec): ... here.
6338 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
6339 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6340 cmpeqb, *cmpeqb_internal): Delete, move to...
6341 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
6342 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6343 cmpeqb, *cmpeqb_internal): ... here.
6345 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6347 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
6348 intrinsics if __ARM_FP.
6349 Use __ARM_FEATURE_CRC32 ifdef guard.
6351 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6353 * config/arm/arm.md (neon_for_64bits): Remove.
6354 (avoid_neon_for_64bits): Remove.
6355 (arm_adddi3): Always split early.
6356 (arm_subdi3): Always split early.
6357 (negdi2): Remove Neon expansion.
6358 (split zero_extend): Split before reload.
6359 (split sign_extend): Split before reload.
6361 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6363 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
6364 (qhs_extenddi_cstr): Likewise.
6365 * config/arm/arm.md (ashldi3): Always expand early.
6366 (ashlsi3): Likewise.
6367 (ashrsi3): Likewise.
6368 (zero_extend<mode>di2): Remove Neon variants.
6369 (extend<mode>di2): Likewise.
6370 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
6371 (signed_shift_di3_neon): Likewise.
6372 (unsigned_shift_di3_neon): Likewise.
6373 (ashrdi3_neon_imm_noclobber): Likewise.
6374 (lshrdi3_neon_imm_noclobber): Likewise.
6375 (<shift>di3_neon): Likewise.
6376 (split extend): Remove DI extend split patterns.
6378 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6380 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
6381 (split not): Add DImode not splitter.
6382 (anddi3): Remove pattern.
6383 (anddi3_insn): Likewise.
6384 (anddi_zesidi_di): Likewise.
6385 (anddi_sesdi_di): Likewise.
6386 (anddi_notdi_di): Likewise.
6387 (anddi_notzesidi_di): Likewise.
6388 (anddi_notsesidi_di): Likewise.
6390 (iordi3_insn): Likewise.
6391 (iordi_zesidi_di): Likewise.
6392 (iordi_sesidi_di): Likewise.
6394 (xordi3_insn): Likewise.
6395 (xordi_sesidi_di): Likewise.
6396 (xordi_zesidi_di): Likewise.
6397 (one_cmpldi2): Likewise.
6398 (one_cmpldi2_insn): Likewise.
6399 * config/arm/constraints.md: Remove De, Df, Dg constraints.
6400 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
6402 (iwmmxt_xordi3): Likewise.
6403 (iwmmxt_anddi3): Likewise.
6404 * config/arm/neon.md (orndi3_neon): Remove pattern.
6405 (anddi_notdi_di): Likewise.
6406 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
6407 (arm_iordi_operand_neon): Likewise.
6408 (arm_xordi_operand_neon): Likewise.
6409 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
6410 (iordi_notzesidi_di): Likewise.
6411 (iordi_notdi_zesidi): Likewise.
6412 (iordi_notsesidi_di): Likewise.
6414 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
6416 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
6418 (iorsi3_compare0_scratch): Likewise.
6420 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
6422 * config/aarch64/aarch64-simd-builtins.def:
6425 * config/aarch64/aarch64-simd.md:
6426 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
6427 (aarch64_st1x4<VALLDIF:mode>): Likewise.
6428 (aarch64_ld1_x4_<mode>): Likewise.
6429 (aarch64_st1_x4_<mode>): Likewise.
6430 * config/aarch64/arm_neon.h:
6431 (vld1_s8_x4): New function.
6432 (vld1q_s8_x4): Likewise.
6433 (vld1_s16_x4): Likewise.
6434 (vld1q_s16_x4): Likewise.
6435 (vld1_s32_x4): Likewise.
6436 (vld1q_s32_x4): Likewise.
6437 (vld1_u8_x4): Likewise.
6438 (vld1q_u8_x4): Likewise.
6439 (vld1_u16_x4): Likewise.
6440 (vld1q_u16_x4): Likewise.
6441 (vld1_u32_x4): Likewise.
6442 (vld1q_u32_x4): Likewise.
6443 (vld1_f16_x4): Likewise.
6444 (vld1q_f16_x4): Likewise.
6445 (vld1_f32_x4): Likewise.
6446 (vld1q_f32_x4): Likewise.
6447 (vld1_p8_x4): Likewise.
6448 (vld1q_p8_x4): Likewise.
6449 (vld1_p16_x4): Likewise.
6450 (vld1q_p16_x4): Likewise.
6451 (vld1_s64_x4): Likewise.
6452 (vld1_u64_x4): Likewise.
6453 (vld1_p64_x4): Likewise.
6454 (vld1q_s64_x4): Likewise.
6455 (vld1q_u64_x4): Likewise.
6456 (vld1q_p64_x4): Likewise.
6457 (vld1_f64_x4): Likewise.
6458 (vld1q_f64_x4): Likewise.
6459 (vst1_s8_x4): Likewise.
6460 (vst1q_s8_x4): Likewise.
6461 (vst1_s16_x4): Likewise.
6462 (vst1q_s16_x4): Likewise.
6463 (vst1_s32_x4): Likewise.
6464 (vst1q_s32_x4): Likewise.
6465 (vst1_u8_x4): Likewise.
6466 (vst1q_u8_x4): Likewise.
6467 (vst1_u16_x4): Likewise.
6468 (vst1q_u16_x4): Likewise.
6469 (vst1_u32_x4): Likewise.
6470 (vst1q_u32_x4): Likewise.
6471 (vst1_f16_x4): Likewise.
6472 (vst1q_f16_x4): Likewise.
6473 (vst1_f32_x4): Likewise.
6474 (vst1q_f32_x4): Likewise.
6475 (vst1_p8_x4): Likewise.
6476 (vst1q_p8_x4): Likewise.
6477 (vst1_p16_x4): Likewise.
6478 (vst1q_p16_x4): Likewise.
6479 (vst1_s64_x4): Likewise.
6480 (vst1_u64_x4): Likewise.
6481 (vst1_p64_x4): Likewise.
6482 (vst1q_s64_x4): Likewise.
6483 (vst1q_u64_x4): Likewise.
6484 (vst1q_p64_x4): Likewise.
6485 (vst1_f64_x4): Likewise.
6486 (vst1q_f64_x4): Likewise.
6488 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6490 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
6492 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6493 Richard Sandiford <richard.sandiford@arm.com>
6496 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
6497 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
6499 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6502 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
6503 in reg if it fails aarch64_plus_operand predicate.
6505 2019-08-21 Richard Biener <rguenther@suse.de>
6507 PR tree-optimization/91482
6508 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
6509 BUILT_IN_ASSUME_ALIGNED calls.
6511 2019-08-21 Richard Biener <rguenther@suse.de>
6515 * config/i386/i386-features.c
6516 (general_scalar_chain::make_vector_copies): Copy stack temporary
6517 rtx when using it multiple times.
6518 (general_scalar_chain::convert_reg): Likewise.
6520 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6522 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
6524 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
6526 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
6527 catch more redundant zero initialization cases.
6528 (dse_dom_walker::dse_optimize_stmt): Likewise.
6530 2019-08-20 Richard Biener <rguenther@suse.de>
6533 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
6534 by collect2 when targetm.have_ctors_dtors which avoids dragging
6535 in temporary filenames from LTO input objects.
6537 2019-08-20 Richard Biener <rguenther@suse.de>
6539 PR tree-optimization/37242
6540 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
6541 to (T)a + (T)b if we know that a + b does not overflow.
6543 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
6545 PR rtl-optimization/91347
6546 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
6547 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
6549 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6551 * calls.h (function_arg_info): Add a pass_by_reference field,
6552 defaulting to false.
6553 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
6554 when applying pass-by-reference semantics.
6555 (initialize_argument_information): Likewise.
6556 (emit_library_call_value_1): Likewise.
6557 * function.c (assign_parm_data_one): Remove passed_pointer field.
6558 (assign_parm_find_data_types): Don't set it.
6559 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
6560 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
6561 arg.pass_by_reference instead of passed_pointer.
6563 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6565 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
6566 into a single function_arg_info, updating its fields when we
6567 apply pass-by-reference and promotion semantics. Use the
6568 function_arg_info to track the mode rather than keeping it in
6569 a separate local variable.
6570 (initialize_argument_information): Likewise. Base the final
6571 arg_to_skip on this new function_arg_info rather than creating
6572 a new one from scratch.
6574 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6576 * function.c (assign_parm_data_one): Replace passed_type,
6577 promoted_mode and named_arg with a function_arg_info field.
6578 (assign_parm_find_data_types): Remove local variables and
6579 assign directly to "data". Make data->passed_mode shadow
6580 data->arg.mode until promotion, then assign the promoted
6581 mode to data->arg.mode.
6582 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
6583 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
6584 (assign_parm_remove_parallels, assign_parm_setup_block_p)
6585 (assign_parm_setup_block, assign_parm_setup_reg)
6586 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
6587 arg.mode instead of promoted_mode, arg.type instead of passed_type
6588 and arg.named instead of named_arg. Use data->arg for
6589 function_arg_info structures that had the field values passed_type,
6590 promoted_mode and named_arg. Base other function_arg_infos on
6591 data->arg, changing the necessary properties.
6593 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6595 * calls.h (apply_pass_by_reference_rules): Declare.
6596 * calls.c (apply_pass_by_reference_rules): New function.
6597 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
6598 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
6599 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
6600 * function.c (assign_parm_find_data_types): Likewise.
6601 * var-tracking.c (prepare_call_arguments): Likewise.
6603 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6605 * target.def (must_pass_in_stack): Take a function_arg_info instead
6606 of a mode and a type.
6607 * doc/tm.texi: Regenerate.
6608 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
6609 instead of a mode and a type.
6610 (must_pass_in_stack_var_size_or_pad): Likewise.
6611 * calls.c (must_pass_in_stack_var_size): Likewise.
6612 (must_pass_in_stack_var_size_or_pad): Likewise.
6613 (initialize_argument_information): Update call to
6614 targetm.calls.must_pass_in_stack.
6615 (must_pass_va_arg_on_stack): Likewise.
6616 * function.c (assign_parm_find_entry_rtl): Likewise.
6617 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
6618 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6619 (alpha_function_arg_advance): Likewise.
6620 * config/cr16/cr16.c (cr16_function_arg): Likewise.
6621 (cr16_function_arg_advance): Likewise.
6622 * config/cris/cris.c (cris_pass_by_reference): Likewise.
6623 (cris_arg_partial_bytes): Likewise.
6624 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6625 * config/lm32/lm32.c (lm32_function_arg): Likewise.
6626 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
6627 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
6628 * config/mips/mips.c (mips_pass_by_reference): Likewise.
6629 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
6630 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
6631 * config/sh/sh.c (sh_pass_by_reference): Likewise.
6632 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6633 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
6634 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
6635 instead of a mode and a type.
6636 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
6637 (fr30_num_arg_regs): Likewise.
6638 (fr30_setup_incoming_varargs): Update calls accordingly.
6639 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
6640 (fr30_function_arg_advance): Likewise.
6641 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
6642 instead of a mode and a type.
6643 * config/gcn/gcn.c (num_arg_regs): Likewise.
6644 (gcn_function_arg, gcn_function_arg_advance): Update calls to
6645 num_arg_regs and targetm.calls.must_pass_in_stack.
6646 (gcn_arg_partial_bytes): Likewise.
6647 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
6648 function_arg_info instead of a mode and a type.
6649 (classify_argument): Update call accordingly.
6650 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
6651 function_arg_info instead of a mode and a type.
6652 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
6654 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
6655 (rs6000_parm_needs_stack): Update call accordingly.
6656 (setup_incoming_varargs): Likewise.
6658 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6660 * target.def (callee_copies): Take a function_arg_info instead
6661 of a mode, type and named flag.
6662 * doc/tm.texi: Regenerate.
6663 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
6664 instead of a mode, type and named flag.
6665 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6666 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6667 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6668 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
6669 instead of a mode, type and named flag.
6670 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6671 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6672 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6673 * calls.h (reference_callee_copied): Take a function_arg_info
6674 instead of a mode, type and named flag.
6675 * calls.c (reference_callee_copied): Likewise.
6676 (initialize_argument_information): Update call accordingly.
6677 (emit_library_call_value_1): Likewise.
6678 * function.c (gimplify_parameters): Likewise.
6679 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
6680 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
6681 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
6682 * config/c6x/c6x.c (c6x_callee_copies): Delete.
6683 (TARGET_CALLEE_COPIES): Define to
6684 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6685 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
6686 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6687 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6688 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
6689 instead of a mode, type and named flag.
6690 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
6691 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6692 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6693 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
6694 * config/msp430/msp430.c (msp430_callee_copies): Delete.
6695 (TARGET_CALLEE_COPIES): Define to
6696 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6697 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
6698 instead of a mode, type and named flag.
6699 * config/sh/sh.c (sh_callee_copies): Likewise.
6700 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
6701 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6702 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6704 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6706 * target.def (function_arg_advance): Take a function_arg_info instead
6707 of a mode, type and named flag.
6708 * doc/tm.texi: Regenerate.
6709 * targhooks.h (default_function_arg_advance): Take a function_arg_info
6710 instead of a mode, type and named flag.
6711 * targhooks.c (default_function_arg_advance): Likewise.
6712 * calls.c (initialize_argument_information): Update call to
6713 targetm.calls.function_arg_advance.
6714 (emit_library_call_value_1): Likewise.
6715 * dse.c (get_call_args): Likewise.
6716 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6717 * function.c (assign_parms, gimplify_parameters): Likewise.
6718 * var-tracking.c (prepare_call_arguments): Likewise.
6719 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
6720 function_arg_info instead of a mode, type and named flag.
6721 (aarch64_setup_incoming_varargs): Update call accordingly.
6722 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
6723 function_arg_info instead of a mode, type and named flag.
6724 (alpha_setup_incoming_varargs): Update call accordingly.
6725 * config/arc/arc.c (arc_function_arg_advance): Take a
6726 function_arg_info instead of a mode, type and named flag.
6727 (arc_setup_incoming_varargs): Update call accordingly.
6728 * config/arm/arm.c (arm_function_arg_advance): Take a
6729 function_arg_info instead of a mode, type and named flag.
6730 (cmse_func_args_or_return_in_stack): Update call accordingly.
6731 (arm_function_ok_for_sibcall): Likewise.
6732 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6733 * config/avr/avr.c (avr_function_arg_advance): Take a
6734 function_arg_info instead of a mode, type and named flag.
6735 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
6736 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
6737 (c6x_call_saved_register_used): Update call accordingly.
6738 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
6739 function_arg_info instead of a mode, type and named flag.
6740 * config/cris/cris.c (cris_function_arg_advance): Likewise.
6741 * config/csky/csky.c (csky_function_arg_advance): Likewise.
6742 (csky_setup_incoming_varargs): Update call accordingly.
6743 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
6744 function_arg_info instead of a mode, type and named flag.
6745 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
6746 * config/frv/frv.c (frv_function_arg_advance): Likewise.
6747 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
6748 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
6749 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
6750 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
6751 (ix86_setup_incoming_varargs): Update call accordingly.
6752 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
6753 function_arg_info instead of a mode, type and named flag.
6754 (ia64_setup_incoming_varargs): Update call accordingly.
6755 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
6756 function_arg_info instead of a mode, type and named flag.
6757 (iq2000_expand_prologue): Update call accordingly.
6758 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
6759 function_arg_info instead of a mode, type and named flag.
6760 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
6761 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
6762 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
6763 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
6764 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
6766 (microblaze_expand_prologue): Update call accordingly.
6767 * config/mips/mips.c (mips_function_arg_advance): Take a
6768 function_arg_info instead of a mode, type and named flag.
6769 (mips_setup_incoming_varargs): Update call accordingly.
6770 (mips_output_args_xfer): Likewise.
6771 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
6772 function_arg_info instead of a mode, type and named flag.
6773 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
6774 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
6775 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
6776 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
6777 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
6778 (nios2_setup_incoming_varargs): Update call accordingly.
6779 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
6780 function_arg_info instead of a mode, type and named flag.
6781 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
6782 * config/pa/pa.c (pa_function_arg_advance): Likewise.
6783 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
6784 * config/pru/pru.c (pru_function_arg_advance): Likewise.
6785 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
6786 (riscv_setup_incoming_varargs): Update call accordingly.
6787 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
6788 function_arg_info instead of a mode, type and named flag.
6789 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
6791 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
6792 (rs6000_parm_needs_stack): Update call accordingly.
6793 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
6794 instead of a mode, type and named flag.
6795 * config/s390/s390.c (s390_function_arg_advance): Likewise.
6796 (s390_call_saved_register_used): Update call accordingly.
6797 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
6798 instead of a mode, type and named flag.
6799 (sh_output_mi_thunk): Update call accordingly.
6800 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
6801 function_arg_info instead of a mode, type and named flag.
6802 * config/spu/spu.c (spu_function_arg_advance): Likewise.
6803 (spu_setup_incoming_varargs): Update call accordingly.
6804 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
6805 function_arg_info instead of a mode, type and named flag.
6806 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
6807 (tilegx_setup_incoming_varargs): Update call accordingly.
6808 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
6809 function_arg_info instead of a mode, type and named flag.
6810 (tilegx_setup_incoming_varargs): Update call accordingly.
6811 * config/v850/v850.c (v850_function_arg_advance): Take a
6812 function_arg_info instead of a mode, type and named flag.
6813 * config/vax/vax.c (vax_function_arg_advance): Likewise.
6814 * config/visium/visium.c (visium_function_arg_advance): Likewise.
6815 (visium_setup_incoming_varargs): Update call accordingly.
6816 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
6817 function_arg_info instead of a mode, type and named flag.
6819 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6821 * target.def (function_arg, function_incoming_arg): Take a
6822 function_arg_info instead of a mode, tree and named flag.
6823 * doc/tm.texi: Regenerate.
6824 * targhooks.h (default_function_arg): Take a function_arg_info
6825 instead of a mode, tree and named flag.
6826 (default_function_incoming_arg): Likewise.
6827 * targhooks.c (default_function_arg): Likewise.
6828 (default_function_incoming_arg): Likewise.
6829 * calls.h (function_arg_info::end_marker_p): New function.
6830 (function_arg_info::end_marker): Likewise.
6831 * calls.c (prepare_call_address, initialize_argument_information)
6832 (expand_call, emit_library_call_value_1): Update calls to
6833 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
6834 * dse.c: Include calls.h.
6835 (get_call_args): Update call to targetm.calls.function_arg.
6836 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6837 * var-tracking.c (prepare_call_arguments): Likewise.
6838 * function.c (assign_parm_find_entry_rtl): Update call to
6839 targetm.calls.function_incoming_arg.
6840 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
6841 function_arg_info instead of a mode, tree and named flag.
6842 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6843 * config/arc/arc.c (arc_function_arg): Likewise.
6844 * config/arm/arm.c (arm_function_arg): Likewise.
6845 (cmse_func_args_or_return_in_stack): Update call accordingly.
6846 (arm_function_ok_for_sibcall): Likewise.
6847 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6848 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
6849 instead of a mode, tree and named flag.
6850 * config/bfin/bfin.c (bfin_function_arg): Likewise.
6851 * config/c6x/c6x.c (c6x_function_arg): Likewise.
6852 (c6x_call_saved_register_used): Update call accordingly.
6853 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
6854 instead of a mode, tree and named flag.
6855 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
6856 (cris_function_arg_1): Likewise.
6857 * config/csky/csky.c (csky_function_arg): Likewise.
6858 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
6859 * config/fr30/fr30.c (fr30_function_arg): Likewise.
6860 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
6861 (frv_function_arg_1): Likewise.
6862 * config/ft32/ft32.c (ft32_function_arg): Likewise.
6863 * config/gcn/gcn.c (gcn_function_arg): Likewise.
6864 * config/h8300/h8300.c (h8300_function_arg): Likewise.
6865 * config/i386/i386.c (ix86_function_arg): Likewise.
6866 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
6867 (ia64_function_arg_1): Likewise.
6868 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
6869 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
6871 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
6872 instead of a mode, tree and named flag.
6873 * config/m32c/m32c.c (m32c_function_arg): Likewise.
6874 * config/m32r/m32r.c (m32r_function_arg): Likewise.
6875 * config/m68k/m68k.c (m68k_function_arg): Likewise.
6876 * config/mcore/mcore.c (mcore_function_arg): Likewise.
6877 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
6878 (microblaze_expand_prologue): Update call accordingly.
6879 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
6880 instead of a mode, tree and named flag.
6881 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
6882 (mmix_function_arg_1): Likewise.
6883 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
6884 * config/moxie/moxie.c (moxie_function_arg): Likewise.
6885 * config/msp430/msp430.c (msp430_function_arg): Likewise.
6886 * config/nds32/nds32.c (nds32_function_arg): Likewise.
6887 * config/nios2/nios2.c (nios2_function_arg): Likewise.
6888 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
6889 (nvptx_function_incoming_arg): Likewise.
6890 * config/or1k/or1k.c (or1k_function_arg): Likewise.
6891 * config/pa/pa.c (pa_function_arg): Likewise.
6892 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
6893 * config/pru/pru.c (pru_function_arg): Likewise.
6894 * config/riscv/riscv.c (riscv_function_arg): Likewise.
6895 * config/rl78/rl78.c (rl78_function_arg): Likewise.
6896 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
6897 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
6898 (rs6000_parm_needs_stack): Update call accordingly.
6899 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
6900 instead of a mode, tree and named flag.
6901 * config/s390/s390.c (s390_function_arg): Likewise.
6902 (s390_call_saved_register_used): Update call accordingly.
6903 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
6904 instead of a mode, tree and named flag.
6905 (sh_output_mi_thunk): Update call accordingly.
6906 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
6907 (sparc_function_incoming_arg): Take a function_arg_info instead of
6908 a mode, tree and named flag.
6909 * config/spu/spu.c (spu_function_arg): Likewise.
6910 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6911 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
6912 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
6913 * config/v850/v850.c (v850_function_arg): Likewise.
6914 * config/vax/vax.c (vax_function_arg): Likewise.
6915 * config/visium/visium.c (visium_function_arg): Likewise.
6916 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
6917 (xtensa_function_incoming_arg): Likewise.
6919 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6921 * target.def (setup_incoming_varargs): Take a function_arg_info
6922 instead of a mode and tree.
6923 * doc/tm.texi: Regenerate.
6924 * targhooks.h (default_setup_incoming_varargs): Take a
6925 function_arg_info instead of a mode and tree.
6926 * targhooks.c (default_setup_incoming_varargs): Likewise.
6927 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
6928 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
6929 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
6930 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
6931 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
6932 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
6933 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
6934 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
6936 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
6937 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
6938 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
6939 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
6940 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
6941 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
6942 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
6943 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
6944 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
6945 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
6946 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
6947 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
6948 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
6949 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
6950 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
6951 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
6952 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
6953 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
6954 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
6955 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
6956 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
6957 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
6958 * function.c (assign_parms_setup_varargs): Update call to
6959 targetm.calls.setup_incoming_varargs.
6961 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6963 * target.def (pass_by_reference): Take a function_arg_info instead
6964 of a mode, type and named flag.
6965 * doc/tm.texi: Regenerate.
6966 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
6968 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
6969 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
6970 function_arg_info instead of a mode, type and named flag.
6971 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
6972 * calls.h (pass_by_reference): Take a function_arg_info instead of a
6973 mode, type and named flag.
6974 * calls.c (pass_by_reference): Likewise.
6975 (pass_va_arg_by_reference): Update call accordingly.
6976 (initialize_argument_information): Likewise.
6977 (emit_library_call_value_1): Likewise.
6978 * function.c (assign_parm_find_data_types): Likewise.
6979 * var-tracking.c (prepare_call_arguments): Likewise.
6980 * stor-layout.c: Include calls.h.
6981 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
6982 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
6983 function_arg_info instead of a mode, type and named flag.
6984 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
6985 * config/arc/arc.c (arc_pass_by_reference): Likewise.
6986 * config/arm/arm.c (arm_pass_by_reference): Likewise.
6987 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
6988 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
6989 (c6x_call_saved_register_used): Update call to pass_by_reference.
6990 * config/cris/cris.c (cris_pass_by_reference): Take a
6991 function_arg_info instead of a mode, type and named flag.
6992 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
6993 function_arg_info instead of a mode, type and named flag.
6994 (epiphany_arg_partial_bytes): Update call accordingly.
6995 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
6996 function_arg_info instead of a mode, type and named flag.
6997 (ft32_arg_partial_bytes): Update call accordingly.
6998 * config/i386/i386.c (ix86_pass_by_reference): Take a
6999 function_arg_info instead of a mode, type and named flag.
7000 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
7001 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
7002 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
7003 (m32r_return_in_memory): Update call accordingly.
7004 * config/mips/mips.c (mips_pass_by_reference): Take a
7005 function_arg_info instead of a mode, type and named flag.
7006 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
7007 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
7008 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
7009 (moxie_arg_partial_bytes): Update call accordingly.
7010 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
7011 function_arg_info instead of a mode, type and named flag.
7012 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
7013 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
7014 * config/pa/pa.c (pa_pass_by_reference): Likewise.
7015 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
7016 (riscv_return_in_memory): Update call accordingly.
7017 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
7018 function_arg_info instead of a mode, type and named flag.
7019 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
7020 (rs6000_parm_needs_stack): Update call to pass_by_reference.
7021 * config/s390/s390.c (s390_pass_by_reference): Take a
7022 function_arg_info instead of a mode, type and named flag.
7023 (s390_call_saved_register_used): Update call accordingly.
7024 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
7025 instead of a mode, type and named flag.
7026 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
7027 * config/spu/spu.c (spu_pass_by_reference): Likewise.
7028 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
7029 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
7030 * config/v850/v850.c (v850_pass_by_reference): Likewise.
7031 * config/visium/visium.c (visium_pass_by_reference): Likewise.
7033 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7035 * target.def (arg_partial_bytes): Take a function_arg_info instead
7036 of a mode, type and named flag.
7037 * doc/tm.texi: Regenerate.
7038 * target.h (function_arg_info): Declare.
7039 * calls.h (function_arg_info): New class.
7040 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
7041 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
7042 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
7043 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
7044 * calls.c (initialize_argument_information): Update call to
7045 targetm.calls.partial_bytes.
7046 (emit_library_call_value_1): Likewise.
7047 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7048 * function.c (assign_parm_find_entry_rtl): Likewise.
7049 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
7050 function_arg_info instead of a mode, type and named flag.
7051 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
7052 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
7053 (cmse_func_args_or_return_in_stack): Update accordingly.
7054 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
7055 function_arg_info instead of a mode, type and named flag.
7056 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
7057 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
7058 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
7059 * config/fr30/fr30.c: Include calls.h.
7060 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
7061 type and named flag.
7062 * config/frv/frv.c: Include calls.h.
7063 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
7064 type and named flag.
7065 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
7066 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
7067 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
7068 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
7069 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
7070 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
7071 * config/microblaze/microblaze.c (function_arg_partial_bytes):
7073 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
7074 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
7075 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
7076 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
7077 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
7078 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
7079 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
7080 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
7081 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
7082 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
7083 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
7084 (rs6000_parm_needs_stack): Update call accordingly.
7085 * config/sh/sh.c (sh_arg_partial_bytes): Take a
7086 function_arg_info instead of a mode, type and named flag.
7087 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
7088 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
7090 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7092 * calls.h (must_pass_va_arg_in_stack): Declare.
7093 * calls.c (must_pass_va_arg_in_stack): New function.
7094 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
7095 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
7096 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
7098 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7100 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7102 * calls.h (pass_va_arg_by_reference): Declare.
7103 * calls.c (pass_va_arg_by_reference): New function.
7104 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
7105 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
7106 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
7107 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
7108 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
7109 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
7110 (mips_gimplify_va_arg_expr): Likewise.
7111 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
7112 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
7113 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
7114 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
7115 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
7116 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
7117 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
7118 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
7119 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
7120 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7121 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
7123 2019-08-20 Richard Biener <rguenther@suse.de>
7126 * config/i386/i386-features.c (general_scalar_chain::convert_op):
7127 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
7128 (convert_scalars_to_vector): Add timode_p parameter and use it
7129 to guard TImode-only operation.
7130 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
7131 (pass_stv::execute): Pass down timode_p.
7133 2019-08-20 Lili Cui <lili.cui@intel.com>
7135 * common/config/i386/i386-common.c
7136 (processor_names): Add tigerlake and cooperlake.
7137 (processor_alias_table): Add tigerlake and cooperlake.
7138 * config.gcc: Add -march=tigerlake and cooperlake.
7139 * config/i386/driver-i386.c
7140 (host_detect_local_cpu): Detect tigerlake and cooperlake.
7141 Add "has_avx" to classify processor.
7142 * config/i386/i386-builtins.c (processor_model) :
7143 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
7144 (arch_names_table): Add tigerlake and cooperlake.
7145 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
7146 and PROCESSOR_COOPERLAKE.
7147 * config/i386/i386-c.c
7148 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
7149 * config/i386/i386-options.c
7150 (m_TIGERLAKE) : Define.
7151 (m_COOPERLAKE) : Ditto.
7152 (m_CORE_AVX512): Ditto.
7153 (processor_cost_table): Add cascadelake.
7154 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
7155 * config/i386/i386.h
7156 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
7157 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7158 (PTA_MOVDIRI): Ditto.
7159 (PTA_MOVDIR64B): Ditto.
7160 (PTA_COOPERLAKE) : Ditto.
7161 (PTA_TIGERLAKE) : Ditto.
7162 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7163 * doc/extend.texi: Add tigerlake and cooperlake.
7164 * doc/invoke.texi: Add tigerlake and cooperlake.
7166 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
7168 * doc/install.texi (Specific, alpha): Remove note to use
7169 binutils 2.11.2 or later.
7171 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7174 * function.c (assign_parm_find_stack_rtl): Use larger alignment
7177 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
7179 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
7180 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
7181 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
7182 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
7183 * config/aarch64/constraints.md (Dt): New constraint
7184 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
7186 2019-08-19 Richard Biener <rguenther@suse.de>
7188 PR tree-optimization/91403
7189 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
7190 cases we can handle with tail-recursion...
7191 (follow_ssa_edge_expr): ... here. Do so.
7193 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
7196 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
7197 implemented for -fsanitize=kernel-address, and merge check logic
7198 with -fsanitize=address.
7200 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
7202 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
7203 for cpu and machine. Factor 64/32b builtins.
7205 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
7207 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
7208 gone, point to sourceforge.net.
7210 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7212 * doc/ux.texi (User Experience Guidelines): Update reference.
7214 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7216 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
7219 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
7221 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
7222 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
7224 2019-08-16 Martin Sebor <msebor@redhat.com>
7226 * tree.def (TYPE_SIZE): Clarify.
7227 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
7229 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
7231 PR tree-optimization/91109
7232 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
7233 * lra.c (lra): Use lra_need_for_scratch_reg_p.
7234 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
7236 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
7238 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
7239 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
7240 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
7241 (uavg<mode>3_ceil): New expander.
7242 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
7243 mode iterator when creating CONST1_RTX.
7244 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
7245 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
7246 mode iterator for const1_operand predicate.
7248 2019-08-16 Richard Biener <rguenther@suse.de>
7250 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
7251 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
7253 (follow_ssa_edge_in_condition_phi_branch): Likewise.
7254 (analyze_evolution_in_loop): Likewise.
7255 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
7256 (follow_ssa_edge_expr): ... here. Refactor code.
7258 2019-08-16 Richard Biener <rguenther@suse.de>
7261 * config/i386/i386-features.c
7262 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
7264 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7267 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
7268 only if subst_name matches curr_attr string.
7270 2019-08-16 Richard Biener <rguenther@suse.de>
7272 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
7273 stmt at gsi_p, instead replace it with a NOP removed later.
7274 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
7275 that became dead because of that.
7277 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
7279 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
7280 for which we can't represent a range.
7281 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
7283 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
7284 Set VR_UNDEFINED if type is not supported.
7285 * tree-ssanames.c (get_range_info): Pass type to set_varying.
7286 * tree-vrp.c (value_range_base::check): Assert that a varying has
7288 (value_range_base::equal_p): Early bail for undefines.
7289 (value_range_base::set_varying): Accept a type.
7290 (value_range::set_varying): Same.
7291 (value_range_base::type): VARYING can have a type, while UNDEFINE
7293 (value_range_base::dump): Print type for VARYING nodes.
7294 (value_range_base::set): Add type to VARYING.
7295 (extract_range_from_multiplicative_op): Pass type to set_varying.
7296 (extract_range_from_binary_expr): Same.
7297 (value_range_base::intersect_helper): Same.
7298 (value_range_base::union_helper): Same.
7299 (value_range_base::normalize_symbolics): Same.
7300 (determine_value_range_1): Same.
7301 * tree-vrp.h (class value_range_base): Add type to set_varying.
7302 Add prototype for dump(void).
7303 Add prototype for supports_type_p.
7304 (class value_range): Add type to set_varying.
7305 Add prototype for dump(void).
7306 * vr-values.c (set_value_range_to_truthvalue): Pass type to
7308 (vr_values::get_lattice_entry): Set varying even if propagation
7310 Pass type to set_varying.
7311 (vr_values::get_value_range): Remove vr_const_varying.
7312 Reallocate the lattice if needed.
7313 (vr_values::update_value_range): Pass type to set_varying.
7314 (vr_values::extract_range_for_var_from_comparison_expr): Same.
7315 (vr_values::extract_range_from_binary_expr): Same.
7316 (vr_values::extract_range_from_unary_expr): Same.
7317 (vr_values::extract_range_from_cond_expr): Same.
7318 (vr_values::check_for_binary_op_overflow): Same.
7319 (vr_values::extract_range_basic): Same.
7320 (vr_values::extract_range_from_assignment): Same.
7321 (vr_values::vr_values): Increase size of num_vr_values.
7322 (vr_values::extract_range_from_phi_node): Pass type to
7325 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
7328 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
7329 for costs of hard register moves.
7330 (ix86_register_move_cost): Likewise.
7331 * config/i386/i386.h (processor_costs): Move costs of hard
7332 register moves to hard_register. Add int_load, int_store,
7333 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7334 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
7335 for costs of RTL expressions.
7336 * config/i386/x86-tune-costs.h: Move costs of hard register
7337 moves to hard_register. Duplicate int_load, int_store,
7338 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7339 sse_load, sse_store for costs of RTL expressions.
7341 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7343 * target.def (setup_incoming_vararg_bounds): Remove.
7344 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
7345 * doc/tm.texi: Regenerate.
7346 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
7347 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
7348 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
7349 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
7351 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7353 MSP430: Fix lines over 80 characters long in
7354 config/msp430/*.{c,h} files
7356 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
7357 specifier in string.
7358 (msp430_select_hwmult_lib): Split line more than 80 characters long.
7359 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
7360 redundant old comment.
7361 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
7362 Split line more than 80 characters long.
7363 * config/msp430/msp430.c (msp430_option_override): Likewise.
7364 (msp430_return_in_memory): Likewise.
7365 (msp430_gimplify_va_arg_expr): Likewise.
7366 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
7367 (msp430_legitimate_constant): Likewise.
7368 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
7369 (msp430_attr): Likewise.
7370 (msp430_data_attr): Likewise.
7371 (msp430_start_function): Likewise.
7372 (gen_prefix): Likewise.
7373 (msp430_init_sections): Likewise.
7374 (msp430_select_section): Likewise.
7375 (msp430_function_section): Likewise.
7376 (msp430_unique_section): Likewise.
7377 (msp430_output_aligned_decl_common): Likewise.
7378 (msp430_do_not_relax_short_jumps): Likewise.
7379 (msp430_init_builtins): Likewise.
7380 (msp430_expand_delay_cycles): Likewise.
7381 (msp430_expand_prologue): Likewise.
7382 (msp430_expand_epilogue): Likewise.
7383 (msp430_expand_helper): Likewise.
7384 (msp430_split_movsi): Likewise.
7385 (msp430_print_operand): Likewise.
7386 (msp430_return_addr_rtx): Likewise.
7387 (msp430x_extendhisi): Likewise.
7388 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
7389 (ASM_SPEC): Likewise.
7390 Remove very obvious comments.
7391 (LIB_SPEC): Split line more than 80 characters long.
7392 (EH_RETURN_HANDLER_RTX): Likewise.
7393 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7395 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7397 MSP430: Fix whitespace errors and incorrect indentation in
7398 config/msp430/*.{c,h} files
7400 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
7401 (msp430_select_hwmult_lib): Likewise.
7402 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
7403 (msp430_extract_mcu_data): Likewise.
7404 (struct t_msp430_mcu_data): Likewise.
7405 * config/msp430/msp430.c (struct machine_function): Remove whitespace
7406 before left square bracket.
7407 (msp430_option_override): Fix indentation.
7408 (msp430_hard_regno_nregs_with_padding): Likewise.
7409 (msp430_initial_elimination_offset): Likewise.
7410 (msp430_special_register_convention_p): Remove whitespace before left
7411 square bracket and after exclamation mark.
7412 (msp430_evaluate_arg): Likewise.
7413 (msp430_callee_copies): Fix indentation.
7414 (msp430_gimplify_va_arg_expr): Likewise.
7415 (msp430_function_arg_advance): Remove whitespace before left square
7417 (reg_ok_for_addr): Likewise.
7418 (msp430_preserve_reg_p): Likewise.
7419 (msp430_compute_frame_info): Likewise.
7420 (msp430_asm_output_addr_const_extra): Add space between function name
7421 and open parenthesis.
7422 (has_section_name): Fix indentation.
7423 (msp430_attr): Remove trailing whitespace.
7424 (msp430_section_attr): Likewise.
7425 (msp430_data_attr): Likewise.
7426 (struct msp430_attribute_table): Fix comment and whitespace.
7427 (msp430_start_function): Remove whitespace before left square bracket.
7428 Add space between function name and open parenthesis.
7429 (msp430_select_section): Remove trailing whitespace.
7430 (msp430_section_type_flags): Remove trailing whitespace.
7431 (msp430_unique_section): Remove space before closing parenthesis.
7432 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
7433 (msp430_builtins): Remove whitespace before left square bracket.
7434 (msp430_init_builtins): Fix indentation.
7435 (msp430_expand_prologue): Remove whitespace before left square bracket.
7436 Remove space before closing parenthesis.
7437 (msp430_expand_epilogue): Remove whitespace before left square bracket.
7438 (msp430_split_movsi): Remove space before closing parenthesis.
7439 (helper_function_name_mappings): Fix indentation.
7440 (msp430_use_f5_series_hwmult): Fix whitespace.
7441 (use_32bit_hwmult): Likewise.
7442 (msp430_no_hwmult): Likewise.
7443 (msp430_output_labelref): Remove whitespace before left square bracket.
7444 (msp430_print_operand_raw): Likewise.
7445 (msp430_print_operand_addr): Likewise.
7446 (msp430_print_operand): Add two spaces after '.' in comment.
7447 Fix trailing whitespace.
7448 (msp430x_extendhisi): Fix indentation.
7449 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
7451 (PC_REGNUM): Likewise.
7452 (STACK_POINTER_REGNUM): Likewise.
7453 (CC_REGNUM): Likewise.
7455 2019-08-15 Richard Biener <rguenther@suse.de>
7458 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
7460 (general_scalar_chain::make_vector_copies): Use it.
7462 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
7464 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
7466 2019-08-15 Martin Liska <mliska@suse.cz>
7468 * tree-ssa-dce.c (propagate_necessity): We can't reach now
7469 operators with no arguments.
7470 (eliminate_unnecessary_stmts): Likewise here.
7472 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
7474 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
7475 <case COMPARE>: Revert 2019-08-14 change.
7476 (convertible_comparison_p): Revert 2019-08-14 change. Return false
7477 for (TARGET_64BIT || mode != DImode).
7479 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
7481 * tree-vrp.c (value_range_base::set): Merge in code from
7482 value_range_base::set_and_canonicalize.
7483 Enforce canonicalization at set time.
7484 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
7485 (value_range_base::set_undefined): Inline call to set().
7486 (value_range_base::set_varying): Same.
7487 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
7488 (vrp_val_max): New argument handle_pointers.
7489 (vrp_val_min): Same.
7490 (ranges_from_anti_range): Same.
7491 (extract_range_into_wide_ints): Use tree argument instead of sign
7493 (extract_range_from_multiplicative_op): Take in tree type instead
7494 of precision and sign. Adapt function for canonicalized ranges.
7495 (extract_range_from_binary_expr): Pass type to
7496 extract_range_from_multiplicative_op.
7497 Adapt for canonicalized ranges.
7498 (extract_range_from_unary_expr): Same.
7499 (value_range_base::intersect_helper): Adjust for canonicalized
7501 (value_range_base::union_helper): Same.
7502 (value_range_base::normalize_symbolics): New.
7503 * tree-vrp.h (class value_range_base): Remove
7504 set_and_canonicalize.
7505 New prototype for normalize_symbolics.
7506 (class value_range): Remove set_and_canonicalize.
7507 (vrp_val_min): Adjust prototype.
7508 (vrp_val_max): Same.
7510 (vr_values::extract_range_for_var_from_comparison_expr): Call set
7511 instead of set_and_canonicalize.
7513 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7516 * tree-vect-stmts.c (vectorizable_call): Check that the function
7517 is a BUILT_IN_MD function before passing it to
7518 targetm.vectorize.builtin_md_vectorized_function.
7520 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7522 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
7523 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
7524 (aarch64_select_early_remat_modes): Use it.
7526 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7528 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
7529 16 for SVE predicates even if they are fixed-length.
7531 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7533 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
7534 operand order match the MOV /Z alias.
7536 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7538 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
7539 the vector pattern as an aarch64_svpattern argument. Update the
7540 overloaded caller accordingly.
7541 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
7542 (aarch64_output_sve_vector_inc_dec): Likewise.
7544 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7546 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
7547 multiplication case, try to compute VG * (lowest set bit) directly
7548 rather than always basing the multiplication on VG. Use
7549 expand_mult for the multiplication if we can.
7551 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7553 * config/aarch64/aarch64-protos.h
7554 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
7555 (aarch64_sve_inc_dec_immediate_p): Rename to...
7556 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7557 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
7558 (aarch64_output_sve_scalar_inc_dec): Declare.
7559 (aarch64_output_sve_inc_dec_immediate): Rename to...
7560 (aarch64_output_sve_vector_inc_dec): ...this.
7561 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
7562 (aarch64_output_sve_scalar_inc_dec): New functions.
7563 (aarch64_output_sve_addvl_addpl): Remove the base and offset
7564 arguments. Only handle true ADDVL and ADDPL instructions;
7565 don't emit an INC or DEC.
7566 (aarch64_sve_inc_dec_immediate_p): Rename to...
7567 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7568 (aarch64_output_sve_inc_dec_immediate): Rename to...
7569 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
7570 aarch64_sve_vector_inc_dec_immediate_p.
7571 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
7572 (aarch64_sve_plus_immediate): New predicates.
7573 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
7574 rather than aarch64_sve_addvl_addpl_immediate.
7575 (aarch64_sve_inc_dec_immediate): Rename to...
7576 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
7577 aarch64_sve_vector_inc_dec_immediate_p.
7578 (aarch64_sve_add_operand): Update accordingly.
7579 * config/aarch64/constraints.md (Uai): New constraint.
7580 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
7581 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
7582 operand into a register if it satisfies aarch64_sve_plus_immediate.
7583 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
7584 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
7585 * config/aarch64/aarch64-sve.md (add<mode>3): Call
7586 aarch64_output_sve_vector_inc_dec instead of
7587 aarch64_output_sve_inc_dec_immediate.
7589 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7591 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
7592 (UNSPEC_REVW): New constants.
7593 (elem_bits): New mode attribute.
7594 (SVE_INT_UNARY): New int iterator.
7595 (optab): Handle UNSPEC_REV[BHW].
7596 (sve_int_op): New int attribute.
7597 (min_elem_bits): Handle VNx16QI and the predicate modes.
7598 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
7599 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
7600 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
7601 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
7602 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
7603 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
7604 unspecs based on the total width of the reversed data.
7605 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
7606 reinterpret followed by a subreg on big-endian targets.
7608 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7609 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7611 * config/aarch64/aarch64-sve.md
7612 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
7613 alternatives in which one of the inputs is in the same register
7616 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7618 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
7619 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
7621 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7623 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
7624 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
7626 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7627 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7629 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
7630 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
7631 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
7633 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7634 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7636 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
7637 Add an alternative that uses reversed shifts.
7639 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7641 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
7644 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7646 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
7647 a commutativity marker.
7649 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7650 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7652 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
7653 (aarch64_prepare_sve_cond_int_fma): Declare.
7654 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
7655 (aarch64_prepare_sve_int_fma): New functions.
7656 (aarch64_prepare_sve_cond_int_fma): Likewise.
7657 * config/aarch64/aarch64-sve.md
7658 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
7659 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
7660 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
7661 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
7662 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
7663 (*madd<mode>): Rename to...
7664 (*fma<mode>4): ...this.
7665 (*msub<mode>): Rename to...
7666 (*fnma<mode>4): ...this.
7668 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7669 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7671 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
7672 Print 2.0 naturally.
7673 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
7674 * config/aarch64/predicates.md
7675 (aarch64_sve_float_negated_arith_immediate): New predicate,
7676 renamed from aarch64_sve_float_arith_with_sub_immediate.
7677 (aarch64_sve_float_arith_with_sub_immediate): Test for both
7678 positive and negative constants.
7679 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
7680 or an aarch64_sve_float_arith_with_sub_immediate.
7681 * config/aarch64/constraints.md (vsN): Use
7682 aarch64_sve_float_negated_arith_immediate.
7683 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
7685 (sve_pred_fp_rhs2_immediate): New int attribute.
7686 * config/aarch64/aarch64-sve.md
7687 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
7688 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
7689 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
7690 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
7691 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
7692 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
7694 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7695 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7697 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
7698 (*aarch64_cond_abd<SVE_F:mode>_3)
7699 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
7701 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7702 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7704 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
7705 (*aarch64_cond_<su>abd<mode>_any): New patterns.
7707 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7708 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7710 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
7711 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
7712 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
7713 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
7715 * optabs.h (create_convert_operand_from): Expand comment.
7716 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
7717 when mapping scalar rtxes to vector operands.
7718 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
7719 ashiftrt and lshiftrt.
7720 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
7721 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
7722 (*cond_<optab><mode>_any_const): New patterns.
7724 2019-08-15 Martin Liska <mliska@suse.cz>
7727 * cgraph.c (cgraph_node::remove): When setting
7728 n->origin = NULL for all nested functions, reset
7731 2019-08-15 Martin Liska <mliska@suse.cz>
7733 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
7736 2019-08-15 Martin Liska <mliska@suse.cz>
7739 * passes.c (order): Remove.
7740 (uid_hash_t): Likewise).
7741 (remove_cgraph_node_from_order): Remove from set
7742 of pointers (cgraph_node *).
7743 (insert_cgraph_node_to_order): New.
7744 (duplicate_cgraph_node_to_order): New.
7745 (do_per_function_toporder): Register all 3 cgraph hooks.
7746 Skip removed_nodes now as we know about all of them.
7748 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
7750 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
7751 <case E_V8QImode>: Use vector_set path for
7752 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7753 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
7754 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7756 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7758 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
7760 2019-08-14 Martin Sebor <msebor@redhat.com>
7762 PR tree-optimization/91294
7763 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
7764 source length as exact.
7766 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
7768 * doc/extend.texi: Add "noinit" attribute documentation.
7769 * doc/sourcebuild.texi: Add noinit effective target documentation.
7770 * varasm.c (default_section_type_flags): Add support for "noinit"
7772 (default_elf_select_section): Add support for "noinit" attribute.
7773 * config/msp430/msp430.c (msp430_attribute_table): Remove
7776 2019-08-14 Richard Biener <rguenther@suse.de>
7777 Uroš Bizjak <ubizjak@gmail.com>
7780 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
7782 (scalar_chain::smode): New member.
7783 (scalar_chain::vmode): Likewise.
7784 (dimode_scalar_chain): Rename to...
7785 (general_scalar_chain): ... this.
7786 (general_scalar_chain::general_scalar_chain): Take mode arguments.
7787 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
7788 base with TImode and V1TImode.
7789 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
7790 (general_scalar_chain::vector_const_cost): Adjust for SImode
7792 (general_scalar_chain::compute_convert_gain): Likewise. Add
7793 {S,U}{MIN,MAX} support.
7794 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
7795 (general_scalar_chain::make_vector_copies): Likewise. Handle
7796 non-DImode chains appropriately.
7797 (general_scalar_chain::convert_reg): Likewise.
7798 (general_scalar_chain::convert_op): Likewise.
7799 (general_scalar_chain::convert_insn): Likewise. Add
7800 fatal_insn_not_found if the result is not recognized.
7801 (convertible_comparison_p): Pass in the scalar mode and use that.
7802 (general_scalar_to_vector_candidate_p): Likewise. Rename from
7803 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
7804 (scalar_to_vector_candidate_p): Remove by inlining into single
7806 (general_remove_non_convertible_regs): Rename from
7807 dimode_remove_non_convertible_regs.
7808 (remove_non_convertible_regs): Remove by inlining into single caller.
7809 (convert_scalars_to_vector): Handle SImode and DImode chains
7810 in addition to TImode chains.
7811 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
7812 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
7813 (*<maxmin>di3_doubleword): Likewise.
7815 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7816 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7818 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
7819 (*cond_bic<mode>_any): New patterns.
7821 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7823 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
7824 take the equivalent mask, as well as a bit count.
7825 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
7826 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
7827 (aarch64_sve_pred_and_operand): New predicates.
7828 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
7830 * config/aarch64/aarch64-sve.md
7831 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
7832 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
7834 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7836 * config/aarch64/aarch64-sve.md
7837 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7838 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
7841 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7842 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7844 * config/aarch64/aarch64-sve.md
7845 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
7846 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
7848 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7849 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7851 * config/aarch64/aarch64-sve.md
7852 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
7853 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
7855 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7857 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
7858 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
7861 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7862 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7864 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
7866 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7867 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7869 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
7870 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
7871 (aarch64_print_operand): Add support for %I.
7872 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
7873 Bitcast floating-point constants to the corresponding integer constant.
7874 (aarch64_float_const_representable_p): Handle vectors as well
7876 (aarch64_expand_sve_vcond): Make sure that the operands are valid
7877 for the new vcond_mask_<mode><vpred> expander.
7878 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
7879 test aarch64_float_const_representable_p.
7880 (aarch64_sve_reg_or_dup_imm): New predicate.
7881 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
7882 gen_vcond_mask_<mode><vpred> instead of
7883 gen_aarch64_sve_dup<mode>_const.
7884 (vcond_mask_<mode><vpred>): Turn into a define_expand that
7885 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
7886 for operands 1 and 2 respectively. Force operand 2 into a
7887 register if operand 1 is a register. Fold old define_insn...
7888 (aarch64_sve_dup<mode>_const): ...and this define_insn...
7889 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
7890 floating-point constants that can be moved as integers. Add
7891 alternatives for MOV /M and FMOV /M.
7892 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
7893 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
7894 1 and 2 respectively.
7895 * config/aarch64/constraints.md (Ufc): Handle vectors as well
7897 (vss): New constraint.
7899 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7901 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
7902 (aarch64_sve_float_maxmin_operand): New predicates.
7903 * config/aarch64/constraints.md (vsB): New constraint.
7905 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
7906 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
7908 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
7909 Use aarch64_sve_float_maxmin_operand for operand 2.
7910 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
7911 Add alternatives for the constant forms.
7913 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7915 * config/aarch64/constraints.md (vsb): New constraint.
7916 (vsm): Generalize description.
7917 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
7919 (sve_imm_con): Handle smax, smin, umax and umin.
7920 (sve_imm_prefix): New code attribute.
7921 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
7922 (aarch64_sve_vsb_operand): New predicates.
7923 (aarch64_sve_mul_immediate): Rename to...
7924 (aarch64_sve_vsm_immediate): ...this.
7925 (aarch64_sve_mul_operand): Rename to...
7926 (aarch64_sve_vsm_operand): ...this.
7927 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
7928 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
7929 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
7930 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
7931 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
7932 add movprfx support for the immediate alternatives.
7933 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
7935 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
7938 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7940 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
7941 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
7942 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
7944 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7946 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
7947 (optab, sve_int_op): Handle them.
7948 * config/aarch64/aarch64-sve.md: Expand comment.
7950 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7952 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
7953 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
7954 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
7956 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7958 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
7959 (aarch64_expand_sve_const_pred_trn): New functions.
7960 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
7961 use the above functions when the parameter is true.
7962 (aarch64_expand_sve_const_pred): Update call accordingly.
7963 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
7965 (@aarch64_sve_<perm_insn><mode>): ...this.
7967 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7969 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
7971 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
7972 (aarch64_sve_emit_int_cmp): New functions.
7973 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
7974 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
7975 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
7976 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
7977 (UNSPEC_PRED_Z): New unspec.
7978 (set_clobber_cc_nzc): Delete.
7979 * config/aarch64/aarch64-sve.md: Add a block comment about
7981 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
7982 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
7983 the old pattern with that name. Use UNSPEC_PRED_Z instead of
7985 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
7986 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
7987 check for compatible predicates.
7988 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
7989 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
7990 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
7993 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7995 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
7996 * config/aarch64/aarch64-sve.md: Add a section describing it.
7997 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
7998 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
7999 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
8000 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
8001 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
8002 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
8003 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
8004 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
8005 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
8006 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
8007 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
8008 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
8009 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
8010 (aarch64_evpc_rev_local): Update accordingly.
8012 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8014 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
8016 (SVE_BHSI, SVE_SDI): Tweak comment.
8017 (SVE_HSDI): Likewise. Fix definition.
8018 (SVE_SDF): New mode iterator.
8019 (elem_bits): New mode attribute.
8020 (SVE_COND_FCVT): New int iterator.
8021 * config/aarch64/aarch64-sve.md
8022 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
8023 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
8024 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
8025 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
8026 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
8027 ...these new patterns.
8028 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
8029 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
8030 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
8032 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
8033 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
8034 ...these new patterns.
8035 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
8036 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
8037 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
8038 ...this new pattern.
8039 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
8040 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
8041 ...this new pattern.
8042 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
8044 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8046 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
8047 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
8048 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
8050 (optab, su): Handle them.
8051 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
8052 * config/aarch64/aarch64-sve.md
8053 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
8054 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
8055 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
8056 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
8057 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
8058 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
8059 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
8060 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
8061 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
8063 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
8064 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
8065 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
8066 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
8067 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
8068 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
8069 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
8070 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
8071 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
8072 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
8073 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
8074 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
8075 of UNSPEC_FLOAT_CONVERT.
8076 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
8077 aarch64_sve_extend<mode><Vwide>2.
8079 2019-08-14 Richard Biener <rguenther@suse.de>
8082 * config/i386/i386-features.c
8083 (dimode_scalar_chain::compute_convert_gain): Compute and dump
8084 individual instruction gain. Fix reg-reg copy GRP cost. Use
8085 ix86_cost->sse_op for vector instruction costs.
8087 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8089 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
8090 (cmp_op): Handle it.
8091 (SVE_COND_FP_CMP): Rename to...
8092 (SVE_COND_FP_CMP_I0): ...this.
8093 (SVE_FP_CMP): Remove.
8094 * config/aarch64/aarch64-sve.md
8095 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
8096 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
8097 using unspecs to represent the comparison.
8098 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
8099 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
8101 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
8102 (aarch64_unspec_cond_code): Move after integer code. Handle
8104 (aarch64_emit_sve_predicated_cond): Replace with...
8105 (aarch64_emit_sve_fp_cond): ...this new function.
8106 (aarch64_emit_sve_or_conds): Replace with...
8107 (aarch64_emit_sve_or_fp_conds): ...this new function.
8108 (aarch64_emit_sve_inverted_cond): Replace with...
8109 (aarch64_emit_sve_invert_fp_cond): ...this new function.
8110 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
8112 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8114 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
8115 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
8116 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
8117 SVE_HSD instead of SVE_SD.
8119 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8120 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8122 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
8124 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
8126 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
8127 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
8128 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
8129 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
8130 (*div<SVE_F:mode>3): Generalize to...
8131 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
8133 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8134 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8136 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
8138 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
8140 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
8142 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
8144 * config/aarch64/aarch64-sve.md: Add a block comment about the
8145 handling of predicated FP operations.
8146 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
8147 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
8148 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8149 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
8150 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
8152 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
8153 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
8155 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
8156 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
8157 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
8158 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
8159 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
8160 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8161 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8162 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
8163 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
8164 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
8165 strictness operands. Use aarch64_sve_pred_dominates_p to check
8166 whether the predicate on the conditional operation is suitable
8167 for merging. Split patterns into the canonical equal-predicate form.
8168 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
8169 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
8171 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8172 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8174 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
8175 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
8176 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
8178 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
8179 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
8182 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8183 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8185 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
8186 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
8187 actually has, rather than relying on REG_EQUAL notes.
8188 Make the insn operand order match the SVE operand order.
8189 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
8190 the SVE operand order.
8192 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8194 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
8195 (aarch64_emit_set_immediate): Likewise.
8196 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
8197 (aarch64_pfalse_reg): Likewise.
8198 (aarch64_convert_sve_data_to_pred): New function.
8199 (aarch64_sve_move_pred_via_while): Take an optional target register
8200 and the required register mode.
8201 (aarch64_expand_sve_const_pred_1): New function.
8202 (aarch64_expand_sve_const_pred): Likewise.
8203 (aarch64_expand_mov_immediate): Build an all-true predicate
8204 if the significant bits of the immediate are all true. Use
8205 aarch64_expand_sve_const_pred for all compile-time predicate constants.
8206 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
8207 before register allocation.
8208 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
8209 a VNx16BI PTRUE when splitting the memory alternative.
8210 (vec_duplicate<mode>): Update accordingly.
8211 (*pred_cmp<cmp_op><mode>): Rename to...
8212 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
8214 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8216 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
8217 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
8218 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
8219 (UNSPEC_PTEST): New unspec.
8220 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
8221 * config/aarch64/iterators.md (data_bytes): New mode attribute.
8222 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
8223 * config/aarch64/aarch64-sve.md: Add a new section describing the
8224 handling of UNSPEC_PTEST.
8225 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
8226 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
8227 (ptest_ptrue<mode>): Replace with...
8228 (aarch64_ptest<mode>): ...this new pattern.
8229 (cbranch<mode>4): Update after above changes.
8230 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
8232 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
8233 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
8234 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
8236 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8239 * builtins.c (builtin_with_linkage_p): New function.
8240 * builtins.h (builtin_with_linkage_p): New function.
8241 * symtab.c (write_symbol): Remove redundant assert.
8242 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
8243 Remove FIXME and use builtin_with_linkage_p.
8245 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8248 * tree-core.h (function_decl::function_code): Change type to
8250 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
8251 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
8252 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
8253 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
8255 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
8256 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
8257 (fndecl_built_in_p): Change the type of the "name" argument to
8259 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
8260 after check for DECL_BUILT_IN_CLASS.
8261 * cgraphclones.c (build_function_decl_skip_args): Use
8262 set_decl_built_in_function.
8263 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
8264 * ipa-split.c (split_function): Likewise.
8265 * langhooks.c (add_builtin_function_common): Likewise.
8266 * omp-simd-clone.c (simd_clone_create): Likewise.
8267 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
8268 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
8269 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
8271 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
8272 instead of DECL_FUNCTION_CODE.
8273 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
8274 instead of DECL_FUNCTION_CODE.
8275 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
8276 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
8277 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
8278 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
8279 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
8280 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
8281 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
8282 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
8283 (alpha_gimple_fold_builtin): Likewise.
8284 * config/arc/arc.c (arc_expand_builtin): Likewise.
8285 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
8286 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
8287 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
8288 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
8289 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
8290 * config/frv/frv.c (frv_expand_builtin): Likewise.
8291 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
8292 (gcn_expand_builtin): Likewise.
8293 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
8294 (fold_builtin_cpu): Likewise.
8295 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
8296 * config/i386/i386.c (ix86_fold_builtin): Likewise.
8297 (ix86_gimple_fold_builtin): Likewise.
8298 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
8299 (ia64_expand_builtin): Likewise.
8300 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
8301 * config/mips/mips.c (mips_expand_builtin): Likewise.
8302 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
8303 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
8304 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
8305 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
8306 * config/pa/pa.c (pa_expand_builtin): Likewise.
8307 * config/pru/pru.c (pru_expand_builtin): Likewise.
8308 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
8309 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8311 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
8312 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
8313 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
8314 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
8315 (rs6000_builtin_reciprocal): Likewise.
8316 * config/rx/rx.c (rx_expand_builtin): Likewise.
8317 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
8318 * config/s390/s390.c (s390_expand_builtin): Likewise.
8319 * config/sh/sh.c (sh_expand_builtin): Likewise.
8320 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
8321 (sparc_fold_builtin): Likewise.
8322 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
8323 * config/spu/spu.c (spu_expand_builtin): Likewise.
8324 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
8325 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
8326 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
8327 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8328 (xtensa_expand_builtin): Likewise.
8330 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8333 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
8334 before the DECL_FUNCTION_CODE.
8335 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
8336 to check for a BUILT_IN_ALLOCA call.
8337 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
8338 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
8339 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
8340 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8341 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
8342 for BUILT_IN_NORMAL functions.
8343 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
8344 test for BUILT_IN_TM_ABORT.
8345 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
8346 to check for a BUILT_IN_STACK_RESTORE call.
8347 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
8348 * tree-ssa-threadedge.c
8349 (record_temporary_equivalences_from_stmts_at_dest): Check for a
8350 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
8351 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
8352 test for a BUILT_IN_NORMAL call instead of a negative test for
8353 an internal function call.
8355 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8357 * tree.h (build_vector_a_then_b): Declare.
8358 * tree.c (build_vector_a_then_b): New function.
8359 * fold-const-call.c (fold_while_ult): Likewise.
8360 (fold_const_call): Use it to handle IFN_WHILE_ULT.
8361 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
8362 (aarch64_svpattern): New enum.
8363 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
8364 constants through aarch64_expand_mov_immediate.
8365 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
8366 than general_operand as the predicate for operand 1.
8367 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
8368 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
8370 (simd_immediate_info::simd_immediate_info): New overload that
8371 takes a scalar_int_mode and an svpattern.
8372 (simd_immediate_info::u): Add a "pattern" field.
8373 (svpattern_token): New function.
8374 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
8375 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
8376 (aarch64_sve_move_pred_via_while): New functions.
8377 (aarch64_expand_mov_immediate): Try using
8378 aarch64_sve_move_pred_via_while for predicates that contain N ones
8379 followed by M zeros but that do not correspond to a VLnnn pattern.
8380 (aarch64_sve_pred_valid_immediate): New function.
8381 (aarch64_simd_valid_immediate): Use it instead of dealing directly
8382 with PTRUE and PFALSE.
8383 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
8386 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
8388 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
8390 (darwin_override_options): Likewise.
8391 * config/darwin.h: Likewise.
8392 * config/darwin.opt: Likewise.
8393 * config/i386/i386.c (output_pic_addr_const): Likewise.
8394 * config/rs6000/darwin.h: Likewise.
8395 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
8396 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
8397 ... this TARGET_MACHO_SYMBOL_STUBS.
8398 (FUNCTION_PROFILER):Likewise.
8399 * config/i386/i386.h: Likewise.
8401 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8403 * config/i386/i386-expand.c (ix86_expand_vector_extract)
8404 <case E_V2SImode>: Use vec_extr path for
8405 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8406 <case E_V8QImode>: Ditto.
8407 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
8408 Use SWI48 mode iterator. Use %k to output operand 0.
8409 (*mmx_pextrw): New insn pattern.
8410 (*mmx_pextrb): Ditto.
8411 (*mmx_pextrb_zext): Ditto.
8413 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
8415 * target.def (libc_has_function, libc_has_fast_function): Improve
8416 documentation strings.
8417 * doc/tm.texi: Regenerate.
8419 2019-08-13 Caroline Tice <cmtice@google.com>
8422 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
8423 vtv_end.o or vtv_end_preinit.o files if !static.
8425 2019-08-13 Olivier Hainque <hainque@adacore.com>
8427 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
8429 2019-08-13 Olivier Hainque <hainque@adacore.com>
8431 * rtlanal.c (tablejump_casesi_pattern): New function, to
8432 determine if a tablejump insn is a casesi dispatcher. Extracted
8433 from patch_jump_insn.
8434 * rtl.h (tablejump_casesi_pattern): Declare.
8435 * cfgrtl.c (patch_jump_insn): Use it.
8436 * dwarf2cfi.c (create_trace_edges): Use it.
8438 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8441 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
8442 operand is larger than a long int.
8444 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8446 * machmode.h (opt_mode::else_mode): New function.
8447 (opt_mode::else_blk): Use it.
8448 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
8449 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
8450 (aarch64_gen_stepped_int_parallel): Likewise.
8451 (aarch64_stepped_int_parallel_p): Likewise.
8452 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8454 * config/aarch64/aarch64.c
8455 (aarch64_expand_sve_widened_duplicate): Delete.
8456 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
8457 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
8458 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8459 argument. Use early returns in the !CONST_INT_P handling.
8460 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
8461 than handling some inline.
8462 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
8464 (aarch64_simd_container_mode): ...here.
8465 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
8466 (aarch64_sve_ld1rq_operand_p): New functions.
8467 * config/aarch64/predicates.md (descending_int_parallel)
8468 (aarch64_sve_ld1rq_operand): New predicates.
8469 * config/aarch64/constraints.md (UtQ): New constraint.
8470 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
8471 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
8472 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
8473 (@aarch64_sve_reinterpret<mode>): New expander.
8474 (*aarch64_sve_reinterpret<mode>): New pattern.
8475 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
8476 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
8477 (*sve_ld1rq<Vesize>): Replace with...
8478 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
8480 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8482 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
8485 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8487 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
8488 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
8489 (msp430_check_path_for_devices): New.
8490 (parse_devices_csv_1): New.
8491 (parse_devices_csv): New.
8492 (msp430_extract_mcu_data): Try to find devices.csv and search for the
8493 MCU data in devices.csv before using the hard-coded data.
8494 Warn if devices.csv isn't found and the MCU wasn't found in the
8495 hard-coded data either.
8496 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
8497 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
8498 Search for devices.csv on -I and -L paths.
8499 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
8500 msp430_set_driver_var.
8501 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
8503 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
8504 searched for devices.csv.
8505 (mwarn-devices-csv): Document option.
8507 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8509 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
8510 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
8511 Use a single Dn alternative instead of separate Dz and Dm
8512 alternatives. Use aarch64_output_sve_move_immediate.
8513 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
8515 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
8517 (aarch64_output_sve_mov_immediate): Handle predicate modes.
8518 (aarch64_output_ptrue): Delete.
8520 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8522 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
8524 (simd_immediate_info::value, simd_immediate_info::step)
8525 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
8527 (simd_immediate_info::u): ...this new union.
8528 (simd_immediate_info::simd_immediate_info): Update accordingly.
8529 (aarch64_output_simd_mov_immediate): Likewise.
8530 (aarch64_output_sve_mov_immediate): Likewise.
8532 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8534 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
8536 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
8537 (msp430_select_cpu): New spec function.
8538 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
8540 * config/msp430/msp430-devices.c: New file.
8541 * config/msp430/msp430-devices.h: New file.
8542 * config/msp430/msp430.c: Remove msp430_mcu_data.
8543 (msp430_option_override): Use msp430_extract_mcu_data to extract
8545 (msp430_use_f5_series_hwmult): Likewise.
8546 (use_32bit_hwmult): Likewise.
8547 (msp430_no_hwmult): Likewise.
8548 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
8550 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
8552 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
8553 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
8554 Remove hard-coded MCU multilib data.
8556 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8558 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
8559 based on the mode instead of testing properties of it.
8561 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8563 * doc/md.texi: Document the x and y constraints for AArch64.
8564 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
8565 (FP_LO8_REGS): New reg_class.
8566 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
8567 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
8568 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
8569 * config/aarch64/predicates.md (aarch64_simd_register): Use
8570 FP_REGNUM_P instead of checking the classes manually.
8571 * config/aarch64/constraints.md (y): New constraint.
8573 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8575 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
8576 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
8577 * config/aarch64/aarch64-simd.md
8578 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
8579 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
8580 from the asm template.
8581 * config/aarch64/aarch64-sve.md
8582 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
8583 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
8584 from the asm template.
8585 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
8586 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
8587 from the asm template.
8588 * config/aarch64/aarch64-simd-builtins.def: Update comment.
8590 2019-08-13 Martin Liska <mliska@suse.cz>
8592 * value-prof.c (gimple_ic_transform): Add new line.
8593 Print details with MSG_NOTE.
8595 2019-08-13 Martin Liska <mliska@suse.cz>
8597 * doc/invoke.texi: Document automatic detection of jobserver.
8598 * lto-wrapper.c (run_gcc): Detect jobserver always.
8600 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8602 * config/i386/i386-expand.c (ix86_expand_vector_set)
8603 <case E_V2SImode>: Use vec_merge path for
8604 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8605 <case E_V8QImode>: Ditto.
8606 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
8607 (*mmx_pinsrb): Ditto.
8609 2019-08-12 Jakub Jelinek <jakub@redhat.com>
8613 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
8614 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
8615 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
8616 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
8617 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
8619 2019-08-12 Richard Biener <rguenther@suse.de>
8622 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
8625 2019-08-12 Richard Biener <rguenther@suse.de>
8628 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
8629 lang_mask option, always use CL_DRIVER.
8630 (get_options_from_collect_gcc_options): Adjust.
8631 (find_and_merge_options): Likewise.
8632 (run_gcc): Likewise.
8634 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8636 * ipa-predicate.c (add_condition): Restore inverted test.
8638 2019-08-10 Jakub Jelinek <jakub@redhat.com>
8640 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
8641 (enum omp_clause_device_type_kind): New enum.
8642 (struct tree_omp_clause): Add subcode.device_type_kind.
8643 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
8644 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8645 for device_type clause.
8646 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
8647 * tree-pretty-print.c (dump_omp_clause): Likewise.
8650 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
8653 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
8655 * reload1.c (finish_spills): Do not check ira_conflicts_p when
8656 handling spilled pseudos.
8658 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8661 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
8662 to preserve the contents of the original insns.
8664 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8666 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
8667 (addsi3_compare_op2): Likewise.
8669 2019-08-09 Martin Liska <mliska@suse.cz>
8671 * alias.c (alias_ptr_types_compatible_p): Strengten
8672 type comparison in LTO mode.
8674 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
8677 * tree-tailcall.c (find_tail_calls): Reject calls that might
8678 read from an escaped RESULT_DECL.
8680 2019-08-09 Martin Liska <mliska@suse.cz>
8682 * doc/invoke.texi: Document the option value.
8683 * lto-wrapper.c (run_gcc): Set auto_parallel
8684 only with -flto=auto.
8686 2019-08-09 Martin Liska <mliska@suse.cz>
8688 * opts.c (common_handle_option): Error for an invalid argument
8691 2019-08-09 Martin Liska <mliska@suse.cz>
8693 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
8694 use dump_printf to report optimization.
8695 (sem_variable::merge): Likwise.
8696 (sem_item_optimizer::merge_classes): Use dump_printf to report
8699 2019-08-09 Martin Liska <mliska@suse.cz>
8701 * value-prof.c (gimple_divmod_fixed_value_transform):
8702 Use dump_printf_loc.
8703 (gimple_mod_pow2_value_transform): Likewise.
8704 (gimple_mod_subtract_transform): Likewise.
8705 (init_node_map): Likewise.
8706 (gimple_ic_transform): Likewise.
8707 (gimple_stringops_transform): Likewise.
8709 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8711 * doc/extend.texi: Add const qualifier to ld intrinsics.
8713 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8715 * config/rs6000/dfp.md (D64_D128): Rename to ...
8716 (DDTD): ... this, throughout.
8717 (dfp_suffix): Rename to ...
8718 (q): ... this, throughout.
8720 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8722 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
8723 (dfp_suffix): Ditto.
8724 (adddd3, addtd3): Merge to ...
8725 (add<mode>3 for D64_D128): ... this.
8726 (subdd3, subtd3): Merge to ...
8727 (sub<mode>3 for D64_D128): ... this.
8728 (muldd3, multd3): Merge to ...
8729 (mul<mode>3 for D64_D128): ... this.
8730 (divdd3, divtd3): Merge to ...
8731 (div<mode>3 for D64_D128): ... this.
8732 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
8733 (*cmp<mode>_internal1 for D64_D128): ... this.
8734 (ftruncdd2, ftrunctd2): Merge to ...
8735 (ftrunc<mode>2 for D64_D128): ... this.
8736 (fixdddi2, fixtddi2): Merge to ...
8737 (fix<mode>di2 for D64_D128): ... this.
8739 2019-08-08 Jim Wilson <jimw@sifive.com>
8742 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
8743 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
8744 Pass into recursive call.
8745 (riscv_flatten_aggregate_argument): New arg. Pass to
8746 riscv_flatten_aggregate_field.
8747 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
8748 riscv_flatten_aggregate_argument twice, with false and true as last
8749 arg. Process result twice. Compare results and warn if different.
8750 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
8752 2019-08-08 Martin Liska <mliska@suse.cz>
8755 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
8756 * lto-wrapper.c (jobserver_active_p): Likewise.
8758 2019-08-08 Martin Liska <mliska@suse.cz>
8760 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
8761 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
8762 (create_version_clone_with_body): Likewise.
8764 2019-08-08 Jakub Jelinek <jakub@redhat.com>
8766 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
8767 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
8768 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
8769 GOVD_EXPLICIT flags.
8770 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
8771 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
8772 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
8773 call install_var_field with mask 11 instead of 3.
8774 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
8775 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
8777 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8779 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
8780 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
8782 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8784 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
8785 MOVPRFX alternatives. Make the GPR alternatives more expensive
8788 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8790 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
8791 Disparage the GPR alternative relative to the FPR one.
8792 Fix handling of 8-bit and 16-bit FPR values.
8794 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8796 * config/aarch64/iterators.md (BITWISEV): Delete.
8797 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
8798 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
8799 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8800 UNSPEC_FMINNMV, UNSPEC_FMINV.
8801 (bit_reduc_op): Delete.
8802 (sve_int_op): New int attribute.
8803 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8804 UNSPEC_FMINNMV, UNSPEC_FMINV.
8805 * config/aarch64/aarch64-sve.md
8806 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8807 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8808 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
8809 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
8810 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
8811 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
8813 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
8814 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
8815 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
8816 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
8817 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
8820 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8822 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
8823 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
8824 (fms<mode>4, *fms<mode>4): Replace with...
8825 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8826 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
8827 Use unspecs instead of rtx codes.
8828 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
8829 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
8831 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8833 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
8835 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
8836 * config/aarch64/aarch64-sve.md
8837 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
8838 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
8839 use a single unspec for the rhs.
8840 (*<su><maxmin><mode>3): Delete.
8841 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
8843 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8845 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
8846 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
8847 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
8848 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
8849 (optab, sve_fp_op): Handle them.
8850 (SVE_FP_UNARY): Delete.
8851 (optab): Remove sqrt entry.
8852 (sve_fp_op): Remove neg, abs and sqrt entries.
8853 (SVE_COND_FP_UNARY): New int iterator.
8854 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
8855 (*<frint_pattern><mode>2): Delete.
8856 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8857 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8858 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8859 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8861 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8863 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
8865 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8867 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
8868 (UNSPEC_COND_FADD): ...this.
8869 (UNSPEC_COND_SUB): Rename to...
8870 (UNSPEC_COND_FSUB): ...this.
8871 (UNSPEC_COND_MUL): Rename to...
8872 (UNSPEC_COND_FMUL): ...this.
8873 (UNSPEC_COND_DIV): Rename to...
8874 (UNSPEC_COND_FDIV): ...this.
8875 (UNSPEC_COND_MAX): Rename to...
8876 (UNSPEC_COND_FMAXNM): ...this.
8877 (UNSPEC_COND_MIN): Rename to...
8878 (UNSPEC_COND_FMINNM): ...this.
8879 (UNSPEC_COND_LT): Rename to...
8880 (UNSPEC_COND_FCMLT): ...this.
8881 (UNSPEC_COND_LE): Rename to...
8882 (UNSPEC_COND_FCMLE): ...this.
8883 (UNSPEC_COND_EQ): Rename to...
8884 (UNSPEC_COND_FCMEQ): ...this.
8885 (UNSPEC_COND_NE): Rename to...
8886 (UNSPEC_COND_FCMNE): ...this.
8887 (UNSPEC_COND_GE): Rename to...
8888 (UNSPEC_COND_FCMGE): ...this.
8889 (UNSPEC_COND_GT): Rename to...
8890 (UNSPEC_COND_FCMGT): ...this.
8891 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
8892 (sve_fp_op_rev): Update accordingly.
8893 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
8895 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8897 * config/aarch64/aarch64-sve.md: Reorganize contents and add
8899 * config/aarch64/check-sve-md.awk: New file.
8900 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
8901 (insn-conditions.md): Depend on it.
8903 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
8906 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
8907 (*negsi2_cmpz_zext): Ditto.
8909 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8911 * config/aarch64/iterators.md (commutative): Remove.
8913 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
8916 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
8917 processing COLLECT_GCC_OPTIONS.
8918 (run_gcc): Likewise.
8920 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
8922 PR tree-optimization/91109
8923 * lra-remat.c (update_scratch_ops): Remove assignment of the
8926 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8928 * data-streamer.h (streamer_write_poly_uint64): Declare.
8929 (streamer_read_poly_uint64): Likewise.
8930 * data-streamer-in.c (streamer_read_poly_uint64): New function.
8931 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
8932 * ipa-predicate.h (condition::size): Turn into a poly_int64.
8933 (add_condition): Take a poly_int64 size.
8934 * ipa-predicate.c (add_condition): Likewise.
8935 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
8936 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
8937 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
8938 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
8939 condition::size as a poly_int64.
8940 (unmodified_parm_1): Take a poly_int64 size pointer.
8941 (unmodified_parm): Likewise.
8942 (unmodified_parm_or_parm_agg_item): Likewise.
8943 (set_cond_stmt_execution_predicate): Update accordingly.
8944 (set_switch_stmt_execution_predicate): Likewise.
8945 (will_be_nonconstant_expr_predicate): Likewise.
8946 (will_be_nonconstant_predicate): Likewise.
8947 (inline_read_section): Stream condition::size as a poly_int.
8948 (ipa_fn_summary_write): Likewise.
8950 2019-08-07 Martin Liska <mliska@suse.cz>
8952 * fold-const.c (twoval_comparison_p): Replace int
8953 with bool as a return type.
8954 (simple_operand_p): Likewise.
8955 (operand_equal_p): Replace int with bool as a return type.
8956 * fold-const.h (operand_equal_p): Likewise.
8958 2019-08-07 Jakub Jelinek <jakub@redhat.com>
8960 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
8961 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
8962 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8963 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
8964 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
8965 * tree-pretty-print.c (dump_omp_clause): Likewise.
8966 * tree-nested.c (convert_nonlocal_omp_clauses,
8967 convert_local_omp_clauses): Likewise.
8968 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
8970 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
8971 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
8972 clause with array or reference to array types, no matter what type
8973 except for reference it has.
8975 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
8977 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
8979 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
8981 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
8982 (arch_canonicalize): Support rv32g and rv64g and fix error
8985 2019-08-06 Martin Liska <mliska@suse.cz>
8987 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
8988 and DECL_IS_OPERATOR_DELETE_P.
8990 2019-08-06 Jakub Jelinek <jakub@redhat.com>
8992 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
8993 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
8994 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
8995 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
8996 (gimplify_omp_for): Don't do C++ random access iterator clause
8997 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
8998 don't predetermine the artificial iterator in case of C++ random
8999 access iterators as lastprivate, but private. For OMP_LOOP, force
9000 bind expr around simd body and force for_pre_body before the
9001 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
9002 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
9003 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
9004 diff var of C++ random access iterators. Handle
9005 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
9006 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
9007 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
9008 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
9009 * omp-low.c (lower_rec_input_clauses): For
9010 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
9011 variables instead of default constructing them.
9012 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
9013 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
9014 is_taskloop_ctx check from the assert to the guarding condition.
9016 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
9018 * config/riscv/multilib-generator: (canonical_order): New.
9019 (arch_canonicalize): Dito.
9020 Apply arch_canonicalize for alts.
9022 2019-08-05 Martin Sebor <msebor@redhat.com>
9024 * doc/extend.texi (Common Variable Attributes): Document alias
9027 2019-08-05 Marek Polacek <polacek@redhat.com>
9029 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
9030 * doc/invoke.texi: Document -Wcomma-subscript.
9032 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9034 * tree-core.h (tree_function_decl): Make function_code an
9035 independent field. Group the remaining bitfields into bytes
9036 and move decl_type so that it contines to be at a byte boundary.
9037 Leave 12 bits for future expansion.
9039 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9041 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
9042 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
9043 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
9046 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9048 * gimple.h (gimple_move_vops): Declare.
9049 * gimple.c (gimple_move_vops): New function
9050 * gimple-fold.c (replace_call_with_call_and_fold)
9051 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
9052 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
9053 (gimple_fold_call): Use it.
9054 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
9055 * tree-call-cdce.c (use_internal_fn): Likewise.
9056 * tree-if-conv.c (predicate_load_or_store): Likewise.
9057 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
9058 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
9059 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
9060 (update_call_from_tree): Likewise.
9061 * tree-vect-stmts.c (vectorizable_load): Likewise.
9062 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
9064 2019-08-05 Martin Liska <mliska@suse.cz>
9067 * tree-ssa-dce.c (propagate_necessity): Handle new operators
9069 (eliminate_unnecessary_stmts): Likewise.
9071 2019-08-05 Richard Biener <rguenther@suse.de>
9074 * fold-const.c (get_array_ctor_element_at_index): Create
9075 offset_ints according to the sign of the index type and treat
9076 that as signed if it is obviously so.
9078 2019-08-05 Jakub Jelinek <jakub@redhat.com>
9081 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
9082 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
9083 _mm256_storeu2_m128i): New function.
9085 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
9087 * config/riscv/riscv.c (riscv_promote_function_mode): New.
9088 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
9090 2019-08-05 Alan Modra <amodra@gmail.com>
9093 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
9094 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
9096 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
9098 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
9099 bug that was fixed in Tcl 8.6.1.
9101 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
9103 * config/rs6000/future.md: New file.
9104 * config/rs6000/rs6000.md: Include future.md.
9105 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
9107 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
9109 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
9110 check to use targetm.slow_unaligned_access instead.
9112 * function.c (assign_param_data_one): Remove unused data members.
9114 2019-08-02 Steve Ellcey <sellcey@marvell.com>
9116 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
9117 build_distinct_type_copy.
9118 (simd_clone_adjust_argument_types): Ditto.
9119 (simd_clone_adjust): Call build_distinct_type_copy here.
9120 (expand_simd_clones): Ditto.
9122 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9125 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
9127 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
9129 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
9130 from 'const void *'.
9131 (sort_locs_in_loop_postorder_cmp): Likewise.
9133 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
9135 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
9136 (hot-bb-count-ws-permille): Likewise.
9137 (hot-bb-frequency-fraction): Likewise.
9138 (unlikely-bb-count-fraction): Likewise.
9139 * params.def (hot-bb-count-fraction): Rework description.
9140 (hot-bb-count-ws-permille): Likewise.
9141 (hot-bb-frequency-fraction): Likewise.
9142 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
9143 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
9145 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9148 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
9151 2019-08-02 Richard Biener <rguenther@suse.de>
9153 * vec.h (vec::sort): Add gcc_qsort_r support.
9154 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
9155 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
9156 to gcc_qsort_r style callback.
9157 (sort_locs_in_loop_postorder_cmp): Likewise.
9158 (analyze_memory_references): Use gcc_sort_r interfaces.
9159 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
9161 2019-08-02 Martin Liska <mliska@suse.cz>
9164 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
9165 to detect working job server.
9166 (driver::detect_jobserver): Test whether jobserver
9167 is active from GCC driver. That will prevent situation where
9168 GCC is invoked from a LD plugin and the linker already uses
9169 file descriptors suggested by make. That leads to a wrong
9171 * gcc.h (driver): Add detect_jobserver.
9172 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
9173 not scanning for --jobserver-auth prefix.
9175 2019-08-02 Jakub Jelinek <jakub@redhat.com>
9177 PR tree-optimization/91201
9178 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
9179 V16QImode extraction without sse4.1 try to use V4SImode lowpart
9182 2019-08-01 Martin Sebor <msebor@redhat.com>
9185 * tree.c (type_initializer_zero_p): Define.
9186 * tree.h (type_initializer_zero_p): New function.
9188 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9190 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
9192 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9194 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
9195 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
9196 * predict.c (maybe_hot_count_p): Likewise.
9197 (maybe_hot_bb_p): Tweak comment.
9198 (maybe_hot_edge_p): Likewise.
9199 (probably_never_executed): Likewise. Minor tweak.
9200 (probably_never_executed_bb_p): Likewise.
9201 (unlikely_executed_edge_p): Likewise.
9202 (probably_never_executed_edge_p): Likewise.
9203 (optimize_function_for_size_p): Likewise.
9204 (optimize_function_for_speed_p): Likewise.
9205 (function_optimization_type): Likewise.
9206 (optimize_bb_for_size_p): Likewise.
9207 (optimize_bb_for_speed_p): Likewise.
9208 (bb_optimization_type): Likewise.
9209 (optimize_edge_for_size_p): Likewise.
9210 (optimize_edge_for_speed_p): Likewise.
9211 (optimize_insn_for_size_p): Likewise.
9212 (optimize_insn_for_speed_p): Likewise.
9213 (optimize_loop_for_size_p): Likewise.
9214 (optimize_loop_for_speed_p): Likewise.
9215 (optimize_loop_nest_for_speed_p): Likewise.
9216 (optimize_loop_nest_for_size_p): Likewise.
9217 (predictable_edge_p): Likewise.
9218 (handle_missing_profiles): Minor tweak.
9220 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
9222 * config/rs6000/predicates.md (pcrel_external_address): Update
9225 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9228 * config/i386/mmx.md (usadv8qi): New expander.
9230 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
9233 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
9234 with reserved names that are in a system header.
9236 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9238 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
9239 (*vec_extractv2si_0_zext_sse4): New insn pattern.
9240 (*vec_extractv2si_0_zext): Ditto.
9241 (*vec_extractv2si_1): Add (rm,x) alternative.
9242 (*vec_extractv2si_1_zext): New insn pattern.
9243 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
9246 2019-08-01 Richard Biener <rguenther@suse.de>
9248 * domwalk.c (bb_postorder): Remove static variable.
9249 (cmp_bb_postorder): Adjust.
9250 (sort_bbs_postorder): Adjust and use gcc_sort_r.
9251 (dom_walker::walk): Adjust.
9253 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
9255 * sort.cc (sort_r_ctx): New struct.
9256 (reorder23): Make templated on context type.
9258 (cmp1): Ditto. Adjust signature.
9261 [CHECKING_P] (cmp2to3): New static function. Use it...
9262 (gcc_qsort) [CHECKING_P]: ...here.
9263 (gcc_sort_r): New function.
9264 * system.h (sort_r_cmp_fn): New function typedef.
9265 (qsort_chk): Adjust signature.
9266 (gcc_sort_r): Declare.
9267 * vec.c (qsort_chk_error): Adjust.
9268 (qsort_chk): Adjust.
9270 2019-08-01 Richard Biener <rguenther@suse.de>
9272 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
9273 (compute_antic): Localize it here.
9275 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
9277 * common/config/riscv/riscv-common.c: Check -march string ends
9280 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
9282 * ipa-devirt.c (type_warning_cmp): Make static.
9283 (decl_warning_cmp): Ditto.
9285 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
9288 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
9289 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
9290 use of deleted rs6000_dejagnu_cpu_index variable.
9291 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
9292 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9293 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
9294 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
9295 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
9296 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9298 2019-07-31 Richard Biener <rguenther@suse.de>
9300 PR tree-optimization/91280
9301 * tree-ssa-structalias.c (get_constraint_for_component_ref):
9302 Decompose MEM_REF manually for offset handling.
9304 2019-07-31 Richard Biener <rguenther@suse.de>
9306 PR tree-optimization/91293
9307 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
9310 2019-07-31 Matt Thomas <matt@3am-software.com>
9311 Nick Hudson <nick@nthcliff.demon.co.uk>
9312 Matthew Green <mrg@eterna.com.au>
9313 Maya Rashish <coypu@sdf.org>
9315 * config.gcc (hppa*-*-netbsd*): New target.
9316 * config/pa/pa-netbsd.h: New file.
9317 * config/pa/pa32-netbsd.h: New file.
9319 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9321 PR tree-optimization/91201
9322 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
9324 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
9326 * config/gcn/gcn-valu.md
9327 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
9328 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
9329 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
9330 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
9331 struct ilist. Add nops for delayeduse insns.
9332 * config/gcn/gcn.md (delayeduse): New attribute.
9333 (*movbi): Remove s_waitcnt from stores.
9334 (*mov<mode>_insn): Likewise.
9335 (*movti_insn): Likewise. Add delayeduse attribute.
9336 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
9337 (atomic_store<mode>): Remove or adjust s_waitcnt.
9339 2019-07-31 Richard Biener <rguenther@suse.de>
9341 * vr-values.h (vr_values::swap_vr_value): New.
9342 (vr_values::free_value_range): likewise.
9343 * vr-values.c (vr_values::swap_vr_value): Implement.
9344 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
9345 Do not return a range or take a var.
9346 (evrp_range_analyzer::stack): Change back to recording a non-const
9348 * gimple-ssa-evrp-analyze.c
9349 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
9351 (evrp_range_analyzer::pop_to_marker): Adjust.
9352 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
9353 (evrp_range_analyzer::pop_value_range): Likewise. Free the
9354 no longer needed value-range.
9356 2019-07-31 Martin Liska <mliska@suse.cz>
9358 * tree-ssa-dce.c (propagate_necessity): Delete operator can
9359 have size and (or) alignment as 2nd and later arguments.
9360 Mark all of them as necessary.
9362 2019-07-31 Richard Biener <rguenther@suse.de>
9364 PR tree-optimization/91178
9365 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
9368 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9370 PR tree-optimization/91201
9371 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
9372 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
9374 (reduc_plus_scal_<mode>): Improve formatting by introducing
9377 2019-07-31 Sudakshina Das <sudi.das@arm.com>
9379 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
9380 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
9381 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
9382 (aarch64_init_tme_builtins): New.
9383 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
9384 (aarch64_expand_builtin_tme): New.
9385 (aarch64_expand_builtin): Handle TME builtins.
9386 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
9387 __ARM_FEATURE_TME when enabled.
9388 * config/aarch64/aarch64-option-extensions.def: Add "tme".
9389 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
9391 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
9392 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
9394 (tstart, ttest, tcommit, tcancel): New instructions.
9395 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
9396 (__tcancel, __ttest): New.
9397 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
9398 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
9399 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
9400 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
9401 * config/arm/types.md: Add new tme type attr.
9402 * doc/invoke.texi: Document "tme".
9404 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
9406 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
9407 warn_unused_result attribute.
9408 (cmse_check_address_range): Add warn_unused_result attribute.
9410 2019-07-31 Richard Biener <rguenther@suse.de>
9412 PR tree-optimization/91257
9413 * tree-vrp.c (union_ranges): Unify equality and less tests
9414 by using compare_values. Re-order cheap tests first.
9416 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9419 * gimplify.c (gimplify_omp_for): If for class iterator on
9420 distribute parallel for there is no data sharing clause
9421 on inner_for_stmt, look for private clause on combined
9422 parallel too and if found, move it to inner_for_stmt.
9424 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
9426 * lra-int.h (lra_operand_data): Remove early_clobber field.
9427 (lra_insn_reg): Likewise.
9428 * lra.c (debug_operand_data): Update accordingly.
9429 (setup_operand_alternative): Likewise.
9430 (new_insn_reg): Likewise. Remove early_clobber parameter.
9431 (collect_non_operand_hard_regs): Update call accordingly.
9432 Don't assign to lra_insn_reg::early_clobber.
9433 (add_regs_to_insn_regno_info): Remove early_clobber parameter
9434 and update calls to new_insn_reg.
9435 (lra_update_insn_regno_info): Update calls accordingly.
9436 * lra-constraints.c (update_and_check_small_class_inputs): Take the
9437 alternative number as a parameter and test whether the operand
9438 is earlyclobbered in that particular alternative.
9439 (process_alt_operands): Update call accordingly. Use per-alternative
9440 checks for earyclobber here too.
9441 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
9442 against zero for IRA_UNKNOWN_ALT.
9444 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9446 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
9448 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
9450 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
9451 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9453 2019-07-30 Martin Liska <mliska@suse.cz>
9456 * cgraph.c (cgraph_edge::make_direct): Use
9457 edge->indirect_unknown_callee as edge->resolve_speculation can
9458 deallocate edge which is this pointer.
9460 2019-07-30 Richard Biener <rguenther@suse.de>
9462 PR tree-optimization/91257
9463 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
9465 2019-07-30 Martin Liska <mliska@suse.cz>
9467 * doc/invoke.texi: Document new behavior.
9468 * lto-wrapper.c (cpuset_popcount): New function
9469 is a copy of libgomp/config/linux/proc.c.
9470 (init_num_threads): Likewise.
9471 (run_gcc): Automatically detect core count for -flto.
9472 (jobserver_active_p): New function.
9474 2019-07-30 Richard Biener <rguenther@suse.de>
9476 PR tree-optimization/91257
9477 * bitmap.h (bitmap_ior_into_and_free): Declare.
9478 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
9479 whether to add the unliked element to the freelist.
9480 (bitmap_list_insert_element_after): Add defaulted param for
9481 an already allocated element.
9482 (bitmap_ior_into_and_free): New function.
9483 * tree-ssa-structalias.c (condense_visit): Reduce the
9484 ponts-to and edge bitmaps of the SCC members in a
9485 logarithmic fashion rather than all to one.
9487 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
9489 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
9490 parameter. When nonnull, make sure that the addition or subtraction
9491 has the same condition.
9492 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
9493 for CFN_COND_MUL too.
9495 2019-07-30 Richard Biener <rguenther@suse.de>
9497 PR tree-optimization/91291
9498 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
9501 2019-07-30 Jakub Jelinek <jakub@redhat.com>
9504 * omp-low.c (global_nonaddressable_vars): New variable.
9505 (use_pointer_for_field): For global decls, if they are non-addressable,
9506 remember it in the global_nonaddressable_vars bitmap, if they are
9507 addressable and in the global_nonaddressable_vars bitmap, ignore their
9508 TREE_ADDRESSABLE bit.
9509 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
9510 vars in global_nonaddressable_vars bitmap.
9511 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
9514 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
9515 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
9516 comparison to unsigned HOST_WIDE_INT before shifting it left.
9518 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9520 * config/i386/i386.md (movstrict<mode>): Use register_operand
9521 predicate for operand 0. Add expander condition. Assert that
9522 operand 0 is a SUBREG RTX.
9523 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
9524 Update operand constraints and insn condition.
9525 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
9526 (zero_extendqihi2_and): Do not call gen_movstrictqi.
9527 (*setcc_qi_slp): Use register_operand predicate for operand 0.
9528 Update operand 0 constraints.
9529 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
9531 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9533 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
9534 when -m{code,data}-region are used without -mlarge.
9535 * config/msp430/msp430.c (msp430_option_override): Error when a
9536 non-default code or data region is used without -mlarge.
9537 (msp430_section_attr): Emit a warning and do not add upper/lower/either
9538 attributes when they are used without -mlarge.
9540 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9543 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
9545 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9548 * wide-int.h (generic_wide_int::sext_elt): New function.
9549 * inchash.h (hash::add_wide_int): Use it instead of elt.
9551 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9553 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
9555 * config/arm/arm.md (<crc_variant>): Rename to...
9556 (arm_<crc_variant>): ... This.
9557 (<cdp>): Rename to...
9558 (arm_<cdp>): ... This.
9559 (<ldc>): Rename to...
9560 (arm_<ldc>): ... This.
9561 (<stc>): Rename to...
9562 (arm_<stc>): ... This.
9563 (<mcr>): Rename to...
9564 (arm_<mcr>): ... This.
9565 (<mrc>): Rename to...
9566 (arm_<mrc>): ... This.
9567 (<mcrr>): Rename to...
9568 (arm_<mcrr>): ... This.
9569 (<mrrc>): Rename to...
9570 (arm_<mrrc>): ... This.
9572 2019-07-29 Richard Biener <rguenther@suse.de>
9574 PR tree-optimization/91257
9575 * tree-ssa-sccvn.h (struct vn_avail): New.
9576 (struct vn_ssa_aux): Add avail member.
9577 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
9578 member, add m_avail_freelist one.
9579 (rpo_elim::~rpo_elim): Remove.
9580 (rpo_elim::eliminate_avail): Adjust to new avail tracking
9582 (rpo_elim::eliminate_push_avail): Likewise.
9583 (do_unwind): Likewise.
9584 (do_rpo_vn): Likewise.
9586 2019-07-29 Richard Biener <rguenther@suse.de>
9588 PR tree-optimization/91257
9589 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
9590 most cases, instead call compare_values which handles the
9591 symbolic ranges we handle specially.
9592 (compare_values_warnv): Do not call operand_less_p but open-code
9593 the effective fold calls. Avoid converting so much.
9595 2019-07-29 Martin Liska <mliska@suse.cz>
9597 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
9598 remove LHS of operator new call. It's handled latter.
9600 2019-07-29 Richard Biener <rguenther@suse.de>
9602 PR tree-optimization/91267
9603 * vr-values.c (vr_values::update_value_range): Add early return
9604 for effectively VARYING lattice entry.
9606 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9609 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
9610 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
9611 necessary if keep_all_vdefs_p is true.
9612 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
9613 that keep_all_vdefs_p is false.
9614 (mark_all_reaching_defs_necessary): Likewise.
9615 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
9617 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9619 * common.opt (Og): Change the initial value of flag_dse to 0.
9620 * opts.c (default_options_table): Move OPT_ftree_dse from
9621 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
9622 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
9623 entry before the OPT_ftree_sra entry.
9624 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
9625 of flags disabled by Og.
9627 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9629 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
9632 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9634 * doc/sourcebuild.texi (check-function-bodies): Document.
9636 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9638 * simplify-rtx.c (simplify_const_unary_operation): Fold a
9639 VEC_DUPLICATE of a fixed-length vector even if the result
9640 is variable-length. Likewise fold a duplicate of a
9641 variable-length vector if the variable-length vector is
9642 itself a duplicate of a fixed-length sequence.
9643 (test_vector_ops_duplicate): Test more cases.
9645 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9647 * vector-builder.h (vector_builder): Add a shape template parameter.
9648 (vector_builder::new_unary_operation): New function, generalizing
9649 the old tree_vector_builder function.
9650 (vector_builder::new_binary_operation): Likewise.
9651 (vector_builder::binary_encoded_nelts): Likewise.
9652 * int-vector-builder.h (int_vector_builder): Update template
9653 parameters to vector_builder.
9654 (int_vector_builder::shape_nelts): New function.
9655 * rtx-vector-builder.h (rtx_vector_builder): Update template
9656 parameters to vector_builder.
9657 (rtx_vector_builder::shape_nelts): New function.
9658 (rtx_vector_builder::nelts_of): Likewise.
9659 (rtx_vector_builder::npatterns_of): Likewise.
9660 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
9661 * tree-vector-builder.h (tree_vector_builder): Update template
9662 parameters to vector_builder.
9663 (tree_vector_builder::shape_nelts): New function.
9664 (tree_vector_builder::nelts_of): Likewise.
9665 (tree_vector_builder::npatterns_of): Likewise.
9666 (tree_vector_builder::nelts_per_pattern_of): Likewise.
9667 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
9668 (tree_vector_builder::new_binary_operation): Delete.
9669 (tree_vector_builder::binary_encoded_nelts): Likewise.
9670 * simplify-rtx.c: Include rtx-vector-builder.h.
9671 (distributes_over_addition_p): New function.
9672 (simplify_const_unary_operation)
9673 (simplify_const_binary_operation): Generalize handling of vector
9674 constants to include variable-length vectors.
9675 (test_vector_ops_series): Add more tests.
9677 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
9680 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
9681 than INDENTIFIER_POINTER.
9683 2019-07-28 Martin Liska <mliska@suse.cz>
9686 * cgraph.c (symbol_table::create_edge): Always allocate
9688 (symbol_table::free_edge): Store summary_id to
9689 edge_released_summary_ids if != -1;
9690 * cgraph.h (NEXT_FREE_NODE): Remove.
9691 (SET_NEXT_FREE_NODE): Likewise.
9692 (NEXT_FREE_EDGE): Likewise.
9693 (symbol_table::release_symbol): Store summary_id to
9694 cgraph_released_summary_ids if != -1;
9695 (symbol_table::allocate_cgraph_symbol): Always allocate
9698 2019-07-28 Alan Modra <amodra@gmail.com>
9700 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
9703 2019-07-28 Alan Modra <amodra@gmail.com>
9706 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
9708 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
9709 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
9710 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
9712 2019-07-28 Alan Modra <amodra@gmail.com>
9715 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
9716 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
9717 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
9718 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
9719 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
9720 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
9721 in asm_default spec.
9722 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
9723 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
9725 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
9727 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
9729 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9732 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
9733 * config/aarch64/aarch64-option-extensions.def: Add new comments
9734 and restore easier to read options.
9736 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9738 * convert.c (convert_to_real_1): Move part of conversion code...
9739 * match.pd: ...To here.
9741 2019-07-26 Martin Jambor <mjambor@suse.cz>
9744 * ipa-inline-transform.c (check_speculations_1): New function.
9745 (push_all_edges_in_set_to_vec): Likewise.
9746 (check_speculations): Use check_speculations_1, new parameter
9748 (inline_call): Pass new_edges to check_speculations.
9749 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
9751 (speculation_useful_p): Early return true if edge is inlined, remove
9752 later checks for inline_failed.
9754 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
9756 PR rtl-optimization/91223
9757 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
9758 matching with INOUT operand.
9760 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9762 * stmt.c (expand_case): Try to narrow the index type if it's larger
9763 than a word. Tidy up.
9765 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9767 * cif-code.def (NEVER_CALL): New code.
9768 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
9769 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
9771 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
9773 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
9774 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9776 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9778 * ipa-devirt.c (add_type_duplicate): Fix return value.
9780 2019-07-25 Richard Biener <rguenther@suse.de>
9782 * tree-vrp.c (extract_range_from_multiplicative_op): Add
9783 type parameter and use it instead of guessing expression
9784 type from the first operand.
9785 (extract_range_from_binary_expr): Pass expr_type down.
9787 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9789 * config/arm/arm.md (SATrev): Change to code attribute.
9790 (*satsi_<SAT:code>): Adjust for the above.
9791 (*satsi_<SAT:code>_shift): Likewise.
9793 2019-07-25 Richard Biener <rguenther@suse.de>
9795 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
9796 Make value_range * temporary const.
9797 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
9799 (evrp_range_analyzer::record_ranges_from_): Likewise.
9800 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
9801 deal with having recorded a const one.
9802 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
9803 Return a const value_range *.
9804 (evrp_range_analyzer::pop_value_range): Likewise.
9805 (evrp_range_analyzer::stack): Record const value_range *s.
9806 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
9808 * gimple-ssa-sprintf.c (get_int_range): Likewise.
9809 (format_integer): Likewise.
9810 (sprintf_dom_walker::handle_gimple_call): Likewise.
9811 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
9812 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
9813 (vrp_prop::get_value_range): Adjust.
9814 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
9815 modifying the lattice in-place.
9816 (vrp_prop::visit_stmt): Likewise.
9817 * vr-values.c (vr_values::get_lattice_entry): New private method.
9818 (vr_values::get_value_range): Wrap it and return a const
9820 (vr_values::set_def_to_varying): New.
9821 (vr_values::set_defs_to_varying): Use it.
9822 (vr_values::update_value_range): Likewise.
9823 (vr_values::vrp_stmt_computes_nonzero): Adjust.
9824 (values::op_with_constant_singleton_va): Likewise.
9825 (vr_values::extract_range_for_var_from_co): Likewise.
9826 (vr_values::extract_range_from_ssa_name): Likewise.
9827 (vr_values::extract_range_from_cond_expr): Likewise.
9828 (vr_values::extract_range_basic): Likewise.
9829 (compare_ranges): Take const value_range *, adjust.
9830 (compare_range_with_value): Likewise.
9831 (vrp_valueize): Adjust.
9832 (vrp_valueize_1): Likewise.
9833 (vr_values::get_vr_for_comparison): Return a const value_range *.
9834 (vr_values::compare_name_with_value): Adjust.
9835 (vr_values::compare_names): Likewise.
9836 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9838 (vr_values::vrp_evaluate_conditional): Likewise.
9839 (find_case_label_ranges): Take a const value_range *.
9840 (vr_values::vrp_visit_switch_stmt): Adjust.
9841 (vr_values::extract_range_from_phi_node): Likewise.
9842 (vr_values::simplify_div_or_mod_using_ran): Likewise.
9843 (vr_values::simplify_abs_using_ranges): Likewise.
9844 (test_for_singularity): Take a const value_range *.
9845 (range_fits_type_p): Likewise.
9846 (vr_values::simplify_cond_using_ranges_1): Adjust.
9847 (vr_values::simplify_cond_using_ranges_2): Likewise.
9848 (vr_values::simplify_switch_using_ranges): Likewise.
9849 (vr_values::simplify_float_conversion_usi): Likewise.
9850 (vr_values::two_valued_val_range_p): Likewise.
9851 * vr-values.h (vr_values::get_value_range): Return a const
9853 (vr_values::set_def_to_varying): New.
9854 (vr_values::get_lattice_entry): New private method.
9855 (vr_values::get_vr_for_comparison): Return a const value_range *.
9857 2019-07-25 Martin Liska <mliska@suse.cz>
9858 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
9861 * common.opt: Add -fallocation-dce
9862 * gimple.c (gimple_call_operator_delete_p): New.
9863 * gimple.h (gimple_call_operator_delete_p): Likewise.
9864 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
9865 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
9866 DECL_IS_OPERATOR_DELETE_P.
9867 (mark_all_reaching_defs_necessary_1): Likewise.
9868 (propagate_necessity): Likewise.
9869 (eliminate_unnecessary_stmts): Handle
9870 gimple_call_operator_delete_p.
9871 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
9872 Add packing of OPERATOR_DELETE.
9873 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
9875 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
9876 (DECL_SET_IS_OPERATOR_DELETE): New.
9877 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
9879 2019-07-25 Martin Liska <mliska@suse.cz>
9881 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
9882 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
9883 * coverage.c (coverage_begin_function): Likewise.
9884 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
9885 * gimple.c (gimple_call_nonnull_result_p): Likewise.
9886 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
9887 (sem_item::hash_referenced_symbol_properties): Likewise.
9888 * lto-streamer-out.c (hash_tree): Likewise.
9889 * predict.c (expr_expected_value_1): Likewise.
9890 * tree-inline.c (expand_call_inline): Likewise.
9891 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
9892 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
9893 * tree-core.h (enum function_decl_type): New enum.
9894 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
9895 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
9896 (set_function_decl_type): Likewise.
9897 (DECL_IS_OPERATOR_NEW_P): New.
9898 (DECL_SET_IS_OPERATOR_NEW): Likewise.
9899 (DECL_LAMBDA_FUNCTION): Likewise.
9900 (DECL_LAMBDA_FUNCTION_P): Likewise.
9901 (DECL_IS_OPERATOR_NEW): Remove.
9902 (DECL_SET_LAMBDA_FUNCTION): Likewise.
9904 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
9906 * ipa-profile.c (get_most_common_single_value): Use
9907 get_nth_most_common_value.
9908 * profile.c (sort_hist_value): New function.
9909 (compute_value_histograms): Call sort_hist_value to sort the
9910 values after loading from disk.
9911 * value-prof.c (get_most_common_single_value): Rename to ...
9912 get_nth_most_common_value. Add input params n, return
9913 the n_th value and count.
9914 (gimple_divmod_fixed_value_transform): Use
9915 get_nth_most_common_value.
9916 (gimple_ic_transform): Likewise.
9917 (gimple_stringops_transform): Likewise.
9918 * value-prof.h (get_most_common_single_value): Add input params
9921 2019-07-25 Richard Biener <rguenther@suse.de>
9923 PR tree-optimization/91236
9924 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
9925 size of CONSTRUCTOR write. Fix buffer size we pass to
9928 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9930 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
9931 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
9934 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9936 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
9937 explicitly disabled with --disable-initfini-array.
9939 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9941 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
9944 2019-07-24 Martin Sebor <msebor@redhat.com>
9946 PR tree-optimization/91183
9947 PR tree-optimization/86688
9948 * builtins.c (compute_objsize): Handle MEM_REF.
9949 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
9950 (get_min_string_length): Remove.
9951 (count_nonzero_bytes): New function.
9952 (handle_char_store): Rename...
9953 (handle_store): to this. Handle multibyte stores via integer types.
9954 (strlen_check_and_optimize_stmt): Adjust conditional and the called
9957 2019-07-24 Martin Sebor <msebor@redhat.com>
9960 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
9961 (diagnostic_report_diagnostic): Same.
9962 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
9963 (diagnostic_context::lang_mask): New data member.
9964 * ipa-pure-const.c (suggest_attribute): Use
9965 lang_hooks.option_lang_mask ().
9966 * opts-common.c (option_enabled): Handle new argument.
9967 (get_option_state): Pass an additional argument.
9968 * opts.c (print_filtered_help): Print supported languages for
9969 unsupported options. Adjust printing of current state.
9970 * opts.h (option_enabled): Add argument.
9971 * toplev.c (print_switch_values): Use lang_mask.
9972 (general_init): Set global_dc->lang_mask.
9974 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
9977 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
9979 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
9981 * cgraphunit.c (symbol_table::compile): Start and stop
9982 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
9983 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
9985 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
9987 * gimplify.c (flag_instrument_functions_exclude_p): Include
9988 namespace/class information in the printable name.
9989 * opts.c (add_comma_separated_to_vector): Add NUL terminator
9990 to tokens entered into the vector.
9992 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
9994 * tree-nested.c (build_simple_mem_ref_notrap): New function.
9995 (get_static_chain): Call it instead of build_simple_mem_ref.
9996 (get_frame_field): Likewise.
9997 (get_nonlocal_debug_decl): Likewise.
9998 (convert_nonlocal_reference_op): Likewise.
10000 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
10002 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
10004 (arc_compute_frame_size): Millicode is disabled when compiling
10006 (arc_return_address_register): Likewise.
10007 (arc_compute_function_type): Likewise.
10008 (arc_compute_frame_size): Likewise.
10009 (secondary_reload_info): Likewise.
10010 (arc_get_unalign): Likewise.
10011 (arc_can_use_return_insn): Declare.
10012 * config/arc/arc.c (AUX_LP_START): Define
10013 (AUX_LP_END): Likewise.
10014 (arc_frame_info): Update gmask member to 64-bit datum.
10015 (GMASK_LEN): Update.
10016 (arc_compute_function_type): Make it static, move it forward.
10017 (arc_must_save_register): Update, consider the extra regs.
10018 (arc_compute_millicode_save_restore_regs): Update to use the 64
10020 (arc_compute_frame_size): Likewise.
10021 (arc_enter_leave_p): Likewise.
10022 (arc_save_callee_saves): Likewise.
10023 (arc_restore_callee_saves): Likewise.
10024 (arc_save_callee_enter): Likewise.
10025 (arc_restore_callee_leave): Likewise.
10026 (arc_save_callee_milli): Likewise.
10027 (arc_restore_callee_milli): Likewise.
10028 (arc_expand_prologue): Add new interrupt handling.
10029 (arc_return_address_register): Make it static, move it forward.
10030 (arc_expand_epilogue): Add new interrupt handling.
10031 (arc_get_unalign): Delete.
10032 (arc_epilogue_uses): Make sure we do not remove the extra
10033 saved/restored registers when interrupt.
10034 (arc_can_use_return_insn): New function.
10035 (push_reg): Likewise.
10036 (pop_reg): Likewise.
10037 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
10039 (arc_restore_callee_saves): Likewise, but restoring.
10040 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
10041 (R33_REG): Likewise.
10042 (R34_REG): Likewise.
10043 (R35_REG): Likewise.
10044 (R36_REG): Likewise.
10045 (R37_REG): Likewise.
10046 (R38_REG): Likewise.
10047 (R39_REG): Likewise.
10048 (R45_REG): Likewise.
10049 (R46_REG): Likewise.
10050 (R47_REG): Likewise.
10051 (R48_REG): Likewise.
10052 (R49_REG): Likewise.
10053 (R50_REG): Likewise.
10054 (R51_REG): Likewise.
10055 (R52_REG): Likewise.
10056 (R53_REG): Likewise.
10057 (R54_REG): Likewise.
10058 (R55_REG): Likewise.
10059 (R56_REG): Likewise.
10060 (R58_REG): Likewise.
10061 (type): Add rtie attribute.
10062 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
10063 (movsi_insn): Accept moves to lp_count.
10064 (rtie): Update pattern.
10065 (simple_return): Simplify it, don't use this pattern as a return
10067 (arc600_rtie): New pattern.
10068 (p_return_i): Clean up.
10069 (return): Likewise.
10070 * config/arc/builtins.def (rtie): Only available for non ARC6xx
10072 * config/arc/predicates.md (move_src_operand): Consider lp_count
10075 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
10077 * config/s390/predicates.md (addv_const_operand): New predicate.
10078 * config/s390/s390-modes.def (CCO): New condition code mode.
10079 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
10080 (s390_branch_condition_mask): Likewise.
10081 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
10082 ("mulv<mode>4"): New expanders.
10083 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
10084 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
10085 pattern definitions.
10087 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10089 PR middle-end/91166
10090 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
10091 (define_predicates): Add entry for uniform_vector_p.
10092 (vec_same_elem_p): New match pattern.
10094 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
10097 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
10098 * config/i386/darwin32-biarch.h .. to here.
10099 * config/i386/darwin64-biarch.h: Adjust comments.
10100 * config/rs6000/darwin32-biarch.h: Likewise.
10101 * config/rs6000/darwin64-biarch.h: Likewise.
10102 * config.gcc: Missed commit from r273746
10103 (*-*-darwin*): Don't include CPU t-darwin here.
10104 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10105 an error message if i686-darwin configuration is attempted for
10108 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
10111 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
10112 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10113 an error message if i686-darwin configuration is attempted for
10115 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
10116 (powerpc-*-darwin*): Use biarch files where needed.
10117 (powerpc64-*-darwin*): Likewise.
10118 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
10119 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10121 * config/i386/darwin32-biarch.h: New.
10122 * config/i386/darwin64.h: Rename.
10123 * config/i386/darwin64-biarch.h: To this.
10124 * config/i386/t-darwin: Rename.
10125 * config/i386/t-darwin32-biarch: To this.
10126 * config/i386/t-darwin64: Rename.
10127 * config/i386/t-darwin64-biarch: To this.
10128 * config/rs6000/darwin32-biarch.h: New.
10129 * config/rs6000/darwin64.h: Rename.
10130 * config/rs6000/darwin64-biarch.h: To this.
10131 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10133 * config/rs6000/t-darwin8: Rename.
10134 * config/rs6000/t-darwin32-biarch: To this.
10135 * config/rs6000/t-darwin64 Rename.
10136 * config/rs6000/t-darwin64-biarch: To this.
10138 2019-07-23 Martin Sebor <msebor@redhat.com>
10140 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
10142 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10144 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
10145 (rh): New alias for it.
10147 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10149 * gdbhooks.py: Pass replace=True to
10150 gdb.printing.register_pretty_printer.
10152 2019-07-23 Richard Biener <rguenther@suse.de>
10155 * lto-streamer-in.c (input_function): Drop inline-entry markers
10156 that ended up with an unknown location block.
10158 2019-07-23 Richard Biener <rguenther@suse.de>
10160 PR tree-optimization/83518
10161 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
10162 init from a constant even when partial defs are already recorded.
10164 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10166 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
10167 * config/i386/znver1.md: Enable patterns for znver2 and add store
10168 variants which use extra AGU unit.
10170 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10172 * config/i386/i386-options.c (ix86_option_override_internal): Default
10173 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
10174 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
10177 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10179 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
10180 (znver2_costs): Update 256 bit SSE costs and multiplication.
10182 2019-07-23 Jan Beulich <jbeulich@suse.com>
10184 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
10185 Require only AVX512F.
10186 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
10187 alternative expanding to vpternlog.
10189 2019-07-23 Martin Liska <mliska@suse.cz>
10191 * dwarf2out.c (gen_producer_string): Canonize -flto=N
10192 to -flto in dwarf producer string.
10194 2019-07-23 Richard Biener <rguenther@suse.de>
10196 * tree-cfg.c (label_for_bb): Remove global var.
10197 (main_block_label): Take label_for_bb as argument.
10198 (cleanup_dead_labels_eh): Likewise, adjust.
10199 (cleanup_dead_labels): Adjust.
10201 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10203 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
10204 Configurations): Add documentation for __builtin_mtfsf.
10206 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
10208 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
10209 * config/riscv/riscv.c (riscv_constant_alignment): Use
10210 riscv_align_data_type.
10211 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
10212 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10213 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10214 * config/riscv/riscv.opt (malign-data): New.
10215 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
10217 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
10219 * cgraph.c (dump_graphviz): New function.
10220 * cgraph.h (dump_graphviz): New function.
10221 * symtab.c (dump_graphviz): New function.
10223 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
10225 * config/aarch64/aarch64-simd.md
10226 (*aarch64_simd_sra<mode>): New.
10227 * config/aarch64/iterators.md
10228 (SHIFTRT): New iterator.
10229 (sra_op): New attribute.
10231 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10233 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
10234 callee-saved regs R4->R10 in an interrupt function that calls another
10237 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10239 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
10240 (_mm_blendv_epi8): New.
10242 2019-07-22 Richard Biener <rguenther@suse.de>
10244 PR tree-optimization/91221
10245 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
10246 restrict partial-def handling of empty constructors and
10247 memset to refs with known offset.
10249 2019-07-22 Jan Beulich <jbeulich@suse.com>
10251 * config/i386/sse.md (ternlogsuffix): New.
10252 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
10254 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
10256 2019-07-22 Martin Liska <mliska@suse.cz>
10258 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
10260 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
10262 2019-07-22 Martin Liska <mliska@suse.cz>
10264 * lto-section-in.c (lto_get_section_data):
10265 Use new function get_compression.
10266 * lto-streamer-out.c (produce_lto_section): Use
10267 set_compression to encode compression algorithm.
10268 * lto-streamer.h (struct lto_section): Do not
10269 use bitfields in the format.
10271 2019-07-22 Martin Liska <mliska@suse.cz>
10274 * opts-common.c (decode_cmdline_option): Decode
10275 argument of -Werror and check it for a wrong language.
10276 * opts-global.c (complain_wrong_lang): Remove such case.
10278 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
10280 * config/arc/arc.c (prepare_move_operands): Always use an
10281 intermediate register when storing a TLS symbols.
10283 2019-07-22 Stafford Horne <shorne@gmail.com>
10285 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
10288 2019-07-22 Stafford Horne <shorne@gmail.com>
10290 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
10291 and munordered-float validations.
10292 * config/or1k/constraints.md (d): New register constraint.
10293 * config/or1k/predicates.md (fp_comparison_operator): New.
10294 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
10296 (or1k_expand_compare): Normalize unordered comparisons.
10297 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
10298 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
10299 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
10300 * config/or1k/or1k.md (type): Add fpu.
10301 (fpu): New instruction reservation.
10302 (F, f, fr, fi, FI, FOP, fop): New.
10303 (<fop><F:mode>3): New ALU instruction definition.
10304 (float<fi><F:mode>2): New conversion instruction definition.
10305 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
10306 (fpcmpcc): New code iterator.
10307 (*sf_fp_insn): New instruction definition.
10308 (cstore<F:mode>4): New expand definition.
10309 (cbranch<F:mode>4): New expand definition.
10310 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
10311 munordered-float): New options.
10312 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
10315 2019-07-22 Stafford Horne <shorne@gmail.com>
10317 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
10318 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
10319 documenation to be more clear.
10320 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
10322 * config/or1k/or1k.opt (mrori): New option.
10323 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
10324 msfimm, mshftimm): Rewrite documentation to be more clear.
10325 * config/or1k/or1k.md (insn_support): Add ror and rori.
10326 (enabled): Add conditions for ror and rori.
10327 (rotrsi3): Replace condition for shftimm with ror and rori.
10329 2019-07-22 Stafford Horne <shorne@gmail.com>
10332 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
10333 (extend<mode>si2): Update predicate.
10334 * config/or1k/predicates.md (volatile_mem_operand): New.
10335 (reg_or_mem_operand): New.
10337 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
10339 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
10340 * config/rs6000/rs6000-call.c: ... to here.
10342 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10344 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
10347 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10349 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
10351 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10353 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
10355 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10357 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
10358 (any_memory_operand): New predicate.
10359 (reg_or_mem_operand): Use it.
10361 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10364 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
10366 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
10368 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
10369 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
10371 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10373 * tree.def (OMP_LOOP): New tree code.
10374 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
10375 (enum omp_clause_bind_kind): New enum.
10376 (struct tree_omp_clause): Add subcode.bind_kind.
10377 * tree.h (OMP_LOOP_CHECK): Rename to ...
10378 (OMP_LOOPING_CHECK): ... this.
10379 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
10380 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
10381 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
10382 (OMP_CLAUSE_BIND_KIND): Define.
10383 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10384 bind clause entries.
10385 (walk_tree_1): Handle OMP_CLAUSE_BIND.
10386 * tree-pretty-print.c (dump_omp_clause): Likewise.
10387 (dump_generic_node): Handle OMP_LOOP.
10388 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
10389 (in_omp_construct): New variable.
10390 (is_gimple_stmt): Handle OMP_LOOP.
10391 (gimplify_scan_omp_clauses): For lastprivate don't set
10392 check_non_private if code == OMP_LOOP. For reduction clause
10393 on OMP_LOOP combined with parallel or teams propagate as shared
10394 on the combined construct. Handle OMP_CLAUSE_BIND.
10395 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
10396 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
10397 for constructs from a loop construct to gimplify_scan_omp_clauses.
10398 Don't predetermine iterator linear on OMP_SIMD from loop construct.
10399 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
10400 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
10401 to match the implicit ORT_TARGET construct around whole body.
10402 Temporarily clear in_omp_construct when processing body.
10403 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
10404 etc. temporarily set in_omp_construct when processing body.
10405 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
10406 * omp-low.c (struct omp_context): Add loop_p.
10407 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
10408 in that the original var might be private.
10409 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
10410 (check_omp_nesting_restrictions): Adjust nesting restrictions for
10411 addition of loop construct.
10412 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
10414 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
10415 lastprivate non-addressable iterator of a collapse(1) simd.
10417 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
10419 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
10422 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
10424 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
10425 refer to default conditions. Warn for the 'y' spec which is ignored
10426 by current linkers.
10428 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
10430 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
10431 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10432 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10433 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10434 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10435 init_cumulative_args, rs6000_promote_function_mode,
10436 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10437 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10438 rs6000_function_arg_boundary, rs6000_parm_offset,
10439 rs6000_parm_start, rs6000_arg_size,
10440 rs6000_darwin64_record_arg_advance_flush,
10441 rs6000_darwin64_record_arg_advance_recurse,
10442 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10443 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10444 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10445 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10446 rs6000_finish_function_arg, rs6000_function_arg,
10447 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10448 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10449 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10450 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10451 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10452 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10453 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10454 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10455 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10456 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10457 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10458 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10459 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10460 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10461 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10462 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10463 get_element_number, altivec_expand_vec_set_builtin,
10464 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10465 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10466 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10467 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10468 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10469 rs6000_expand_builtin, rs6000_vector_type,
10470 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10471 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10472 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
10474 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
10475 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10476 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10477 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10478 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10479 init_cumulative_args, rs6000_promote_function_mode,
10480 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10481 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10482 rs6000_function_arg_boundary, rs6000_parm_offset,
10483 rs6000_parm_start, rs6000_arg_size,
10484 rs6000_darwin64_record_arg_advance_flush,
10485 rs6000_darwin64_record_arg_advance_recurse,
10486 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10487 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10488 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10489 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10490 rs6000_finish_function_arg, rs6000_function_arg,
10491 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10492 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10493 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10494 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10495 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10496 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10497 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10498 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10499 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10500 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10501 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10502 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10503 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10504 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10505 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10506 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10507 get_element_number, altivec_expand_vec_set_builtin,
10508 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10509 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10510 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10511 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10512 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10513 rs6000_expand_builtin, rs6000_vector_type,
10514 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10515 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10516 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
10517 to here from rs6000.c.
10518 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
10519 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
10520 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
10521 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
10522 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
10523 rs6000_return_in_memory, rs6000_return_in_msb,
10524 rs6000_pass_by_reference, setup_incoming_varargs,
10525 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
10526 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
10527 rs6000_function_arg_padding, rs6000_function_arg,
10528 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
10529 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
10530 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
10531 rs6000_passes_long_double, rs6000_passes_vector,
10532 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
10533 altivec_builtin_mask_for_load) Add declarations.
10534 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
10535 * config/config.gcc: Add new source file rs6000-call.c to garbage
10536 collector and extra_objs.
10538 2019-07-19 Jeff Law <law@redhat.com>
10540 PR tree-optimization/86061
10541 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
10542 strncpy. Drop some trivial dead code.
10543 (maybe_trim_memstar_call): Handle strncpy.
10545 2019-07-19 Richard Biener <rguenther@suse.de>
10547 PR tree-optimization/91211
10548 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10549 memset encoding size.
10551 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
10554 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
10556 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
10559 * ipa-inline.c (recursive_inlining): Fix limits check.
10561 2019-07-19 Richard Biener <rguenther@suse.de>
10563 PR tree-optimization/91200
10564 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
10565 no PHI nodes in middle-bb.
10567 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
10569 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
10571 * config/aarch64/aarch64-option-extensions.def: Likewise.
10573 2019-07-19 Jakub Jelinek <jakub@redhat.com>
10575 PR middle-end/91190
10576 * function.c (insert_temp_slot_address): Store into the hash table
10577 a copy of address to avoid RTL sharing issues.
10579 2019-07-19 Richard Biener <rguenther@suse.de>
10581 PR tree-optimization/91207
10583 2019-07-17 Richard Biener <rguenther@suse.de>
10585 PR tree-optimization/91178
10586 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10587 loads with a gap larger than the vector size always use
10589 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10590 avoid loading vectors that are only contained in the gap
10591 and thus are not needed.
10593 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10595 * config/i386/i386.md (*addqi_2_slp): Remove.
10596 (*<code>qi_2_slp): Ditto.
10598 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
10600 * config/rs6000/predicates.md (prefixed_mem_operand): Call
10601 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
10602 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
10603 Rename function from rs6000_prefixed_address.
10604 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10606 (TARGET_TOC): Likewise.
10607 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10609 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10611 (TARGET_TOC): Likewise.
10612 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10614 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10616 (TARGET_TOC): Likewise.
10617 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10618 check to require -mcmodel=medium for pc-relative addressing.
10619 (create_TOC_reference): Add assertion for TARGET_TOC.
10620 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
10622 (rs6000_emit_move): Likewise.
10623 (TOC_alias_set): Rename TOC alias set static variable from 'set'
10624 to 'TOC_alias_set'.
10625 (get_TOC_alias_set): Likewise.
10626 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
10628 (rs6000_can_eliminate): Likewise.
10629 (rs6000_prefixed_address_mode_p): Rename function from
10630 rs6000_prefixed_address.
10631 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
10632 TARGET_HAS_TOC and not pc-relative.
10633 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
10634 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10636 (TARGET_TOC): Likewise.
10637 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10640 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10643 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
10644 for operand 0. Do not use (match_dup) to match operand 1 with
10645 operand 0. Add check in insn constraint that either input operand
10646 matches operand 0. Use SWI12 mode iterator to also handle
10648 (*and<mode>_1_slp): Ditto.
10649 (*<code>qi_1_slp): Ditto.
10650 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
10651 Do not use (match_dup) to match operand 1 with operand 0. Add
10652 check in insn constraint that operand 1 matches operand 0.
10653 Use SWI12 mode iterator to also handle HImode operands.
10654 (*ashl<mode>3_1_slp): Ditto.
10655 (*<shift_insn><mode>3_1_slp): Ditto.
10656 (*<rotate_insn><mode>3_1_slp): Ditto.
10658 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10660 * config/arm/arm-builtins.c
10661 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
10662 (arm_expand_unop_builtin): Likewise.
10663 * config/arm/crypto.md
10664 (crypto_sha1h): Convert from define_insn to define_expand.
10665 (crypto_<crypto_pattern>): Likewise.
10666 (crypto_sha1h_lb): New define_insn.
10667 (crypto_<crypto_pattern>_lb): Likewise.
10669 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10672 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
10673 (vsha1cq_u32): Likewise.
10674 (vsha1pq_u32): Likewise.
10675 (vsha1mq_u32): Likewise.
10676 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
10678 (crypto_sha1c): Correct vec select.
10679 (crypto_sha1m): Likewise.
10680 (crypto_sha1p): Likewise.
10682 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
10684 * config/arm/predicates.md (arm_borrow_operation): New predicate.
10685 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
10686 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
10687 (subdi_zesidi_zesidi): Likewise.
10688 (negdi2_compare, negdi2_insn): Likewise.
10689 (negdi_extensidi): Likewise.
10690 (negdi_zero_extendsidi): Likewise.
10691 (arm_cmpdi_insn): Likewise.
10692 (subsi3_carryin): Use arm_borrow_operation.
10693 (subsi3_carryin_const): Likewise.
10694 (subsi3_carryin_const0): Likewise.
10695 (subsi3_carryin_compare): Likewise.
10696 (subsi3_carryin_compare_const): Likewise.
10697 (subsi3_carryin_compare_const0): Likewise.
10698 (subsi3_carryin_shift): Likewise.
10699 (rsbsi3_carryin_shift): Likewise.
10700 (negsi2_carryin_compare): Likewise.
10702 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
10704 PR tree-optimization/91137
10705 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
10706 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
10707 Init, use and fini the above new field.
10708 (determine_base_object_1): New function.
10709 (determine_base_object): Reimplement using walk_tree.
10711 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
10713 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
10714 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
10715 CLEANUP_FORCE_FAST_DCE is set.
10716 * ifcvt.c (rest_of_handle_if_conversion): Pass
10717 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
10718 if-conversion succeeded.
10720 2019-07-18 Richard Biener <rguenther@suse.de>
10722 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
10723 branches to make code less indented.
10725 2019-07-17 Alexandre Oliva <oliva@adacore.com>
10727 PR middle-end/81824
10728 * attribs.c (decls_mismatched_attributes): Simplify the logic
10729 that avoids duplicates and false positives.
10731 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
10733 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
10734 data into data section when generating PIC code.
10735 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
10736 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
10737 generating code for SOM targets earlier than HP-UX 11. Otherwise,
10738 return 2 for SOM and 0 for other targets.
10740 2019-07-17 Jeff Law <law@redhat.com>
10742 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
10743 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
10744 avoid unexpected switch statement fallthru.
10746 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10748 * config/i386/i386.md (*add<dwi>3_doubleword):
10749 Remove redundant constraints.
10750 (*add<mode>_1): Ditto.
10753 (*addqi_1_slp): Ditto.
10754 (*add<mode>_2): Ditto.
10755 (*addv<mode>4): Ditto.
10756 (*sub<dwi>3_doubleword): Ditto.
10757 (*sub<mode>_1): Ditto.
10758 (*subqi_1_slp): Ditto.
10759 (*sub<mode>_2): Ditto.
10760 (*subv<mode>4): Ditto.
10761 (*sub<mode>_3): Ditto.
10762 (@add<mode>3_carry): Ditto.
10763 (@sub<mode>3_carry): Ditto.
10764 (*add<mode>3_cc_overflow_1): Ditto.
10765 (*add<mode>3_zext_cc_overflow_2): Ditto.
10767 (*and<mode>_1): Ditto.
10769 (*andqi_1_slp): Ditto.
10771 (*andqi_2_maybe_si): Ditto.
10772 (*and<mode>_2): Ditto.
10773 (*andqi_2_slp): Ditto.
10774 (*<code><mode>_1): Ditto.
10775 (*<code>qi_1): Ditto.
10776 (*<code>qi_1_slp): Ditto.
10777 (*<code><mode>_2): Ditto.
10778 (*<code>qi_2_slp): Ditto.
10780 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
10782 * alias.c (record_component_aliases): Do not simplify pointed-to
10783 types of ODR types.
10785 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10787 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
10788 partial reg stall on alternative 2.
10790 2019-07-17 Richard Biener <rguenther@suse.de>
10792 PR tree-optimization/91178
10793 * tree-ssa.c (release_defs_bitset): Iterate from higher to
10794 lower SSA names to avoid quadratic behavior in the common case.
10795 * tree-data-ref.c (split_constant_offset): Add limit argument
10796 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10797 (split_constant_offset_1): Add limit argument and use it to
10798 limit SSA def walking. Optimize the common plus/minus case.
10800 2019-07-17 Richard Biener <rguenther@suse.de>
10802 PR tree-optimization/91178
10803 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10804 loads with a gap larger than the vector size always use
10806 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10807 avoid loading vectors that are only contained in the gap
10808 and thus are not needed.
10810 2019-07-17 Richard Biener <rguenther@suse.de>
10812 PR tree-optimization/91180
10813 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
10814 computation for memset partial defs.
10816 2019-07-17 Jakub Jelinek <jakub@redhat.com>
10818 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
10819 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
10820 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
10821 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
10822 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
10823 * omp-grid.c (grid_process_grid_body,
10824 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
10825 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
10826 == GF_OMP_FOR_KIND_SIMD.
10827 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
10828 check_omp_nesting_restrictions, scan_omp_1_stmt,
10829 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
10830 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
10831 omp_find_scan): Likewise.
10832 * omp-expand.c (expand_omp_for): Likewise.
10833 * omp-general.c (omp_extract_for_data): Likewise.
10835 PR tree-optimization/91157
10836 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
10837 a vector boolean with scalar mode.
10838 (expand_vector_condition): Handle first operand being a vector boolean
10840 (expand_vector_operations_1): For comparisons, don't bail out early
10841 if the return type is vector boolean with scalar mode, but comparison
10842 operand type is not.
10844 2019-07-17 Richard Biener <rguenther@suse.de>
10846 PR tree-optimization/91181
10847 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
10848 IFN_LOADs as calls.
10850 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
10852 * config/i386/i386.md (*testdi_1): Match CCZmode for
10853 constants that might have the SImode sign bit set.
10854 (*testqi_1_maybe_si): Remove "!" constraint modifier.
10855 Use correct constraints for pentium pairing.
10856 (*test<mode>_1): Ditto.
10858 2019-07-16 Jeff Law <law@redhat.com>
10860 PR rtl-optimization/91173
10861 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
10862 SSA_NAME with a constant value, fold its value into the offset
10863 and clear the base before calling gen_addr_rtx.
10865 2019-07-16 Jakub Jelinek <jakub@redhat.com>
10867 PR rtl-optimization/91164
10868 * dse.c (rest_of_handle_dse): If dead edges have been purged,
10869 invalidate dominance info.
10871 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10873 * read-md.h (md_reader::record_potential_iterator_use): Add a
10874 file_location parameter.
10875 * read-rtl.c (attribute_use::loc): New field.
10876 (map_attr_string): Take a file_location parameter. Report cases
10877 in which attributes map to multiple distinct values.
10878 (apply_attribute_uses): Update call accordingly.
10879 (md_reader::handle_overloaded_name): Likewise.
10880 (md_reader::apply_iterator_to_string): Likewise. Skip empty
10882 (record_attribute_use): Take a file_location parameter.
10883 Initialize attribute_use::loc.
10884 (md_reader::record_potential_iterator_use): Take a file_location
10885 parameter. Update call to record_attribute_use.
10886 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
10887 (rtx_reader::read_rtx_code): Likewise.
10888 (rtx_reader::read_rtx_operand): Likewise. Record a location
10889 for implicitly-expanded empty strings.
10891 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10893 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
10894 Use file_location instead of separate fields.
10895 (md_reader::set_md_ptr_loc): Take a file_location instead of a
10896 separate filename and line number.
10897 * read-md.c (ptr_loc): As above.
10898 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
10899 (md_reader::fprint_md_ptr_loc): Likewise.
10900 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
10901 instead of a separate filename and line number.
10902 (md_reader::read_string): Update call accordingly.
10904 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10906 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
10907 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
10908 leaving the choice between SFDF and P implicit.
10909 (*mov<mode>_update2): Likewise.
10910 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
10911 rather than leaving the choice betweem IBM128 and GPR implicit.
10912 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
10913 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
10915 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
10916 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
10917 * config/rs6000/vsx.md
10918 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
10919 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
10920 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
10921 and VSX_EXTRACT_I implicit.
10923 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10925 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
10926 Explicitly use <MOVEP1:MODE> for the mode attribute.
10928 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
10931 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
10933 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
10936 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
10937 .machine directive.
10939 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
10941 * config/i386/i386.md (@test<mode>_ccno_1):
10942 Rename from test<mode>_ccno_1.
10943 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
10944 (*testqi_1_maybe_si): Remove modrm attribute.
10945 (*test<mode>_1): Ditto.
10946 * config/i386/i386-expand.c (ix86_split_idivmod): Use
10947 gen_test_ccno_1 and gen_extend_insn.
10949 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
10951 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
10954 2019-07-15 Richard Biener <rguenther@suse.de>
10956 PR middle-end/91162
10957 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
10958 node make sure to replace all uses with something valid.
10960 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
10962 PR tree-optimization/88497
10963 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
10964 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
10965 function undistribute_bitref_for_vector.
10966 (undistribute_bitref_for_vector): New function.
10967 (cleanup_vinfo_map): Likewise.
10968 (sort_by_mach_mode): Likewise.
10970 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
10972 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
10973 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
10974 and testdi_ccno_1 using SWI48 mode attribute.
10975 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
10976 x86_64_szext_general_operand.
10977 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
10978 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
10979 instead of genera_operand mode attribute.
10981 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
10983 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
10984 fopen and fclose to their respective types.
10985 (DotFn.invoke): Ditto.
10987 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
10989 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
10990 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
10991 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
10992 (array_index_predicate): Remove.
10993 (analyze_function_body): Account cost for variable ofsetted array
10995 (estimate_node_size_and_time): Do not compute array index hint.
10996 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
10997 (inline_read_section): Do not read array index hint.
10998 (ipa_fn_summary_write): Do not write array index hint.
10999 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
11000 * ipa-cp.c (hint_time_bonus): Remove.
11001 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
11002 (ipa_fnsummary): Remove array_index.
11003 * ipa-inline.c (want_inline_small_function_p): Do not use
11005 (edge_badness): Likewise.
11006 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
11008 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
11011 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
11012 superfluous "builtin function" phrasing.
11014 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
11016 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
11018 (aliasing_component_refs_walk): Break out from ...
11019 (aliasing_component_refs_p): ... here.
11021 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
11024 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
11025 "builtin function" phrasing.
11027 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11030 * recog.h (temporary_volatile_ok): New class.
11031 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
11032 volatile_ok temporarily to true using temporary_volatile_ok.
11033 * expr.c (emit_block_move_via_cpymem): Likewise.
11034 * optabs.c (maybe_legitimize_operand): Likewise.
11036 2019-07-13 Jakub Jelinek <jakub@redhat.com>
11038 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
11039 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
11040 uses inside of order(concurrent) constructs.
11041 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
11042 OMP_CLAUSE_ORDER is seen.
11043 * omp-low.c (struct omp_context): Add order_concurrent member.
11044 (scan_sharing_clauses): Set ctx->order_concurrent if
11045 OMP_CLAUSE_ORDER is seen.
11046 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
11047 of simd order(concurrent). Diagnose constructs not allowed inside of
11048 for order(concurrent).
11049 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
11050 complaining about static double setjmp (double); or class static
11051 methods or non-global namespace setjmps.
11052 (omp_runtime_api_call): New function.
11053 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
11054 order(concurrent) loops.
11056 2019-07-12 Martin Sebor <msebor@redhat.com>
11058 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
11059 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
11060 * tree-vrp.c (vrp_prop::check_mem_ref): Use
11061 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
11063 2019-07-12 Jan Hubicka <jh@suse.cz>
11065 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
11066 (indirect_refs_may_alias_p): ... here.
11067 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
11068 mem refs in the access paths.
11070 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
11072 PR tree-optimization/89430
11073 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
11074 store elimination for local variable without address escape.
11076 2019-07-12 Jeff Law <law@redhat.com>
11078 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
11079 for the ".far" section.
11081 2019-07-12 Richard Biener <rguenther@suse.de>
11083 PR tree-optimization/91145
11084 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
11087 2019-07-12 Alexandre Oliva <oliva@adacore.com>
11089 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
11090 rather than this_state as the lowering context for the ELSE
11091 seq in a GIMPLE_EH_ELSE.
11093 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11095 * vector-builder.h (vector_builder::elt): Allow already-supplied
11096 elements to be read back before building is complete.
11098 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11100 PR rtl-optimization/91136
11101 * df-core.c (ACCESSING REFS): Fix typos in comment.
11102 * resource.c (mark_target_live_reg): Add artificial defs that occur at
11103 the beginning of the block to the initial set of live registers.
11105 2019-07-12 Richard Biener <rguenther@suse.de>
11107 * fold-const.h (get_array_ctor_element_at_index): Adjust.
11108 * fold-const.c (get_array_ctor_element_at_index): Add
11109 ctor_idx output parameter informing the caller where in
11110 the constructor the element was (not) found. Add early exit
11111 for when the ctor is sorted.
11112 * gimple-fold.c (fold_array_ctor_reference): Support constant
11113 folding across multiple array elements.
11115 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11117 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
11118 doesn't have location, set the current location to the function's end.
11120 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11122 * config/aarch64/aarch64.md (*compare_condjump<mode>)
11123 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
11124 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
11125 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
11126 * config/aarch64/aarch64-simd.md
11127 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
11128 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
11129 * config/aarch64/aarch64-sve.md
11130 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
11131 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
11133 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11135 * doc/md.texi: Document that @ patterns can have different
11136 numbers of operands.
11137 * genemit.c (handle_overloaded_gen): Handle this case.
11138 * genopinit.c (handle_overloaded_gen): Likewise.
11139 * gensupport.c (replace_operands_with_dups): Iterate over
11140 the new rtx's format rather than the old one's.
11142 2019-07-12 Jakub Jelinek <jakub@redhat.com>
11144 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
11145 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11146 order clause entries.
11147 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
11148 * tree-pretty-print.c (dump_omp_clause): Likewise.
11149 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
11151 * omp-low.c (scan_sharing_clauses): Likewise.
11152 * tree-nested.c (convert_nonlocal_omp_clauses,
11153 convert_local_omp_clauses): Likewise.
11155 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
11157 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
11158 fallthrough target of current basic block isn't the placed
11161 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
11164 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
11165 (_mm512_storeu_epi64): Likewise.
11166 (_mm512_loadu_epi32): Likewise.
11167 (_mm512_storeu_epi32): Likewise.
11168 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
11169 (_mm_storeu_epi64): Likewise.
11170 (_mm256_storeu_epi32): Likewise.
11171 (_mm_storeu_epi32): Likewise.
11173 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11175 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
11177 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11179 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
11182 2019-07-11 Jakub Jelinek <jakub@redhat.com>
11185 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
11186 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11187 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
11188 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
11189 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
11190 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
11192 (ufix_truncv2dfv2si2<mask_name>): Change into ...
11193 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
11194 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
11196 (sse2_cvttpd2dq<mask_name>): Change into ...
11197 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
11198 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
11199 (*sse2_cvtpd2dq<mask_name>): Change into ...
11200 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11201 Add "C" constraint to const0_operand.
11202 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
11203 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
11207 * config/i386/i386-builtin-types.def
11208 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
11209 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
11210 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
11211 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
11212 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
11213 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
11214 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
11215 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
11216 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
11217 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
11218 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
11219 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
11220 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
11221 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
11222 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
11223 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
11224 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
11225 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
11226 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
11227 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
11228 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
11229 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
11230 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
11231 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
11232 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
11233 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
11234 __builtin_ia32_vpdpbusd_v4si_maskz,
11235 __builtin_ia32_vpdpbusds_v16si_mask,
11236 __builtin_ia32_vpdpbusds_v16si_maskz,
11237 __builtin_ia32_vpdpbusds_v8si_mask,
11238 __builtin_ia32_vpdpbusds_v8si_maskz,
11239 __builtin_ia32_vpdpbusds_v4si_mask,
11240 __builtin_ia32_vpdpbusds_v4si_maskz,
11241 __builtin_ia32_vpdpwssd_v16si_mask,
11242 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
11243 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
11244 __builtin_ia32_vpdpwssd_v4si_maskz,
11245 __builtin_ia32_vpdpwssds_v16si_mask,
11246 __builtin_ia32_vpdpwssds_v16si_maskz,
11247 __builtin_ia32_vpdpwssds_v8si_mask,
11248 __builtin_ia32_vpdpwssds_v8si_maskz,
11249 __builtin_ia32_vpdpwssds_v4si_mask,
11250 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
11251 suffixed types rather than *_INT.
11252 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
11253 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
11254 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
11255 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
11256 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
11257 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
11259 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
11261 * tree-vrp.c (intersect_ranges): If we know the intersection is
11262 empty, there is no need to conservatively add anything else to
11265 2019-07-11 Richard Biener <rguenther@suse.de>
11267 PR middle-end/91131
11268 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
11269 when the object is volatile and we have not cleared it even though
11270 there are no nonzero elements.
11272 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
11274 * config/rs6000/predicates.md (cint34_operand): Update
11275 SIGNED_34BIT_OFFSET_P call.
11276 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
11277 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
11278 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
11279 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
11280 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
11282 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
11283 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
11284 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
11285 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
11286 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
11288 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
11290 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
11291 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
11292 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
11293 (DEF_MIN_OSX_VERSION): New.
11295 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11297 * fold-const.c (fold_relational_const): Fix folding of
11298 vector-to-scalar NE_EXPRs.
11299 (test_vector_folding): Add more tests.
11301 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11304 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
11305 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
11306 (vec_setv2di_internal): Reexpress as...
11307 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
11308 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
11309 rather than gen_neon_vset_lane<mode>.
11311 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
11314 * lra-constraints.c (process_alt_operands): Don't match user
11315 defined regs only if they are early clobbers.
11317 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
11319 * wide-int.h (wi::lshift): Reject negative values for the fast path.
11321 2019-07-10 Richard Biener <rguenther@suse.de>
11323 PR tree-optimization/91126
11324 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
11325 native encoding offset for BYTES_BIG_ENDIAN.
11326 (vn_reference_lookup_3): Likewise.
11328 2019-07-10 Richard Biener <rguenther@suse.de>
11330 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
11331 LHS whenever possible.
11333 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
11335 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
11336 from ...; work also on duplicated types.
11337 (nonoverlapping_component_refs_since_match): ... here
11338 (ncr_type_uid): Break out from ...
11339 (ncr_compar): ... here; look for TYPE_UID of canonical type if
11341 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
11342 the types and nonoverlapping_component_refs_p_1 to disambiguate.
11344 2019-07-09 Martin Sebor <msebor@redhat.com>
11346 PR tree-optimization/90989
11347 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
11348 optimization to just single character stores.
11350 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
11352 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
11353 Swap operands only once.
11355 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
11357 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
11358 for both call instructions.
11360 2019-07-09 John Darrington <john@darrington.wattle.id.au>
11362 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
11363 rather than GET_MODE_BITSIZE to better handle partial integer modes.
11365 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
11367 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
11368 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
11369 function from rs6000-logue.c back to rs6000.c.
11370 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
11372 2019-07-09 Martin Sebor <msebor@redhat.com>
11375 * auto-profile.c: Change class-key of PODs to struct and others
11377 * basic-block.h: Same.
11378 * bitmap.c (bitmap_alloc): Same.
11380 * builtins.c (expand_builtin_prefetch): Same.
11381 (expand_builtin_interclass_mathfn): Same.
11382 (expand_builtin_strlen): Same.
11383 (expand_builtin_mempcpy_args): Same.
11384 (expand_cmpstr): Same.
11385 (expand_builtin___clear_cache): Same.
11386 (expand_ifn_atomic_bit_test_and): Same.
11387 (expand_builtin_thread_pointer): Same.
11388 (expand_builtin_set_thread_pointer): Same.
11389 * caller-save.c (setup_save_areas): Same.
11390 (replace_reg_with_saved_mem): Same.
11391 (insert_restore): Same.
11392 (insert_save): Same.
11393 (add_used_regs): Same.
11394 * cfg.c (get_bb_copy): Same.
11395 (set_loop_copy): Same.
11398 * cfgexpand.c (alloc_stack_frame_space): Same.
11399 (add_stack_var): Same.
11400 (add_stack_var_conflict): Same.
11401 (add_scope_conflicts_1): Same.
11402 (update_alias_info_with_stack_vars): Same.
11403 (expand_used_vars): Same.
11404 * cfghooks.c (redirect_edge_and_branch_force): Same.
11405 (delete_basic_block): Same.
11406 (split_edge): Same.
11407 (make_forwarder_block): Same.
11408 (force_nonfallthru): Same.
11409 (duplicate_block): Same.
11410 (lv_flush_pending_stmts): Same.
11411 * cfghooks.h: Same.
11412 * cfgloop.c (flow_loops_cfg_dump): Same.
11413 (flow_loop_nested_p): Same.
11414 (superloop_at_depth): Same.
11415 (get_loop_latch_edges): Same.
11416 (flow_loop_dump): Same.
11417 (flow_loops_dump): Same.
11418 (flow_loops_free): Same.
11419 (flow_loop_nodes_find): Same.
11420 (establish_preds): Same.
11421 (flow_loop_tree_node_add): Same.
11422 (flow_loop_tree_node_remove): Same.
11423 (flow_loops_find): Same.
11424 (find_subloop_latch_edge_by_profile): Same.
11425 (find_subloop_latch_edge_by_ivs): Same.
11426 (mfb_redirect_edges_in_set): Same.
11427 (form_subloop): Same.
11428 (merge_latch_edges): Same.
11429 (disambiguate_multiple_latches): Same.
11430 (disambiguate_loops_with_multiple_latches): Same.
11431 (flow_bb_inside_loop_p): Same.
11432 (glb_enum_p): Same.
11433 (get_loop_body_with_size): Same.
11434 (get_loop_body): Same.
11435 (fill_sons_in_loop): Same.
11436 (get_loop_body_in_dom_order): Same.
11437 (get_loop_body_in_custom_order): Same.
11438 (release_recorded_exits): Same.
11439 (get_loop_exit_edges): Same.
11440 (num_loop_branches): Same.
11441 (remove_bb_from_loops): Same.
11442 (find_common_loop): Same.
11443 (delete_loop): Same.
11444 (cancel_loop): Same.
11445 (verify_loop_structure): Same.
11446 (loop_preheader_edge): Same.
11447 (loop_exit_edge_p): Same.
11448 (single_exit): Same.
11449 (loop_exits_to_bb_p): Same.
11450 (loop_exits_from_bb_p): Same.
11451 (get_loop_location): Same.
11452 (record_niter_bound): Same.
11453 (get_estimated_loop_iterations_int): Same.
11454 (max_stmt_executions_int): Same.
11455 (likely_max_stmt_executions_int): Same.
11456 (get_estimated_loop_iterations): Same.
11457 (get_max_loop_iterations): Same.
11458 (get_max_loop_iterations_int): Same.
11459 (get_likely_max_loop_iterations): Same.
11460 * cfgloop.h (simple_loop_desc): Same.
11462 (loop_depth): Same.
11463 (loop_outer): Same.
11464 (loop_iterator::next): Same.
11465 (loop_outermost): Same.
11466 * cfgloopanal.c (mark_irreducible_loops): Same.
11467 (num_loop_insns): Same.
11468 (average_num_loop_insns): Same.
11469 (expected_loop_iterations_unbounded): Same.
11470 (expected_loop_iterations): Same.
11471 (mark_loop_exit_edges): Same.
11472 (single_likely_exit): Same.
11473 * cfgloopmanip.c (fix_bb_placement): Same.
11474 (fix_bb_placements): Same.
11475 (remove_path): Same.
11476 (place_new_loop): Same.
11478 (scale_loop_frequencies): Same.
11479 (scale_loop_profile): Same.
11480 (create_empty_if_region_on_edge): Same.
11481 (create_empty_loop_on_edge): Same.
11484 (fix_loop_placements): Same.
11485 (copy_loop_info): Same.
11486 (duplicate_loop): Same.
11487 (duplicate_subloops): Same.
11488 (loop_redirect_edge): Same.
11489 (can_duplicate_loop_p): Same.
11490 (duplicate_loop_to_header_edge): Same.
11491 (mfb_keep_just): Same.
11492 (has_preds_from_loop): Same.
11493 (create_preheader): Same.
11494 (create_preheaders): Same.
11495 (lv_adjust_loop_entry_edge): Same.
11496 (loop_version): Same.
11497 * cfgloopmanip.h: Same.
11499 * cgraphbuild.c: Same.
11500 * combine.c (make_extraction): Same.
11501 * config/i386/i386-features.c: Same.
11502 * config/i386/i386-features.h: Same.
11503 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
11504 (ix86_emit_outlined_ms2sysv_restore): Same.
11505 (ix86_noce_conversion_profitable_p): Same.
11506 (ix86_init_cost): Same.
11507 (ix86_simd_clone_usable): Same.
11508 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
11510 * coretypes.h: Same.
11511 * data-streamer-in.c (string_for_index): Change class-key of PODs
11512 to struct and others to class.
11513 (streamer_read_indexed_string): Same.
11514 (streamer_read_string): Same.
11515 (bp_unpack_indexed_string): Same.
11516 (bp_unpack_string): Same.
11517 (streamer_read_uhwi): Same.
11518 (streamer_read_hwi): Same.
11519 (streamer_read_gcov_count): Same.
11520 (streamer_read_wide_int): Same.
11521 * data-streamer.h (streamer_write_bitpack): Same.
11522 (bp_unpack_value): Same.
11523 (streamer_write_char_stream): Same.
11524 (streamer_write_hwi_in_range): Same.
11525 (streamer_write_record_start): Same.
11526 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
11527 (add_cross_iteration_register_deps): Same.
11528 (build_intra_loop_deps): Same.
11529 * df-core.c (df_analyze): Same.
11530 (loop_post_order_compute): Same.
11531 (loop_inverted_post_order_compute): Same.
11532 * df-problems.c (df_rd_alloc): Same.
11533 (df_rd_simulate_one_insn): Same.
11534 (df_rd_local_compute): Same.
11535 (df_rd_init_solution): Same.
11536 (df_rd_confluence_n): Same.
11537 (df_rd_transfer_function): Same.
11538 (df_rd_free): Same.
11539 (df_rd_dump_defs_set): Same.
11540 (df_rd_top_dump): Same.
11541 (df_lr_alloc): Same.
11542 (df_lr_reset): Same.
11543 (df_lr_local_compute): Same.
11544 (df_lr_init): Same.
11545 (df_lr_confluence_n): Same.
11546 (df_lr_free): Same.
11547 (df_lr_top_dump): Same.
11548 (df_lr_verify_transfer_functions): Same.
11549 (df_live_alloc): Same.
11550 (df_live_reset): Same.
11551 (df_live_init): Same.
11552 (df_live_confluence_n): Same.
11553 (df_live_finalize): Same.
11554 (df_live_free): Same.
11555 (df_live_top_dump): Same.
11556 (df_live_verify_transfer_functions): Same.
11557 (df_mir_alloc): Same.
11558 (df_mir_reset): Same.
11559 (df_mir_init): Same.
11560 (df_mir_confluence_n): Same.
11561 (df_mir_free): Same.
11562 (df_mir_top_dump): Same.
11563 (df_word_lr_alloc): Same.
11564 (df_word_lr_reset): Same.
11565 (df_word_lr_init): Same.
11566 (df_word_lr_confluence_n): Same.
11567 (df_word_lr_free): Same.
11568 (df_word_lr_top_dump): Same.
11569 (df_md_alloc): Same.
11570 (df_md_simulate_one_insn): Same.
11571 (df_md_reset): Same.
11572 (df_md_init): Same.
11573 (df_md_free): Same.
11574 (df_md_top_dump): Same.
11575 * df-scan.c (df_insn_delete): Same.
11576 (df_insn_rescan): Same.
11577 (df_notes_rescan): Same.
11578 (df_sort_and_compress_mws): Same.
11579 (df_install_mws): Same.
11580 (df_refs_add_to_chains): Same.
11581 (df_ref_create_structure): Same.
11582 (df_ref_record): Same.
11583 (df_def_record_1): Same.
11584 (df_find_hard_reg_defs): Same.
11585 (df_uses_record): Same.
11586 (df_get_conditional_uses): Same.
11587 (df_get_call_refs): Same.
11588 (df_recompute_luids): Same.
11589 (df_get_entry_block_def_set): Same.
11590 (df_entry_block_defs_collect): Same.
11591 (df_get_exit_block_use_set): Same.
11592 (df_exit_block_uses_collect): Same.
11593 (df_mws_verify): Same.
11594 (df_bb_verify): Same.
11595 * df.h (df_scan_get_bb_info): Same.
11596 * doc/tm.texi: Same.
11597 * dse.c (record_store): Same.
11598 * dumpfile.h: Same.
11599 * emit-rtl.c (const_fixed_hasher::equal): Same.
11600 (set_mem_attributes_minus_bitpos): Same.
11601 (change_address): Same.
11602 (adjust_address_1): Same.
11603 (offset_address): Same.
11604 * emit-rtl.h: Same.
11605 * except.c (dw2_build_landing_pads): Same.
11606 (sjlj_emit_dispatch_table): Same.
11607 * explow.c (allocate_dynamic_stack_space): Same.
11608 (emit_stack_probe): Same.
11609 (probe_stack_range): Same.
11610 * expmed.c (store_bit_field_using_insv): Same.
11611 (store_bit_field_1): Same.
11612 (store_integral_bit_field): Same.
11613 (extract_bit_field_using_extv): Same.
11614 (extract_bit_field_1): Same.
11615 (emit_cstore): Same.
11616 * expr.c (emit_block_move_via_cpymem): Same.
11617 (expand_cmpstrn_or_cmpmem): Same.
11618 (set_storage_via_setmem): Same.
11619 (emit_single_push_insn_1): Same.
11620 (expand_assignment): Same.
11621 (store_constructor): Same.
11622 (expand_expr_real_2): Same.
11623 (expand_expr_real_1): Same.
11624 (try_casesi): Same.
11626 * function.c (try_fit_stack_local): Same.
11627 (assign_stack_local_1): Same.
11628 (assign_stack_local): Same.
11629 (cut_slot_from_list): Same.
11630 (insert_slot_to_list): Same.
11631 (max_slot_level): Same.
11632 (move_slot_to_level): Same.
11633 (temp_address_hasher::equal): Same.
11634 (remove_unused_temp_slot_addresses): Same.
11635 (assign_temp): Same.
11636 (combine_temp_slots): Same.
11637 (update_temp_slot_address): Same.
11638 (preserve_temp_slots): Same.
11639 * function.h: Same.
11641 * gcc-rich-location.h: Same.
11643 * genattrtab.c (check_attr_test): Same.
11644 (check_attr_value): Same.
11645 (convert_set_attr_alternative): Same.
11646 (convert_set_attr): Same.
11647 (check_defs): Same.
11648 (copy_boolean): Same.
11649 (get_attr_value): Same.
11650 (expand_delays): Same.
11651 (make_length_attrs): Same.
11653 (make_alternative_compare): Same.
11654 (simplify_test_exp): Same.
11655 (tests_attr_p): Same.
11656 (get_attr_order): Same.
11657 (clear_struct_flag): Same.
11659 (compares_alternatives_p): Same.
11662 (find_attrs_to_cache): Same.
11663 (write_test_expr): Same.
11664 (walk_attr_value): Same.
11665 (write_attr_get): Same.
11666 (eliminate_known_true): Same.
11667 (write_insn_cases): Same.
11668 (write_attr_case): Same.
11669 (write_attr_valueq): Same.
11670 (write_attr_value): Same.
11671 (write_dummy_eligible_delay): Same.
11672 (next_comma_elt): Same.
11674 (make_internal_attr): Same.
11675 (copy_rtx_unchanging): Same.
11676 (gen_insn_reserv): Same.
11677 (check_tune_attr): Same.
11678 (make_automaton_attrs): Same.
11679 (handle_arg): Same.
11680 * genextract.c (gen_insn): Same.
11681 (VEC_char_to_string): Same.
11682 * genmatch.c (print_operand): Same.
11684 (parser::parse_operation): Same.
11685 (parser::parse_capture): Same.
11686 (parser::parse_c_expr): Same.
11687 (parser::parse_simplify): Same.
11689 * genoutput.c (output_operand_data): Same.
11690 (output_get_insn_name): Same.
11691 (compare_operands): Same.
11692 (place_operands): Same.
11693 (process_template): Same.
11694 (validate_insn_alternatives): Same.
11695 (validate_insn_operands): Same.
11696 (gen_expand): Same.
11697 (note_constraint): Same.
11698 * genpreds.c (write_one_predicate_function): Same.
11699 (add_constraint): Same.
11700 (process_define_register_constraint): Same.
11701 (write_lookup_constraint_1): Same.
11702 (write_lookup_constraint_array): Same.
11703 (write_insn_constraint_len): Same.
11704 (write_reg_class_for_constraint_1): Same.
11705 (write_constraint_satisfied_p_array): Same.
11706 * genrecog.c (optimize_subroutine_group): Same.
11707 * gensupport.c (process_define_predicate): Same.
11708 (queue_pattern): Same.
11709 (remove_from_queue): Same.
11710 (process_rtx): Same.
11711 (is_predicable): Same.
11712 (change_subst_attribute): Same.
11713 (subst_pattern_match): Same.
11714 (alter_constraints): Same.
11715 (alter_attrs_for_insn): Same.
11716 (shift_output_template): Same.
11717 (alter_output_for_subst_insn): Same.
11718 (process_one_cond_exec): Same.
11720 (process_define_cond_exec): Same.
11721 (mnemonic_htab_callback): Same.
11722 (gen_mnemonic_attr): Same.
11723 (read_md_rtx): Same.
11724 * ggc-page.c: Same.
11725 * gimple-loop-interchange.cc (dump_reduction): Same.
11726 (dump_induction): Same.
11727 (loop_cand::~loop_cand): Same.
11728 (free_data_refs_with_aux): Same.
11729 (tree_loop_interchange::interchange_loops): Same.
11730 (tree_loop_interchange::map_inductions_to_loop): Same.
11731 (tree_loop_interchange::move_code_to_inner_loop): Same.
11732 (compute_access_stride): Same.
11733 (compute_access_strides): Same.
11734 (proper_loop_form_for_interchange): Same.
11735 (tree_loop_interchange_compute_ddrs): Same.
11736 (prune_datarefs_not_in_loop): Same.
11737 (prepare_data_references): Same.
11738 (pass_linterchange::execute): Same.
11739 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
11740 (unroll_jam_possible_p): Same.
11741 (fuse_loops): Same.
11742 (adjust_unroll_factor): Same.
11743 (tree_loop_unroll_and_jam): Same.
11744 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
11745 (loop_versioning::expensive_stmt_p): Same.
11746 (loop_versioning::version_for_unity): Same.
11747 (loop_versioning::dump_inner_likelihood): Same.
11748 (loop_versioning::find_per_loop_multiplication): Same.
11749 (loop_versioning::analyze_term_using_scevs): Same.
11750 (loop_versioning::record_address_fragment): Same.
11751 (loop_versioning::analyze_expr): Same.
11752 (loop_versioning::analyze_blocks): Same.
11753 (loop_versioning::prune_conditions): Same.
11754 (loop_versioning::merge_loop_info): Same.
11755 (loop_versioning::add_loop_to_queue): Same.
11756 (loop_versioning::decide_whether_loop_is_versionable): Same.
11757 (loop_versioning::make_versioning_decisions): Same.
11758 (loop_versioning::implement_versioning_decisions): Same.
11759 * gimple-ssa-evrp-analyze.c
11760 (evrp_range_analyzer::record_ranges_from_phis): Same.
11761 * gimple-ssa-store-merging.c (split_store::split_store): Same.
11762 (count_multiple_uses): Same.
11763 (split_group): Same.
11764 (imm_store_chain_info::output_merged_store): Same.
11765 (pass_store_merging::process_store): Same.
11766 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
11767 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
11769 (alloca_call_type): Same.
11770 (pass_walloca::execute): Same.
11771 * gimple-streamer-in.c (input_phi): Same.
11772 (input_gimple_stmt): Same.
11773 * gimple-streamer.h: Same.
11774 * godump.c (go_force_record_alignment): Same.
11775 (go_format_type): Same.
11776 (go_output_type): Same.
11777 (go_output_fndecl): Same.
11778 (go_output_typedef): Same.
11779 (keyword_hash_init): Same.
11780 (find_dummy_types): Same.
11781 * graph.c (draw_cfg_nodes_no_loops): Same.
11782 (draw_cfg_nodes_for_loop): Same.
11783 * hard-reg-set.h (hard_reg_set_iter_next): Same.
11784 * hsa-brig.c: Same.
11785 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
11786 * hsa-dump.c (dump_hsa_cfun): Same.
11787 * hsa-gen.c (gen_function_def_parameters): Same.
11788 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
11789 * input.c (dump_line_table_statistics): Same.
11790 (test_lexer): Same.
11792 * internal-fn.c (get_multi_vector_move): Same.
11793 (expand_load_lanes_optab_fn): Same.
11794 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
11795 (expand_GOMP_SIMT_EXIT): Same.
11796 (expand_GOMP_SIMT_LAST_LANE): Same.
11797 (expand_GOMP_SIMT_ORDERED_PRED): Same.
11798 (expand_GOMP_SIMT_VOTE_ANY): Same.
11799 (expand_GOMP_SIMT_XCHG_BFLY): Same.
11800 (expand_GOMP_SIMT_XCHG_IDX): Same.
11801 (expand_addsub_overflow): Same.
11802 (expand_neg_overflow): Same.
11803 (expand_mul_overflow): Same.
11804 (expand_call_mem_ref): Same.
11805 (expand_mask_load_optab_fn): Same.
11806 (expand_scatter_store_optab_fn): Same.
11807 (expand_gather_load_optab_fn): Same.
11808 * ipa-cp.c (ipa_get_parm_lattices): Same.
11809 (print_all_lattices): Same.
11810 (ignore_edge_p): Same.
11811 (build_toporder_info): Same.
11812 (free_toporder_info): Same.
11813 (push_node_to_stack): Same.
11814 (ipcp_lattice<valtype>::set_contains_variable): Same.
11815 (set_agg_lats_to_bottom): Same.
11816 (ipcp_bits_lattice::meet_with): Same.
11817 (set_single_call_flag): Same.
11818 (initialize_node_lattices): Same.
11819 (ipa_get_jf_ancestor_result): Same.
11820 (ipcp_verify_propagated_values): Same.
11821 (propagate_scalar_across_jump_function): Same.
11822 (propagate_context_across_jump_function): Same.
11823 (propagate_bits_across_jump_function): Same.
11824 (ipa_vr_operation_and_type_effects): Same.
11825 (propagate_vr_across_jump_function): Same.
11826 (set_check_aggs_by_ref): Same.
11827 (set_chain_of_aglats_contains_variable): Same.
11828 (merge_aggregate_lattices): Same.
11829 (agg_pass_through_permissible_p): Same.
11830 (propagate_aggs_across_jump_function): Same.
11831 (call_passes_through_thunk_p): Same.
11832 (propagate_constants_across_call): Same.
11833 (devirtualization_time_bonus): Same.
11834 (good_cloning_opportunity_p): Same.
11835 (context_independent_aggregate_values): Same.
11836 (gather_context_independent_values): Same.
11837 (perform_estimation_of_a_value): Same.
11838 (estimate_local_effects): Same.
11839 (value_topo_info<valtype>::add_val): Same.
11840 (add_all_node_vals_to_toposort): Same.
11841 (value_topo_info<valtype>::propagate_effects): Same.
11842 (ipcp_propagate_stage): Same.
11843 (ipcp_discover_new_direct_edges): Same.
11844 (same_node_or_its_all_contexts_clone_p): Same.
11845 (cgraph_edge_brings_value_p): Same.
11846 (gather_edges_for_value): Same.
11847 (create_specialized_node): Same.
11848 (find_more_scalar_values_for_callers_subset): Same.
11849 (find_more_contexts_for_caller_subset): Same.
11850 (copy_plats_to_inter): Same.
11851 (intersect_aggregates_with_edge): Same.
11852 (find_aggregate_values_for_callers_subset): Same.
11853 (cgraph_edge_brings_all_agg_vals_for_node): Same.
11854 (decide_about_value): Same.
11855 (decide_whether_version_node): Same.
11856 (spread_undeadness): Same.
11857 (identify_dead_nodes): Same.
11858 (ipcp_store_vr_results): Same.
11859 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
11860 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
11861 (redirect_to_unreachable): Same.
11862 (edge_set_predicate): Same.
11863 (evaluate_conditions_for_known_args): Same.
11864 (evaluate_properties_for_edge): Same.
11865 (ipa_fn_summary_t::duplicate): Same.
11866 (ipa_call_summary_t::duplicate): Same.
11867 (dump_ipa_call_summary): Same.
11868 (ipa_dump_fn_summary): Same.
11869 (eliminated_by_inlining_prob): Same.
11870 (set_cond_stmt_execution_predicate): Same.
11871 (set_switch_stmt_execution_predicate): Same.
11872 (compute_bb_predicates): Same.
11873 (will_be_nonconstant_expr_predicate): Same.
11874 (phi_result_unknown_predicate): Same.
11875 (analyze_function_body): Same.
11876 (compute_fn_summary): Same.
11877 (estimate_edge_devirt_benefit): Same.
11878 (estimate_edge_size_and_time): Same.
11879 (estimate_calls_size_and_time): Same.
11880 (estimate_node_size_and_time): Same.
11881 (remap_edge_change_prob): Same.
11882 (remap_edge_summaries): Same.
11883 (ipa_merge_fn_summary_after_inlining): Same.
11884 (ipa_fn_summary_generate): Same.
11885 (inline_read_section): Same.
11886 (ipa_fn_summary_read): Same.
11887 (ipa_fn_summary_write): Same.
11888 * ipa-fnsummary.h: Same.
11889 * ipa-hsa.c (ipa_hsa_read_section): Same.
11890 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
11891 * ipa-icf.c (sem_function::param_used_p): Same.
11892 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
11893 * ipa-inline.c (edge_badness): Same.
11894 (inline_small_functions): Same.
11895 * ipa-polymorphic-call.c
11896 (ipa_polymorphic_call_context::stream_out): Same.
11897 * ipa-predicate.c (predicate::remap_after_duplication): Same.
11898 (predicate::remap_after_inlining): Same.
11899 (predicate::stream_out): Same.
11900 * ipa-predicate.h: Same.
11901 * ipa-profile.c (ipa_profile_read_summary): Same.
11902 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
11903 (count_formal_params): Same.
11904 (ipa_dump_param): Same.
11905 (ipa_alloc_node_params): Same.
11906 (ipa_print_node_jump_functions_for_edge): Same.
11907 (ipa_print_node_jump_functions): Same.
11908 (ipa_load_from_parm_agg): Same.
11909 (get_ancestor_addr_info): Same.
11910 (ipa_compute_jump_functions_for_edge): Same.
11911 (ipa_analyze_virtual_call_uses): Same.
11912 (ipa_analyze_stmt_uses): Same.
11913 (ipa_analyze_params_uses_in_bb): Same.
11914 (update_jump_functions_after_inlining): Same.
11915 (try_decrement_rdesc_refcount): Same.
11916 (ipa_impossible_devirt_target): Same.
11917 (update_indirect_edges_after_inlining): Same.
11918 (combine_controlled_uses_counters): Same.
11919 (ipa_edge_args_sum_t::duplicate): Same.
11920 (ipa_write_jump_function): Same.
11921 (ipa_write_indirect_edge_info): Same.
11922 (ipa_write_node_info): Same.
11923 (ipa_read_edge_info): Same.
11924 (ipa_prop_read_section): Same.
11925 (read_replacements_section): Same.
11926 * ipa-prop.h (ipa_get_param_count): Same.
11927 (ipa_get_param): Same.
11928 (ipa_get_type): Same.
11929 (ipa_get_param_move_cost): Same.
11930 (ipa_set_param_used): Same.
11931 (ipa_get_controlled_uses): Same.
11932 (ipa_set_controlled_uses): Same.
11933 (ipa_get_cs_argument_count): Same.
11934 * ipa-pure-const.c (analyze_function): Same.
11935 (pure_const_read_summary): Same.
11937 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
11938 * ipa-split.c (test_nonssa_use): Same.
11939 (dump_split_point): Same.
11940 (dominated_by_forbidden): Same.
11941 (split_part_set_ssa_name_p): Same.
11942 (find_split_points): Same.
11943 * ira-build.c (finish_loop_tree_nodes): Same.
11944 (low_pressure_loop_node_p): Same.
11945 * ira-color.c (ira_reuse_stack_slot): Same.
11947 * ira.c (setup_reg_equiv): Same.
11948 (print_insn_chain): Same.
11950 * loop-doloop.c (doloop_condition_get): Same.
11952 (record_reg_sets): Same.
11953 (doloop_optimize): Same.
11954 * loop-init.c (loop_optimizer_init): Same.
11955 (fix_loop_structure): Same.
11956 * loop-invariant.c (merge_identical_invariants): Same.
11957 (compute_always_reached): Same.
11958 (find_exits): Same.
11959 (may_assign_reg_p): Same.
11960 (find_invariants_bb): Same.
11961 (find_invariants_body): Same.
11962 (replace_uses): Same.
11963 (can_move_invariant_reg): Same.
11964 (free_inv_motion_data): Same.
11965 (move_single_loop_invariants): Same.
11966 (change_pressure): Same.
11967 (mark_ref_regs): Same.
11968 (calculate_loop_reg_pressure): Same.
11969 * loop-iv.c (biv_entry_hasher::equal): Same.
11970 (iv_extend_to_rtx_code): Same.
11971 (check_iv_ref_table_size): Same.
11972 (clear_iv_info): Same.
11973 (latch_dominating_def): Same.
11974 (iv_get_reaching_def): Same.
11975 (iv_constant): Same.
11981 (get_biv_step): Same.
11983 (analyzed_for_bivness_p): Same.
11984 (record_biv): Same.
11985 (iv_analyze_biv): Same.
11986 (iv_analyze_expr): Same.
11987 (iv_analyze_def): Same.
11988 (iv_analyze_op): Same.
11989 (iv_analyze): Same.
11990 (iv_analyze_result): Same.
11992 (eliminate_implied_conditions): Same.
11993 (simplify_using_initial_values): Same.
11994 (shorten_into_mode): Same.
11995 (canonicalize_iv_subregs): Same.
11996 (determine_max_iter): Same.
11997 (check_simple_exit): Same.
11998 (find_simple_exit): Same.
11999 (get_simple_loop_desc): Same.
12000 * loop-unroll.c (report_unroll): Same.
12001 (decide_unrolling): Same.
12002 (unroll_loops): Same.
12003 (loop_exit_at_end_p): Same.
12004 (decide_unroll_constant_iterations): Same.
12005 (unroll_loop_constant_iterations): Same.
12006 (compare_and_jump_seq): Same.
12007 (unroll_loop_runtime_iterations): Same.
12008 (decide_unroll_stupid): Same.
12009 (unroll_loop_stupid): Same.
12010 (referenced_in_one_insn_in_loop_p): Same.
12011 (reset_debug_uses_in_loop): Same.
12012 (analyze_iv_to_split_insn): Same.
12013 * lra-eliminations.c (lra_debug_elim_table): Same.
12014 (setup_can_eliminate): Same.
12016 (lra_get_elimination_hard_regno): Same.
12017 (lra_eliminate_regs_1): Same.
12018 (eliminate_regs_in_insn): Same.
12019 (update_reg_eliminate): Same.
12020 (init_elimination): Same.
12021 (lra_eliminate): Same.
12023 * lra-lives.c (initiate_live_solver): Same.
12024 * lra-remat.c (create_remat_bb_data): Same.
12025 * lra-spills.c (lra_spill): Same.
12026 * lra.c (lra_set_insn_recog_data): Same.
12027 (lra_set_used_insn_alternative_by_uid): Same.
12028 (init_reg_info): Same.
12029 (expand_reg_info): Same.
12030 * lto-cgraph.c (output_symtab): Same.
12031 (read_identifier): Same.
12032 (get_alias_symbol): Same.
12033 (input_node): Same.
12034 (input_varpool_node): Same.
12036 (input_edge): Same.
12037 (input_cgraph_1): Same.
12038 (input_refs): Same.
12039 (input_symtab): Same.
12040 (input_offload_tables): Same.
12041 (output_cgraph_opt_summary): Same.
12042 (input_edge_opt_summary): Same.
12043 (input_cgraph_opt_section): Same.
12044 * lto-section-in.c (lto_free_raw_section_data): Same.
12045 (lto_create_simple_input_block): Same.
12046 (lto_free_function_in_decl_state_for_node): Same.
12047 * lto-streamer-in.c (lto_tag_check_set): Same.
12048 (lto_location_cache::revert_location_cache): Same.
12049 (lto_location_cache::input_location): Same.
12050 (lto_input_location): Same.
12051 (stream_input_location_now): Same.
12052 (lto_input_tree_ref): Same.
12053 (lto_input_eh_catch_list): Same.
12054 (input_eh_region): Same.
12055 (lto_init_eh): Same.
12056 (make_new_block): Same.
12058 (fixup_call_stmt_edges): Same.
12059 (input_struct_function_base): Same.
12060 (input_function): Same.
12061 (lto_read_body_or_constructor): Same.
12062 (lto_read_tree_1): Same.
12063 (lto_read_tree): Same.
12064 (lto_input_scc): Same.
12065 (lto_input_tree_1): Same.
12066 (lto_input_toplevel_asms): Same.
12067 (lto_input_mode_table): Same.
12068 (lto_reader_init): Same.
12069 (lto_data_in_create): Same.
12070 * lto-streamer-out.c (output_cfg): Same.
12071 * lto-streamer.h: Same.
12072 * modulo-sched.c (duplicate_insns_of_cycles): Same.
12073 (generate_prolog_epilog): Same.
12074 (mark_loop_unsched): Same.
12075 (dump_insn_location): Same.
12076 (loop_canon_p): Same.
12077 (sms_schedule): Same.
12078 * omp-expand.c (expand_omp_for_ordered_loops): Same.
12079 (expand_omp_for_generic): Same.
12080 (expand_omp_for_static_nochunk): Same.
12081 (expand_omp_for_static_chunk): Same.
12082 (expand_omp_simd): Same.
12083 (expand_omp_taskloop_for_inner): Same.
12084 (expand_oacc_for): Same.
12085 (expand_omp_atomic_pipeline): Same.
12086 (mark_loops_in_oacc_kernels_region): Same.
12087 * omp-offload.c (oacc_xform_loop): Same.
12088 * omp-simd-clone.c (simd_clone_adjust): Same.
12089 * optabs-query.c (get_traditional_extraction_insn): Same.
12090 * optabs.c (expand_vector_broadcast): Same.
12091 (expand_binop_directly): Same.
12092 (expand_twoval_unop): Same.
12093 (expand_twoval_binop): Same.
12094 (expand_unop_direct): Same.
12095 (emit_indirect_jump): Same.
12096 (emit_conditional_move): Same.
12097 (emit_conditional_neg_or_complement): Same.
12098 (emit_conditional_add): Same.
12099 (vector_compare_rtx): Same.
12100 (expand_vec_perm_1): Same.
12101 (expand_vec_perm_const): Same.
12102 (expand_vec_cond_expr): Same.
12103 (expand_vec_series_expr): Same.
12104 (maybe_emit_atomic_exchange): Same.
12105 (maybe_emit_sync_lock_test_and_set): Same.
12106 (expand_atomic_compare_and_swap): Same.
12107 (expand_atomic_load): Same.
12108 (expand_atomic_store): Same.
12109 (maybe_emit_op): Same.
12110 (valid_multiword_target_p): Same.
12111 (create_integer_operand): Same.
12112 (maybe_legitimize_operand_same_code): Same.
12113 (maybe_legitimize_operand): Same.
12114 (create_convert_operand_from_type): Same.
12115 (can_reuse_operands_p): Same.
12116 (maybe_legitimize_operands): Same.
12117 (maybe_gen_insn): Same.
12118 (maybe_expand_insn): Same.
12119 (maybe_expand_jump_insn): Same.
12120 (expand_insn): Same.
12121 * optabs.h (create_expand_operand): Same.
12122 (create_fixed_operand): Same.
12123 (create_output_operand): Same.
12124 (create_input_operand): Same.
12125 (create_convert_operand_to): Same.
12126 (create_convert_operand_from): Same.
12128 * poly-int.h: Same.
12129 * predict.c (optimize_insn_for_speed_p): Same.
12130 (optimize_loop_for_size_p): Same.
12131 (optimize_loop_for_speed_p): Same.
12132 (optimize_loop_nest_for_speed_p): Same.
12133 (get_base_value): Same.
12134 (predicted_by_loop_heuristics_p): Same.
12135 (predict_extra_loop_exits): Same.
12136 (predict_loops): Same.
12137 (predict_paths_for_bb): Same.
12138 (predict_paths_leading_to): Same.
12139 (propagate_freq): Same.
12140 (pass_profile::execute): Same.
12142 * profile-count.c (profile_count::differs_from_p): Same.
12143 (profile_probability::differs_lot_from_p): Same.
12144 * profile-count.h: Same.
12145 * profile.c (branch_prob): Same.
12146 * regrename.c (free_chain_data): Same.
12147 (mark_conflict): Same.
12148 (create_new_chain): Same.
12149 (merge_overlapping_regs): Same.
12150 (init_rename_info): Same.
12151 (merge_chains): Same.
12152 (regrename_analyze): Same.
12153 (regrename_do_replace): Same.
12154 (scan_rtx_reg): Same.
12155 (record_out_operands): Same.
12156 (build_def_use): Same.
12157 * regrename.h: Same.
12159 * reload1.c (init_reload): Same.
12160 (maybe_fix_stack_asms): Same.
12161 (copy_reloads): Same.
12162 (count_pseudo): Same.
12163 (count_spilled_pseudo): Same.
12165 (find_reload_regs): Same.
12166 (select_reload_regs): Same.
12167 (spill_hard_reg): Same.
12168 (fixup_eh_region_note): Same.
12169 (set_reload_reg): Same.
12170 (allocate_reload_reg): Same.
12171 (compute_reload_subreg_offset): Same.
12172 (reload_adjust_reg_for_icode): Same.
12173 (emit_input_reload_insns): Same.
12174 (emit_output_reload_insns): Same.
12175 (do_input_reload): Same.
12176 (inherit_piecemeal_p): Same.
12178 * sanopt.c (maybe_get_dominating_check): Same.
12179 (maybe_optimize_ubsan_ptr_ifn): Same.
12180 (can_remove_asan_check): Same.
12181 (maybe_optimize_asan_check_ifn): Same.
12182 (sanopt_optimize_walker): Same.
12183 * sched-deps.c (add_dependence_list): Same.
12184 (chain_to_prev_insn): Same.
12185 (add_insn_mem_dependence): Same.
12186 (create_insn_reg_set): Same.
12187 (maybe_extend_reg_info_p): Same.
12188 (sched_analyze_reg): Same.
12189 (sched_analyze_1): Same.
12190 (get_implicit_reg_pending_clobbers): Same.
12191 (chain_to_prev_insn_p): Same.
12192 (deps_analyze_insn): Same.
12193 (deps_start_bb): Same.
12194 (sched_free_deps): Same.
12196 (init_deps_reg_last): Same.
12198 * sched-ebb.c: Same.
12199 * sched-int.h: Same.
12200 * sched-rgn.c (add_branch_dependences): Same.
12201 (concat_insn_mem_list): Same.
12203 (sched_rgn_compute_dependencies): Same.
12204 * sel-sched-ir.c (reset_target_context): Same.
12205 (copy_deps_context): Same.
12206 (init_id_from_df): Same.
12207 (has_dependence_p): Same.
12208 (change_loops_latches): Same.
12209 (bb_top_order_comparator): Same.
12210 (make_region_from_loop_preheader): Same.
12211 (sel_init_pipelining): Same.
12212 (get_loop_nest_for_rgn): Same.
12213 (make_regions_from_the_rest): Same.
12214 (sel_is_loop_preheader_p): Same.
12215 * sel-sched-ir.h (inner_loop_header_p): Same.
12216 (get_all_loop_exits): Same.
12217 * selftest.h: Same.
12218 * sese.c (sese_build_liveouts): Same.
12219 (sese_insert_phis_for_liveouts): Same.
12220 * sese.h (defined_in_sese_p): Same.
12221 * sreal.c (sreal::stream_out): Same.
12223 * streamer-hooks.h: Same.
12224 * target-globals.c (save_target_globals): Same.
12225 * target-globals.h: Same.
12226 * target.def: Same.
12228 * targhooks.c (default_has_ifunc_p): Same.
12229 (default_empty_mask_is_expensive): Same.
12230 (default_init_cost): Same.
12231 * targhooks.h: Same.
12233 * tree-affine.c (aff_combination_mult): Same.
12234 (aff_combination_expand): Same.
12235 (aff_combination_constant_multiple_p): Same.
12236 * tree-affine.h: Same.
12237 * tree-cfg.c (build_gimple_cfg): Same.
12238 (replace_loop_annotate_in_block): Same.
12239 (replace_uses_by): Same.
12241 (dump_cfg_stats): Same.
12242 (gimple_duplicate_sese_region): Same.
12243 (gimple_duplicate_sese_tail): Same.
12244 (move_block_to_fn): Same.
12245 (replace_block_vars_by_duplicates): Same.
12246 (move_sese_region_to_fn): Same.
12247 (print_loops_bb): Same.
12248 (print_loop): Same.
12249 (print_loops): Same.
12251 (debug_loops): Same.
12252 * tree-cfg.h: Same.
12253 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
12254 (chrec_fold_multiply_poly_poly): Same.
12255 (chrec_evaluate): Same.
12256 (chrec_component_in_loop_num): Same.
12257 (reset_evolution_in_loop): Same.
12258 (is_multivariate_chrec): Same.
12259 (chrec_contains_symbols): Same.
12260 (nb_vars_in_chrec): Same.
12261 (chrec_convert_1): Same.
12262 (chrec_convert_aggressive): Same.
12263 * tree-chrec.h: Same.
12264 * tree-core.h: Same.
12265 * tree-data-ref.c (dump_data_dependence_relation): Same.
12266 (canonicalize_base_object_address): Same.
12267 (data_ref_compare_tree): Same.
12268 (prune_runtime_alias_test_list): Same.
12269 (get_segment_min_max): Same.
12270 (create_intersect_range_checks): Same.
12271 (conflict_fn_no_dependence): Same.
12272 (object_address_invariant_in_loop_p): Same.
12273 (analyze_ziv_subscript): Same.
12274 (analyze_siv_subscript_cst_affine): Same.
12275 (analyze_miv_subscript): Same.
12276 (analyze_overlapping_iterations): Same.
12277 (build_classic_dist_vector_1): Same.
12278 (add_other_self_distances): Same.
12279 (same_access_functions): Same.
12280 (build_classic_dir_vector): Same.
12281 (subscript_dependence_tester_1): Same.
12282 (subscript_dependence_tester): Same.
12283 (access_functions_are_affine_or_constant_p): Same.
12284 (get_references_in_stmt): Same.
12285 (loop_nest_has_data_refs): Same.
12286 (graphite_find_data_references_in_stmt): Same.
12287 (find_data_references_in_bb): Same.
12288 (get_base_for_alignment): Same.
12289 (find_loop_nest_1): Same.
12290 (find_loop_nest): Same.
12291 * tree-data-ref.h (dr_alignment): Same.
12292 (ddr_dependence_level): Same.
12293 * tree-if-conv.c (fold_build_cond_expr): Same.
12294 (add_to_predicate_list): Same.
12295 (add_to_dst_predicate_list): Same.
12296 (phi_convertible_by_degenerating_args): Same.
12297 (idx_within_array_bound): Same.
12298 (all_preds_critical_p): Same.
12299 (pred_blocks_visited_p): Same.
12300 (predicate_bbs): Same.
12301 (build_region): Same.
12302 (if_convertible_loop_p_1): Same.
12303 (is_cond_scalar_reduction): Same.
12304 (predicate_scalar_phi): Same.
12305 (remove_conditions_and_labels): Same.
12306 (combine_blocks): Same.
12307 (version_loop_for_if_conversion): Same.
12308 (versionable_outer_loop_p): Same.
12309 (ifcvt_local_dce): Same.
12310 (tree_if_conversion): Same.
12311 (pass_if_conversion::gate): Same.
12312 * tree-if-conv.h: Same.
12313 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
12314 * tree-loop-distribution.c (bb_top_order_cmp): Same.
12316 (stmt_has_scalar_dependences_outside_loop): Same.
12317 (copy_loop_before): Same.
12318 (create_bb_after_loop): Same.
12319 (const_with_all_bytes_same): Same.
12320 (generate_memset_builtin): Same.
12321 (generate_memcpy_builtin): Same.
12322 (destroy_loop): Same.
12323 (build_rdg_partition_for_vertex): Same.
12324 (compute_access_range): Same.
12325 (data_ref_segment_size): Same.
12326 (latch_dominated_by_data_ref): Same.
12327 (compute_alias_check_pairs): Same.
12328 (fuse_memset_builtins): Same.
12329 (finalize_partitions): Same.
12330 (find_seed_stmts_for_distribution): Same.
12331 (prepare_perfect_loop_nest): Same.
12332 * tree-parloops.c (lambda_transform_legal_p): Same.
12333 (loop_parallel_p): Same.
12334 (reduc_stmt_res): Same.
12335 (add_field_for_name): Same.
12336 (create_call_for_reduction_1): Same.
12337 (replace_uses_in_bb_by): Same.
12338 (transform_to_exit_first_loop_alt): Same.
12339 (try_transform_to_exit_first_loop_alt): Same.
12340 (transform_to_exit_first_loop): Same.
12342 (gen_parallel_loop): Same.
12343 (gather_scalar_reductions): Same.
12344 (get_omp_data_i_param): Same.
12345 (try_create_reduction_list): Same.
12346 (oacc_entry_exit_single_gang): Same.
12347 (parallelize_loops): Same.
12348 * tree-pass.h: Same.
12349 * tree-predcom.c (determine_offset): Same.
12350 (last_always_executed_block): Same.
12351 (split_data_refs_to_components): Same.
12352 (suitable_component_p): Same.
12353 (valid_initializer_p): Same.
12354 (find_looparound_phi): Same.
12355 (insert_looparound_copy): Same.
12356 (add_looparound_copies): Same.
12357 (determine_roots_comp): Same.
12358 (predcom_tmp_var): Same.
12359 (initialize_root_vars): Same.
12360 (initialize_root_vars_store_elim_1): Same.
12361 (initialize_root_vars_store_elim_2): Same.
12362 (finalize_eliminated_stores): Same.
12363 (initialize_root_vars_lm): Same.
12364 (remove_stmt): Same.
12365 (determine_unroll_factor): Same.
12366 (execute_pred_commoning_cbck): Same.
12367 (base_names_in_chain_on): Same.
12368 (combine_chains): Same.
12369 (pcom_stmt_dominates_stmt_p): Same.
12370 (try_combine_chains): Same.
12371 (prepare_initializers_chain_store_elim): Same.
12372 (prepare_initializers_chain): Same.
12373 (prepare_initializers): Same.
12374 (prepare_finalizers_chain): Same.
12375 (prepare_finalizers): Same.
12376 (insert_init_seqs): Same.
12377 * tree-scalar-evolution.c (loop_phi_node_p): Same.
12378 (compute_overall_effect_of_inner_loop): Same.
12379 (add_to_evolution_1): Same.
12380 (add_to_evolution): Same.
12381 (follow_ssa_edge_binary): Same.
12382 (follow_ssa_edge_expr): Same.
12383 (backedge_phi_arg_p): Same.
12384 (follow_ssa_edge_in_condition_phi_branch): Same.
12385 (follow_ssa_edge_in_condition_phi): Same.
12386 (follow_ssa_edge_inner_loop_phi): Same.
12387 (follow_ssa_edge): Same.
12388 (analyze_evolution_in_loop): Same.
12389 (analyze_initial_condition): Same.
12390 (interpret_loop_phi): Same.
12391 (interpret_condition_phi): Same.
12392 (interpret_rhs_expr): Same.
12393 (interpret_expr): Same.
12394 (interpret_gimple_assign): Same.
12395 (analyze_scalar_evolution_1): Same.
12396 (analyze_scalar_evolution): Same.
12397 (analyze_scalar_evolution_for_address_of): Same.
12398 (get_instantiated_value_entry): Same.
12399 (loop_closed_phi_def): Same.
12400 (instantiate_scev_name): Same.
12401 (instantiate_scev_poly): Same.
12402 (instantiate_scev_binary): Same.
12403 (instantiate_scev_convert): Same.
12404 (instantiate_scev_not): Same.
12405 (instantiate_scev_r): Same.
12406 (instantiate_scev): Same.
12407 (resolve_mixers): Same.
12408 (initialize_scalar_evolutions_analyzer): Same.
12409 (scev_reset_htab): Same.
12410 (scev_reset): Same.
12411 (derive_simple_iv_with_niters): Same.
12412 (simple_iv_with_niters): Same.
12413 (expression_expensive_p): Same.
12414 (final_value_replacement_loop): Same.
12415 * tree-scalar-evolution.h (block_before_loop): Same.
12416 * tree-ssa-address.h: Same.
12417 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
12418 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
12419 (record_edge_info): Same.
12420 * tree-ssa-live.c (var_map_base_fini): Same.
12421 (remove_unused_locals): Same.
12422 * tree-ssa-live.h: Same.
12423 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
12424 (pass_ch_vect::execute): Same.
12425 (pass_ch::process_loop_p): Same.
12426 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
12427 (movement_possibility): Same.
12428 (outermost_invariant_loop): Same.
12430 (determine_max_movement): Same.
12431 (invariantness_dom_walker::before_dom_children): Same.
12432 (move_computations): Same.
12433 (may_move_till): Same.
12434 (force_move_till_op): Same.
12435 (force_move_till): Same.
12436 (memref_free): Same.
12437 (record_mem_ref_loc): Same.
12438 (set_ref_stored_in_loop): Same.
12439 (mark_ref_stored): Same.
12440 (sort_bbs_in_loop_postorder_cmp): Same.
12441 (sort_locs_in_loop_postorder_cmp): Same.
12442 (analyze_memory_references): Same.
12443 (mem_refs_may_alias_p): Same.
12444 (find_ref_loc_in_loop_cmp): Same.
12445 (rewrite_mem_ref_loc::operator): Same.
12446 (first_mem_ref_loc_1::operator): Same.
12447 (sm_set_flag_if_changed::operator): Same.
12448 (execute_sm_if_changed_flag_set): Same.
12449 (execute_sm): Same.
12450 (hoist_memory_references): Same.
12451 (ref_always_accessed::operator): Same.
12452 (refs_independent_p): Same.
12453 (record_dep_loop): Same.
12454 (ref_indep_loop_p_1): Same.
12455 (ref_indep_loop_p): Same.
12456 (can_sm_ref_p): Same.
12457 (find_refs_for_sm): Same.
12458 (loop_suitable_for_sm): Same.
12459 (store_motion_loop): Same.
12460 (store_motion): Same.
12461 (fill_always_executed_in): Same.
12462 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
12463 (estimated_unrolled_size): Same.
12464 (loop_edge_to_cancel): Same.
12465 (remove_exits_and_undefined_stmts): Same.
12466 (remove_redundant_iv_tests): Same.
12467 (unloop_loops): Same.
12468 (estimated_peeled_sequence_size): Same.
12469 (try_peel_loop): Same.
12470 (canonicalize_loop_induction_variables): Same.
12471 (canonicalize_induction_variables): Same.
12472 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
12474 (stmt_after_inc_pos): Same.
12475 (contains_abnormal_ssa_name_p): Same.
12476 (niter_for_exit): Same.
12479 (find_givs_in_bb): Same.
12480 (find_induction_variables): Same.
12481 (find_interesting_uses_cond): Same.
12482 (outermost_invariant_loop_for_expr): Same.
12483 (idx_find_step): Same.
12484 (add_candidate_1): Same.
12485 (add_iv_candidate_derived_from_uses): Same.
12486 (alloc_use_cost_map): Same.
12487 (prepare_decl_rtl): Same.
12488 (generic_predict_doloop_p): Same.
12489 (computation_cost): Same.
12490 (determine_common_wider_type): Same.
12491 (get_computation_aff_1): Same.
12492 (get_use_type): Same.
12493 (determine_group_iv_cost_address): Same.
12495 (difference_cannot_overflow_p): Same.
12496 (may_eliminate_iv): Same.
12497 (determine_set_costs): Same.
12498 (cheaper_cost_pair): Same.
12499 (compare_cost_pair): Same.
12500 (iv_ca_cand_for_group): Same.
12501 (iv_ca_recount_cost): Same.
12502 (iv_ca_set_remove_invs): Same.
12503 (iv_ca_set_no_cp): Same.
12504 (iv_ca_set_add_invs): Same.
12505 (iv_ca_set_cp): Same.
12506 (iv_ca_add_group): Same.
12507 (iv_ca_cost): Same.
12508 (iv_ca_compare_deps): Same.
12509 (iv_ca_delta_reverse): Same.
12510 (iv_ca_delta_commit): Same.
12511 (iv_ca_cand_used_p): Same.
12512 (iv_ca_delta_free): Same.
12514 (iv_ca_free): Same.
12515 (iv_ca_dump): Same.
12516 (iv_ca_extend): Same.
12517 (iv_ca_narrow): Same.
12518 (iv_ca_prune): Same.
12519 (cheaper_cost_with_cand): Same.
12520 (iv_ca_replace): Same.
12521 (try_add_cand_for): Same.
12522 (get_initial_solution): Same.
12523 (try_improve_iv_set): Same.
12524 (find_optimal_iv_set_1): Same.
12525 (create_new_iv): Same.
12526 (rewrite_use_compare): Same.
12527 (remove_unused_ivs): Same.
12528 (determine_scaling_factor): Same.
12529 * tree-ssa-loop-ivopts.h: Same.
12530 * tree-ssa-loop-manip.c (create_iv): Same.
12531 (compute_live_loop_exits): Same.
12532 (add_exit_phi): Same.
12533 (add_exit_phis): Same.
12534 (find_uses_to_rename_use): Same.
12535 (find_uses_to_rename_def): Same.
12536 (find_uses_to_rename_in_loop): Same.
12537 (rewrite_into_loop_closed_ssa): Same.
12538 (check_loop_closed_ssa_bb): Same.
12539 (split_loop_exit_edge): Same.
12540 (ip_end_pos): Same.
12541 (ip_normal_pos): Same.
12542 (copy_phi_node_args): Same.
12543 (gimple_duplicate_loop_to_header_edge): Same.
12544 (can_unroll_loop_p): Same.
12545 (determine_exit_conditions): Same.
12546 (scale_dominated_blocks_in_loop): Same.
12547 (niter_for_unrolled_loop): Same.
12548 (tree_transform_and_unroll_loop): Same.
12549 (rewrite_all_phi_nodes_with_iv): Same.
12550 * tree-ssa-loop-manip.h: Same.
12551 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
12552 (number_of_iterations_ne): Same.
12553 (assert_no_overflow_lt): Same.
12554 (assert_loop_rolls_lt): Same.
12555 (number_of_iterations_lt): Same.
12556 (adjust_cond_for_loop_until_wrap): Same.
12557 (tree_simplify_using_condition): Same.
12558 (simplify_using_initial_conditions): Same.
12559 (simplify_using_outer_evolutions): Same.
12560 (loop_only_exit_p): Same.
12561 (ssa_defined_by_minus_one_stmt_p): Same.
12562 (number_of_iterations_popcount): Same.
12563 (number_of_iterations_exit): Same.
12564 (find_loop_niter): Same.
12565 (finite_loop_p): Same.
12566 (chain_of_csts_start): Same.
12567 (get_val_for): Same.
12568 (loop_niter_by_eval): Same.
12569 (derive_constant_upper_bound_ops): Same.
12570 (do_warn_aggressive_loop_optimizations): Same.
12571 (record_estimate): Same.
12572 (get_cst_init_from_scev): Same.
12573 (record_nonwrapping_iv): Same.
12574 (idx_infer_loop_bounds): Same.
12575 (infer_loop_bounds_from_ref): Same.
12576 (infer_loop_bounds_from_array): Same.
12577 (infer_loop_bounds_from_pointer_arith): Same.
12578 (infer_loop_bounds_from_signedness): Same.
12579 (bound_index): Same.
12580 (discover_iteration_bound_by_body_walk): Same.
12581 (maybe_lower_iteration_bound): Same.
12582 (estimate_numbers_of_iterations): Same.
12583 (estimated_loop_iterations): Same.
12584 (estimated_loop_iterations_int): Same.
12585 (max_loop_iterations): Same.
12586 (max_loop_iterations_int): Same.
12587 (likely_max_loop_iterations): Same.
12588 (likely_max_loop_iterations_int): Same.
12589 (estimated_stmt_executions_int): Same.
12590 (max_stmt_executions): Same.
12591 (likely_max_stmt_executions): Same.
12592 (estimated_stmt_executions): Same.
12593 (stmt_dominates_stmt_p): Same.
12594 (nowrap_type_p): Same.
12595 (loop_exits_before_overflow): Same.
12596 (scev_var_range_cant_overflow): Same.
12597 (scev_probably_wraps_p): Same.
12598 (free_numbers_of_iterations_estimates): Same.
12599 * tree-ssa-loop-niter.h: Same.
12600 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
12601 (idx_analyze_ref): Same.
12602 (analyze_ref): Same.
12603 (gather_memory_references_ref): Same.
12604 (mark_nontemporal_store): Same.
12605 (emit_mfence_after_loop): Same.
12606 (may_use_storent_in_loop_p): Same.
12607 (mark_nontemporal_stores): Same.
12608 (should_unroll_loop_p): Same.
12609 (volume_of_dist_vector): Same.
12610 (add_subscript_strides): Same.
12611 (self_reuse_distance): Same.
12612 (insn_to_prefetch_ratio_too_small_p): Same.
12613 * tree-ssa-loop-split.c (split_at_bb_p): Same.
12614 (patch_loop_exit): Same.
12615 (find_or_create_guard_phi): Same.
12616 (easy_exit_values): Same.
12617 (connect_loop_phis): Same.
12618 (connect_loops): Same.
12619 (compute_new_first_bound): Same.
12620 (split_loop): Same.
12621 (tree_ssa_split_loops): Same.
12622 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
12623 (is_maybe_undefined): Same.
12624 (tree_may_unswitch_on): Same.
12625 (simplify_using_entry_checks): Same.
12626 (tree_unswitch_single_loop): Same.
12627 (tree_unswitch_loop): Same.
12628 (tree_unswitch_outer_loop): Same.
12629 (empty_bb_without_guard_p): Same.
12630 (used_outside_loop_p): Same.
12631 (get_vop_from_header): Same.
12632 (hoist_guard): Same.
12633 * tree-ssa-loop.c (gate_oacc_kernels): Same.
12634 (get_lsm_tmp_name): Same.
12635 * tree-ssa-loop.h: Same.
12636 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
12637 (build_and_add_sum): Same.
12638 (no_side_effect_bb): Same.
12640 (linearize_expr): Same.
12641 (should_break_up_subtract): Same.
12642 (linearize_expr_tree): Same.
12643 * tree-ssa-scopedtables.c: Same.
12644 * tree-ssa-scopedtables.h: Same.
12645 * tree-ssa-structalias.c (condense_visit): Same.
12646 (label_visit): Same.
12647 (dump_pred_graph): Same.
12648 (perform_var_substitution): Same.
12649 (move_complex_constraints): Same.
12650 (remove_preds_and_fake_succs): Same.
12651 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
12652 (determine_bb_domination_status): Same.
12653 (duplicate_thread_path): Same.
12654 (thread_through_all_blocks): Same.
12655 * tree-ssa-threadupdate.h: Same.
12656 * tree-streamer-in.c (streamer_read_string_cst): Same.
12657 (input_identifier): Same.
12658 (unpack_ts_type_common_value_fields): Same.
12659 (unpack_ts_block_value_fields): Same.
12660 (unpack_ts_translation_unit_decl_value_fields): Same.
12661 (unpack_ts_omp_clause_value_fields): Same.
12662 (streamer_read_tree_bitfields): Same.
12663 (streamer_alloc_tree): Same.
12664 (lto_input_ts_common_tree_pointers): Same.
12665 (lto_input_ts_vector_tree_pointers): Same.
12666 (lto_input_ts_poly_tree_pointers): Same.
12667 (lto_input_ts_complex_tree_pointers): Same.
12668 (lto_input_ts_decl_minimal_tree_pointers): Same.
12669 (lto_input_ts_decl_common_tree_pointers): Same.
12670 (lto_input_ts_decl_non_common_tree_pointers): Same.
12671 (lto_input_ts_decl_with_vis_tree_pointers): Same.
12672 (lto_input_ts_field_decl_tree_pointers): Same.
12673 (lto_input_ts_function_decl_tree_pointers): Same.
12674 (lto_input_ts_type_common_tree_pointers): Same.
12675 (lto_input_ts_type_non_common_tree_pointers): Same.
12676 (lto_input_ts_list_tree_pointers): Same.
12677 (lto_input_ts_vec_tree_pointers): Same.
12678 (lto_input_ts_exp_tree_pointers): Same.
12679 (lto_input_ts_block_tree_pointers): Same.
12680 (lto_input_ts_binfo_tree_pointers): Same.
12681 (lto_input_ts_constructor_tree_pointers): Same.
12682 (lto_input_ts_omp_clause_tree_pointers): Same.
12683 (streamer_read_tree_body): Same.
12684 * tree-streamer.h: Same.
12685 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
12686 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
12687 (vect_analyze_possibly_independent_ddr): Same.
12688 (vect_analyze_data_ref_dependence): Same.
12689 (vect_compute_data_ref_alignment): Same.
12690 (vect_enhance_data_refs_alignment): Same.
12691 (vect_analyze_data_ref_access): Same.
12692 (vect_check_gather_scatter): Same.
12693 (vect_find_stmt_data_reference): Same.
12694 (vect_create_addr_base_for_vector_ref): Same.
12695 (vect_setup_realignment): Same.
12696 (vect_supportable_dr_alignment): Same.
12697 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
12698 (adjust_phi_and_debug_stmts): Same.
12699 (vect_set_loop_mask): Same.
12700 (add_preheader_seq): Same.
12701 (vect_maybe_permute_loop_masks): Same.
12702 (vect_set_loop_masks_directly): Same.
12703 (vect_set_loop_condition_masked): Same.
12704 (vect_set_loop_condition_unmasked): Same.
12705 (slpeel_duplicate_current_defs_from_edges): Same.
12706 (slpeel_add_loop_guard): Same.
12707 (slpeel_can_duplicate_loop_p): Same.
12708 (create_lcssa_for_virtual_phi): Same.
12710 (vect_update_ivs_after_vectorizer): Same.
12711 (vect_gen_vector_loop_niters_mult_vf): Same.
12712 (slpeel_update_phi_nodes_for_loops): Same.
12713 (slpeel_update_phi_nodes_for_guard1): Same.
12714 (find_guard_arg): Same.
12715 (slpeel_update_phi_nodes_for_guard2): Same.
12716 (slpeel_update_phi_nodes_for_lcssa): Same.
12717 (vect_do_peeling): Same.
12718 (vect_create_cond_for_alias_checks): Same.
12719 (vect_loop_versioning): Same.
12720 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
12721 (vect_inner_phi_in_double_reduction_p): Same.
12722 (vect_analyze_scalar_cycles_1): Same.
12723 (vect_fixup_scalar_cycles_with_patterns): Same.
12724 (vect_get_loop_niters): Same.
12725 (bb_in_loop_p): Same.
12726 (vect_get_max_nscalars_per_iter): Same.
12727 (vect_verify_full_masking): Same.
12728 (vect_compute_single_scalar_iteration_cost): Same.
12729 (vect_analyze_loop_form_1): Same.
12730 (vect_analyze_loop_form): Same.
12731 (vect_active_double_reduction_p): Same.
12732 (vect_analyze_loop_operations): Same.
12733 (neutral_op_for_slp_reduction): Same.
12734 (vect_is_simple_reduction): Same.
12735 (vect_model_reduction_cost): Same.
12736 (get_initial_def_for_reduction): Same.
12737 (get_initial_defs_for_reduction): Same.
12738 (vect_create_epilog_for_reduction): Same.
12739 (vectorize_fold_left_reduction): Same.
12740 (vectorizable_reduction): Same.
12741 (vectorizable_induction): Same.
12742 (vectorizable_live_operation): Same.
12743 (loop_niters_no_overflow): Same.
12744 (vect_get_loop_mask): Same.
12745 (vect_transform_loop_stmt): Same.
12746 (vect_transform_loop): Same.
12747 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
12748 (vect_determine_precisions): Same.
12749 (vect_pattern_recog_1): Same.
12750 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
12751 * tree-vect-stmts.c (stmt_vectype): Same.
12752 (process_use): Same.
12753 (vect_init_vector_1): Same.
12754 (vect_truncate_gather_scatter_offset): Same.
12755 (get_group_load_store_type): Same.
12756 (vect_build_gather_load_calls): Same.
12757 (vect_get_strided_load_store_ops): Same.
12758 (vectorizable_simd_clone_call): Same.
12759 (vectorizable_store): Same.
12760 (permute_vec_elements): Same.
12761 (vectorizable_load): Same.
12762 (vect_transform_stmt): Same.
12763 (supportable_widening_operation): Same.
12764 * tree-vectorizer.c (vec_info::replace_stmt): Same.
12765 (vec_info::free_stmt_vec_info): Same.
12766 (vect_free_loop_info_assumptions): Same.
12767 (vect_loop_vectorized_call): Same.
12768 (set_uid_loop_bbs): Same.
12769 (vectorize_loops): Same.
12770 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
12771 * tree.c (add_tree_to_fld_list): Same.
12772 (fld_type_variant_equal_p): Same.
12773 (fld_decl_context): Same.
12774 (fld_incomplete_type_of): Same.
12775 (free_lang_data_in_binfo): Same.
12776 (need_assembler_name_p): Same.
12777 (find_decls_types_r): Same.
12778 (get_eh_types_for_runtime): Same.
12779 (find_decls_types_in_eh_region): Same.
12780 (find_decls_types_in_node): Same.
12781 (assign_assembler_name_if_needed): Same.
12782 * value-prof.c (stream_out_histogram_value): Same.
12783 * value-prof.h: Same.
12784 * var-tracking.c (use_narrower_mode): Same.
12785 (prepare_call_arguments): Same.
12786 (vt_expand_loc_callback): Same.
12787 (resolve_expansions_pending_recursion): Same.
12788 (vt_expand_loc): Same.
12789 * varasm.c (const_hash_1): Same.
12790 (compare_constant): Same.
12791 (tree_output_constant_def): Same.
12792 (simplify_subtraction): Same.
12793 (get_pool_constant): Same.
12794 (output_constant_pool_2): Same.
12795 (output_constant_pool_1): Same.
12796 (mark_constants_in_pattern): Same.
12797 (mark_constant_pool): Same.
12798 (get_section_anchor): Same.
12799 * vr-values.c (compare_range_with_value): Same.
12800 (vr_values::extract_range_from_phi_node): Same.
12801 * vr-values.h: Same.
12802 * web.c (unionfind_union): Same.
12803 * wide-int.h: Same.
12805 2019-07-09 Martin Sebor <msebor@redhat.com>
12808 * align.h: Change class-key from class to struct and vice versa
12809 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
12810 * alloc-pool.h: Same.
12811 * asan.c (shadow_mem_size): Same.
12812 * auto-profile.c: Same.
12813 * basic-block.h: Same.
12815 * cfgexpand.c (set_rtl): Same.
12816 (expand_one_stack_var_at): Same.
12817 * cfghooks.h: Same.
12820 * config/i386/i386.h: Same.
12821 * df-problems.c (df_print_bb_index): Same.
12823 * df.h (df_single_use): Same.
12824 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
12825 (layout::annotation_line_showed_range_p): Same.
12826 (get_printed_columns): Same.
12827 (correction::ensure_terminated): Same.
12828 (line_corrections::~line_corrections): Same.
12831 * dump-context.h: Same.
12832 * dumpfile.h: Same.
12833 * dwarf2out.c: Same.
12834 * edit-context.c: Same.
12835 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
12837 * function.c (assign_stack_local): Same.
12838 * function.h: Same.
12840 * gcov.c (block_info::block_info): Same.
12841 * genattrtab.c: Same.
12842 * genextract.c: Same.
12843 * genmatch.c (comparison_code_p): Same.
12844 (id_base::id_base): Same.
12845 (decision_tree::print): Same.
12846 * genoutput.c: Same.
12847 * genpreds.c (write_one_predicate_function): Same.
12848 * genrecog.c (validate_pattern): Same.
12849 (find_operand_positions): Same.
12850 (optimize_subroutine_group): Same.
12851 (merge_pattern_transition::merge_pattern_transition): Same.
12852 (merge_pattern_info::merge_pattern_info): Same.
12853 (merge_state_result::merge_state_result): Same.
12854 (merge_into_state): Same.
12855 * gensupport.c: Same.
12856 * gensupport.h: Same.
12857 * ggc-common.c (init_ggc_heuristics): Same.
12858 * ggc-tests.c (test_union): Same.
12859 * gimple-loop-interchange.cc (dump_induction): Same.
12860 * gimple-loop-versioning.cc: Same.
12861 * gimple-match.h (gimple_match_cond::any_else): Same.
12862 * gimple-ssa-backprop.c: Same.
12863 * gimple-ssa-sprintf.c: Same.
12864 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
12866 (store_immediate_info::store_immediate_info): Same.
12867 (merged_store_group::apply_stores): Same.
12868 (get_location_for_stmts): Same.
12869 * gimple-ssa-strength-reduction.c: Same.
12870 * gimple-ssa-warn-alloca.c: Same.
12871 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
12872 * godump.c (go_type_decl): Same.
12873 * hash-map-tests.c (test_map_of_strings_to_int): Same.
12874 * hash-map.h: Same.
12875 * hash-set-tests.c (test_set_of_strings): Same.
12876 * hsa-brig.c: Same.
12877 * hsa-common.h: Same.
12878 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
12879 * input.c (assert_loceq): Same.
12882 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
12883 * ipa-fnsummary.h: Same.
12884 * ipa-inline.h: Same.
12885 * ipa-prop.h: Same.
12886 * ipa-split.c (visit_bb): Same.
12887 * ira-int.h (minmax_set_iter_next): Same.
12888 * loop-invariant.c: Same.
12890 * lra-eliminations.c: Same.
12892 * lra-lives.c (mark_regno_dead): Same.
12893 * lra-remat.c: Same.
12894 * lra-spills.c: Same.
12895 * lto-streamer.h: Same.
12896 * mem-stats.h: Same.
12897 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
12898 * omp-low.c (omp_clause_aligned_alignment): Same.
12899 * optabs-query.h (get_vcond_eq_icode): Same.
12901 * opts.c (wrap_help): Same.
12902 * poly-int.h: Same.
12903 * predict.c (predict_paths_leading_to_edge): Same.
12904 * pretty-print.h: Same.
12905 * profile-count.h: Same.
12907 * read-rtl-function.c: Same.
12910 * regrename.c: Same.
12911 * regrename.h: Same.
12913 * rtl-iter.h: Same.
12914 * rtl.h (costs_add_n_insns): Same.
12916 * sched-int.h: Same.
12917 * sel-sched-ir.h: Same.
12918 * selftest.h: Same.
12919 * sese.h (vec_find): Same.
12921 * target-globals.h: Same.
12922 * tree-affine.c (aff_combination_find_elt): Same.
12923 * tree-affine.h: Same.
12924 * tree-data-ref.h: Same.
12925 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
12926 * tree-predcom.c: Same.
12927 * tree-scalar-evolution.c (find_var_scev_info): Same.
12928 * tree-ssa-alias.h: Same.
12929 * tree-ssa-ccp.c: Same.
12930 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
12931 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
12932 (rewrite_mem_refs): Same.
12933 (execute_sm_if_changed): Same.
12934 (hoist_memory_references): Same.
12935 * tree-ssa-loop-ivopts.c (operator<=): Same.
12936 * tree-ssa-loop.h: Same.
12937 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
12938 * tree-ssa-structalias.c: Same.
12939 * tree-switch-conversion.h (cluster::cluster): Same.
12940 (simple_cluster::simple_cluster): Same.
12941 * tree-vect-patterns.c (type_conversion_p): Same.
12942 * tree-vectorizer.c (dump_stmt_cost): Same.
12943 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
12944 * tree.c (protected_set_expr_location): Same.
12945 * tree.h (desired_pro_or_demotion_p): Same.
12946 (fndecl_built_in_p): Same.
12947 * unique-ptr-tests.cc: Same.
12948 * var-tracking.c (delete_variable_part): Same.
12949 * varasm.c (assemble_real): Same.
12950 (tree_output_constant_def): Same.
12952 * wide-int-bitmask.h: Same.
12953 * wide-int.h (decompose): Same.
12955 2019-07-09 Richard Biener <rguenther@suse.de>
12957 PR tree-optimization/91114
12958 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
12959 find a vector type isn't fatal.
12961 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12963 * config/aarch64/aarch64-simd.md
12964 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
12965 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
12966 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
12967 (*aarch64_crypto_aese_fused,
12968 *aarch64_crypto_aesd_fused): Update to new definition.
12969 * config/aarch64/aarch64.c
12970 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
12972 2019-07-09 Richard Biener <rguenther@suse.de>
12974 * gimple-match.h (gimple_match_op::resimplify): New.
12975 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
12976 gimple_resimplify4, gimple_resimplify5): Remove.
12977 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
12978 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
12980 (gimple_match_op::resimplify): New.
12981 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
12982 according to availability. Use gimple_match_op::resimplify.
12984 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
12986 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
12988 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12990 * config/arm/crypto.md:
12991 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
12992 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
12993 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
12994 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
12996 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
12997 * config/arm/aarch-common-protos.h
12998 (aarch_crypto_can_dual_issue): Remove.
12999 * config/arm/aarch-common.c
13000 (aarch_crypto_can_dual_issue): Likewise.
13001 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
13002 * config/arm/cortex-a53.md: Likewise.
13003 * config/arm/cortex-a57.md: Likewise.
13004 * config/arm/iterators.md:
13005 (CRYPTO_BINARY): Redefine.
13006 (CRYPTO_UNARY): Removed.
13007 (CRYPTO_AES, CRYPTO_AESMC): New.
13009 2019-07-09 Richard Biener <rguenther@suse.de>
13011 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
13012 (vn_reference_lookup_3): If the main ref has no access path recorded
13013 but orig_ref has use it to do access-path based disambiguation.
13014 (vn_reference_lookup_pieces): Adjust.
13015 (vn_reference_lookup): Pass down original ref if we valueized.
13017 2019-07-09 Martin Liska <mliska@suse.cz>
13019 * doc/extend.texi: Document influence on loop
13022 2019-07-09 Martin Liska <mliska@suse.cz>
13024 * lto-compress.c (lto_normalized_zstd_level): Do not use
13025 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
13026 of libzstd. One can use 0 as a default compression level.
13028 2019-07-09 Martin Liska <mliska@suse.cz>
13030 * doc/invoke.texi: Add link from -fprofile-dir option.
13031 Use better wording for 'gcno filename'.
13033 2019-07-08 Martin Sebor <msebor@redhat.com>
13035 PR middle-end/71924
13036 PR middle-end/90549
13037 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
13039 (args_loc_t): New type.
13040 (args_loc_t, locmap_t): same.
13041 (diag_returned_locals): New function.
13042 (is_addr_local): Same.
13043 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
13044 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
13045 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
13047 2019-07-08 Jakub Jelinek <jakub@redhat.com>
13049 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
13050 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
13051 and casts in offset when different, both through gimple stmts
13052 and through trees. Rewritten using loops to minimize code duplication
13055 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
13057 * emit-rtl.c (set_insn_locations): New function moved from...
13058 * function.c (set_insn_locations): ...here.
13059 * ira-emit.c (emit_moves): Propagate location of the first instruction
13060 to the inserted move instructions.
13061 * reg-stack.c (compensate_edge): Set the location if the sequence is
13062 inserted on the edge.
13063 * rtl.h (set_insn_locations): Declare.
13065 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
13067 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
13068 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
13071 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
13073 PR rtl-optimization/88233
13074 * common.opt (fsplit-wide-types-early): New option.
13075 * common/config/rs6000/rs6000-common.c
13076 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
13078 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
13079 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
13080 flag_split_wide_types_early.
13081 (pass_data_lower_subreg3): New.
13082 (pass_lower_subreg3): New.
13083 (make_pass_lower_subreg3): New.
13084 * passes.def (pass_lower_subreg2): Move after the loop passes.
13085 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
13086 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
13087 the pass pipeline; its previous place is taken by ...
13088 (make_pass_lower_subreg3): ... this.
13090 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13092 * config/s390/s390.c (s390_shift_truncation_mask): Define.
13093 (TARGET_SHIFT_TRUNCATION_MASK): Define.
13095 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13097 * config/s390/constraints.md: Add new jsc constraint.
13098 * config/s390/predicates.md: New predicates.
13099 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
13100 * config/s390/s390.c (s390_valid_shift_count): New function.
13101 (print_shift_count_operand): Use s390_valid_shift_count.
13102 (print_operand): Likewise.
13103 * config/s390/s390.md: Use new predicate.
13104 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
13105 * config/s390/vector.md: Use new predicate.
13107 2019-07-08 Andrew Waterman <andrew@sifive.com>
13108 Jim Wilson <jimw@sifive.com>
13110 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
13111 bitsize instead of BITS_PER_WORD.
13113 2019-07-08 Martin Liska <mliska@suse.cz>
13115 * collect2.c (defined): Revert to before r254460.
13116 (scan_prog_file): Revert to before r254460.
13118 2019-07-08 Richard Biener <rguenther@suse.de>
13120 PR tree-optimization/83518
13121 * tree-ssa-sccvn.c: Include splay-tree.h.
13122 (struct pd_range, struct pd_data): New.
13123 (struct vn_walk_cb_data): Add data to track partial definitions.
13124 (vn_walk_cb_data::~vn_walk_cb_data): New.
13125 (vn_walk_cb_data::push_partial_def): New.
13126 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
13127 (vn_reference_lookup_2): When partial defs are registered give up.
13128 (vn_reference_lookup_3): Track partial defs for memset and
13129 constructor zeroing and for defs from constants.
13131 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13133 * doc/install.texi (bootstrap-Og): Document.
13135 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13137 * config/riscv/pic.md (*local_pic_load_s<mode>)
13138 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
13139 referenced by <mode>, giving...
13140 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
13141 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
13142 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
13143 use <X:MODE> for the mode attribute.
13145 2019-07-07 Jeff Law <law@redhat.com>
13147 PR tree-optimization/91090
13148 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
13149 in handling of ranges to simplify switch statements.
13151 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13153 * config/darwin.c (darwin_override_options): Make a final check on PIC
13156 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13158 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
13159 on for kernel code.
13161 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13164 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
13165 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
13166 instead of matching them to "l" output operands.
13168 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13170 * config/mips/mips.c (mips_split_move): Zero-initialize addr
13171 and check whether addr.reg is nonnull before using it.
13173 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13175 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
13176 ctx->for_simd_scan_phase simd copy the outer var to the privatized
13177 variable(s). For conditional lastprivate look through outer
13178 GIMPLE_OMP_SCAN context.
13179 (lower_omp_1): For conditional lastprivate look through outer
13180 GIMPLE_OMP_SCAN context.
13182 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
13183 member to combined_into_simd_safelen1.
13184 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
13185 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
13186 clauses if ctx->combined_into_simd_safelen1 put statements after the
13187 predicate conditionalized block rather than into it.
13189 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13191 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
13193 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
13194 Make the choice of <mode> explicit, giving...
13195 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
13197 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13199 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
13200 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
13202 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
13203 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
13204 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
13205 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
13206 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
13207 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
13208 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
13209 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
13210 (*avx512f_scatterdi<mode>): Likewise.
13211 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
13213 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13215 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
13216 specify the mode iterator referenced by <mode>, giving...
13217 (*push1_h8300hs_<QHI:mode>): ...this.
13219 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13221 * config/gcn/gcn-valu.md
13222 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
13223 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
13224 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
13225 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
13226 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
13227 but using the _exec comparison patterns.
13228 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
13229 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
13230 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
13231 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
13232 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
13233 but using the _exec comparison patterns.
13235 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13237 * config/arm/sync.md
13238 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
13239 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
13240 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
13241 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
13242 <SIDI:cas_cmp_str>.
13244 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13246 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
13247 (maybe_lookup_ctx): Add forward declaration.
13248 (omp_find_scan): Likewise. Walk into body of simd if composited
13249 with worksharing loop.
13250 (scan_omp_simd_scan): New function.
13251 (scan_omp_1_stmt): Call it.
13252 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
13253 ctx->for_simd_scan_phase.
13254 (lower_rec_input_clauses): Do much less work for inscan reductions
13255 in ctx->for_simd_scan_phase is_simd regions.
13256 (lower_omp_scan): Set is_simd also on simd constructs composited
13257 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
13258 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
13259 emit their body after in simd constructs composited with worksharing
13261 (lower_omp_for_scan): Handle worksharing loop composited with simd.
13263 * omp-low.c (omp_find_scan): Make static.
13264 (lower_omp_for_scan): Fix order of merge arguments in input phase of
13265 the second loop, var2 represents the first partial sum and so needs
13266 to go before rprivb[ivar].
13268 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
13270 * config/rs6000/rs6000-logue.c: Remove unused code.
13272 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13274 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
13276 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
13279 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
13280 check with a frame laid out check.
13282 2019-07-05 Richard Biener <rguenther@suse.de>
13284 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
13285 when comparing against a store with possibly the same value.
13287 2019-07-05 Richard Biener <rguenther@suse.de>
13289 PR tree-optimization/91091
13290 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
13291 (walk_non_aliased_vuses): Likewise.
13292 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
13293 (get_continuation_for_phi): New tbaa_p parameter and pass
13295 (walk_non_aliased_vuses): Likewise.
13296 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
13297 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
13298 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
13300 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
13301 (adjust_offsets_for_equal_base_address): New function.
13302 (vn_reference_lookup_3): Use it to catch more base equivalences.
13303 Handle and pass down tbaa_p flag.
13304 (vn_reference_lookup_pieces): Adjust.
13305 (vn_reference_lookup): Remove alias-set altering, instead pass
13306 down false as tbaa_p.
13308 2019-07-05 Richard Biener <rguenther@suse.de>
13310 PR tree-optimization/91091
13311 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
13312 accesses can happen with -fno-strict-aliasing.
13314 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
13316 * tree-ssa-alias.c (alias_stats): Add
13317 nonoverlapping_component_refs_since_match_p_must_overlap.
13318 (dump_alias_stats): Print it.
13319 (nonoverlapping_component_refs_since_match_p): Add early exit.
13320 (nonoverlapping_component_refs_p): Do not account early exit.
13322 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13324 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
13325 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
13326 (emit_eh_dispatch): Delete.
13327 (lower_catch): Emit the eh_dispatch manually and set the location of
13328 the first catch statement onto it.
13329 (lower_eh_filter): Emit the eh_dispatch manually and set location.
13330 (lower_eh_dispatch): Propagate location.
13331 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
13332 (eliminate_build): Likewise.
13334 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13336 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
13337 phi nodes if possible.
13338 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
13339 location info on the newly created statement.
13340 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
13341 newly created increment if needed.
13343 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13345 PR middle-end/78884
13346 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
13347 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
13348 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
13349 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
13350 ctx->add_safelen1 is set.
13352 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
13353 GOMP_loop_start at the start of second worksharing loop in a scan.
13354 For nowait, don't emit GOMP_loop_end_nowait at the end of first
13355 worksharing loop in a scan even if there are conditional lastprivates,
13356 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
13358 2019-07-04 Jan Hubicka <jh@suse.cz>
13360 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
13361 Fix check for match in the ref walk.
13363 2019-07-04 Martin Liska <mliska@suse.cz>
13365 * tree-ssa-loop-niter.c
13366 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
13367 (estimate_numbers_of_iterations):
13368 Support __builtin_expect_with_probability for analysis
13369 of # of loop iterations.
13371 2019-07-04 Alexandre Oliva <oliva@adacore.com>
13373 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
13374 * except.c: Likewise.
13375 * expr.c (expand_expr_real_1): Reject it.
13376 * gimplify.c (gimplify_expr): Gimplify it, within
13378 * tree-dump.c (dequeue_and_dump): Dump it.
13379 * tree-pretty-print.c (dump_generic_node): Likewise.
13380 * tree.c (block_may_fallthru): Handle it.
13381 * tree.def (EH_ELSE_EXPR): Introduce it.
13382 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
13383 with GIMPLE_EH_ELSE as try/finally/else.
13385 2019-07-04 Richard Biener <rguenther@suse.de>
13388 * tree-pass.h (execute_all_ipa_transforms): Add a flag
13389 parameter whether to disable GC collection.
13390 * passes.c (execute_one_ipa_transform_pass): Likewise, and
13392 (execute_all_ipa_transforms): Likewise and pass it down.
13393 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
13394 collection from applying IPA transforms.
13395 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
13396 from applying IPA transforms.
13398 2019-07-04 Richard Biener <rguenther@suse.de>
13400 PR tree-optimization/90911
13401 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
13402 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
13403 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
13404 scalar_loop_scaling.
13405 (vect_transform_loop): Scale scalar loop profile if needed.
13406 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
13407 the loop copy from if-conversion adjust edge probabilities
13408 and scale the vectorized loop body profile, queue the scalar
13409 profile for updating after peeling.
13411 2019-07-04 Jan Hubicka <jh@suse.cz>
13413 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
13414 parameters; return early for must-alias.
13415 (indirect_ref_may_alias_decl_p): Likewise; when establishing
13416 outer types match, try nonoverlapping_component_refs
13417 if must-alias is not obvious.
13418 (indirect_refs_may_alias_p): Likewise.
13419 (refs_may_alias_p_2): Likewise.
13421 2019-07-04 Richard Biener <rguenther@suse.de>
13423 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
13425 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
13427 (struct vn_walk_cb_data): New callback data struct.
13428 (vn_reference_lookup_2): Adjust.
13429 (vn_reference_lookup_3): Likewise.
13430 (vn_reference_lookup_pieces): Likewise.
13431 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
13432 (visit_reference_op_load): Adjust.
13434 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13436 PR tree-optimization/91063
13437 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
13438 stmt from stmts sequence before calling vect_init_vector_1.
13441 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13444 * fwprop.c (reg_single_def_p): New function.
13445 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
13446 (forward_propagate_into): New parameter reg_prop_only
13447 with default value false.
13448 Propagate def's src into loop only if SET_SRC and SET_DEST
13449 of def_set have single definitions.
13450 Likewise if reg_prop_only is set to true.
13451 (fwprop): New param fwprop_addr_p.
13452 Integrate fwprop_addr into fwprop.
13453 (fwprop_addr): Remove.
13454 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
13456 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
13457 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
13458 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
13460 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13462 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
13463 in worksharing loop scans.
13465 PR tree-optimization/91074
13466 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
13469 PR rtl-optimization/90756
13470 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
13473 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
13475 * config/aarch64/aarch64.md: Remove redundant constraints from
13476 define_expand but keep some patterns untouched if they are
13477 specially selected by TARGET_SECONDARY_RELOAD hook.
13478 * config/aarch64/aarch64-sve.md: Likewise.
13479 * config/aarch64/atomics.md: Remove redundant constraints from
13481 * config/aarch64/aarch64-simd.md: Likewise.
13483 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13485 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
13486 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
13487 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
13489 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
13492 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13494 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
13495 (STARTFILE_SPEC): Split crt3 into a separate spec.
13496 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
13497 (DARWIN_CRT2_SPEC): New.
13498 (DARWIN_CRT3_SPEC): New.
13499 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
13500 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
13501 (DARWIN_CRT3_SPEC): New.
13503 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
13505 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
13506 Change the RTL attribute "length" from "4" to "*" to allow the
13507 length attribute to be adjusted automatically for prefixed load,
13508 store, and add immediate instructions.
13509 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
13511 (extendsi<mode>2, EXTSI iterator): Likewise.
13512 (movsi_internal1): Likewise.
13513 (movsi_from_sf): Likewise.
13514 (movdi_from_sf_zero_ext): Likewise.
13515 (mov<mode>_internal): Likewise.
13516 (movcc_internal1, QHI iterator): Likewise.
13517 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
13518 (movsf_from_si): Likewise.
13519 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
13520 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
13521 (mov<mode>, FMOVE128 iterator): Likewise.
13522 (movdi_internal64): Likewise.
13523 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
13525 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
13526 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
13527 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
13528 (vsx_splat_v4sf): Likewise.
13530 2019-07-03 Mark Wielaard <mark@klomp.org>
13533 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
13534 DW_AT_addr_base if there is actually a .debug_addr section with
13536 (output_addr_table): Add DWARF5 table header generation here after
13537 checking there are actually any addresses from...
13538 (dwarf2out_finish): ...here.
13540 2019-07-03 Richard Biener <rguenther@suse.de>
13542 PR middle-end/91069
13543 * match.pd (vec_perm -> bit_insert): Fix element read from
13546 2019-07-03 Martin Liska <mliska@suse.cz>
13548 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
13549 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
13551 * generic-match-head.c: Include dbgcnt.h.
13552 * gimple-match-head.c: Likewise.
13554 2019-07-03 Martin Liska <mliska@suse.cz>
13556 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
13557 (GCOV_COUNTER_V_TOPN): New.
13558 (GCOV_COUNTER_V_INDIR): Use _topn.
13559 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
13560 (GCOV_TOPN_VALUES): New.
13561 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
13562 (GCOV_TOPN_VALUES_COUNTERS): New.
13563 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
13565 (gimple_init_gcov_profiler): Rename variables from one_value
13567 (gimple_gen_one_value_profiler): Remove.
13568 (gimple_gen_topn_values_profiler): New function.
13569 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
13570 names instead of SINGLE_VALUE.
13571 (stream_out_histogram_value): Likewise.
13572 (stream_in_histogram_value): Likewise.
13573 (get_most_common_single_value): Likewise.
13574 (gimple_divmod_fixed_value_transform): Likewise.
13575 (gimple_stringops_transform): Likewise.
13576 (gimple_divmod_values_to_profile): Likewise.
13577 (gimple_stringops_values_to_profile): Likewise.
13578 (gimple_find_values_to_profile): Likewise.
13579 * value-prof.h (enum hist_type): Rename to TOPN.
13580 (gimple_gen_one_value_profiler): Remove.
13581 (gimple_gen_topn_values_profiler): New.
13583 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
13585 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
13586 if it has the DW_AT_data_member_location attribute.
13588 2019-07-03 Richard Biener <rguenther@suse.de>
13590 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
13593 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
13595 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
13596 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
13597 (tlsdesc_small_sve_<mode>): Likewise.
13599 2019-07-03 Martin Liska <mliska@suse.cz>
13601 * Makefile.in: Define ZSTD_LIB.
13602 * common.opt: Adjust compression level
13603 to support also zstd levels.
13604 * config.in: Regenerate.
13605 * configure: Likewise.
13606 * configure.ac: Add --with-zstd and --with-zstd-include options
13608 * doc/install.texi: Mention zstd dependency.
13609 * gcc.c: Print supported LTO compression algorithms.
13610 * lto-compress.c (lto_normalized_zstd_level): Likewise.
13611 (lto_compression_zstd): Likewise.
13612 (lto_uncompression_zstd): Likewise.
13613 (lto_end_compression): Dispatch in between zlib and zstd.
13614 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
13615 (lto_uncompression_zlib): Make it static.
13616 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
13617 * lto-section-in.c (lto_get_section_data): Pass info
13618 about used compression.
13619 * lto-streamer-out.c: By default use zstd when possible.
13620 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
13621 (TV_IPA_LTO_COMPRESS): Likewise for compression.
13623 2019-07-03 Martin Liska <mliska@suse.cz>
13625 * lto-section-in.c (lto_get_section_data): Add "lto" section.
13626 * lto-section-out.c (lto_destroy_simple_output_block): Never
13627 compress LTO_section_lto section.
13628 * lto-streamer-out.c (produce_asm): Do not set major_version
13630 (lto_output_toplevel_asms): Likewise.
13631 (produce_lto_section): New function.
13632 (lto_output): Call produce_lto_section.
13633 (lto_write_mode_table): Do not set major_version and
13635 (produce_asm_for_decls): Likewise.
13636 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
13638 (struct lto_header): Remove.
13639 (struct lto_section): New struct.
13640 (struct lto_simple_header): Do not inherit from lto_header.
13641 (struct lto_file_decl_data): Add lto_section_header field.
13643 2019-07-03 Martin Liska <mliska@suse.cz>
13645 * lra-eliminations.c (eliminate_regs_in_insn): Remove
13647 * reg-stack.c (check_asm_stack_operands): Likewise.
13648 * tree-ssa-structalias.c (create_function_info_for): Likewise.
13649 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
13650 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
13651 force_expand_binop.
13653 2019-07-03 Martin Liska <mliska@suse.cz>
13655 PR tree-optimization/90892
13656 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
13657 in string constants.
13659 2019-07-03 Martin Liska <mliska@suse.cz>
13661 PR middle-end/90899
13662 * multiple_target.c (create_dispatcher_calls): Add to comdat
13663 group only if set for ifunc.
13665 2019-07-03 Martin Liska <mliska@suse.cz>
13668 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
13669 Define local_object_name in outer scope in order to handle
13670 use-after-scope issue.
13672 2019-07-03 Martin Liska <mliska@suse.cz>
13674 * common.opt: Add fprofile-note.
13675 * coverage.c (coverage_init): Append the option
13677 * doc/invoke.texi: Document -fprofile-note.
13679 2019-07-03 Jakub Jelinek <jakub@redhat.com>
13681 PR tree-optimization/91033
13682 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
13683 vect_analyze_data_refs): Add bool * arguments.
13684 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
13685 if failure is due to scatter/gather, set *fatal to false if non-NULL.
13686 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
13687 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
13688 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
13689 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
13690 vect_analyze_data_refs caller.
13692 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
13694 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
13695 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
13696 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
13697 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
13698 OMP_CLAUSE__SCANTEMP_ entry.
13699 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
13700 * tree-pretty-print.c (dump_omp_clause): Likewise.
13701 * tree-nested.c (convert_nonlocal_omp_clauses,
13702 convert_local_omp_clauses): Likewise.
13703 * omp-general.h (struct omp_for_data): Add have_scantemp and
13704 have_nonctrl_scantemp members.
13705 * omp-general.c (omp_extract_for_data): Initialize them.
13706 * omp-low.c (struct omp_context): Add scan_exclusive member.
13707 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
13708 result again with GF_OMP_FOR_KIND_MASK. Initialize also
13709 ctx->scan_exclusive.
13710 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
13711 of !ctx->scan_inclusive.
13712 (lower_rec_input_clauses): Simplify gimplification of dtors using
13713 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
13714 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
13715 loops. Don't add barrier for reduction_omp_orig_ref if
13716 ctx->scan_??xclusive.
13717 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
13718 (lower_omp_scan): Use ctx->scan_exclusive instead
13719 of !ctx->scan_inclusive. Handle worksharing loops with inscan
13720 reductions. Use new_vard != new_var instead of repeated
13721 omp_is_reference calls.
13722 (omp_find_scan, lower_omp_for_scan): New functions.
13723 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
13725 * omp-expand.c (expand_omp_scantemp_alloc): New function.
13726 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
13727 and fd->have_scantemp.
13729 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
13730 on worksharing loop propagate it as shared clause to containing
13733 * omp-expand.c (expand_omp_for_static_nochunk,
13734 expand_omp_for_static_chunk): For nowait worksharing loop with
13735 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
13738 2019-07-02 qing zhao <qing.zhao@oracle.com>
13740 PR preprocessor/90581
13741 * doc/cppopts.texi: Add document for -fmax-include-depth.
13742 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
13744 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
13746 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
13747 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
13748 (mmx_packssdw): Ditto.
13749 (mmx_punpckhbw): Ditto.
13750 (mmx_punpcklbw): Ditto.
13751 (mmx_punpckhwd): Ditto.
13752 (mmx_punpcklwd): Ditto.
13753 (mmx_punpckhdq): Ditto.
13754 (mmx_punpckldq): Ditto.
13755 (*vec_dupv4hi): Ditto.
13756 (*vec_dupv2si): Ditto.
13757 (mmx_pmovmskb): Ditto.
13758 * config/i386/sse.md (sse_cvtpi2ps): Use
13759 TARGET_SSE2 && SSE_REG_P in split condition.
13760 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
13761 TARGET_SSSE3 && SSE_REGNO_P in split condition.
13762 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
13763 (ssse3_pshufbv8qi3): Ditto.
13764 (ssse3_palignrdi): Ditto.
13766 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
13768 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
13769 with inlined save and restore.
13771 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
13773 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
13774 to be inserted on single successor edge of the entry block. Then call
13775 commit_edge_insertions instead of inserting the instructions manually.
13776 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
13777 RTL expansion and rebuild jump labels chain.
13779 2019-07-02 Richard Biener <rguenther@suse.de>
13781 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
13783 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13785 * tree.c (build_common_tree_nodes): Initialize them.
13786 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13787 Make declarations comments.
13788 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
13789 chrec_known): Remove definitions.
13790 (initialize_scalar_evolutions_analyzer): Remove.
13791 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
13792 * tree-streamer.c (preload_common_nodes): Do not preload
13793 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
13795 2019-07-02 Jan Hubicka <jh@suse.cz>
13797 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
13800 2019-07-02 Jan Hubicka <jh@suse.cz>
13802 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
13804 (nonoverlapping_component_refs_since_match_p): ... this one;
13805 handle also non-decl bases; return -1 if search gave up.
13806 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
13807 nonoverlapping_component_refs_of_decl_p_no_alias to
13808 nonoverlapping_component_refs_since_match_p_may_alias,
13809 nonoverlapping_component_refs_since_match_p_no_alias.
13810 (dump_alias_stats): Update dumping.
13811 (aliasing_matching_component_refs_p): Break out from ...;
13812 dispatch to nonoverlapping_component_refs_for_decl_p
13813 and nonoverlapping_component_refs_since_match_p.
13814 (aliasing_component_refs_p): ... here; call
13815 nonoverlapping_component_refs_p in scenarios where we can not
13816 precisely determine base match.
13817 (decl_refs_may_alias_p): Use
13818 nonoverlapping_component_refs_since_match_p.
13819 (indirect_ref_may_alias_decl_p): Do not call
13820 nonoverlapping_component_refs_p.
13821 (indirect_refs_may_alias_p): Likewise.
13823 2019-07-02 Jan Hubicka <jh@suse.cz>
13825 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
13826 to clobber of return value.
13828 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13830 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
13831 for is_neon_type instructions that have not already been categorized.
13833 2019-07-02 Richard Biener <rguenther@suse.de>
13835 PR tree-optimization/58483
13836 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
13837 for MEM_REF base hashing.
13838 (equal_mem_array_ref_p): Likewise for base comparison.
13840 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13842 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
13843 parameterized name.
13844 (signbit<mode>2): Use that name. Simplify.
13846 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
13848 PR middle-end/66726
13849 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
13850 Tune heuristic from PR71016 to allow MIN / MAX.
13852 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13854 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
13855 parameterized name.
13856 (abs<mode>2): Use that name. Simplify.
13858 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13860 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
13861 parameterized name.
13862 (neg<mode>2): Use that name. Simplify.
13864 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13866 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
13868 (abs<mode>2): Use that name. Simplify.
13870 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13872 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
13874 (neg<mode>2): Use that name. Simplify.
13876 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
13878 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
13879 ("enabled" attribute): Handle sse_noavx isa attribute.
13880 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
13881 Use TARGET_SSE && SSE_REGNO_P in split condition.
13882 (*vec_dupv2sf): Ditto.
13884 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13886 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
13888 (floatsi<mode>2): Use that name. Simplify.
13890 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13892 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
13893 parameterized name.
13894 (extenddf<mode>2_vsx): Make this a parameterized name.
13895 (extenddf<mode>2): Use those names. Simplify.
13897 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13899 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
13901 (eh_return): Use that name. Simplify.
13903 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13905 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
13906 (doloop_end): Use that name. Simplify.
13908 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13910 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
13911 parameterized name.
13912 (indirect_jump): Use that name. Simplify.
13914 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13916 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
13917 parameterized name.
13918 (abs<mode>2): Use that name. Simplify.
13920 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13922 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
13923 parameterized name.
13924 (fix_trunc<mode>si2): Use that name. Simplify.
13926 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13928 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
13929 (allocate_stack): Use that name. Simplify.
13931 2019-07-01 Martin Sebor <msebor@redhat.com>
13933 PR middle-end/90923
13934 * hash-map.h (hash_map::put): On insertion invoke element ctor.
13935 (hash_map::get_or_insert): Same. Reformat comment.
13936 * hash-set.h (hash_set::add): On insertion invoke element ctor.
13937 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13938 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13939 * hash-table.h (hash_table::operator=): Prevent copy assignment.
13940 (hash_table::hash_table (const hash_table&)): Use copy ctor
13941 instead of assignment to copy elements.
13943 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
13944 John David Anglin <danglin@gcc.gnu.org>
13947 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
13948 using saved frame pointer.
13950 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
13952 PR middle-end/64242
13953 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
13954 Add frame clobber and schedule blockage.
13956 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
13958 * doc/invoke.texi (Link Options): Further editorial changes to
13959 -flinker-output docs.
13961 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13963 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
13964 Load both operands of a PLUS into registers separately.
13966 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
13968 * config/s390/vector.md: Fix shift count operand printing.
13970 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13972 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
13974 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13976 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
13977 Use recog_data to test for an output operand.
13979 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13981 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
13982 exclude any others that are disparaged or that are bound to need
13984 (ira_get_dup_out_num): Expand comment.
13986 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13988 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
13989 constraint string for each operand/alternative combo. Only handle
13990 '%' at the start of constraint strings, and look for it outside
13993 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13995 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
13996 alternative_mask instead of HARD_REG_SET to represent a
13997 bitmask of alternatives.
13998 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
13999 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
14001 2019-07-01 Martin Liska <mliska@suse.cz>
14003 * edit-context.c (test_applying_fixits_unreadable_file): Do not
14004 use () for a constructor call.
14005 (test_applying_fixits_line_out_of_range): Likewise.
14006 * ggc-page.c (alloc_page): Use (void *) for %p printf format
14008 (free_page): Likewise.
14010 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
14012 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
14013 parameter names to match usage (no functional change).
14014 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
14016 2019-07-01 Richard Biener <rguenther@suse.de>
14018 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
14020 (pass_fre::execute): Honor it.
14021 * passes.def: Adjust pass_fre invocations to allow iterating,
14022 add non-iterating pass_fre before late threading/dom.
14024 2019-07-01 Richard Biener <rguenther@suse.de>
14026 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
14027 TARGET_MEM_REF handling to also handle address-taken ones.
14029 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
14031 * doc/sourcebuild.texi (Effective-Target Keywords, Other
14032 hardware attributes): Document avx512vp2intersect.
14034 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14036 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
14037 (abs<mode>2): New expander.
14038 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
14039 Use CODE_FOR_ssse3_absv8qi2.
14040 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
14041 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
14043 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14045 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
14046 to sse, sse_noavx and avx. Update all uses.
14048 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14050 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
14051 (*mmx_<plusminus_insn><mode>3): Ditto.
14052 (*mmx_mulv4hi3"): Ditto.
14053 (*mmx_smulv4hi3_highpart): Ditto.
14054 (*mmx_umulv4hi3_highpart): Ditto.
14055 (*mmx_pmaddwd): Ditto.
14056 (*sse2_umulv1siv1di3): Ditto.
14057 (*mmx_<code>v4hi3): Ditto.
14058 (*mmx_<code>v8qi3): Ditto.
14059 (mmx_ashr<mode>3): Ditto.
14060 ("mmx_<shift_insn><mode>3): Ditto.
14061 (*mmx_eq<mode>3): Ditto.
14062 (mmx_gt<mode>3): Ditto.
14063 (mmx_andnot<mode>3): Ditto.
14064 (*mmx_<code><mode>3): Ditto.
14065 (*mmx_pinsrw): Ditto.
14066 (*mmx_pextrw): Ditto.
14067 (mmx_pshufw_1): Ditto.
14068 (*mmx_uavgv8qi3): Ditto.
14069 (*mmx_uavgv4hi3): Ditto.
14070 ("mmx_psadbw): Ditto.
14071 * config/i386/sse.md (sse_cvtps2pi): Ditto.
14072 (sse_cvttps2pi): Ditto.
14073 (ssse3_pmaddubsw): Ditto.
14074 (*ssse3_pmulhrswv4hi3): Ditto.
14075 (ssse3_psign<mode>3): Ditto.
14077 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
14079 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
14080 adjustment for bit-fields to all aggregate types.
14082 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
14084 * config/rs6000/predicates.md (pcrel_address): Use
14085 SYMBOL_REF_LOCAL_P to determine if a label is local.
14086 (pcrel_external_address): New predicate.
14087 (non_prefixed_mem_operand): Delete, predicate not used.
14088 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
14089 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
14091 (SYMBOL_REF_PCREL_P): Likewise.
14094 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
14096 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
14097 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
14098 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
14100 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14102 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
14103 override on extra_headers.
14105 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14107 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
14108 * config/darwin-driver.c (darwin_default_min_version): Remove newline
14110 (darwin_driver_init): Likewise.
14112 2019-06-28 Jan Beulich <jbeulich@suse.com>
14114 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14115 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
14116 Eliminate redundant alternative.
14118 2019-06-28 Jan Beulich <jbeulich@suse.com>
14120 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14121 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
14122 Use vector_operand.
14124 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
14126 * config/arc/arc.c (arc_rtx_costs): All short instructions are
14127 having a lower cost regardless of the speed option.
14129 2019-06-28 Jan Beulich <jbeulich@suse.com>
14131 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
14132 vector_operand plus, on both alternatives, "Bm" constraint.
14134 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
14136 * config/arm/arm.md: Remove redundant constraints from
14137 define_expand but leave reload_inm and reload_outm patterns
14138 untouched since they need special constraints to work.
14139 * config/arm/arm-fixed.md: Remove redundant constraints from
14141 * config/arm/iwmmxt.md: Likewise.
14142 * config/arm/neon.md: Likewise.
14143 * config/arm/sync.md: Likewise.
14144 * config/arm/thumb1.md: Likewise.
14145 * config/arm/vec-common.md: Likewise.
14147 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
14149 * doc/install.texi: Document --disable-tm-clone-registry.
14151 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14154 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
14157 PR tree-optimization/91010
14158 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
14159 return true. Otherwise, don't call operand_equal_p if offset1 or
14160 offset2 is NULL and just return false.
14162 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14164 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
14165 user-specified float mode choice for kernel mode code.
14167 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14169 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
14172 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14174 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
14175 use longcall for 64b code.
14177 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
14179 * builtins.c (get_memory_rtx): Fix comment.
14180 * optabs.def (movmem_optab): Change to cpymem_optab.
14181 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
14182 (emit_block_move_hints): Change movmem to cpymem.
14183 * defaults.h: Change movmem to cpymem.
14184 * targhooks.c (get_move_ratio): Change movmem to cpymem.
14185 (default_use_by_pieces_infrastructure_p): Ditto.
14186 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
14187 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
14189 * config/aarch64/aarch64.h: Change movmem to cpymem.
14190 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
14191 * config/alpha/alpha.h: Change movmem to cpymem in comment.
14192 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
14194 * config/arc/arc-protos.h: Change movmem to cpymem.
14195 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
14196 * config/arc/arc.h: Change movmem to cpymem in comment.
14197 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
14198 * config/arm/arm-protos.h: Change movmem to cpymem in names.
14199 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
14200 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
14201 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
14202 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
14203 * config/avr/avr-protos.h: Change movmem to cpymem.
14204 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
14205 avr_out_movmem): Change movmem to cpymem.
14206 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
14207 Change movmem to cpymem.
14208 * config/bfin/bfin-protos.h: Change movmem to cpymem.
14209 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
14210 Change movmem to cpymem.
14211 * config/bfin/bfin.h: Change movmem to cpymem in comment.
14212 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
14213 * config/c6x/c6x-protos.h: Change movmem to cpymem.
14214 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
14215 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
14216 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
14217 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
14218 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
14219 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
14220 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
14221 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
14222 expand_small_cpymem_or_setmem,
14223 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
14224 expand_set_or_cpymem_constant_prologue,
14225 ix86_expand_set_or_cpymem): Change movmem to cpymem.
14226 * config/i386/i386-protos.h: Change movmem to cpymem.
14227 * config/i386/i386.h: Change movmem to cpymem in comment.
14228 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
14229 (setmem<mode>): Change expansion function name.
14230 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
14231 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
14232 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
14233 * config/m32c/m32c-protos.h: Change movmem to cpymem.
14234 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
14235 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
14236 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
14238 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
14239 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
14240 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
14241 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
14242 Change movmem to cpymem.
14243 * config/mips/mips.h: Change movmem to cpymem.
14244 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
14245 * config/nds32/nds32-memory-manipulation.c
14246 (nds32_expand_movmemsi_loop_unknown_size,
14247 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
14248 nds32_expand_movmemsi_unroll,
14249 nds32_expand_movmemsi): Change movmem to cpymem.
14250 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
14251 * config/nds32/nds32-protos.h: Change movmem to cpymem.
14252 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
14253 (pa_adjust_insn_length): Change call to compute_movmem_length.
14254 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
14255 movmemdi, movmemdi_prereload,
14256 movmemdi_postreload): Change movmem to cpymem.
14257 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
14258 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
14259 * config/riscv/riscv.c: Change movmem to cpymem in comment.
14260 * config/riscv/riscv.h: Change movmem to cpymem.
14261 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
14262 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
14263 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
14265 * config/s390/s390-protos.h: Change movmem to cpymem.
14266 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
14267 s390_expand_insv): Change movmem to cpymem.
14268 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
14269 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
14270 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
14271 * config/sparc/sparc.h: Change movmem to cpymem in comment.
14272 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
14273 for nonexistent function.
14274 * config/vax/vax.h: Change movmem to cpymem in comment.
14275 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
14276 * config/visium/visium.h: Change movmem to cpymem in comment.
14277 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
14278 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
14279 * doc/md.texi: Change movmem to cpymem and update description to match.
14280 * doc/rtl.texi: Change movmem to cpymem.
14281 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
14282 * doc/tm.texi: Regenerate.
14284 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
14286 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
14287 -fvariable-expansion-in-unroller by default.
14288 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
14291 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
14294 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14295 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14297 * config.gcc(rs6000-*-*): Define target_gtfiles.
14299 2019-06-27 Jan Hubicka <jh@suse.cz>
14301 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
14302 (add_type_duplicate): When odr hash is not allocated, to nothing.
14303 (odr_based_tbaa_p): New function.
14304 (set_type_canonical_for_odr_type): New function.
14305 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
14306 set_type_canonical_for_odr_type): New.
14307 * tree.c (gimple_canonical_types_compatible_p): ODR types with
14308 ODR based TBAA are not equivalent to non-ODR types.
14310 2019-06-27 Martin Liska <mliska@suse.cz>
14312 PR tree-optimization/90974
14313 PR rtl-optimization/90975
14314 PR rtl-optimization/90976
14316 PR tree-optimization/91017
14317 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
14319 * lra.c (lra_set_insn_recog_data): Remove a leftover from
14320 initial commit of IRA.
14321 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
14323 * tree-vect-loop.c (vect_create_epilog_for_reduction):
14324 Remove unused mode1.
14325 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
14328 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14331 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
14332 instead of register_operand for operands[1], add m to its constraints
14333 if operands[2] uses "C" constraint. Ensure in condition that if
14334 operands[2] is not 0, then operands[1] is not a MEM. For last two
14335 alternatives, use unaligned loads instead of aligned if operands[1] is
14336 misaligned_operand.
14338 2019-06-27 Martin Liska <mliska@suse.cz>
14340 * asan.c (asan_emit_allocas_unpoison): Remove obviously
14342 * bt-load.c (move_btr_def): Likewise.
14343 * builtins.c (expand_builtin_apply_args_1): Likewise.
14344 (expand_builtin_apply): Likewise.
14345 * cfgexpand.c (expand_asm_stmt): Likewise.
14346 (construct_init_block): Likewise.
14347 * cfghooks.c (verify_flow_info): Likewise.
14348 * cfgloopmanip.c (remove_path): Likewise.
14349 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
14350 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
14351 * combine.c (simplify_if_then_else): Likewise.
14352 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
14353 (choose_basereg): Likewise.
14354 (ix86_expand_prologue): Likewise.
14355 (ix86_preferred_output_reload_class): Likewise.
14356 * cselib.c (cselib_record_sets): Likewise.
14357 * df-scan.c (df_scan_alloc): Likewise.
14358 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
14359 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
14360 * emit-rtl.c (try_split): Likewise.
14361 * graphite-scop-detection.c (assign_parameter_index_in_region):
14363 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
14364 * ira-color.c (setup_profitable_hard_regs): Likewise.
14365 * ira.c (rtx_moveable_p): Likewise.
14366 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
14367 * read-rtl.c (read_subst_mapping): Likewise.
14368 * regrename.c (scan_rtx): Likewise.
14369 * reorg.c (fill_slots_from_thread): Likewise.
14370 * tree-inline.c (tree_function_versioning): Likewise.
14371 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
14372 * tree-ssa-sink.c (statement_sink_location): Likewise.
14373 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
14374 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
14375 (vect_create_epilog_for_reduction): Likewise.
14376 * tree.c (build_nonstandard_integer_type): Likewise.
14378 2019-06-27 Richard Biener <rguenther@suse.de>
14380 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
14382 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
14384 PR tree-optimization/89772
14385 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
14386 out-of-bound accesses checking.
14388 2019-06-27 Martin Liska <mliska@suse.cz>
14390 PR tree-optimization/91014
14391 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
14392 when LHS is NULL_TREE.
14394 2019-06-27 Martin Liska <mliska@suse.cz>
14396 * symbol-summary.h (traverse): Pass
14397 argument a to the call of callback.
14398 (gt_ggc_mx): Mark arguments as unused.
14399 (gt_pch_nx): Likewise.
14401 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
14404 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
14407 2019-06-26 Jeff Law <law@redhat.com>
14409 PR tree-optimization/90883
14410 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
14411 (delete_dead_or_redundant_assignment): Likewise.
14413 PR tree-optimization/90883
14414 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
14415 * tree-ssa-dse.c: Update various comments to distinguish between
14416 dead and redundant stores.
14417 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
14418 (dse_optimize_redundant_stores): New function.
14419 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
14420 Distinguish between dead and redundant calls in dump output. All
14422 (delete_dead_or_redundant_assignment): Similarly for assignments.
14423 (dse_optimize_stmt): Handle _CHK variants. For statements which
14424 store 0 into multiple memory locations, try to prove a subsequent
14425 store is redundant.
14427 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
14430 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
14431 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
14433 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14435 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
14436 (branch_islands): New extern.
14437 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
14438 * config/rs6000/rs6000.c: .. here.
14440 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14442 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
14443 (powerpc*-*-*) ... to here.
14445 2019-06-26 Jeff Law <law@redhat.com>
14447 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
14448 memcpy, memmove and memset builtins.
14449 (maybe_trim_memstar_call): Likewise.
14451 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14453 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
14455 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14457 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14459 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14461 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
14463 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
14465 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
14468 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14470 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
14472 2019-06-26 Richard Biener <rguenther@suse.de>
14475 * tree-inline.c (remap_ssa_name): Copy SSA range info.
14477 2019-06-26 Richard Biener <rguenther@suse.de>
14479 * lto-streamer.h (lto_bitmap_alloc): Remove.
14480 (lto_bitmap_free): Likewise.
14481 * lto-streamer.c (lto_bitmap_alloc): Remove.
14482 (lto_bitmap_free): Likewise.
14483 (lto_obstack): Likewise.
14484 (lto_obstack_initialized): Likewise.
14485 * lto-streamer-out.c (lto_output): Use own obstack for local
14486 bitmap, free it consistently.
14488 2019-06-26 Jakub Jelinek <jakub@redhat.com>
14491 * config/i386/sse.md
14492 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
14493 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
14494 insns if operands[2] is misaligned_operand.
14496 2019-06-26 Li Jia He <helijia@linux.ibm.com>
14498 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
14500 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
14503 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14505 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
14507 2019-06-26 Martin Liska <mliska@suse.cz>
14509 PR tree-optimization/90973
14510 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
14511 epilogue_cost_vec instead of prologue_cost_vec for
14514 2019-06-26 Martin Liska <mliska@suse.cz>
14516 * bb-reorder.c (connect_better_edge_p): Add missing else
14517 statement in the middle of if-else statements.
14519 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
14520 H.J. Lu <hongjiu.lu@intel.com>
14521 Olga Makhotina <olga.makhotina@intel.com>
14523 * common/config/i386/i386-common.c
14524 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
14525 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
14526 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
14527 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
14528 (ix86_handle_option): Handle -mavx512vp2intersect.
14529 * config/i386/avx512vp2intersectintrin.h: New.
14530 * config/i386/avx512vp2intersectvlintrin.h: New.
14531 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
14532 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14533 AVX512VP2INTERSECT.
14534 * config/i386/i386-builtin-types.def: Add new types.
14535 * config/i386/i386-builtin.def: Add new builtins.
14536 * config/i386/i386-builtins.c: (enum processor_features): Add
14537 F_AVX512VP2INTERSECT.
14538 (static const _isa_names_table isa_names_table): Ditto.
14539 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14540 __AVX512VP2INTERSECT__.
14541 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
14542 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
14543 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
14544 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
14545 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
14546 * config/i386/i386-options.c (ix86_target_string): Add
14547 -mavx512vp2intersect.
14548 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
14549 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
14550 P2HImode and P2QImode.
14551 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
14552 number for P2QImode and P2HImode.
14553 (ix86_regmode_natural_size): New function.
14554 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
14555 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
14556 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
14557 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
14558 * config/i386/i386.opt: Add -mavx512vp2intersect.
14559 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
14560 avx512vp2intersectvlintrin.h.
14561 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
14562 (define_mode_iterator VI48_AVX512VP2VL): New.
14563 (avx512vp2intersect_2intersect<mode>,
14564 avx512vp2intersect_2intersectv16si): New define_insn patterns.
14565 * config.gcc: Add avx512vp2intersectvlintrin.h and
14566 avx512vp2intersectintrin.h to extra_headers.
14567 * doc/invoke.texi: Document -mavx512vp2intersect.
14569 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
14571 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
14573 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
14575 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
14576 savres_routine_syms, savres_routine_name, morestack_ref,
14577 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14578 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14579 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14580 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14581 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14582 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14583 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14584 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14585 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14586 get_stack_clash_protection_probe_interval,
14587 get_stack_clash_protection_guard_size,
14588 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14589 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14590 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14591 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14592 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14593 gen_frame_mem_offset, rs6000_savres_routine_name,
14594 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14595 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14596 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14597 rs6000_global_entry_point_prologue_needed_p,
14598 rs6000_get_separate_components, rs6000_components_for_bb,
14599 rs6000_disqualify_components, rs6000_emit_prologue_components,
14600 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14601 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14602 rs6000_output_savres_externs, rs6000_output_function_prologue,
14603 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14604 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14605 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14606 rs6000_output_function_epilogue, gen_add3_const,
14607 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14608 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14610 (machine_function): Moved to rs6000.h.
14611 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
14613 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
14614 savres_routine_syms, savres_routine_name, morestack_ref,
14615 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14616 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14617 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14618 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14619 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14620 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14621 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14622 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14623 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14624 get_stack_clash_protection_probe_interval,
14625 get_stack_clash_protection_guard_size,
14626 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14627 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14628 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14629 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14630 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14631 gen_frame_mem_offset, rs6000_savres_routine_name,
14632 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14633 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14634 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14635 rs6000_global_entry_point_prologue_needed_p,
14636 rs6000_get_separate_components, rs6000_components_for_bb,
14637 rs6000_disqualify_components, rs6000_emit_prologue_components,
14638 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14639 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14640 rs6000_output_savres_externs, rs6000_output_function_prologue,
14641 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14642 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14643 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14644 rs6000_output_function_epilogue, gen_add3_const,
14645 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14646 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14647 to here from rs6000.c.
14648 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
14649 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
14650 quad_address_offset_p) Moved to here from rs6000.c.
14651 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
14652 * config/config.gcc: Add new source file rs6000-logue.c to garbage
14655 2019-06-25 Martin Liska <mliska@suse.cz>
14657 * hash-table.c (hashtab_chk_error): Move here from ...
14658 * hash-table.h (hashtab_chk_error): ... here.
14660 2019-06-25 Martin Liska <mliska@suse.cz>
14662 PR tree-optimization/90978
14663 * df-scan.c (df_update_entry_block_defs): Remove dead else
14665 (df_update_exit_block_uses): Likewise.
14667 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
14668 Andrew Stubbs <ams@codesourcery.com>
14670 * config.gcc (thread_file): Set to gcn for AMD GCN.
14671 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
14672 (TARGET_EMUTLS_VAR_INIT): New hook.
14674 2019-06-25 Martin Jambor <mjambor@suse.cz>
14677 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
14679 2019-06-25 Richard Biener <rguenther@suse.de>
14681 PR tree-optimization/90930
14682 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
14683 into parallel form in the last pass instance.
14685 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
14687 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
14688 (arc_legitimize_pic_address): Simplify and cleanup the function.
14689 (SYMBOLIC_CONST): Remove.
14690 (prepare_pic_move): Likewise.
14691 (prepare_move_operands): Handle complex mov cases here.
14692 (arc_legitimize_address_0): Remove call to
14693 arc_legitimize_pic_address.
14694 (arc_legitimize_address): Remove call to
14695 arc_legitimize_tls_address.
14696 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
14697 (movhi_insn): Likewise.
14699 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14701 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
14703 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
14704 format of "__intN" types for UINTMAX_TYPE.
14705 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
14706 format of "__intN" types for SIZETYPE.
14707 * tree.c (build_common_tree_nodes): Accept "__intN__"
14708 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
14709 * doc/invoke.texi: Document that __intN__ disables pedantic
14712 2019-06-25 Jan Hubicka <jh@suse.cz>
14714 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
14715 base2_alias_set is non-zero before doing TBAA based disambiguation.
14717 2019-06-25 Martin Liska <mliska@suse.cz>
14719 PR tree-optimization/90973
14720 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
14721 of prologue and epilogue.
14723 2019-06-24 Jan Hubicka <jh@suse.cz>
14725 * ipa-utils.h (type_with_linkage_p): Verify that type is
14727 (odr_type_p): Remove extra return.
14728 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
14729 hash STRING_FLAG only for arrays and integers.
14730 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
14731 Update analogously.
14732 * tree-streamer-out.c (pack_ts_type_common_value_fields):
14734 * print-tree.c (print_node): Print cxx-odr-p
14736 * tree.c (need_assembler_name_p): Also check that type
14738 (verify_type_variant): Update verification of SRING_FLAG;
14739 also check CXX_ODR_P.
14740 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
14741 (TYPE_STRING_FLAG): Use it.
14742 (TYPE_CXX_ODR_P): New macro.
14743 * dwarf2out.c (gen_array_type_die): First check that type
14744 is an array and then test string flag.
14746 2019-06-24 Richard Biener <rguenther@suse.de>
14748 PR tree-optimization/90972
14749 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
14750 in common code, dealing with STRING_CST properly.
14752 2019-06-24 Richard Biener <rguenther@suse.de>
14754 PR tree-optimization/90930
14755 PR tree-optimization/90316
14756 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
14757 decrement of limit.
14759 2019-06-24 Martin Sebor <msebor@redhat.com>
14761 * tree-pretty-print.h: Remove unnecessary punctuation characters
14763 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
14765 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
14767 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
14768 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
14769 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
14771 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14773 * config/rs6000/darwin.h: Handle GCC target pragma.
14775 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14777 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
14779 2019-06-22 Jeff Law <law@redhat.com>
14781 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14783 2019-06-22 Jan Hubicka <jh@suse.cz>
14785 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
14786 give up on bitfields; continue searching for different refs
14789 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14791 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14792 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
14793 containing the offset as possible simd lane access. Look through
14794 widening conversion. Move the
14795 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
14797 2019-06-21 Richard Biener <rguenther@suse.de>
14799 PR tree-optimization/90930
14800 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
14801 flag on new stmts to avoid re-processing them.
14803 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
14805 PR c++/90875 - added -Wswitch-outside-range option
14806 * doc/invoke.texi (Wswitch-outside-range): Document.
14808 2019-06-21 Jeff Law <law@redhat.com>
14810 PR tree-optimization/90949
14811 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
14812 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
14814 2019-06-21 Richard Biener <rguenther@suse.de>
14817 * dwarf2out.c (prune_unused_types_walk): Always consider
14818 function-local extern declarations as used.
14820 2019-06-21 Richard Biener <rguenther@suse.de>
14822 PR tree-optimization/90913
14823 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
14824 the scalar variant of if-conversion versioning.
14826 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14828 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
14829 create another "omp scan inscan exclusive" array if
14830 !ctx->scan_inclusive.
14831 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
14832 (lower_omp_scan): Likewise.
14833 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
14834 2-bit bitfield for simd_lane_access_p member.
14835 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
14836 aux == (void *)-4 as simd lane access.
14837 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
14838 comment with permutations to show the canonical permutation order.
14839 (vectorizable_scan_store): Handle exclusive scan.
14840 (vectorizable_store): Call vectorizable_scan_store even for
14841 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
14843 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14844 "omp simd array" arrays with one byte elements.
14846 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
14848 * config/alpha/alpha.md (@unaligned_store<mode>):
14849 Rename from unaligned_store<mode>.
14850 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
14851 * config/alpha/sync.md (@load_locked_<mode>): Rename
14852 from load_locked_<mode>.
14853 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
14854 (@atomic_compare_and_swap<mode>_1): Rename
14855 from atomic_compare_and_swap<mode>_1.
14856 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
14857 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
14858 Use gen_reload_in_aligned and gen_unaligned_store.
14859 (emit_load_locked): Remove.
14860 (emit_store_conditional): Ditto.
14861 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
14862 (alpha_split_compare_and_swap): Ditto.
14863 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
14864 (alpha_split_compare_and_swap_12): Use gen_load_locked
14865 and gen_store_conditional.
14866 (alpha_split_atomic_exchange): Ditto.
14867 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
14868 (alpha_split_atomic_exchange_12): Use gen_load_locked
14869 and gen_store_conditional.
14871 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
14873 * config/aarch64/aarch64-errata.h: New file.
14874 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
14875 (CA53_ERR_843419_SPEC): Delete.
14876 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
14877 * config/aarch64/aarch64-linux.h: Likewise.
14878 * config/aarch64/aarch64-netbsd.h: Likewise.
14879 * config/aarch64/aarch64-freebsd.h: Likewise.
14881 2019-06-20 Marek Polacek <polacek@redhat.com>
14883 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
14885 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
14887 * config/rs6000/rs6000.md (isa attribute): Add support for
14888 for a future processor.
14890 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
14893 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
14894 standard scalar operation pattern for V2DF.
14895 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
14896 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
14897 (*ieee_<ieee_maxmin><mode>3): Likewise.
14898 (vec_setv2df_0): Likewise.
14900 2019-06-20 Jan Hubicka <jh@suse.cz>
14902 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
14903 parameter; it has no use in gimple memory model.
14904 (indirect_ref_may_alias_decl_p): Update.
14906 2019-06-20 Martin Liska <mliska@suse.cz>
14908 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
14911 2019-06-20 Jakub Jelinek <jakub@redhat.com>
14913 * tree-vect-stmts.c (enum scan_store_kind): New type.
14914 (scan_store_can_perm_p): Change last argument from int * to
14915 vec<enum scan_store_kind> *, record precisely which permutations
14916 need whole vector left shift or that plus VEC_COND_EXPR.
14917 (vectorizable_scan_store): Adjust caller, use whole vector left shift
14918 and additional VEC_COND_EXPR only for those iterations that need it.
14920 2019-06-20 Alexandre Oliva <oliva@adacore.com>
14922 * config.gcc: Fix ARM --with-fpu checking and error message.
14924 2019-06-19 Marek Polacek <polacek@redhat.com>
14926 PR c++/60364 - noreturn after first decl not diagnosed.
14927 * attribs.c (get_attribute_namespace): No longer static.
14928 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
14930 (attr_noreturn_exclusions): Make it extern.
14931 * attribs.h (get_attribute_namespace): Declare.
14932 * tree-inline.c (function_attribute_inlinable_p): Use
14933 get_attribute_name.
14935 2019-06-19 Martin Sebor <msebor@redhat.com>
14937 PR tree-optimization/90626
14938 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
14940 PR tree-optimization/90626
14941 * tree-ssa-strlen.c (strxcmp_unequal): New function.
14942 (handle_builtin_string_cmp): Call it.
14944 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14946 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
14947 and DARWIN_NOPIE_SPEC.
14948 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
14949 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
14950 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
14951 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
14952 (DARWIN_EXPORT_DYNAMIC): Delete.
14953 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
14954 and pie options processing to darwin.h.
14955 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
14957 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14959 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
14960 in computing the number of options to be moved.
14962 2019-06-19 Maya Rashish <coypu@sdf.org>
14964 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
14965 (CLEAR_INSN_CACHE) Use it.
14967 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
14969 * config/i386/i386.md (cmpstrnsi): Remove dead code.
14971 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
14973 PR middle-end/84521
14974 * builtins.c (expand_builtin_setjmp_setup): Save
14975 hard_frame_pointer_rtx.
14976 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
14978 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
14980 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
14982 (remove_reg_equal_offset_note): Remove unused function.
14983 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
14985 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14986 (arc_builtin_setjmp_frame_value): Remove function.
14987 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14988 (avr_builtin_setjmp_frame_value): Remove function.
14989 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14990 (ix86_builtin_setjmp_frame_value): Remove function.
14991 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
14992 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14993 (sparc_builtin_setjmp_frame_value): Remove function.
14994 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14995 (vax_builtin_setjmp_frame_value): Remove function.
14996 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
14997 pointer if has_nonlocal_label.
14999 2019-06-19 Jakub Jelinek <jakub@redhat.com>
15001 * doc/md.texi: Document vec_shl_<mode> pattern.
15002 * optabs.def (vec_shl_optab): New optab.
15003 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
15004 argument, if == vec_shl_optab, check for left whole vector shift
15005 pattern rather than right shift.
15006 (expand_vec_perm_const): Add vec_shl_optab support.
15007 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
15009 * tree-vect-generic.c (lower_vec_perm): Support permutations which
15010 can be handled by vec_shl_optab.
15011 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
15012 (check_scan_store): Use it.
15013 (vectorizable_scan_store): If target can't do normal permutations,
15014 try to use whole vector left shifts and if needed a VEC_COND_EXPR
15016 * config/i386/sse.md (vec_shl_<mode>): New expander.
15018 * omp-low.c (lower_rec_input_clauses): Handle references properly
15020 (lower_omp_scan): Likewise.
15022 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15024 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
15025 mem_mode is BLKmode.
15027 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
15030 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
15031 pointer adjustment for the case of no callee-saved registers and
15032 stack frame bigger than 128 bytes.
15034 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
15036 PR middle-end/90862
15037 * omp-low.c (check_omp_nesting_restrictions): Handle
15038 GF_OMP_TARGET_KIND_OACC_DECLARE.
15040 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
15042 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
15043 (@add<mode>3_carry): Rename from add<mode>3_carry.
15044 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
15045 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
15046 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
15047 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
15048 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
15049 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
15050 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
15051 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
15052 (cmpstrnsi): Use gen_cmp_1.
15053 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
15054 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
15055 (@umonitor_<mode>): Rename from umonitor_<mode>.
15056 * config/i386/i386-expand.c (ix86_expand_copysign):
15057 Use gen_copysign3_const and gen_copysign3_var.
15058 (ix86_expand_xorsign): Use gen_xorsign3_1.
15059 (ix86_expand_branch): Use gen_sub3_carry_ccc,
15060 gen_sub3_carry_ccgz and gen_cmp1.
15061 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
15062 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
15063 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
15064 (ix86_split_lshr): Ditto.
15065 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
15067 2019-06-18 Jason Merrill <jason@redhat.com>
15069 * tree.c (build_constructor): Add MEM_STAT_DECL.
15071 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15073 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
15074 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
15075 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
15076 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
15077 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
15078 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
15079 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
15080 Use CC_NZC instead of CC.
15081 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
15082 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
15083 (aarch64_print_operand): Handle E_CC_NZCmode.
15084 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
15085 of gen_set_clobber_cc.
15087 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15089 * config/aarch64/aarch64-sve.md: Tabify file.
15091 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15093 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
15094 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
15095 * config/aarch64/aarch64-sve.md: Use it.
15097 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15099 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
15100 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
15101 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
15102 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
15103 (aarch64_expand_sve_vec_cmp_int): Use it.
15104 (aarch64_expand_sve_vec_cmp_float): Likewise.
15105 * config/aarch64/aarch64-sve.md: Likewise throughout.
15107 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15108 Kugan Vivekanandarajah <kuganv@linaro.org>
15110 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
15111 (*cond_<optab><mode>_z): Fold into...
15112 (*cond_<optab><mode>_any): ...here. Also handle cases in which
15113 operand 4 can be tied to operand 0 (either inherently or via RA).
15115 2019-06-18 Richard Biener <rguenther@suse.de>
15118 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
15119 as if optimized away.
15121 2019-06-18 Tom de Vries <tdevries@suse.de>
15123 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
15124 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
15125 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
15127 (define_insn "@set_softstack_<mode>"): ... this.
15128 (define_insn "omp_simt_enter_<mode>"): Rename to ...
15129 (define_insn "@omp_simt_enter_<mode>"): ... this.
15130 (define_insn "omp_simt_exit_<mode>"): Rename to ...
15131 (define_insn "@omp_simt_exit_<mode>"): ... this.
15133 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15135 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
15136 vf parameter. Restore the previous iv step of nscalars_step,
15137 but give it iv_type rather than compare_type. Tweak code order
15138 to match the comments.
15139 (vect_set_loop_condition_masked): Update accordingly.
15140 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
15141 for iv_precision. Tweak comment formatting.
15143 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15145 * config/darwin.c: Strip trailing whitespace.
15147 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15149 * config/darwin.c (darwin_emit_unwind_label): New default to false.
15150 (darwin_override_options): Set darwin_emit_unwind_label as needed.
15152 2019-06-18 Martin Jambor <mjambor@suse.cz>
15155 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
15156 caller does not have flag_ipa_cp set.
15158 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
15160 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
15161 from "*fold_left_plus_<mode>", updated operands order.
15162 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
15163 * internal-fn.c (mask_fold_left_direct): New define.
15164 (expand_mask_fold_left_optab_fn): Likewise.
15165 (direct_mask_fold_left_optab_supported_p): Likewise.
15166 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
15167 * optabs.def (mask_fold_left_plus_optab): New optab.
15168 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
15169 masked internal_fn for a reduction ifn.
15170 (vectorize_fold_left_reduction): Add support for masking reductions.
15172 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
15174 PR middle-end/80791
15175 * target.def (predict_doloop_p): New hook.
15176 * targhooks.h (default_predict_doloop_p): New declaration.
15177 * targhooks.c (default_predict_doloop_p): New function.
15178 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
15179 * doc/tm.texi: Regenerate.
15180 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
15181 (TARGET_PREDICT_DOLOOP_P): New macro.
15182 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
15184 2019-06-17 Jakub Jelinek <jakub@redhat.com>
15186 * omp-low.c (struct omp_context): Add scan_inclusive field.
15187 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
15189 (struct omplow_simd_context): Add lastlane member.
15190 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
15191 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
15193 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
15194 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
15195 (lower_omp_scan): New function.
15196 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
15197 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
15198 check 3rd argument if present rather than 2nd.
15199 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
15200 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
15202 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
15203 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
15205 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
15206 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
15207 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
15209 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
15210 IFN_GOMP_SIMD_LANE argument.
15211 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
15212 encoded ->aux value.
15213 * tree-vect-stmts.c: Include attribs.h.
15214 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
15215 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
15217 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
15218 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
15220 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
15223 * config/i386/i386.md (*nabstf2_1): New insn pattern.
15224 (*nabs<mode>2_1): Ditto.
15225 (nabs sse-reg splitter): New splitter.
15226 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
15228 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15230 PR bootstrap/90873.
15231 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
15234 2019-06-17 Tom de Vries <tdevries@suse.de>
15236 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
15237 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
15238 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
15240 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
15242 (define_insn "omp_simt_enter_insn"): Rename to ...
15243 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
15244 match_operand 0, 1 and 2, as well as the unspec_volatile result.
15245 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
15246 gen_omp_simt_enter_si.
15247 (define_expand "omp_simt_exit"): New.
15248 (define_insn "omp_simt_exit"): Rename to ...
15249 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
15252 2019-06-17 Matthew Green <mrg@eterna.com.au>
15253 Maya Rashish <coypu@sdf.org>
15255 * config.gcc (aarch64*-*-netbsd*): New target.
15256 * config/aarch64/aarch64-netbsd.h: New file.
15257 * config/aarch64/t-aarch64-netbsd: Likewise.
15259 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15261 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
15262 the access path from base to first VIEW_CONVERT_EXPR or
15265 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15267 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
15268 access path on BIT_FIELD_REFs.
15270 2019-06-17 Martin Liska <mliska@suse.cz>
15273 * ipa-utils.h (odr_type_p): Remove dead code.
15275 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15277 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
15278 alternative Solaris 11.4 format.
15279 * configure: Regenerate.
15281 2019-06-17 Tom de Vries <tdevries@suse.de>
15283 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
15284 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
15286 (define_insn "call_value_insn"): Rename to ...
15287 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
15289 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
15292 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
15294 PR middle-end/64242
15295 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
15296 frame clobbers and schedule block.
15297 (builtin_longjmp): Likewise.
15299 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15301 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
15302 describe how to perform MSPABI compliant 64-bit shift.
15303 * config/msp430/msp430.md (ashldi3): New define_expand.
15304 (ashrdi3): New define_expand.
15305 (lshrdi3): New define_expand.
15307 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15309 * doc/sourcebuild.texi: Document new effective target keyword
15312 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15314 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
15315 indirect_refs_may_alias_p): Revert accidental commits.
15317 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
15318 at the end of structures.
15320 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15322 * config/darwin.c (machopic_indirect_call_target): Use renamed
15323 darwin_picsymbol_stubs to decide on output.
15324 (darwin_override_options): Handle darwin_picsymbol_stubs.
15325 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
15326 (LD64_VERSION): Revise default.
15327 * config/darwin.opt: (mpic-symbol-stubs): New option.
15328 (darwin_picsymbol_stubs): New variable.
15329 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
15330 rename to TARGET_MACHO_PICSYM_STUBS.
15331 * config/i386/i386.c (output_pic_addr_const): Likewise.
15332 * config/i386/i386.h Likewise.
15333 * config/rs6000/darwin.h: Likewise.
15334 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
15335 darwin_picsymbol_stubs.
15337 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15339 * config/darwin.opt (prebind, noprebind, seglinkedit,
15340 noseglinkedit): Add RejectNegative.
15342 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15344 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
15345 in my previous patch.
15347 2019-06-16 Tom de Vries <tdevries@suse.de>
15349 PR tree-optimization/89376
15350 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
15352 2019-06-15 Maya Rashish <coypu@sdf.org>
15354 * doc/invoke.texi (Spec Files): Update location of the
15357 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
15359 * doc/extend.texi (Common Function Attributes): Clarify
15360 no_sanitize. Fix grammar.
15362 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
15364 * tree-ssa-alias.c (alias_stats): Add
15365 nonoverlapping_component_refs_p_may_alias,
15366 nonoverlapping_component_refs_p_no_alias,
15367 nonoverlapping_component_refs_of_decl_p_may_alias,
15368 nonoverlapping_component_refs_of_decl_p_no_alias.
15369 (dump_alias_stats): Dump them.
15370 (nonoverlapping_component_refs_of_decl_p): Add stats.
15371 (nonoverlapping_component_refs_p): Add stats; do not stop on first
15374 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
15376 * config/i386/i386.md (and<mode>3): Generate zero-extends for
15377 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
15379 (*anddi3_doubleword): Split before reload. Merge with
15380 anddi->zext pre-reload splitter.
15381 (*andndi3_doubleword): Split before reload.
15382 (*<code>di3_doubleword): Ditto.
15383 (*one_cmpldi2_doubleword): Ditto.
15385 2019-06-15 Jakub Jelinek <jakub@redhat.com>
15387 PR middle-end/90779
15388 * gimplify.c: Include omp-offload.h and context.h.
15389 (gimplify_bind_expr): Add "omp declare target" attributes
15390 to static block scope variables inside of target region or target
15393 2019-06-15 Tom de Vries <tdevries@suse.de>
15395 PR tree-optimization/90009
15396 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
15397 Return NULL if bb contains IFN_UNIQUE.
15399 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
15401 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
15402 (un): New define_mode_attr.
15403 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
15404 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
15405 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
15407 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
15409 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
15411 * config/darwin.opt: Add RejectNegative where needed, reorder
15412 and add minimal functional descriptions.
15414 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15416 PR rtl-optimization/90765
15417 * calls.c (update_stack_alignment_for_call): New function.
15418 (expand_call): Call update_stack_alignment_for_call when
15419 outgoing parameter is passed in the stack.
15420 (emit_library_call_value_1): Likewise.
15421 * function.c (locate_and_pad_parm): Don't update
15422 stack_alignment_needed and preferred_stack_boundary.
15424 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15427 * config/i386/i386-features.c
15428 (dimode_scalar_chain::compute_convert_gain): Replace
15429 mmxsse_to_integer with sse_to_integer.
15430 * config/i386/i386.c (ix86_register_move_cost): Verify that
15431 moves between MMX and non-MMX units require secondary memory.
15432 Correct costs of moves between SSE and integer units.
15433 * config/i386/i386.h (processor_costs): Rename cost of moving
15434 SSE register to integer to sse_to_integer. Rename cost of
15436 2019-06-14 Matt Thomas <matt@3am-software.com>
15437 Matthew Green <mrg@eterna.com.au>
15438 Nick Hudson <skrll@netbsd.org>
15439 Maya Rashish <coypu@sdf.org>
15440 Richard Earnshaw <rearnsha@arm.com>
15442 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
15443 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
15444 * config/arm/netbsd-eabi.h: New file.
15445 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
15447 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
15448 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
15449 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
15450 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
15452 2019-06-14 Richard Biener <rguenther@suse.de>
15454 * tree-loop-distribution.c (classify_partition): Return
15455 whether a reduction appeared in all partitions and do not
15456 stop builtin detection because of this.
15457 (distribute_loop): Sort a non-builtin partition last if
15458 there's a reduction in all partitions and make sure the
15459 partition prevailing as last is not a builtin.
15461 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
15464 * ipa-prop.c (add_to_agg_contents_list): New function.
15465 (clobber_by_agg_contents_list_p): Likewise.
15466 (extract_mem_content): Likewise.
15467 (get_place_in_agg_contents_list): Delete.
15468 (determine_known_aggregate_parts): Renamed from
15469 determine_locally_known_aggregate_parts. New parameter
15472 2019-06-13 Martin Sebor <msebor@redhat.com>
15474 PR tree-optimization/90662
15475 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
15478 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15481 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
15482 dbase is not TARGET_MEM_REF.
15484 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15486 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
15488 (and<mode>3): Use gen_extend_insn instead of indirect functions.
15489 Do not generate DImode extends for 32bit targets.
15490 (and->zext post-reload splitter): Use gen_extend_insn
15491 instead of indirect functions.
15492 (anddi->zext pre-reload splitter): New.
15493 (*zext<mode>_doubleword_and): Remove.
15494 (*zext<mode>_doubleword): Ditto.
15495 (*zextsi_doubleword): Dittto.
15497 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15499 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
15500 Use gen_sub3_insn instead of indirect function.
15501 (ix86_expand_ashl_const): Use gen_add2_insn instead of
15503 (ix86_adjust_counter): Ditto.
15505 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
15506 Lijia He <helijia@linux.ibm.com>
15508 PR tree-optimization/77820
15509 * tree-ssa-threadedge.c
15510 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
15512 (thread_across_edge): Add call to
15513 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
15515 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
15517 * config/darwin-driver.c (validate_macosx_version_min): New.
15518 (darwin_default_min_version): Cleanup and validate supplied version.
15519 (darwin_driver_init): Likewise and push cleaned version into opts.
15521 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15523 PR tree-optimization/90869
15524 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
15525 converts in MEM_REF referencing decl rather than view converts
15526 from decl type to MEM_REF type.
15528 2019-06-13 Richard Biener <rguenther@suse.de>
15530 PR tree-optimization/90856
15531 * tree-sra.c (build_ref_for_model): Only use
15532 build_reconstructed_reference when address-spaces are the same.
15534 2019-06-13 Jakub Jelinek <jakub@redhat.com>
15536 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
15537 wrap ei variable name in the declaration in ()s.
15538 (nvptx_single): Actually use mode_label variable. Formatting fix.
15540 2019-06-13 Richard Biener <rguenther@suse.de>
15542 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
15543 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
15544 also return the condition stmt.
15545 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
15546 loop we can version and version that, reusing the loop version
15547 created by if-conversion instead of versioning again.
15549 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
15551 * gimple-loop-versioning.cc (prune_loop_conditions): Use
15553 * tree-vrp (value_range_base::may_contain_p): Call into
15554 value_inside_range.
15555 (value_inside_range): Make private inside value_range_base class.
15556 Take min/max from *this.
15557 (range_includes_p): Remove.
15558 * tree-vrp.h (value_range_base): Add value_inside_range.
15559 (range_includes_p): Remove.
15560 (range_includes_zero_p): Call may_contain_p.
15561 * vr-values.c (compare_range_with_value): Same.
15563 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
15565 * doc/extend.texi (ARC Function Attributes): Update info.
15567 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
15569 PR tree-optimization/89713
15570 * doc/invoke.texi (-ffinite-loops): Document new option.
15571 * common.opt (-ffinite-loops): New option.
15572 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
15573 IFN_GOACC_LOOP calls as necessary.
15574 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
15576 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
15577 IFN_GOACC_LOOP call is not used.
15578 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
15580 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15583 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
15584 compare_type is not with Pmode size, we will create an IV with
15585 Pmode size with truncated use (i.e. converted to the correct type).
15586 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
15587 (vect_iv_limit_for_full_masking): New. Factored out of
15588 vect_set_loop_condition_masked.
15589 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
15590 (vect_iv_limit_for_full_masking): Declare.
15592 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15595 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
15596 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
15597 (get_alias_ptr_type_for_ptr_address): Likewise.
15598 (add_iv_candidate_for_use): Add scaled index candidate if useful.
15599 * tree-ssa-address.c (preferred_mem_scale_factor): New.
15600 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
15603 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15605 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
15607 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
15609 * common/config/pru/pru-common.c: New file.
15610 * config.gcc: Add PRU target.
15611 * config/pru/alu-zext.md: New file.
15612 * config/pru/constraints.md: New file.
15613 * config/pru/predicates.md: New file.
15614 * config/pru/pru-opts.h: New file.
15615 * config/pru/pru-passes.c: New file.
15616 * config/pru/pru-pragma.c: New file.
15617 * config/pru/pru-protos.h: New file.
15618 * config/pru/pru.c: New file.
15619 * config/pru/pru.h: New file.
15620 * config/pru/pru.md: New file.
15621 * config/pru/pru.opt: New file.
15622 * config/pru/t-pru: New file.
15623 * doc/extend.texi: Document PRU pragmas.
15624 * doc/invoke.texi: Document PRU-specific options.
15625 * doc/md.texi: Document PRU asm constraints.
15627 2019-06-12 Martin Sebor <msebor@redhat.com>
15629 PR middle-end/90676
15630 * tree-pretty-print.c (dump_mem_ref): New function. Include
15631 MEM_REF type in output when different size than operand.
15632 (dump_generic_node): Move code to dump_mem_ref and call it.
15634 2019-06-12 Martin Sebor <msebor@redhat.com>
15636 PR tree-optimization/90662
15637 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
15640 2019-06-12 Tom de Vries <tdevries@suse.de>
15642 PR tree-optimization/90009
15643 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
15645 2019-06-12 Martin Liska <mliska@suse.cz>
15647 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
15649 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
15650 * mem-stats.h (mem_alloc_description::mem_alloc_description):
15651 Do not sanitize created maps.
15653 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
15655 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
15656 value_range::singleton_p.
15657 * tree-vrp.c (value_range_constant_singleton): Remove.
15658 * tree-vrp.h (value_range_constant_singleton): Remove.
15659 * vr-values.c (vr_values::singleton): Use
15660 value_range::singleton_p.
15662 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15665 * cfgexpand.c (align_local_variable): Add really_expand argument,
15666 don't SET_DECL_ALIGN if it is false.
15667 (add_stack_var): Add really_expand argument, pass it through to
15668 align_local_variable.
15669 (expand_one_stack_var_1): Pass true as really_expand to
15670 align_local_variable.
15671 (expand_one_ssa_partition): Pass true as really_expand to
15673 (expand_one_var): Pass really_expand through to add_stack_var.
15675 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
15677 * config/arm/iterators.md (VABAL): New int iterator.
15678 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
15679 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
15680 UNSPEC_VABAL_U values.
15682 2019-06-12 Martin Liska <mliska@suse.cz>
15684 * value-prof.c (stream_out_histogram_value): Only first value
15687 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15690 * symtab.c (symtab_node::set_section): Allow being called on aliases
15691 as long as they aren't analyzed yet.
15693 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
15695 * config/mips/mips.c (mips_final_postscan_insn): Modify call
15696 to `mips_set_text_contents_type' to indicate whether a
15697 non-debug insn follows.
15699 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
15701 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
15702 enabling -mpcrel by default.
15703 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
15704 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
15705 that the test against -mcpu=future is done first. Then test if
15706 -mprefixed-addr is on for -mpcrel.
15707 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
15709 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15712 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
15713 instead of and.u%d.
15715 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15717 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
15719 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
15721 PR c++/90449 - add -Winaccessible-base option.
15722 * doc/invoke.texi (Winaccessible-base): Document.
15724 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15726 PR tree-optimization/62041
15727 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
15729 2019-06-11 Jason Merrill <jason@redhat.com>
15731 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
15732 * tree.c (get_tree_code_name): Likewise.
15733 * print-tree.c (print_node): Only briefly print a node with an
15736 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15739 * trans-mem.c (tm_memopt_compute_available): Add assertion
15740 that blocks is not empty. Formatting fix.
15742 2019-06-11 Martin Liska <mliska@suse.cz>
15745 * hash-table.h: Extend create_gcc, add one parameter
15746 that is passed into hash_table::hash_table.
15748 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
15750 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
15752 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
15753 Emit clobber also for non-sse operations.
15754 (ix86_split_fp_absneg_operator): New function.
15755 * config/i386/i386.md (SSEMODEF): New mode iterator.
15756 (ssevecmodef): New mode attribute.
15757 (<code>tf2): Use absneg code iterator.
15758 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
15759 Add three-operand AVX alternatives.
15760 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
15761 Use absneg code iterator and X87MODEF mode iterator.
15762 (absneg fp_reg non-sse splitter): Call absneg code iterator
15763 and X87MODEF mode iterator.
15764 (absneg general_reg non-sse splitter): Use absneg code iterator
15765 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
15766 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
15767 code iterator. Add three-operand AVX alternative.
15768 (absneg sse_reg splitter): Use absneg code iterator
15769 and SSEMODEF mode iterator. Handle AVX operands.
15770 (absneg fp_reg splitter): Use absneg code iterator
15771 and MODEF mode iterator.
15772 (absneg general_reg splitter): Merge splitters using MODEF mode
15773 iterator. Use absneg code iterator. Call
15774 ix86_split_fp_absneg_operator.
15775 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
15776 Do not enable for non-sse modes before reload.
15777 (CSGNMODE): Remove.
15778 (CSGNVMODE): Ditto.
15779 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
15780 ssevecmodef mode attribute instaed of CSGNVMODE.
15781 (copysign<mode>3_const): Ditto.
15782 (copysign<mode>3_var): Ditto.
15783 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
15784 Use absneg code iterator. Simplify code using std::swap.
15785 * config/i386/predicates.md (absneg_operator): Remove.
15787 2019-06-10 Martin Sebor <msebor@redhat.com>
15789 * gimple-fold.c (get_range_strlen): Update comment that didn't
15790 make it into r267503 or related commits.
15792 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
15794 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
15795 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
15797 2019-06-10 Jakub Jelinek <jakub@redhat.com>
15799 * tree.def (OMP_SCAN): New tree code.
15800 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
15801 OMP_CLAUSE_EXCLUSIVE.
15802 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
15803 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
15804 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
15805 OMP_CLAUSE_{IN,EX}CLUSIVE.
15806 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15807 * tree-nested.c (convert_nonlocal_reference_stmt,
15808 convert_local_reference_stmt, convert_gimple_call): Handle
15810 * tree-pretty-print.c (dump_omp_clause): Handle
15811 OMP_CLAUSE_{IN,EX}CLUSIVE.
15812 (dump_generic_node): Handle OMP_SCAN.
15813 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
15814 * gimple.h (gomp_scan): New type.
15815 (is_a_helper <gomp_scan *>::test,
15816 is_a_helper <const gomp_scan *>::test): New templates.
15817 (gimple_build_omp_scan): Declare.
15818 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
15819 gimple_omp_scan_set_clauses): New inline functions.
15820 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
15821 * gimple.c (gimple_build_omp_scan): New function.
15822 (gimple_copy): Handle GIMPLE_OMP_SCAN.
15823 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
15824 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
15825 GIMPLE_OMP_TASKGROUP.
15826 (dump_gimple_omp_scan): New function.
15827 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
15828 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
15829 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
15830 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
15831 (is_gimple_stmt): Handle OMP_SCAN.
15832 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
15833 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15834 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
15835 mentioned in nested #pragma omp scan. Handle
15836 OMP_CLAUSE_{IN,EX}CLUSIVE.
15837 (gimplify_expr): Handle OMP_SCAN.
15838 * omp-low.c (check_omp_nesting_restrictions): For parent context,
15839 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
15841 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
15844 2019-06-10 Martin Liska <mliska@suse.cz>
15846 * ipa-cp.c (ignore_edge_p): New function.
15847 (build_toporder_info): Use it.
15848 * ipa-inline.c (ignore_edge_p): New function.
15849 (inline_small_functions): Use it.
15850 * ipa-pure-const.c (ignore_edge_for_nothrow):
15851 Verify opt_for_fn for caller and callee.
15852 (ignore_edge_for_pure_const): Likewise.
15853 * ipa-reference.c (ignore_edge_p): Extend to check
15855 * ipa-utils.c (searchc): Refactor.
15856 * ipa-utils.h: Fix coding style.
15858 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15860 * config/arc/arc.c (arc_rtx_costs): Update costs.
15862 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15864 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
15865 (arc_split_ior): Likewise.
15866 (arc_check_mov_const): Likewise.
15867 (arc_split_mov_const): Likewise.
15868 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
15869 (arc_rtx_costs): Replace check Crr with Cax constraint.
15870 (prepare_move_operands): Cleanup, remove unused code.
15871 (arc_split_ior): New function.
15872 (arc_check_ior_const): Likewise.
15873 (arc_split_mov_const): Likewise.
15874 (arc_check_mov_const): Likewise.
15875 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
15876 in define_insn_and_split pattern.
15877 (iorsi3): Likewise.
15878 (mulsi3_v2): Add new matching variant.
15879 (andsi3_i): Cleanup pattern.
15880 (rotrsi3_cnt1): Update pattern.
15881 (rotrsi3_cnt8): New pattern.
15882 (ashlsi2_cnt8): Likewise.
15883 (ashlsi2_cnt16): Likewise.
15884 * config/arc/constraints.md (C0p): Update constraint.
15886 (C0x): New pattern.
15887 (Cax): New pattern.
15889 2019-06-10 Martin Liska <mliska@suse.cz>
15891 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
15892 Update coding style.
15893 (sem_item_optimizer::dump_cong_classes):
15894 Print how many items are in a non-singular class. Improve
15897 2019-06-10 Martin Liska <mliska@suse.cz>
15899 * value-prof.c (dump_histogram_value): Change dump format.
15900 (gimple_mod_subtract_transform): Remove legacy comment.
15902 2019-06-10 Martin Liska <mliska@suse.cz>
15904 * value-prof.c (dump_histogram_value): Print histogram values
15907 2019-06-10 Martin Liska <mliska@suse.cz>
15909 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
15910 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
15911 * ipa-profile.c (ipa_profile_generate_summary):
15912 Use get_most_common_single_value.
15913 * tree-profile.c (gimple_init_gcov_profiler):
15914 Instrument with __gcov_one_value_profiler_v2
15915 and __gcov_indirect_call_profiler_v4.
15916 * value-prof.c (dump_histogram_value):
15917 Print all values for HIST_TYPE_SINGLE_VALUE.
15918 (stream_out_histogram_value): Update assert for
15920 (stream_in_histogram_value): Set number of
15921 counters for HIST_TYPE_SINGLE_VALUE.
15922 (get_most_common_single_value): New.
15923 (gimple_divmod_fixed_value_transform):
15924 Use get_most_common_single_value.
15925 (gimple_ic_transform): Likewise.
15926 (gimple_stringops_transform): Likewise.
15927 (gimple_find_values_to_profile): Set number
15928 of counters for HIST_TYPE_SINGLE_VALUE.
15929 * value-prof.h (get_most_common_single_value): New.
15931 2019-06-10 Martin Liska <mliska@suse.cz>
15933 * hash-map.h: Pass default value to hash_table ctor.
15934 * hash-table.h: Add default value to call of a ctor.
15936 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
15938 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
15939 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
15941 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
15944 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
15945 Call pa_output_function_label.
15946 (TARGET_ASM_FUNCTION_PROLOGUE): define.
15947 * config/pa/pa-protos.h (pa_output_function_label): Declare.
15948 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
15950 (pa_linux_output_function_prologue): Declare.
15951 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
15952 (pa_output_function_label): New.
15953 (pa_output_function_prologue): Revise to use pa_output_function_label.
15954 (pa_linux_output_function_prologue): New.
15955 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
15957 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
15959 * tree-vrp.h (value_range_base::intersect): New.
15960 (value_range::intersect_helper): Move from here...
15961 (value_range_base::intersect_helper): ...to here.
15962 * tree-vrp.c (value_range::intersect_helper): Rename to...
15963 (value_range_base::intersect_helper): ...this, and rewrite to
15964 return a value instead of modifying THIS in place.
15965 Also, move equivalence handling...
15966 (value_range::intersect): ...here, while calling intersect_helper.
15967 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
15969 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
15971 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
15973 2019-06-07 Jakub Jelinek <jakub@redhat.com>
15975 * Makefile.in (genprogerr): Add condmd.
15976 (genprog): Remove it here.
15978 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
15980 * doc/invoke.texi (AMD GCN Options): Add gfx906.
15982 2019-06-07 Richard Biener <rguenther@suse.de>
15985 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
15986 that appear after user labels.
15988 2019-06-07 Martin Liska <mliska@suse.cz>
15990 * cselib.c (cselib_init): Disable hash table
15992 * hash-set.h: Pass new default argument to m_table.
15993 * hash-table.c: Add global variable with hash table
15994 sanitization limit.
15995 * hash-table.h (Allocator>::hash_table): Add new argument
15997 (hashtab_chk_error): New.
15998 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
15999 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
16000 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
16002 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
16004 * common.opt (flto-odr-type-merging): Ignore.
16005 * invoke.texi (-flto-odr-type-merging): Remove.
16006 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
16007 (can_be_vtable_hashed_p): Remove.
16008 (hash_odr_vtable): Remove.
16009 (odr_vtable_hasher::hash): Remove.
16010 (types_same_for_odr): Remove.
16011 (types_odr_comparable): Remove.
16012 (odr_vtable_hasher::equal): Remove.
16013 (odr_vtable_hash_type, odr_vtable_hash): Remove.
16014 (add_type_duplicate): Do not synchronize vtable and name hashtables.
16015 (get_odr_type): Do not use vtable hash.
16016 (dump_odr_type): Remove commented out code.
16017 (build_type_inheritance_graph): Do not allocate vtable hash.
16018 (rebuild_type_inheritance_graph): Do not delete vtable hash.
16019 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
16020 (odr_type_p): Likewise.
16021 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
16024 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
16026 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
16027 immediately after same_types_for_tbaa_p returns -1 and continue
16028 looking for possible exact match; if matching types are arrays
16029 watch for partial overlaps.
16030 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
16031 (indirect_refs_may_alias_p): Do type based disambiguation first;
16034 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
16036 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
16038 2019-06-07 Martin Liska <mliska@suse.cz>
16040 * doc/invoke.texi: Remove param.
16041 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
16043 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
16044 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
16045 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
16046 * profile.c (instrument_values): Remove
16047 HIST_TYPE_INDIR_CALL_TOPN.
16048 * tree-profile.c (init_ic_make_global_vars):
16049 Always build __gcov_indirect_call only.
16050 (gimple_init_gcov_profiler): Remove usage
16051 of PARAM_INDIR_CALL_TOPN_PROFILE.
16052 (gimple_gen_ic_profiler): Likewise.
16053 * value-prof.c (dump_histogram_value): Likewise.
16054 (stream_in_histogram_value): Likewise.
16055 (gimple_indirect_call_to_profile): Likewise.
16056 (gimple_find_values_to_profile): Likewise.
16057 * value-prof.h (enum hist_type): Likewise.
16059 2019-06-07 Martin Liska <mliska@suse.cz>
16061 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
16064 2019-06-07 Martin Liska <mliska@suse.cz>
16066 PR tree-optimization/78902
16067 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
16068 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
16069 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
16070 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
16071 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
16072 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
16073 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
16074 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
16075 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16076 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
16077 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16078 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
16079 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
16081 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
16082 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
16083 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
16084 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16085 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16086 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
16087 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16088 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16089 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
16090 warn_unused_result attribute.
16091 (BUILT_IN_STRDUP): Likewise.
16092 (BUILT_IN_STRNDUP): Likewise.
16093 (BUILT_IN_ALLOCA): Likewise.
16094 (BUILT_IN_CALLOC): Likewise.
16095 (BUILT_IN_MALLOC): Likewise.
16096 (BUILT_IN_REALLOC): Likewise.
16098 2019-06-06 Jim Wilson <jimw@sifive.com>
16101 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
16102 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
16103 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
16105 2019-06-06 Martin Sebor <msebor@redhat.com>
16107 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
16108 (handle_builtin_malloc): Remove trailing spaces.
16109 (handle_builtin_memset): Same.
16110 (handle_builtin_memcmp): Same.
16111 (compute_string_length): Same.
16112 (determine_min_objsize): Same.
16113 (handle_builtin_string_cmp): Same.
16114 (handle_char_store): Same. Break up excessively long line.
16116 2019-06-06 Martin Jambor <mjambor@suse.cz>
16118 * tree-sra.c (build_reconstructed_reference): Drop the alignment
16121 2019-06-06 Martin Jambor <mjambor@suse.cz>
16123 * tree-sra.c (struct access): New field grp_same_access_path.
16124 (dump_access): Dump it.
16125 (build_reconstructed_reference): New function.
16126 (build_ref_for_model): Use it if possible.
16127 (path_comparable_for_same_access): New function.
16128 (same_access_path_p): Likewise.
16129 (sort_and_splice_var_accesses): Set the new flag.
16130 (analyze_access_subtree): Likewise.
16131 (propagate_subaccesses_across_link): Propagate zero value of the new
16132 flag down the access tree.
16134 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
16136 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
16137 * config/gcn/gcn.opt (gpu_type): Add gfx906.
16138 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
16139 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
16142 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16144 PR tree-optimization/90332
16145 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
16146 Handle VALS containing two vectors.
16147 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
16149 (@aarch64_combinez<mode>): ... This.
16150 (*aarch64_combinez_be<mode>): Rename to...
16151 (@aarch64_combinez_be<mode>): ... This.
16152 (vec_init<mode><Vhalf>): New define_expand.
16153 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
16155 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16157 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
16158 library functions only when not optimizing for size.
16159 (ashlsi3): Likewise.
16160 (ashrhi3): Likewise.
16161 (ashrsi3): Likewise.
16162 (lshrhi3): Likewise.
16163 (lshrsi3): Likewise.
16165 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
16167 PR rtl-optimization/88751
16168 * ira.c (ira): Use the number of the actually referenced registers
16169 when calculating the threshold.
16171 2019-06-06 Jakub Jelinek <jakub@redhat.com>
16173 * configure: Regenerate.
16175 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16177 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
16178 register if it is in memory, so the shift can be emulated with a rotate
16180 (ashrhi3): Likewise.
16181 (lshrhi3): Likewise.
16183 2019-06-06 Martin Liska <mliska@suse.cz>
16185 PR tree-optimization/87954
16186 * match.pd: Simplify mult where both arguments are 0 or 1.
16188 2019-06-06 Richard Biener <rguenther@suse.de>
16190 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
16191 put equivalences on UNDEFINED ranges.
16192 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
16193 Make sure to drop defs of stmts added during simplification
16196 2019-06-06 Richard Biener <rguenther@suse.de>
16198 * tree-ssa-structalias.c: Include tree-cfg.h.
16199 (make_heapvar): Do not make heap vars artificial.
16200 (find_func_aliases_for_builtin_call): Handle stack allocation
16202 (find_func_aliases): Delay processing of simple enough returns
16204 (set_uids_in_ptset): Adjust.
16205 (find_what_var_points_to): Likewise.
16206 (solve_constraints): Do not dump points-to sets here.
16207 (compute_points_to_sets): Post-process return statements,
16208 amending the escaped solution. Dump points-to sets afterwards.
16209 (ipa_pta_execute): Dump points-to sets.
16211 2019-06-06 Martin Liska <mliska@suse.cz>
16214 * doc/install.texi: Fix HTML headers and
16215 titles for 'Installing GCC' pages.
16217 2019-06-06 Martin Liska <mliska@suse.cz>
16219 * ipa-icf-gimple.h (dump_message_1): Remove.
16220 (dump_message): Likewise.
16221 (return_false_with_message_1): Print also file.
16222 (return_false_with_msg): Likewise.
16223 (return_with_result): Likewise.
16224 (return_with_debug): Likewise.
16225 * ipa-icf.c (sem_function::equals_private): Remove call
16228 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16230 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
16231 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
16232 memory operand for it.
16233 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
16235 2019-06-05 Martin Sebor <msebor@redhat.com>
16237 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
16238 Adjust quoting and hyphenation.
16239 * convert.c (convert_to_real_1): Same.
16240 * gcc.c (driver_wrong_lang_callback): Same.
16241 (driver::handle_unrecognized_options): Same.
16242 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
16243 * opts-common.c (cmdline_handle_error): Same.
16244 (read_cmdline_option): Same.
16245 * opts-global.c (complain_wrong_lang): Same.
16246 (print_ignored_options): Same.
16247 (handle_common_deferred_options): Same.
16248 * pretty-print.h: Same.
16249 * print-rtl.c (debug_bb_n_slim): Same.
16250 * sched-rgn.c (make_pass_sched_fusion): Same.
16251 * tree-cfg.c (verify_gimple_assign_unary): Same.
16252 (verify_gimple_label): Same.
16253 * tree-ssa-operands.c (verify_ssa_operands): Same.
16254 * varasm.c (do_assemble_alias): Same.
16255 (assemble_alias): Same.
16257 2019-06-05 Richard Henderson <rth@twiddle.net>
16259 * config/alpha/alpha.c (direct_return): Move down after
16260 struct machine_function definition; use saved frame_size;
16262 (struct machine_function): Add sa_mask, sa_size, frame_size.
16263 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
16264 (alpha_compute_frame_layout): ... new function.
16265 (TARGET_COMPUTE_FRAME_LAYOUT): New.
16266 (alpha_initial_elimination_offset): Use saved sa_size.
16267 (alpha_vms_initial_elimination_offset): Likewise.
16268 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
16269 (alpha_expand_prologue): Use saved frame data. Merge integer
16270 and fp register save loops.
16271 (alpha_expand_epilogue): Likewise.
16272 (alpha_start_function): Use saved frame data.
16273 * config/alpha/alpha-protos.h (direct_return): Update.
16274 (alpha_sa_size): Remove.
16276 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
16278 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
16279 multiplication by a power-of-two value.
16280 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
16281 and turn the modulo operation into a masking operation.
16283 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16286 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
16287 with VOIDmode inner operands.
16289 2019-06-05 Richard Biener <rguenther@suse.de>
16291 PR middle-end/90726
16292 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
16293 turn an expression graph into a tree.
16295 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16297 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
16299 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
16300 treat it like explicit monotonic schedule modifier.
16301 (expand_omp_for): Initialize has_lastprivate_conditional.
16302 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
16305 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
16306 references, lookup in in hash map MEM_REF operand instead of the
16308 (lower_omp_1): When looking for lastprivate conditional assignments,
16309 handle MEM_REFs with REFERENCE_TYPE operands.
16311 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
16312 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
16313 and references a VLA. Handle references to non-VLAs if is_simd
16314 all privatization clauses like reductions.
16315 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
16316 If omp_is_reference, use always omp simd arrays and set
16317 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
16318 fails, emit reference initialization.
16320 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16323 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
16324 _mm_mask_fpclass_sd_mask): New intrinsics.
16325 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
16326 * config/i386/i386-builtin.def
16327 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
16329 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
16330 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
16331 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
16332 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
16333 case QI_FTYPE_V2SF_INT): Ditto.
16334 * config/i386/sse.md
16335 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
16336 Extended to insnstructions with mask operands.
16338 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16340 * config/rs6000/constraints.md (define_register_constraint "wp"):
16342 (define_register_constraint "wq"): Delete.
16343 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16344 (rs6000_init_hard_regno_mode_ok): Adjust.
16345 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16346 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
16347 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
16348 (define_mode_attr VSa): Delete.
16349 (define_mode_attr VSisa): New.
16350 (rest of file): Adjust.
16351 * doc/md.texi (Machine Constraints): Adjust.
16353 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16355 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
16356 (define_attr "enabled"): Handle those new isa values.
16358 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16360 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
16361 (define_mode_attr VSr5): Delete.
16362 (define_mode_attr VStype_sqrt): Delete.
16363 (define_mode_iterator VSX_SPDP): Delete.
16364 (define_mode_attr VS_spdp_res): Delete.
16365 (define_mode_attr VS_spdp_insn): Delete.
16366 (define_mode_attr VS_spdp_type): Delete.
16367 (*vsx_sqrt<mode>2): Adjust.
16368 (vsx_<VS_spdp_insn>): Delete, split to...
16369 (vsx_xscvdpsp): ... this. New. And...
16370 (vsx_xvcvspdp): ... this. New. And...
16371 (vsx_xvcvdpsp): ... this. New.
16373 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16375 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
16377 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
16378 (rest of file): Adjust.
16380 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16382 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
16383 (vsx_extract_<mode>_var): Ditto.
16385 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16387 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
16390 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16392 * config/rs6000/constraints.md (define_register_constraint "ww"):
16394 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16395 (rs6000_init_hard_regno_mode_ok): Adjust.
16396 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16397 RS6000_CONSTRAINT_ww.
16398 * config/rs6000/rs6000.md: Adjust.
16399 * config/rs6000/vsx.md: Adjust.
16400 * doc/md.texi (Machine Constraints): Adjust.
16402 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16404 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
16405 (define_mode_attr sd): New.
16406 (define_mode_attr s): New.
16407 (define_mode_attr Ftrad): Delete.
16408 (define_mode_attr Fvsx): Delete.
16409 (define_mode_attr Fs): Delete.
16410 (rest of file): Use the new mode attributes.
16411 * config.rs6000/vsx.md: Use the new mode attributes.
16413 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16415 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
16418 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16420 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
16421 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
16422 used with VSX_B, VSX_D, or VSX_F, with just "wa".
16424 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
16427 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
16428 C++ with strict ANSI requirements.
16430 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
16432 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
16433 computations when step is 1.
16435 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16437 * config/rs6000/constraints.md (define_register_constraint "wf"):
16439 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16440 (rs6000_init_hard_regno_mode_ok): Adjust.
16441 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16442 RS6000_CONSTRAINT_wf.
16443 * config/rs6000/rs6000.md: Adjust.
16444 * config/rs6000/vsx.md: Adjust.
16445 * doc/md.texi (Machine Constraints): Adjust.
16447 2019-06-04 Andrew Pinski <apinski@marvell.com>
16449 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
16452 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16454 * config/rs6000/constraints.md (define_register_constraint "wd"):
16456 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16457 (rs6000_init_hard_regno_mode_ok): Adjust.
16458 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16459 RS6000_CONSTRAINT_wd.
16460 * config/rs6000/rs6000.md: Adjust.
16461 * config/rs6000/vsx.md: Adjust.
16462 * doc/md.texi (Machine Constraints): Adjust.
16464 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16466 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
16467 (rest of file): Adjust.
16469 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16471 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
16472 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
16473 (vsx_splat_<mode>_reg): Adjust.
16475 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16477 * config/rs6000/constraints.md (define_register_constraint "ws"):
16479 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16480 (rs6000_init_hard_regno_mode_ok): Adjust.
16481 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16482 RS6000_CONSTRAINT_ws.
16483 * config/rs6000/rs6000.md: Adjust.
16484 * config/rs6000/vsx.md: Adjust.
16485 * doc/md.texi (Machine Constraints): Adjust.
16487 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16489 * config/rs6000/constraints.md (define_register_constraint "wv"):
16491 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16492 (rs6000_init_hard_regno_mode_ok): Adjust.
16493 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16494 RS6000_CONSTRAINT_wv.
16495 * config/rs6000/rs6000.md: Adjust.
16496 * config/rs6000/vsx.md: Adjust.
16497 * doc/md.texi (Machine Constraints): Adjust.
16499 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16501 * config/rs6000/constraints.md (define_register_constraint "wi"):
16503 (define_register_constraint "wt"): Delete.
16504 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16505 (rs6000_init_hard_regno_mode_ok): Adjust.
16506 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16507 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
16508 * config/rs6000/rs6000.md: Adjust.
16509 * config/rs6000/vsx.md: Adjust.
16510 * doc/md.texi (Machine Constraints): Adjust.
16512 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16514 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
16516 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
16517 default_elf_asm_output_external.
16519 2019-06-04 Martin Liska <mliska@suse.cz>
16521 * ipa-icf.c (INCLUDE_LIST): Remove.
16522 (sem_item_optimizer::execute): Remove call to init_wpa.
16523 * ipa-icf.h (init_wpa): Remove.
16525 2019-06-04 Jakub Jelinek <jakub@redhat.com>
16527 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
16528 conditional on combined for simd.
16529 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
16531 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
16532 constructs, don't remove lastprivate_conditional_map, but instead set
16533 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
16534 to parent construct temporaries.
16535 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
16536 like !ctx->lastprivate_conditional_map.
16537 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
16538 use up->outer context instead of up.
16539 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
16540 gimple_omp_for_combined_p.
16541 (expand_omp_for_static_nochunk): Likewise.
16542 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
16543 probably moved over into expand_omp_for_generic rather than being copied
16546 2019-06-04 Martin Liska <mliska@suse.cz>
16548 * value-prof.c (dump_histogram_value): Fix typo.
16549 (gimple_mod_subtract_transform): Likewise.
16551 2019-06-04 Richard Biener <rguenther@suse.de>
16553 PR middle-end/90726
16554 * tree-chrec.c (chrec_contains_symbols): Add to visited.
16555 (tree_contains_chrecs): Likewise.
16556 (chrec_contains_symbols_defined_in_loop): Move here and avoid
16557 exponential behaivor from ...
16558 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
16560 (expression_expensive_p): Avoid exponential behavior and compute
16561 expanded size, rejecting any expansion.
16562 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
16563 (idx_contains_abnormal_ssa_name_p): Likewise.
16564 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
16565 (contains_abnormal_ssa_name_p): Simplify and use
16566 walk_tree_without_duplicates.
16568 2019-06-04 Richard Biener <rguenther@suse.de>
16570 PR tree-optimization/90738
16572 2019-06-03 Richard Biener <rguenther@suse.de>
16574 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16575 full reference tree and record in ref->ref.
16576 (vn_reference_lookup_3): Pass in original ref to
16577 ao_ref_init_from_vn_reference.
16578 (vn_reference_lookup): Likewise.
16579 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16580 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16581 Handle non-decl bases in the original reference.
16583 2019-06-04 Martin Liska <mliska@suse.cz>
16585 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
16586 number of references.
16587 (sem_item_optimizer::do_congruence_step):
16588 (sem_item_optimizer::worklist_push): Dump how references
16590 (sem_item_optimizer::worklist_pop): Use heap.
16591 (sem_item_optimizer::process_cong_reduction): Likewise.
16592 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
16594 2019-06-04 Martin Liska <mliska@suse.cz>
16596 * ipa-icf.h (struct sem_usage_pair_hash): New.
16597 (sem_usage_pair_hash::hash): Likewise.
16598 (sem_usage_pair_hash::equal): Likewise.
16599 (struct sem_usage_hash): Likewise.
16600 * ipa-icf.c (sem_item::sem_item): Initialize
16601 referenced_by_count.
16602 (sem_item::add_reference): Register a reference
16603 in ref_map and not in target->usages.
16604 (sem_item::setup): Remove initialization of
16606 (sem_item::~sem_item): Remove usage of dead vectors.
16607 (sem_item::dump): Remove dump of references.
16608 (sem_item_optimizer::sem_item_optimizer): Initialize
16610 (sem_item_optimizer::read_section): Remove useless
16612 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
16613 (sem_item_optimizer::build_graph): Pass m_references
16614 to ::add_reference.
16615 (sem_item_optimizer::verify_classes): Remove usage of dead
16617 (sem_item_optimizer::traverse_congruence_split): Return true
16618 when a class is split.
16619 (sem_item_optimizer::do_congruence_step_for_index): Use
16620 hash_map for look up of (sem_item *, index). That brings
16621 significant speed up.
16622 (sem_item_optimizer::do_congruence_step): Return true
16623 when a split is done.
16624 (congruence_class::is_class_used): Use referenced_by_count.
16626 2019-06-04 Alan Modra <amodra@gmail.com>
16629 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
16632 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16634 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
16635 * config/rs6000/rs6000.c (direct_move_p): Adjust.
16636 (rs6000_secondary_reload_simple_move): Adjust.
16637 (rs6000_opt_masks): Neuter the "mfpgpr" option.
16638 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
16639 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
16642 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
16643 (floatunssi<mode>2_lfiwzx): Adjust.
16644 (fix_trunc<mode>si2_stfiwx): Adjust.
16645 (fixuns_trunc<mode>si2_stfiwx): Adjust.
16646 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
16647 (mfpgpr): Mark as deprecated.
16648 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
16649 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
16650 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
16652 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16654 * config/rs6000/constraints.md (define_register_constraint "wg"):
16656 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16657 RS6000_CONSTRAINT_wg.
16658 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16659 (rs6000_init_hard_regno_mode_ok): Adjust.
16660 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
16661 Delete "wg" alternatives.
16662 * doc/md.texi (Machine Constraints): Adjust.
16664 2019-06-03 Alan Modra <amodra@gmail.com>
16666 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
16667 (get_uncond_jump_length): Assert length less than INT_MAX and
16670 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16672 PR middle-end/64242
16673 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
16675 (expand_builtin_nonlocal_goto): Likewise.
16677 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16679 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
16680 (aarch64_asm_output_external): Declare.
16681 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
16682 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
16683 (aarch64_asm_output_alias): New.
16684 (aarch64_asm_output_external): New.
16685 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
16686 (ASM_OUTPUT_EXTERNAL): Define.
16688 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
16689 * tree-vrp.h (value_range_base::nonzero_p): New.
16690 (value_range_base::set_nonnull): Rename to...
16691 (value_range_base::set_nonzero): ...this.
16692 (value_range_base::set_null): Rename to...
16693 (value_range_base::set_zero): ...this.
16694 (value_range::set_nonnull): Remove.
16695 (value_range::set_null): Remove.
16696 * tree-vrp.c (range_is_null): Remove.
16697 (range_is_nonnull): Remove.
16698 (extract_range_from_binary_expr): Use value_range_base::*zero_p
16699 instead of range_is_*null.
16700 (extract_range_from_unary_expr): Same.
16701 (value_range_base::set_nonnull): Rename to...
16702 (value_range_base::set_nonzero): ...this.
16703 (value_range::set_nonnull): Remove.
16704 (value_range_base::set_null): Rename to...
16705 (value_range_base::set_zero): ...this.
16706 (value_range::set_null): Remove.
16707 (extract_range_from_binary_expr): Rename set_*null uses to
16709 (extract_range_from_unary_expr): Same.
16710 (union_helper): Same.
16711 * vr-values.c (get_value_range): Use set_*zero instead of
16713 (vr_values::extract_range_from_binary_expr): Same.
16714 (vr_values::extract_range_basic): Same.
16716 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16719 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
16721 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16723 * config/aarch64/iterators.md (MAX_OPP): New code attr.
16724 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
16726 (aarch64_<su>abd<mode>_3): ... This.
16727 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
16729 2019-06-03 Richard Biener <rguenther@suse.de>
16731 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16732 full reference tree and record in ref->ref.
16733 (vn_reference_lookup_3): Pass in original ref to
16734 ao_ref_init_from_vn_reference.
16735 (vn_reference_lookup): Likewise.
16736 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16737 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16738 Handle non-decl bases in the original reference.
16740 2019-06-03 Martin Liska <mliska@suse.cz>
16742 * doc/generic.texi: Remove Java Trees.
16744 2019-06-03 Martin Liska <mliska@suse.cz>
16746 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
16747 returns 0 when operands are equal.
16749 2019-06-03 Richard Biener <rguenther@suse.de>
16751 PR tree-optimization/90716
16752 * tree-loop-distribution.c (destroy_loop): Process blocks in
16755 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16758 * vector-builder.h (vector_builder::count_dups): New method.
16759 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
16761 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
16762 (vec_init<mode><Vel>): New pattern.
16763 * config/aarch64/aarch64.c (emit_insr): New function.
16764 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
16765 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
16766 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
16767 (aarch64_sve_expand_vector_init): Define two overloaded functions.
16769 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16771 PR tree-optimization/90681
16772 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
16773 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
16774 special case for SLP, but fail on non-groupped loads.
16776 2019-06-03 Martin Liska <mliska@suse.cz>
16778 * cfg.c (debug): Use TDF_DETAILS for debug and
16779 print edge info only once.
16781 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
16784 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
16786 2019-06-01 Martin Sebor <msebor@redhat.com>
16788 PR middle-end/90694
16789 * tree-pretty-print.c (dump_generic_node): Add parentheses.
16791 2019-05-31 Jan Hubicka <jh@suse.cz>
16793 * alias.c: Include ipa-utils.h.
16794 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
16795 * ipa-devirt.c (prevailing_odr_type): New.
16796 * ipa-utils.h (previaling_odr_type): Declare.
16798 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
16799 Hongtao Liu <hongtao.liu@intel.com>
16802 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
16803 NOTE_INSN_DELETED_LABEL check.
16805 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
16806 Robert Suchanek <robert.suchanek@mips.com>
16808 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
16809 and 3rd operands of the fmadd/fmsub/maddv builtin.
16811 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16813 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
16814 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
16815 on OMP_SIMD if not nested inside of worksharing loop that also has
16816 lastprivate conditional clause for the same decl.
16817 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
16818 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
16820 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
16822 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
16824 (lower_lastprivate_clauses): Likewise.
16825 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
16826 calling lower_rec_input_clauses.
16827 (lower_omp_for): Likewise.
16828 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
16829 clause on simd construct.
16830 * omp-expand.c (expand_omp_simd): Initialize cond_var if
16831 OMP_CLAUSE__CONDTEMP_ clause is present.
16833 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
16836 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
16839 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
16840 TEX_D32, TEX_D64 or TEX_D128.
16842 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16844 * match.pd (~(vec?cst1:cst2)): New transformation.
16846 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16848 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
16849 ((size_t)(A /[ex] B) CMP C): New transformation.
16851 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
16853 * doc/md.texi: Document define_insn_and_rewrite.
16854 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
16855 * gensupport.c (queue_elem): Update comment.
16856 (replace_operands_with_dups): New function.
16857 (gen_rewrite_sequence): Likewise.
16858 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
16859 * read-rtl.c (apply_subst_iterator): Likewise.
16860 (add_condition_to_rtx, named_rtx_p): Likewise.
16861 (rtx_reader::read_rtx_operand): Likewise.
16862 * config/aarch64/aarch64-sve.md
16863 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
16864 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
16865 define_insn_and_rewrite.
16866 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
16867 Remove separate define_split.
16869 2019-05-31 Jan Hubicka <jh@suse.cz>
16871 * tree-ssa-alias.c (type_has_components_p): New function.
16872 (aliasing_component_refs_p): Use it.
16874 2019-05-31 Martin Liska <mliska@suse.cz>
16876 * gdbhooks.py: Add const_tree to TreePrinter.
16878 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
16881 * common.opt (feliminate-unused-debug-symbols): Enable by default.
16882 * doc/invoke.texi (Debugging Options): Document new default of
16883 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
16885 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16887 PR tree-optimization/90671
16888 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
16889 template_block used to be empty on the first call, don't use
16890 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
16891 seq with bb_seq and set it with set_bb_seq.
16893 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
16895 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
16897 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16898 Michael Meissner <meissner@linux.ibm.com>
16900 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
16901 (prefixed_mem_operand): Likewise.
16902 (non_prefixed_mem_operand): Likewise.
16903 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
16905 * config/rs6000/rs6000.c (print_operand_address): Handle
16906 PC-relative addresses.
16907 (mode_supports_prefixed_address_p): New function.
16908 (rs6000_prefixed_address): New function.
16909 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
16910 (SYMBOL_REF_PCREL_P): Likewise.
16912 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16914 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
16915 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
16916 (gimplify_omp_for): If worksharing loop with lastprivate conditional
16917 is nested inside of parallel region, add _condtemp_ clause to both.
16918 * tree-nested.c (convert_nonlocal_omp_clauses,
16919 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
16921 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
16923 * omp-general.c (omp_extract_for_data): Compute it.
16924 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
16925 (lower_rec_input_clauses): Likewise.
16926 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
16927 clause is already present, just add one further one after it.
16928 (lower_lastprivate_clauses): Handle cond_ptr with array type.
16929 (lower_send_shared_vars): Clear _condtemp_ vars.
16930 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
16931 or section or taskgroup.
16932 * omp-expand.c (determine_parallel_type): Disallow combining only if
16933 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
16934 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
16935 (expand_omp_for_generic, expand_omp_for_static_nochunk,
16936 expand_omp_for_static_chunk, expand_omp_for): Use
16937 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
16938 determine if a special set of API routines are needed and if condtemp
16939 needs to be initialized, while always initialize cond_var if
16940 fd->lastprivate_conditional is non-zero.
16942 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16943 Michael Meissner <meissner@linux.ibm.com>
16945 * config/rs6000/constraints.md (eI): New constraint.
16946 * config/rs6000/predicates.md (cint34_operand): New predicate.
16947 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
16948 (SIGNED_34BIT_OFFSET_P): Likewise.
16949 * doc/md.texi (eI): Document constraint.
16951 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
16953 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
16955 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16956 Michael Meissner <meissner@linux.ibm.com>
16958 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
16959 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
16960 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
16961 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
16962 (OTHER_FUTURE_MASKS): Likewise.
16963 (POWERPC_MASKS): Likewise.
16964 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
16965 specified without -mprefixed-addr or -mcpu=future. Error if
16966 -mprefixed-addr is specified without -mcpu=future.
16967 (rs6000_opt_masks): Add entry for prefixed-addr.
16968 * rs6000.opt (mprefixed-addr): New option.
16970 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
16972 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
16973 cfun->is_thunk check.
16975 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16977 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
16980 2019-05-30 Martin Liska <mliska@suse.cz>
16982 * gdbinit.in: Fix 'ptc' command. Add trt
16983 that prints TREE_TYPE($).
16985 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
16986 Alan Modra <amodra@gmail.com>
16988 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
16990 (rs6000_indirect_call_template_1): ...and here.
16991 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
16992 plt16_ha, plt16_lo, mtctr indirect calls. Use
16993 rs6000_pltseq_enum.
16994 (rs6000_decl_ok_for_sibcall): New function.
16995 (rs6000_function_ok_for_sibcall): Refactor.
16996 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
16997 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
16998 when pcrel. Reorganize.
16999 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
17000 * rs6000.h (rs6000_pltseq_enum): New enum.
17001 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
17002 (*pltseq_tocsave): Use rs6000_pltseq_enum.
17003 (*pltseq_plt16_ha): Likewise.
17004 (*pltseq_plt16_lo): Likewise.
17005 (*pltseq_mtctr): Likewise.
17006 (*pltseq_plt_pcrel): New insn.
17007 (*call_local_aix): Handle @notoc calls.
17008 (*call_value_local_aix): Likewise.
17009 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
17010 (*call_value_nonlocal_aix): Likewise.
17011 (*call_indirect_pcrel): New insn.
17012 (*call_value_indirect_pcrel): Likewise.
17014 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
17016 * config/i386/sse.md (*save_multiple<mode>): Rename from
17017 save_multiple<mode>.
17018 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
17019 (*restore_multiple_and_return<mode>): Rename from
17020 restore_multiple_and_return<mode>.
17021 (*restore_multiple_leave_return<mode>): Rename from
17022 restore_multiple_leave_return<mode>.
17024 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
17026 * config.gcc (rx-*-linux*): New target.
17027 * config/rx/elf.opt: New file.
17028 * config/rx/linux.h: Likewise.
17029 * config/rx/t-linux: Likewise.
17030 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
17032 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
17033 (ASM_APP_OFF): Likewise.
17034 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
17037 2019-05-29 Jan Hubicka <jh@suse.cz>
17039 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
17040 variants are pointer equivalent.
17042 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17044 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
17045 * config/aarch64/aarch64-sve2.md: New file.
17046 (<u>avg<mode>3_floor): New pattern.
17047 (<u>avg<mode>3_ceil): Likewise.
17048 (*<sur>h<addsub><mode>): Likewise.
17049 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
17050 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
17052 2019-05-29 Jakub Jelinek <jakub@redhat.com>
17055 * optc-save-gen.awk: In cl_optimization_print, use correct condition
17056 for var_opt_string printing. In cl_optimization_print_diff, print
17057 (null) instead of invoking undefined behavior if one of the
17058 var_opt_string pointers is NULL and use && instead of first || in the
17059 guarding condition. For var_target_other options, handle const char *
17060 target variables similarly to const char * optimize node variables.
17062 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
17064 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
17065 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
17066 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
17067 Add autib1716 and pacib1716 initialisation.
17068 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
17069 for autib1716 and pacib1716.
17070 * config/aarch64/aarch64-protos.h (aarch64_key_type,
17071 aarch64_post_cfi_startproc): Define.
17072 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
17073 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
17074 aarch64_handle_pac_ret_protection): Set default sign key to A.
17075 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
17076 aarch64_expand_prologue): Add check for b-key.
17077 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
17078 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
17079 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
17080 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
17081 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
17082 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
17083 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17084 * config/aarch64/aarch64.md (do_return): Add check for b-key.
17085 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
17086 pauth_hint_num_a with pauth_hint_num.
17087 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
17088 pauth_hint_num_a with pauth_hint_num.
17089 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
17090 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
17091 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17092 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
17093 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
17094 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
17095 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
17096 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17097 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
17098 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
17099 UNSPEC_AUTIA1716 respectively.
17100 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
17101 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
17102 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
17103 * doc/invoke.texi (-mbranch-protection): Add b-key type.
17104 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
17105 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
17107 2019-05-29 Jakub Jelinek <jakub@redhat.com>
17109 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
17110 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
17111 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
17112 explicit clause on combined parallel into implicit shared clause.
17113 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
17114 and firstprivate if the decl has one too from combined parallel to
17115 the worksharing construct.
17117 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
17118 Michael Meissner <meissner@linux.ibm.com>
17120 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
17122 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
17124 * rtl.h (LABEL_REF_P): New #define.
17126 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
17128 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
17130 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17132 * internal-fn.c: Marked mask_load_direct as vectorizable.
17133 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
17134 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
17135 combined even if masks different with allow_slp_p param.
17136 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
17137 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
17138 dissolve SLP-only vectorizable groups when SLP has been discarded.
17139 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
17140 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
17142 (vect_build_slp_tree_1): Fixed comment typo.
17143 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
17144 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
17145 loads for SLP only.
17146 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
17148 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
17150 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17152 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
17153 Remove obsolete use_thunk reference.
17154 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
17155 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17156 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
17157 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
17158 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
17159 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
17160 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17161 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
17162 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
17164 2019-05-28 Nathan Sidwell <nathan@acm.org>
17166 * tree.h (IDENTIFIER_ANON_P): New.
17167 (anon_aggrname_format, anon_aggname_p): Don't declare.
17168 (make_anon_name): Declare.
17169 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
17170 (hash_tree): Likewise.
17171 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
17172 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
17173 (anon_cnt, make_anon_name): New.
17175 2019-05-28 Martin Liska <mliska@suse.cz>
17178 * opts-global.c (decode_options): Print help for all
17179 help_option_arguments.
17180 * opts.c (print_help): Add new argument.
17181 (common_handle_option): Remember all values into
17182 help_option_arguments.
17183 * opts.h (print_help): Add new argument.
17185 2019-05-28 Martin Liska <mliska@suse.cz>
17188 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
17189 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
17190 (func_checker::compare_bb): Call compare_loops.
17192 2019-05-27 Jakub Jelinek <jakub@redhat.com>
17194 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
17195 on sections construct.
17196 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
17198 (lower_omp_sections): Handle lastprivate conditional.
17199 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
17200 lastprivate_conditional_map.
17201 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
17203 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
17204 critical, taskgroup and section regions when looking for a region
17205 with non-NULL lastprivate_conditional_map.
17207 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17209 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
17210 (*ix86_gen_sub3): Ditto.
17211 (*ix86_gen_sub3_carry): Ditto.
17212 (*ix86_gen_one_cmpl2): Ditto.
17213 (*ix86_gen_andsp): Ditto.
17214 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
17215 (gen_and2_insn): New static function.
17216 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
17217 Use gen_add3_insn instead of ix86_gen_add3.
17218 (ix86_expand_split_stack_prologue): Use gen_add2_insn
17219 instead of ix86_gen_add3.
17220 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
17221 Use gen_sub3_insn instead of ix86_gen_sub3.
17222 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
17223 instead of ix86_gen_add3.
17224 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
17225 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
17226 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
17227 * config/i386/i386-options.c (ix86_option_override_internal):
17228 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
17229 ix86_gen_one_cmpl2 and ix86_gen_andsp.
17231 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
17233 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
17234 and DW_OP_GNU_const_index opcodes.
17236 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17238 * config/i386/i386.h (STACK_SIZE_MODE): Define.
17240 2019-05-27 Richard Biener <rguenther@suse.de>
17242 PR tree-optimization/90637
17243 * tree-ssa-sink.c (statement_sink_location): Honor the
17244 computed sink location for single-uses.
17246 2019-05-27 Richard Biener <rguenther@suse.de>
17248 PR middle-end/90610
17249 * match.pd (vec_perm): Avoid clobbering op0 when not generating
17252 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17254 * config/i386/i386.md (@sub<mode>3_carry): Rename
17255 from sub<mode>3_carry.
17256 (@leave_<mode>): New expander.
17257 (*leave): Rename from leave.
17258 (*leave_rex64): Rename from leave_rex64.
17259 (@monitorx_<mode>): Rename from monitorx_<mode>.
17260 (@clzero_<mode>): Rename from clzero_<mode>.
17261 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
17262 from sse3_monitor_<mode>.
17263 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
17264 (*ix86_gen_leave): Ditto.
17265 (*ix86_gen_monitor): Ditto.
17266 (*ix86_gen_monitorx): Ditto.
17267 (*ix86_gen_clzero): Ditto.
17268 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
17269 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
17270 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
17271 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
17272 Use gen_sse3_monitor instead of ix86_gen_monitor.
17273 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
17274 instead of ix86_gen_monitorx.
17275 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
17276 instead of ix86_gen_clzero.
17277 * config/i386/i386-options.c (ix86_option_override_internal):
17278 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
17279 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
17281 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17283 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
17284 Rename from tls_global_dynamic_64_<mode>.
17285 (@tls_local_dynamic_base_64_<mode>): Rename from
17286 tls_local_dynamic_base_64_<mode>.
17287 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
17288 Remove indirect function.
17289 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
17290 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
17291 instead of ix86_gen_tls_global_dynamic_64.
17292 Use gen_tls_local_dynamic_base_64 instead of
17293 ix86_gen_tls_local_dynamic_base_64.
17294 * config/i386/i386-options.c (ix86_option_override_internal):
17295 Do not initialize ix86_gen_tls_global_dynamic_64 and
17296 ix86_gen_tls_local_dynamic_base_64.
17298 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17300 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
17301 Rename from pro_epilogue_adjust_stack_<mode>_add.
17302 (@pro_epilogue_adjust_stack_sub_<mode>)
17303 Rename from pro_epilogue_adjust_stack_<mode>_sub.
17304 (@allocate_stack_worker_probe_<mode>):
17305 Rename from allocate_stack_worker_probe_<mode>.
17306 (allocate_stack): Use gen_allocate_stack_worker_probe.
17307 (probe_stack): Use gen_probe_stack_1.
17308 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
17309 (@adjust_stack_and_probe_<mode>): Rename from
17310 adjust_stack_and_probe<mode>.
17311 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
17312 (stack_protect_set): Use gen_stack_protect_set_1.
17313 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
17314 (stack_protect_test): Use gen_stack_protect_test_1.
17315 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
17316 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
17317 Remove indirect function.
17318 (*ix86_gen_adjust_stack_and_probe): Ditto.
17319 (*ix86_gen_probe_stack_range): Ditto.
17320 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
17321 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
17322 (ix86_adjust_stack_and_probe_stack_clash): Use
17323 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
17324 (ix86_adjust_stack_and_probe): Ditto.
17325 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
17326 of ix86_gen_probe_stack_range.
17327 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
17328 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
17329 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
17330 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
17331 CODE_FOR_stack_protect_test_{si,di}.
17332 * config/i386/i386-options.c (ix86_option_override_internal):
17333 Do not initialize ix86_gen_allocate_stack_worker,
17334 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
17336 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
17338 * doc/invoke.texi (Link Options): Many editorial changes around
17341 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17343 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
17344 pre-Solaris 11 referene and most Studio compiler details.
17346 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
17349 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
17350 DImode to SImode in floating-point registers on 64-bit target.
17351 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
17352 register_operand in xmpyu patterns.
17354 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17356 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
17357 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
17358 OMP_CLAUSE__REDUCTEMP_.
17359 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17360 OMP_CLAUSE__CONDTEMP_.
17361 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
17362 * tree-pretty-print.c (dump_omp_clause): Likewise.
17363 * tree-nested.c (convert_nonlocal_omp_clauses,
17364 convert_local_omp_clauses): Likewise.
17365 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
17366 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
17367 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
17369 (gimplify_omp_for): Warn and disable conditional modifier from
17370 lastprivate on loop iterators.
17371 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
17373 * omp-general.c (omp_extract_for_data): Initialize it.
17374 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
17376 (delete_omp_context): Delete it.
17377 (lower_lastprivate_conditional_clauses): New function.
17378 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
17379 handle lastprivate conditional clauses.
17380 (lower_reduction_clauses): Add CLIST argument, emit it into
17381 the critical section if any.
17382 (lower_omp_sections): Adjust lower_lastprivate_clauses and
17383 lower_reduction_clauses callers.
17384 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
17385 to lower_lastprivate_clauses.
17386 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
17387 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
17388 clist into a critical section if not emitted there already by
17389 lower_reduction_clauses.
17390 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
17392 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
17393 conditional variables.
17394 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
17396 (expand_omp_for_generic, expand_omp_for_static_nochunk,
17397 expand_omp_for_static_chunk): Handle lastprivate conditional.
17398 (expand_omp_for): Handle fd.lastprivate_conditional like
17401 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17403 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
17404 kernel does not exit cleanly.
17405 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
17407 2019-05-24 Jason Merrill <jason@redhat.com>
17410 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17412 2019-05-24 Richard Biener <rguenther@suse.de>
17415 * tree-loop-distribution.c (struct partition): Add location
17417 (partition_alloc): Initialize all fields.
17418 (generate_memset_builtin): Use the location recorded in the
17419 partition for the generated call.
17420 (generate_memcpy_builtin): Likewise.
17421 (classify_partition): Record the location of a single store
17422 as location for the partition.
17424 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17426 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
17429 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
17432 * common/config/aarch64/aarch64-common.c
17433 (aarch64_rewrite_selected_cpu): Change local temporary variable
17434 type from unsigned long to uint64_t.
17435 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
17436 aarch64_get_extension_string_for_isa_flags): Change declaration to
17437 match new definition by replacing unsigned long with uint64_t.
17439 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17442 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
17443 gen_attr_type just once instead of 4-7 times. Formatting fixes.
17444 Handle stack_protect_test_<mode> codegen similarly to corresponding
17447 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
17449 * config/i386/darwin.h: Reject -mfentry*.
17450 * doc/sourcebuild.texi: Document mfentry target support.
17452 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17454 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
17455 Rename to rs6000_global_entry_point_prologue_needed_p. Return
17456 false for PC-relative functions.
17457 (rs6000_output_function_prologue): Change called function name to
17458 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
17459 name,1" for PC-relative functions.
17460 (rs6000_elf_declare_function_name): Change called function name to
17461 rs6000_global_entry_point_prologue_needed_p.
17463 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
17466 * config/i386/i386.c (gen_rtx_cost):
17467 Use ix86_tune_cost instead of ix86_cost.
17469 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17470 Michael Meissner <meissner@linux.ibm.com>
17471 Segher Boessenkool <segher@kernel.crashing.org>
17473 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
17475 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
17476 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
17477 (rs6000_fndecl_pcrel_p): Likewise.
17478 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
17479 error if -mpcrel is requested without -mcpu=future.
17480 (rs6000_opt_masks): Add entry for pcrel.
17481 (rs6000_fndecl_pcrel_p): New function.
17482 (rs6000_pcrel_p): Likewise.
17483 * config/rs6000/rs6000.opt (mpcrel): New option.
17484 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
17486 2019-05-23 Jan Hubicka <jh@suse.cz>
17487 Martin Liska <mliska@suse.cz>
17489 PR tree-optimization/90576
17490 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
17492 (aliasing_component_refs_p): Fix three way size compare conditional;
17493 give up earlier in case we can not decide on equivalence.
17495 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17496 Michael Meissner <meissner@linux.ibm.com>
17497 Segher Boessenkool <segher@kernel.crashing.org>
17499 * config.gcc: Add future cpu.
17500 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
17501 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
17503 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
17504 (RS6000_CPU): New instantiation for future cpu.
17505 * config/rs6000/rs6000-opts.h (enum processor_type): Add
17507 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
17508 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
17509 * config/rs6000/rs6000-tables.opt: Regenerate.
17510 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
17511 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
17512 (rs6000_machine_from_flags): Handle future cpu.
17513 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
17514 PROCESSOR_POWER9 for now.
17515 (rs6000_adjust_cost): Likewise.
17516 (rs6000_issue_rate): Likewise.
17517 (rs6000_register_move_cost): Likewise.
17518 (rs6000_opt_masks): Add entry for future.
17519 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
17520 (MASK_FUTURE): New #define.
17521 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
17522 * config/rs6000/rs6000.opt (mfuture): New target option.
17523 * doc/invoke.texi (mcpu): Add future cpu.
17525 2019-05-23 Martin Liska <mliska@suse.cz>
17528 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
17529 operation points to a temporary (pointed via tree_to_wide_ref)
17530 that is out of scope after the &.
17532 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
17535 * doc/extend.texi (Function Names): Add missing word.
17537 2019-05-23 Richard Biener <rguenther@suse.de>
17539 PR tree-optimization/88440
17540 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
17542 * tree-loop-distribution.c (generate_memset_builtin): Fold the
17544 (generate_memcpy_builtin): Likewise.
17545 (distribute_loop): Pass in whether to only distribute patterns.
17546 (prepare_perfect_loop_nest): Also allow size optimization.
17547 (pass_loop_distribution::execute): When optimizing a loop
17548 nest for size allow pattern replacement.
17550 2019-05-23 Jakub Jelinek <jakub@redhat.com>
17553 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
17556 2019-05-23 Martin Liska <mliska@suse.cz>
17559 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
17560 expression similarly to gimplify_decl_expr.
17562 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17564 * cse.c (cse_dump_path): s/dump_file/f.
17566 2019-05-22 David Malcolm <dmalcolm@redhat.com>
17569 * diagnostic-format-json.cc: Include "selftest.h".
17570 (json_from_expanded_location): Only add "file" key for non-NULL
17572 (json_from_location_range): Don't add "start" and "finish"
17573 children if they are UNKNOWN_LOCATION.
17574 (selftest::test_unknown_location): New selftest.
17575 (selftest::test_bad_endpoints): New selftest.
17576 (selftest::diagnostic_format_json_cc_tests): New function.
17577 * json.cc (json::object::get): New function.
17578 (selftest::test_object_get): New selftest.
17579 (selftest::json_cc_tests): Call it.
17580 * json.h (json::object::get): New decl.
17581 * selftest-run-tests.c (selftest::run_tests): Call
17582 selftest::diagnostic_format_json_cc_tests.
17583 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
17586 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
17587 Andrew Stubbs <amd@codesourcery.com>
17589 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
17590 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
17591 (kernel): Rename to...
17592 (main_kernel): ... this.
17593 (load_image): Load _init_array and _fini_array kernels.
17594 (run): Add argument for kernel to run.
17595 (main): Run init_array_kernel before main_kernel, and
17596 fini_array_kernel after.
17597 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
17598 amdgpu_hsa_kernel attribute on functions.
17599 (gcn_disable_constructors): Delete.
17600 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
17601 * config/gcn/crt0.c (size_t): Define.
17602 (_init_array, _fini_array): New.
17603 (__preinit_array_start, __preinit_array_end,
17604 __init_array_start, __init_array_end,
17605 __fini_array_start, __fini_array_end): Declare weak references.
17607 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
17609 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
17611 2019-05-22 Jason Merrill <jason@redhat.com>
17613 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17615 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
17618 * config/i386/i386-options.c (ix86_init_machine_status): Set
17619 stack_frame_required to true.
17620 * config/i386/i386.c (ix86_get_frame_size): New function.
17621 (ix86_frame_pointer_required): Replace get_frame_size with
17622 ix86_get_frame_size.
17623 (ix86_compute_frame_layout): Likewise.
17624 (ix86_find_max_used_stack_alignment): Changed to void. Set
17625 stack_frame_required.
17626 (ix86_finalize_stack_frame_flags): Always call
17627 ix86_find_max_used_stack_alignment. Replace get_frame_size with
17628 ix86_get_frame_size.
17629 * config/i386/i386.h (machine_function): Add stack_frame_required.
17631 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
17633 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
17635 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
17637 * common/config/aarch64/aarch64-common.c
17638 (struct aarch64_option_extension, struct processor_name_to_arch,
17639 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
17640 aarch64_contains_opt,
17641 aarch64_get_extension_string_for_isa_flags): Change type of
17642 variables storing flags to uint64_t.
17643 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
17644 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
17645 * config/aarch64/aarch64.c (struct processor,
17646 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
17647 aarch64_validate_march, aarch64_override_options,
17648 aarch64_option_print, aarch64_handle_attr_isa_flags,
17649 aarch64_declare_function_name, aarch64_start_file): Make flag
17650 variables uint64_t.
17651 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
17652 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
17653 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
17654 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
17655 * config/aarch64/driver-aarch64.c
17656 (struct aarch64_arch_extension, struct aarch64_core_data,
17657 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
17658 flag variables uint64_t.
17659 * doc/invoke.texi: Add documentation for new arguments.
17661 2019-05-22 Richard Biener <rguenther@suse.de>
17663 * alias.c (ao_ref_from_mem): Move stack-slot sharing
17665 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
17667 2019-05-22 Martin Liska <mliska@suse.cz>
17670 * doc/extend.texi: Document the change.
17672 2019-05-22 Richard Biener <rguenther@suse.de>
17674 PR tree-optimization/90450
17675 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
17676 (mem_ref_hasher::equal): Check it.
17677 (mem_ref_alloc): Initialize it.
17678 (gather_mem_refs_stmt): Set it.
17680 2019-05-22 Richard Biener <rguenther@suse.de>
17682 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
17684 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
17687 2019-05-22 Alan Modra <amodra@gmail.com>
17689 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
17690 (ASM_CPU_SPEC): Conditionally add -many.
17691 * config/rs6000/rs6000.c (rs6000_machine): New static var.
17692 (rs6000_machine_from_flags, emit_asm_machine): New functions..
17693 (rs6000_file_start): ..extracted from here, and modified to
17695 (rs6000_output_function_prologue): Emit .machine as necessary.
17697 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
17699 PR middle-end/90553
17700 * ira-lives.c (process_bb_node_lives): Consider defs
17701 for a call insn to be die before the call, not after.
17703 * function.c (assign_parm_setup_block): Raise alignment of
17704 stacked parameter only for STRICT_ALIGNMENT targets.
17706 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17708 * config/rs6000/constraints.md (define_register_constraint "wz"):
17710 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17711 RS6000_CONSTRAINT_wz.
17712 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17713 (rs6000_init_hard_regno_mode_ok): Adjust.
17714 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
17715 * doc/md.texi (Machine Constraints): Adjust.
17717 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17719 * config/rs6000/constraints.md (define_register_constraint "wl"):
17721 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17722 RS6000_CONSTRAINT_wl.
17723 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17724 (rs6000_init_hard_regno_mode_ok): Adjust.
17725 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
17726 * doc/md.texi (Machine Constraints): Adjust.
17728 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17730 * config/rs6000/constraints.md (define_register_constraint "wm"):
17732 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17733 RS6000_CONSTRAINT_wm.
17734 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17735 (rs6000_init_hard_regno_mode_ok): Adjust.
17736 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
17737 * doc/md.texi (Machine Constraints): Adjust.
17739 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17741 * config/rs6000/constraints.md (define_register_constraint "wk"):
17743 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17744 RS6000_CONSTRAINT_wk.
17745 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17746 (rs6000_init_hard_regno_mode_ok): Adjust.
17747 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
17748 * doc/md.texi (Machine Constraints): Adjust.
17750 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17752 * config/rs6000/constraints.md (define_register_constraint "wj"):
17754 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17755 RS6000_CONSTRAINT_wj.
17756 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17757 (rs6000_init_hard_regno_mode_ok): Adjust.
17758 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
17760 * config/rs6000/vsx.md: Ditto.
17761 * doc/md.texi (Machine Constraints): Adjust.
17763 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17765 * config/rs6000/constraints.md (define_register_constraint "wh"):
17767 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17768 RS6000_CONSTRAINT_wh.
17769 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17770 (rs6000_init_hard_regno_mode_ok): Adjust.
17771 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
17772 * doc/md.texi (Machine Constraints): Adjust.
17774 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17777 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
17778 Avoid calling gen_lowpart with CONST operand.
17780 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
17782 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
17783 field template_last_to_copy.
17784 (ssa_create_duplicates): Set it, and use it. Attempt to
17785 preserve more debug stmts.
17787 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17789 * config/i386/sse.md (VF1_AVX2): New mode iterator.
17790 (signbit<mode>2): New expander
17792 2019-05-21 James Clarke <jrtc27@jrtc27.com>
17795 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
17796 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
17798 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17800 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
17801 %ebx and %ecx bafore calling cpuid with leaf 1 or
17802 non-constant leaf argument.
17804 2019-05-21 Alan Modra <amodra@gmail.com>
17807 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
17808 power9 direct move cost.
17810 2019-05-21 Richard Biener <rguenther@suse.de>
17812 PR middle-end/90510
17813 * fold-const.c (fold_read_from_vector): New function.
17814 * fold-const.h (fold_read_from_vector): Declare.
17815 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
17816 single-element insert permutations. Canonicalize selector
17817 further and fix issue with last commit.
17819 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17821 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
17822 parameter with default value false to declaration.
17823 (split_edges_for_insertion): New inline function. Wrapper for
17824 split_critical_edges with for_edge_insertion_p = true.
17825 * tree-cfg.c (split_critical_edges): Don't split non-critical
17826 edges if for_edge_insertion_p is false. Fix whitespace.
17827 * tree-ssa-pre.c (pass_pre::execute): Call
17828 split_edges_for_insertion instead of split_critical_edges.
17829 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
17830 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
17831 (pass_data_sink_code): Update function name in the comment.
17833 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17835 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
17836 around is_value_included_in that knows how to handle BIT_AND_EXPR.
17837 (is_pred_expr_subset_of): Use the new function. Handle more cases where
17838 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
17841 2019-05-21 Martin Liska <mliska@suse.cz>
17843 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
17845 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
17846 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
17848 * config/rs6000/rs6000.c (rs6000_option_override_internal):
17850 (rs6000_function_arg): Likewise.
17851 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
17852 (rs6000_expand_ternop_builtin): Use interval syntax.
17853 (get_element_number): Likewise.
17854 (altivec_expand_builtin): Likewise.
17855 (rs6000_get_function_versions_dispatcher): Quote target_clones.
17857 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17861 * function.h (struct function): Add calls_eh_return member.
17862 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
17863 gimplifying __builtin_eh_return call.
17864 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
17866 (expand_call_inline): Or in src_cfun->calls_eh_return into
17867 dst_cfun->calls_eh_return.
17868 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
17869 cfun->calls_eh_return.
17870 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
17871 * lto-streamer-out.c (output_struct_function_base): Write
17874 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
17876 PR rtl-optimization/43147
17877 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
17878 IX86_BUILTIN_SHUFPD.
17880 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17882 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
17883 (refs_may_alias_p_1): ... here; update stats.
17884 (refs_may_alias_p): Do not update stats here.
17886 2019-05-20 Richard Biener <rguenther@suse.de>
17888 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
17889 doesn't produce pointers.
17890 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
17891 the first operand points to.
17893 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17895 * tree-ssa-alias.c (compare_sizes): New function.
17896 (sompare_type_sizes): New function
17897 (aliasing_component_refs_p): Use it.
17898 (indirect_ref_may_alias_decl_p): Likewise.
17900 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17902 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
17904 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17906 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
17907 (LIBLSAN_EARLY_SPEC): Likewise.
17908 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
17910 2019-05-20 Martin Liska <mliska@suse.cz>
17912 * config/i386/i386.c (ix86_libc_has_fast_function):
17913 Add ATTRIBUTE_UNUSED for the argument.
17915 2019-05-20 Richard Biener <rguenther@suse.de>
17917 * gimple-match-head.c: Include vec-perm-indices.h.
17918 * generic-match-head.c: Likewise.
17919 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
17921 * fold-const.c (fold_vec_perm): Export.
17922 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
17923 (match.pd): ...here.
17925 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17927 * cfgloop.h (struct loop): Add simdlen member.
17928 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
17929 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
17930 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
17931 as new argument to autovectorize_vector_sizes target hook. If
17932 loop->simdlen, pick up vector size where the vectorization factor
17933 is equal to loop->simd, and if there is none, fall back to the first
17935 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
17937 * omp-low.c (omp_clause_aligned_alignment): Likewise.
17938 * omp-general.c (omp_max_vf): Likewise.
17939 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
17940 * tree-vect-slp.c (vect_slp_bb): Likewise.
17941 * target.def (autovectorize_vector_sizes): Add ALL argument and
17943 * doc/tm.texi: Adjust documentation.
17944 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
17945 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
17946 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
17948 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
17949 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
17950 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
17951 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
17952 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
17953 preferred vector size is not 512-bit or 256-bit, just put those
17954 unpreferred ones last.
17956 2019-05-20 Martin Liska <mliska@suse.cz>
17958 * targhooks.c (default_libc_has_fast_function): New function.
17959 * targhooks.h (default_libc_has_fast_function): Likewise.
17961 2019-05-20 Martin Liska <mliska@suse.cz>
17963 PR middle-end/90263
17964 * builtins.c (expand_builtin_memory_copy_args): When having a
17965 target with fast mempcpy implementation do now use memcpy.
17966 * config/i386/i386.c (ix86_libc_has_fast_function): New.
17967 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
17968 * doc/tm.texi: Likewise.
17969 * doc/tm.texi.in: Likewise.
17971 * expr.c (emit_block_move_hints): Add 2 new arguments.
17972 * expr.h (emit_block_move_hints): Bail out when libcall
17973 to memcpy would be used.
17975 2019-05-20 Martin Liska <mliska@suse.cz>
17977 * profile-count.c: Add vertical spacing in order
17978 to separate functions.
17979 * profile-count.h: Likewise.
17981 2019-05-20 Martin Liska <mliska@suse.cz>
17983 * profile-count.h: Do not use full qualified
17985 * profile-count.c (profile_count::to_frequency): Likewise.
17987 2019-05-20 Martin Liska <mliska@suse.cz>
17989 * profile-count.h (enum profile_quality): Use capital letters
17990 for enum value names. Use the adjusted names.
17991 * profile-count.c: Use the adjusted names.
17993 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17995 * config/rs6000/constraints.md (define_register_constraint "wH"):
17997 (define_register_constraint "wI"): Delete.
17998 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17999 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
18000 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18001 (rs6000_init_hard_regno_mode_ok): Adjust.
18002 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
18003 resp. "d", or with "wa" as appropriate, all with "p8v".
18004 * config/rs6000/vsx.md: Ditto.
18005 * doc/md.texi (Machine Constraints): Adjust.
18007 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18009 * config/rs6000/constraints.md (define_register_constraint "wy"):
18011 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18012 RS6000_CONSTRAINT_wy.
18013 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18014 (rs6000_init_hard_regno_mode_ok): Adjust.
18015 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
18016 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
18017 (define_mode_attr Fisa): New.
18018 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
18019 * doc/md.texi (Machine Constraints): Adjust.
18021 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18023 * config/rs6000/constraints.md (define_register_constraint "wu"):
18025 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18026 RS6000_CONSTRAINT_wu.
18027 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18028 (rs6000_init_hard_regno_mode_ok): Adjust.
18029 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
18031 (define_mode_attr Fa): Delete.
18032 * config/rs6000/vsx.md: Ditto.
18033 * doc/md.texi (Machine Constraints): Adjust.
18035 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18037 * config/rs6000/constraints.md (define_register_constraint "wJ"):
18039 (define_register_constraint "wK"): Delete.
18040 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18041 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
18042 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18043 (rs6000_init_hard_regno_mode_ok): Adjust.
18044 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
18045 Replace "wK" constraint by "wH" with "p9v".
18046 * config/rs6000/vsx.md: Ditto.
18047 * doc/md.texi (Machine Constraints): Adjust.
18049 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18051 * config/rs6000/constraints.md (define_register_constraint "wb"):
18053 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18054 RS6000_CONSTRAINT_wb.
18055 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18056 (rs6000_init_hard_regno_mode_ok): Adjust.
18057 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
18058 * config/rs6000/vsx.md: Ditto.
18059 * doc/md.texi (Machine Constraints): Adjust.
18061 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18063 * config/rs6000/constraints.md (define_register_constraint "wo"):
18065 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18066 RS6000_CONSTRAINT_wo.
18067 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18068 (rs6000_init_hard_regno_mode_ok): Adjust.
18069 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
18070 * config/rs6000/altivec.md: Ditto.
18071 * doc/md.texi (Machine Constraints): Adjust.
18073 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18075 * config/darwin-c.c (darwin_register_objc_includes): Do not
18076 prepend the sysroot when building gnu-runtime header search
18079 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18081 * config/darwin.c (darwin_file_end): Use switch_to_section ()
18082 instead of direct output of the asm.
18084 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18086 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
18087 argument to be type bool (was int before).
18088 (rs6000_emit_epilogue): Simplify some code. Declare some variables
18089 at first use. Use type bool for some variables. Fix a theoretical
18090 eh_return bug for svr4.
18092 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18094 * config/rs6000/rs6000.md (isa): New attribute.
18095 (enabled): New attribute.
18097 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
18099 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
18100 assemble_start_function and assemble_end_function.
18102 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
18104 PR middle-end/89433
18105 * omp-general.c (oacc_verify_routine_clauses): Change formal
18106 parameters. Add checking if already marked with an OpenACC
18107 'routine' directive. Adjust all users.
18109 PR middle-end/89433
18110 * omp-general.c (oacc_build_routine_dims): Move some of its
18112 (oacc_verify_routine_clauses): ... this new function.
18113 * omp-general.h (oacc_verify_routine_clauses): New prototype.
18115 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18117 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
18118 formating of picbase labels to match other ports.
18120 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18122 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
18123 in the generated code.
18125 2019-05-16 Martin Sebor <msebor@redhat.com>
18127 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
18128 identifiers, keywords, operators, and types in diagnostics. Correct
18129 quoting, spelling, and sentence capitalization issues.
18130 (expand_builtin_atomic_is_lock_free): Same.
18131 (fold_builtin_next_arg): Same.
18132 * cfgexpand.c (expand_one_var): Same.
18133 (tree_conflicts_with_clobbers_p): Same.
18134 (expand_asm_stmt): Same.
18135 (verify_loop_structure): Same.
18136 * cgraphunit.c (process_function_and_variable_attributes): Same.
18137 * collect-utils.c (collect_execute): Same.
18138 * collect2.c (maybe_run_lto_and_relink): Same.
18139 (is_lto_object_file): Same.
18140 (scan_prog_file): Same.
18141 * convert.c (convert_to_real_1): Same.
18142 * dwarf2out.c (dwarf2out_begin_prologue): Same.
18143 * except.c (verify_eh_tree): Same.
18144 * gcc.c (execute): Same.
18145 (eval_spec_function): Same.
18146 (run_attempt): Same.
18147 (driver::set_up_specs): Same.
18148 (compare_debug_auxbase_opt_spec_function): Same.
18149 * gcov-tool.c (unlink_gcda_file): Same.
18151 (do_rewrite): Same.
18152 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
18153 * gimplify.c (gimplify_asm_expr): Same.
18154 (gimplify_adjust_omp_clauses): Same.
18155 * hsa-gen.c (gen_hsa_addr_insns): Same.
18156 (gen_hsa_insns_for_load): Same.
18157 (gen_hsa_cmp_insn_from_gimple): Same.
18158 (gen_hsa_insns_for_operation_assignment): Same.
18159 (gen_get_level): Same.
18160 (gen_hsa_alloca): Same.
18161 (omp_simple_builtin::generate): Same.
18162 (gen_hsa_atomic_for_builtin): Same.
18163 (gen_hsa_insns_for_call): Same.
18164 * input.c (dump_location_info): Same.
18165 * ipa-devirt.c (compare_virtual_tables): Same.
18166 * ira.c (ira_setup_eliminable_regset): Same.
18167 * lra-assigns.c (lra_assign): Same.
18168 * lra-constraints.c (lra_constraints): Same.
18169 * lto-streamer-in.c (lto_input_mode_table): Same.
18170 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
18171 (merge_and_complain): Same.
18172 (compile_offload_image): Same.
18173 (compile_images_for_offload_targets): Same.
18174 (debug_objcopy): Same.
18177 * opts.c (print_specific_help): Same.
18178 (parse_no_sanitize_attribute): Same.
18179 (print_help): Same.
18180 (handle_param): Same.
18181 * plugin.c (add_new_plugin): Same.
18182 (parse_plugin_arg_opt): Same.
18183 (try_init_one_plugin): Same.
18184 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
18185 operators, and types in diagnostics. Correct quoting and spelling
18187 * read-rtl-function.c (parse_edge_flag_token): Same.
18188 (function_reader::parse_enum_value): Same.
18189 * reg-stack.c (check_asm_stack_operands): Same.
18190 * regcprop.c (validate_value_data): Same.
18191 * sched-rgn.c (make_pass_sched_fusion): Same.
18192 * stmt.c (check_unique_operand_names): Same.
18193 * targhooks.c (default_target_option_pragma_parse): Same.
18194 * tlink.c (recompile_files): Same.
18195 * toplev.c (process_options): Same.
18196 (do_compile): Same.
18197 * trans-mem.c (diagnose_tm_1): Same.
18198 (ipa_tm_scan_irr_block): Same.
18199 (ipa_tm_diagnose_transaction): Same.
18200 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
18201 format a tree code name in a diagnostic.
18202 (verify_types_in_gimple_min_lval): Same.
18203 (verify_types_in_gimple_reference): Same.
18204 (verify_gimple_call): Same.
18205 (verify_gimple_assign_unary): Same.
18206 (verify_gimple_assign_binary): Same.
18207 (verify_gimple_assign_ternary): Same.
18208 (verify_gimple_assign_single): Same.
18209 (verify_gimple_switch): Same.
18210 (verify_gimple_label): Same.
18211 (verify_gimple_phi): Same.
18212 (verify_gimple_in_seq): Same.
18213 (verify_eh_throw_stmt_node): Same.
18214 (collect_subblocks): Same.
18215 (gimple_verify_flow_info): Same.
18216 (do_warn_unused_result): Same.
18217 * tree-inline.c (expand_call_inline): Same.
18218 * tree-into-ssa.c (update_ssa): Same.
18219 * tree.c (tree_int_cst_elt_check_failed): Same.
18220 (tree_vec_elt_check_failed): Same.
18221 (omp_clause_operand_check_failed): Same.
18222 (verify_type_variant): Same.
18223 (verify_type): Same.
18224 * value-prof.c (verify_histograms): Same.
18225 * varasm.c (assemble_start_function): Same.
18227 2019-05-16 Martin Sebor <msebor@redhat.com>
18229 * config/i386/i386-expand.c (get_element_number): Quote keywords
18230 and other internal names in diagnostics. Adjust other diagnostic
18231 formatting issues noted by -Wformat-diag.
18232 * config/i386/i386-features.c
18233 (ix86_mangle_function_version_assembler_name): Same.
18234 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
18235 * config/i386/i386.c (ix86_function_type_abi): Same.
18236 (ix86_function_ms_hook_prologue): Same.
18237 (classify_argument): Same.
18238 (ix86_expand_prologue): Same.
18239 (ix86_md_asm_adjust): Same.
18240 (ix86_memmodel_check): Same.
18242 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
18244 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
18245 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
18248 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
18251 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
18252 intrinsics without SSE/SSE2/SSSE3.
18253 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
18255 (*mmx_uavgv8qi3): Likewise.
18257 2019-05-17 Richard Biener <rguenther@suse.de>
18259 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
18260 VEC_PERM_EXPR as __VEC_PERM with -gimple.
18262 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
18264 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
18265 vec_sldw insn pattern.
18267 2019-05-17 Richard Biener <rguenther@suse.de>
18269 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
18271 2019-05-17 Martin Liska <mliska@suse.cz>
18274 * toplev.c (output_stack_usage): With LTO and sanitizer it
18275 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
18276 has no file location.
18278 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18281 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
18282 sz0 is equal to sz1, instead return false in that case.
18284 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
18285 has non-constant expression, force sctx.lane and use two
18286 argument IFN_GOMP_SIMD_LANE instead of single argument.
18287 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
18288 two argument IFN_GOMP_SIMD_LANE without lhs.
18289 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
18291 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
18293 (LOOP_REQUIRES_VERSIONING): Or in
18294 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
18295 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
18297 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
18298 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
18299 from simd if clause if needed.
18301 2019-05-16 Richard Biener <rguenther@suse.de>
18303 * tree-affine.c (expr_to_aff_combination): New function split
18305 (tree_to_aff_combination): ... here.
18306 (aff_combination_expand): Avoid building a GENERIC tree.
18308 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
18310 * cgraphunit.c (cgraph_node::expand_thunk): Remove
18311 assemble_start_function and assemble_end_function calls.
18312 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
18313 assemble_start_function and assemble_end_function.
18314 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
18315 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
18316 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
18317 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
18318 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
18319 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
18320 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
18321 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
18322 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
18323 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
18324 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
18325 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
18327 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
18328 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
18329 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
18330 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
18331 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
18332 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
18333 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
18334 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
18335 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
18336 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
18337 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
18338 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
18339 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
18340 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
18342 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
18343 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
18344 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
18346 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
18348 * tree-ssa-alias.c (alias_stats): Add
18349 aliasing_component_refs_p_may_alias and
18350 aliasing_component_refs_p_no_alias.
18351 (dump_alias_stats): Print aliasing_component_refs_p stats.
18352 (aliasing_component_refs_p): Update stats.
18354 2019-05-16 Martin Liska <mliska@suse.cz>
18357 * multiple_target.c (expand_target_clones): Do not allow
18358 target_clones being used with a symbol that is an alias.
18360 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
18362 PR tree-optimization/90394
18363 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
18364 positives rather than ICE for cases where (code2 == NE_EXPR
18365 && code1 == BIT_AND_EXPR).
18367 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18370 * tree-core.h (struct tree_decl_common): Document
18371 decl_nonshareable_flag for PARM_DECLs.
18372 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
18373 * calls.c (expand_call): Don't try tail call if caller
18374 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
18375 passed on the stack and callee needs to pass any arguments on the
18377 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
18378 else if instead of series of mutually exclusive ifs. Handle
18379 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
18380 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
18382 * lto-streamer.h (LTO_major_version): Bump to 9.
18384 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
18386 PR tree-optimization/90106
18387 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
18388 new parameter as new internal function call, also move it to new
18390 (use_internal_fn): Pass internal function call to
18391 shrink_wrap_one_built_in_call_with_conds.
18393 2019-05-15 Jakub Jelinek <jakub@redhat.com>
18395 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
18397 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
18398 safelen_int and set loop->dont_vectorize.
18400 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18403 * config/i386/i386-builtin.def: Enable MMX intrinsics with
18405 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
18407 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
18408 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
18409 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
18412 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18415 * config/i386/mmx.md (*vec_dupv2sf): Changed to
18416 define_insn_and_split to support SSE emulation.
18417 (*vec_extractv2sf_0): Likewise.
18418 (*vec_extractv2sf_1): Likewise.
18419 (*vec_extractv2si_0): Likewise.
18420 (*vec_extractv2si_1): Likewise.
18421 (*vec_extractv2si_zext_mem): Likewise.
18422 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
18423 (vec_extractv2sf_1 splitter): Likewise.
18424 (vec_extractv2sfsf): Likewise.
18425 (vec_setv2si): Likewise.
18426 (vec_extractv2si_1 splitter): Likewise.
18427 (vec_extractv2sisi): Likewise.
18428 (vec_setv4hi): Likewise.
18429 (vec_extractv4hihi): Likewise.
18430 (vec_setv8qi): Likewise.
18431 (vec_extractv8qiqi): Likewise.
18432 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18433 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
18434 (vec_extractv2sisi): Likewise.
18435 (vec_extractv4hihi): Likewise.
18436 (vec_extractv8qiqi): Likewise.
18437 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18438 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
18439 (vec_initv2sisi): Likewise.
18440 (vec_initv4hihi): Likewise.
18441 (vec_initv8qiqi): Likewise.
18442 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
18443 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
18444 (vec_setv4hi): Likewise.
18445 (vec_setv8qi): Likewise.
18447 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18450 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
18451 TARGET_MMX_WITH_SSE.
18452 (MMXMODE:*mov<mode>_internal): Likewise.
18453 (MMXMODE:movmisalign<mode>): Likewise.
18455 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
18458 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
18459 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
18460 (sse2_cvtpd2pi): Ditto.
18461 (sse2_cvttpd2pi): Ditto.
18462 (*vec_concatv2sf_sse4_1): Ditto.
18463 (*vec_concatv2sf_sse): Ditto.
18464 (*vec_concatv2si_sse4_1): Ditto.
18465 (*vec_concatv2si): Ditto.
18466 (*vec_concatv4si_0): Ditto.
18467 (*vec_concatv2di_0): Ditto.
18469 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18472 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
18474 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18477 * config/i386/sse.md (ssse3_palignrdi): Changed to
18478 define_insn_and_split to support SSE emulation.
18480 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18483 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
18485 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18488 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
18489 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18492 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18495 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
18496 or TARGET_MMX_WITH_SSE.
18497 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
18499 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18502 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
18504 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18507 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
18508 Changed to define_insn_and_split to support SSE emulation.
18510 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18513 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
18514 Changed to define_insn_and_split to support SSE emulation.
18516 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18519 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
18520 (*mmx_<emms>): This.
18521 (mmx_<emms>): New expander.
18523 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18526 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
18528 (*sse2_umulv1siv1di3): Add SSE2 emulation.
18530 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18533 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
18535 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18538 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
18540 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18543 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
18544 TARGET_MMX_WITH_SSE.
18545 (*mmx_uavgv4hi3): Add SSE emulation.
18547 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18550 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
18551 and TARGET_MMX_WITH_SSE.
18552 (*mmx_uavgv8qi3): Add SSE emulation.
18554 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18557 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
18558 maskmovdqu for __MMX_WITH_SSE__.
18560 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18563 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
18564 TARGET_MMX and TARGET_MMX_WITH_SSE.
18565 (*mmx_umulv4hi3_highpart): Add SSE emulation.
18567 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18570 * config/i386/mmx.md (mmx_pmovmskb): Changed to
18571 define_insn_and_split to support SSE emulation.
18573 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18576 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
18577 and TARGET_MMX_WITH_SSE.
18578 (mmx_<code>v8qi3): Likewise.
18579 (smaxmin:<code>v4hi3): New.
18580 (umaxmin:<code>v8qi3): Likewise.
18581 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
18582 (umaxmin:*mmx_<code>v8qi3): Likewise.
18584 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18587 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
18588 TARGET_MMX_WITH_SSE.
18589 (*mmx_pinsrw): Add SSE emulation.
18591 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18594 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
18596 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18599 * config/i386/sse.md (sse_cvtpi2ps): Changed to
18600 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18603 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18606 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
18607 (sse_cvttps2pi): Likewise.
18609 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18612 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
18613 TARGET_MMX_WITH_SSE.
18614 (mmx_pshufw_1): Add SSE emulation.
18615 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
18616 TARGET_MMX_WITH_SSE to support SSE emulation.
18618 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18621 * config/i386/constraints.md (Yw): New constraint.
18622 * config/i386/mmx.md (*vec_dupv2si): Changed to
18623 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
18624 support SSE emulation.
18626 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18629 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
18630 TARGET_MMX_WITH_SSE.
18631 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18633 (mmx_gt<mode>3): Likewise.
18635 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18638 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
18639 TARGET_MMX_WITH_SSE. Add SSE support.
18641 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18644 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
18645 TARGET_MMX_WITH_SSE.
18646 (any_logic:<code><mode>3): New.
18647 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
18650 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18653 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
18654 TARGET_MMX_WITH_SSE. Add SSE emulation.
18655 (mmx_<shift_insn><mode>3): Likewise.
18656 (ashr<mode>3): New.
18657 (<shift_insn><mode>3): Likewise.
18659 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18662 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
18663 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
18665 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18668 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
18669 TARGET_MMX_WITH_SSE.
18670 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
18673 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18676 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
18677 TARGET_MMX_WITH_SSE.
18679 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18682 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18685 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
18686 (plusminus:mmx_<plusminus_insn><mode>3): Check
18687 TARGET_MMX_WITH_SSE.
18688 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
18689 (<plusminus_insn><mode>3): New.
18690 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
18691 (*mmx_<plusminus_insn><mode>3): Likewise.
18693 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18696 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
18697 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
18699 * config/i386/mmx.m (mmx_punpckhbw): Changed to
18700 define_insn_and_split to support SSE emulation.
18701 (mmx_punpcklbw): Likewise.
18702 (mmx_punpckhwd): Likewise.
18703 (mmx_punpcklwd): Likewise.
18704 (mmx_punpckhdq): Likewise.
18705 (mmx_punpckldq): Likewise.
18707 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18708 Uros Bizjak <ubizjak@gmail.com>
18711 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
18713 (ix86_split_mmx_pack): Likewise.
18714 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
18716 (ix86_split_mmx_pack): Likewise.
18717 * config/i386/i386.md (mmx_isa): New.
18718 (enabled): Also check mmx_isa.
18719 * config/i386/mmx.md (any_s_truncate): New code iterator.
18720 (s_trunsuffix): New code attr.
18721 (mmx_packsswb): Removed.
18722 (mmx_packssdw): Likewise.
18723 (mmx_packuswb): Likewise.
18724 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
18725 MMX packsswb/packuswb with SSE2.
18726 (mmx_packssdw): Likewise.
18727 * config/i386/predicates.md (register_mmxmem_operand): New.
18729 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18732 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18733 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
18734 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
18735 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
18736 (ix86_vector_mode_supported_p): Likewise.
18737 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
18739 2019-05-15 Martin Liska <mliska@suse.cz>
18741 PR middle-end/90478
18742 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18743 Check for overflow.
18745 2019-05-15 Richard Biener <rguenther@suse.de>
18747 * tree-into-ssa.c (pass_build_ssa::execute): Run
18748 update_address_taken before going into SSA.
18750 2019-05-15 Richard Biener <rguenther@suse.de>
18752 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
18753 as __BIT_FIELD_REF with type with -gimple.
18755 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
18757 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
18758 semantically equivalent branches (left over after prior refactorings).
18760 2019-05-15 Richard Biener <rguenther@suse.de>
18762 PR tree-optimization/88828
18763 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
18766 2019-05-14 Richard Biener <rguenther@suse.de>
18768 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
18769 as __VIEW_CONVERT with -gimple.
18771 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18774 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
18777 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18779 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
18780 define_split to become a define_insn_and_split.
18782 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18784 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
18786 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
18787 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
18788 (sibcall_epilogue): Adjust.
18789 (epilogue): Adjust.
18791 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18793 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
18794 to unsupported ones.
18795 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
18796 * config.host: Likewise.
18797 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
18798 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
18799 __svr4__]: Remove "brand" fallback.
18800 [!KSTAT_DATA_STRING]: Remove.
18801 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
18803 (comdat_group): Likewise.
18804 (set_have_as_tls): Likewise.
18805 (gcc_cv_target_dl_iterate_phdr): Likewise.
18806 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
18807 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
18808 * configure: Regenerate.
18809 * doc/install.texi: Simplify Solaris target triplets.
18810 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
18811 (Specific, *-*-solaris2*): Document Solaris 10 removal.
18812 Remove Solaris 10 references.
18813 Remove obsolete Solaris bug reference.
18814 (Specific, sparc-sun-solaris2.10): Remove.
18816 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
18818 * config/i386/i386.md (any_div): New code iterator.
18819 (paired_mod): New code attribute.
18820 (sgnprefix): Handle DIV and UDIV RTXes.
18822 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
18823 and udivmod<mode>4 patterns using any_div code iterator.
18824 (divmod splitters): Macroize splitters using any_div code iterator.
18825 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
18826 (*udivmodsi4_pow2_zext_2): Ditto.
18827 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
18828 and *udivmod<mode>4_noext patterns using any_div code iterator.
18829 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
18830 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
18831 patterns using any_div code iterator.
18832 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
18833 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
18834 patterns using any_div code iterator.
18835 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
18836 udivmodhiqi3 patterns using any_extend code iterator.
18838 2019-05-14 Richard Biener <rguenther@suse.de>
18839 H.J. Lu <hongjiu.lu@intel.com>
18841 PR tree-optimization/88828
18842 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
18843 permuting in a single non-constant element not extracted
18846 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
18848 * internal-fn.def (SIGNBIT): New.
18849 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
18851 (signbitv4sf2): Likewise.
18853 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
18856 * config/mips/mips.c (mips_split_move): Skip forward SRC into
18857 next insn when the SRC reg is dead.
18859 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
18861 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
18862 (alloc_cand_and_find_basis): Ditto.
18863 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
18864 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
18865 (create_add_imm_cand, slsr_process_cast): Ditto.
18866 (slsr_process_copy, replace_mult_candidate): Ditto.
18867 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
18868 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
18869 (pass_strength_reduction::execute): Init the first NULL element.
18871 2019-05-13 Nathan Sidwell <nathan@acm.org>
18873 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
18874 (run_attempt): Reformat line break.
18876 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
18879 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
18880 data registers in sibcall epilogues.
18881 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18883 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
18886 * configure.ac (--enable-frame-pointer):
18887 Disable by default for cygwin and mingw.
18888 * configure: Regenerate.
18890 2019-05-13 Nathan Sidwell <nathan@acm.org>
18892 * dwarf2out.c (breakout_comdat_types): Move comment to correct
18894 (const_ok_for_output_1): Balance parens around #if/#else/#endif
18895 (gen_member_die): Move abstract origin check earlier. Only VARs
18896 can be static_inline_p. Simplify splicing control flow.
18898 2019-05-13 Richard Biener <rguenther@suse.de>
18900 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
18902 (vect_build_slp_tree_1): Likewise.
18904 2019-05-13 Richard Biener <rguenther@suse.de>
18906 PR tree-optimization/90402
18907 * tree-if-conv.c (tree_if_conversion): Value number only
18908 the loop body by making the latch an exit of the region
18910 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
18912 (do_rpo_vn): Deal with multiple edges into the entry block
18913 that are not backedges inside the region by skipping PHIs
18914 of the entry block.
18916 2019-05-13 Richard Biener <rguenther@suse.de>
18918 PR tree-optimization/90316
18919 * tree-ssa-pre.c (insert_aux): Fold into ...
18920 (insert): ... this function. Use a RPO walk to reduce the
18921 number of required iterations.
18923 2019-05-13 Martin Liska <mliska@suse.cz>
18925 PR tree-optimization/90416
18926 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
18927 string instead of passing the second part as va_arg argument.
18929 2019-05-13 Martin Liska <mliska@suse.cz>
18931 PR gcov-profile/90380
18932 * gcov.c (handle_cycle): Do not support zero cycle count,
18933 it should not be possible.
18934 (path_contains_zero_cycle_arc): New function.
18935 (circuit): Ignore zero cycle arc counts.
18937 2019-05-13 Martin Liska <mliska@suse.cz>
18939 PR gcov-profile/90380
18940 * gcov.c (enum loop_type): Remove the enum and
18942 (handle_cycle): Assert that we should not reach
18944 (circuit): Use loop_found instead of a tri-state loop_type.
18945 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
18948 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18951 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
18952 (ix86_output_indirect_branch_via_reg): Use output mechanism
18953 accounting for __USER_LABEL_PREFIX__.
18954 (ix86_output_indirect_branch_via_push): Likewise.
18955 (ix86_output_function_return): Likewise.
18956 (ix86_output_indirect_function_return): Likewise.
18958 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
18960 * doc/md.texi: Document use of code attributes in rtx patterns.
18961 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
18962 * read-rtl.c (find_code): Split out search loops into...
18963 (maybe_find_code): ...this new function.
18964 (check_code_iterator): Make the error message more informative.
18965 (check_code_attribute): New function.
18966 (rtx_reader::rtx_alloc_for_name): Likewise.
18967 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
18968 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
18969 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
18970 <max_opp> directly as an rtx code instead of via a match_operator.
18971 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
18972 (<su>abd<mode>_3): Update accordingly.
18974 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18976 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
18977 is given, print the state of the EH "save world" computation for
18980 2019-05-11 Jakub Jelinek <jakub@redhat.com>
18983 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
18984 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18986 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
18988 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
18989 Use pinsrd for TARGET_SSE4_1.
18990 * config/i386/sse.md (movdi_to_sse): Ditto.
18992 2019-05-10 Richard Biener <rguenther@suse.de>
18994 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
18995 (do_rpo_vn): Initialize next_value_id.
18997 2019-05-10 Martin Liska <mliska@suse.cz>
18999 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
19002 2019-05-10 Jakub Jelinek <jakub@redhat.com>
19004 PR tree-optimization/90385
19005 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
19006 arguments of the exit phis.
19009 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
19010 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
19012 (copy_tree_body_r): Likewise.
19013 (copy_fn): Set id.do_not_fold to true.
19015 2019-05-10 Martin Liska <mliska@suse.cz>
19017 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
19018 Reapply changes from r269790.
19020 2019-05-10 Martin Liska <mliska@suse.cz>
19022 PR middle-end/90340
19023 * doc/invoke.texi: New params.
19024 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
19025 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
19026 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
19028 * tree-switch-conversion.h (struct jump_table_cluster):
19031 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
19033 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
19035 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
19037 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
19039 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
19041 PR rtl-optimization/88879
19042 * sel-sched.c (sel_target_adjust_priority): Remove assert.
19044 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
19047 * config/arm/arm.c (callee_saved_reg_p): Move before
19048 thumb_find_work_register.
19049 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
19050 thumb_find_work_register. Only call df_get_live_out once.
19051 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
19052 (thumb_find_work_register): Use
19053 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
19054 algorithms to locate a spare call clobbered reg.
19056 2019-05-09 Martin Liska <mliska@suse.cz>
19058 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
19059 and MAX_EXPR in GIMPLE FE format.
19061 2019-05-09 Martin Liska <mliska@suse.cz>
19063 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
19064 * gimple-pretty-print.c (dump_gimple_bb_header):
19066 (pp_cfg_jump): Dump edge probability.
19067 * profile-count.c (profile_quality_as_string): Simplify
19068 with a static array.
19069 (parse_profile_quality): New function.
19070 (profile_count::dump): Simplify with a static array.
19071 (profile_count::from_gcov_type): Add new argument.
19072 * profile-count.h (parse_profile_quality): Likewise.
19073 * predict.h (set_hot_bb_threshold): New.
19074 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
19076 * predict.c (get_hot_bb_threshold): Set from the new param.
19077 (set_hot_bb_threshold): New.
19079 2019-05-09 Richard Biener <rguenther@suse.de>
19081 PR tree-optimization/90395
19082 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
19083 rewrite vector stores that throw internally.
19085 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
19087 * cif-code.def (CHKP): Remove.
19090 * configure.ac (--enable-frame-pointer): Disable by default for
19092 * configure: Regenerate.
19094 2019-05-09 Alan Modra <amodra@gmail.com>
19097 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
19098 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
19099 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
19100 cost for general <-> vsx when direct moves are available.
19101 Cost union classes at minimal cost for any reg in the class.
19102 Correct calculation for moves between vsx, float, and altivec.
19103 Don't return a low cost for moves between special regs. Don't
19104 use hard coded register numbers.
19105 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
19106 (rs6000_ira_change_pseudo_allocno_class): New function.
19107 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
19108 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
19110 (movsi_internal1): Don't disparage vector alternatives.
19111 (mov<mode>_internal): Likewise, excepting alternative that
19113 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
19114 we <- b alternative.
19116 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19119 PR tree-optimization/89060
19120 * tree-ssa-live.h (live_vars_map): New typedef.
19121 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
19122 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
19123 (struct compute_live_vars_data): New type.
19124 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
19125 live_vars_at_stmt, destroy_live_vars): New functions.
19126 * tree-tailcall.c: Include tree-ssa-live.h.
19127 (live_vars, live_vars_vec): New global variables.
19128 (find_tail_calls): Perform variable life analysis before punting.
19129 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
19130 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
19132 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
19133 Perform variable life analysis to select variables that really need
19135 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
19136 instead set id->eh_landing_pad_dest and assert it is the same.
19137 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
19139 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
19140 Richard Earnshaw <rearnsha@arm.com>
19143 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
19145 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
19146 (thumb1_compute_save_core_reg_mask): Don't force a spare work
19147 register if both the epilogue and prologue can use call-clobbered
19149 (thumb1_unexpanded_epilogue): Use
19150 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
19151 picking temporaries for restoring high regs to match that of the
19152 prologue where possible.
19153 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
19154 the list of work registers. Detect if the return address is still live
19155 at the end of the prologue and avoid using it for a work register if so.
19156 If the return address is not live, add LR to the list of pushable regs
19157 after the first pass.
19159 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19161 PR tree-optimization/90078
19162 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
19163 (INFTY): Increase the value for infinite cost.
19164 (struct comp_cost): Promote type of members to int64_t.
19165 (infinite_cost): Don't set complexity in initialization.
19166 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
19167 overflows to infinite_cost.
19168 (adjust_setup_cost): Promote type of parameter and cost computation
19170 (struct ainc_cost_data, struct iv_ca): Promote type of member to
19172 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
19173 cost computation to int64_t.
19174 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
19175 int64_t's format specifier in dump.
19177 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19179 PR tree-optimization/90240
19180 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
19181 with respect to scaling factor pre-computed for each basic block.
19182 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
19183 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
19184 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
19185 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
19186 live range for array of loop's basic blocks. Cleanup aux field of
19187 loop's basic blocks.
19189 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19191 PR tree-optimization/90356
19192 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
19194 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
19196 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
19197 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
19198 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
19199 (ix86_handle_option): Handle -mavx512bf16.
19200 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
19202 * config/i386/avx512bf16vlintrin.h: New.
19203 * config/i386/avx512bf16intrin.h: New.
19204 * config/i386/cpuid.h (bit_AVX512BF16): New.
19205 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
19206 * config/i386/i386-builtin-types.def: Add new types.
19207 * config/i386/i386-builtin.def: Add new builtins.
19208 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19210 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
19211 (ix86_option_override_internal): Handle BF16.
19212 (ix86_valid_target_attribute_inner_p): Ditto.
19213 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
19214 * config/i386/i386-builtin.c (enum processor_features): Add
19216 (static const _isa_names_table isa_names_table): Ditto.
19217 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
19218 (PTA_AVX512BF16): Ditto.
19219 * config/i386/i386.opt: Add -mavx512bf16.
19220 * config/i386/immintrin.h: Include avx512bf16intrin.h
19221 and avx512bf16vlintrin.h.
19222 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
19223 avx512f_cvtneps2bf16_<mode><mask_name>,
19224 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
19225 * config/i386/subst.md (mask_half): Add new subst.
19226 * doc/invoke.texi: Document -mavx512bf16.
19228 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
19230 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
19231 Delete declaration.
19232 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
19233 (rs6000_debug_legitimize_reload_address): Delete.
19234 (rs6000_legitimize_reload_address_ptr): Delete.
19235 (rs6000_option_override_internal): Adjust.
19236 (mem_operand_gpr): Adjust comment.
19237 (legitimate_lo_sum_address_p): Ditto.
19238 (rs6000_legitimize_reload_address): Delete.
19239 (rs6000_debug_legitimize_reload_address): Delete.
19240 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
19242 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
19245 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19246 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
19247 to compute vector element selector for both constant and variable
19250 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19252 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
19253 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
19254 ashrdi3_cvt using SWI48 mode iterator.
19256 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19258 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
19259 (aarch64_<su>abd<mode>_3): Likewise.
19260 (*aarch64_<su>abd<mode>_3): New define_insn.
19261 (<sur>sad<vsi2qi>): New define_expand.
19262 * config/aarch64/iterators.md: Added MAX_OPP attribute.
19263 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
19264 (build_vect_cond_expr): Likewise.
19266 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19268 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
19269 clobbers outside of accessible_reg_set.
19270 * config/i386/i386.c (ix86_conditional_register_usage):
19271 Disable register sets by clearing corresponding bits in
19272 accessible_reg_set. Do not set corresponding bits in fixed_regs,
19273 call_used_regs and don't clear corresponding reg_names array members.
19275 2019-05-07 Richard Biener <rguenther@suse.de>
19277 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
19278 not specified still compute a comp_vectype for invariant
19281 2019-05-07 Richard Biener <rguenther@suse.de>
19283 PR tree-optimization/90316
19284 * tree-ssa-pre.c (translate_vuse_through_block): When
19285 same_valid is NULL do not bother to search for a virtual
19287 (phi_translate_1): When operands changed we cannot keep
19288 the same value-number so do not bother to ask whether
19289 that's possible from translate_vuse_through_block.
19291 2019-05-07 Martin Liska <mliska@suse.cz>
19293 * bitmap.c (bitmap_register): Come up with
19294 alloc_descriptor_max_uid and assign it for
19296 (register_overhead): Use get_descriptor as
19298 (release_overhead): New.
19299 (bitmap_elem_to_freelist): Call it.
19300 (bitmap_elt_clear_from): Likewise.
19301 (bitmap_obstack_free): Likewise.
19302 (bitmap_move): Sensitively release memory.
19303 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
19304 (bitmap_initialize): Initialize alloc_descriptor to zero.
19305 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
19307 2019-05-07 Richard Biener <rguenther@suse.de>
19309 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
19310 we build a SLP node. Remove max_size and limiting.
19311 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
19313 2019-05-07 Richard Biener <rguenther@suse.de>
19315 PR tree-optimization/90316
19316 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
19317 limit by reference.
19318 (walk_non_aliased_vuses): Take walking limit argument.
19319 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
19320 walking if it is reached instead of just counting.
19321 (get_continuation_for_phi): Likewise.
19322 (walk_non_aliased_vuses): Likewise, instead of leaving counter
19323 limiting to the callback.
19324 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
19325 (vn_reference_lookup_3): Likewise.
19326 (vn_reference_lookup_pieces): Likewise.
19327 (vn_reference_lookup): Likewise.
19328 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
19329 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
19330 (avail_exprs_stack::lookup_avail_expr): Likewise.
19332 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
19334 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
19335 for comparaible types in the second direction even if first one
19336 hits incomparable type.
19338 2019-05-07 Richard Biener <rguenther@suse.de>
19341 * lto-wrapper.c (debug_objcopy): Use the original filename
19342 including archive offset for the filename used for -save-temps.
19344 2019-05-07 Li Jia He <helijia@linux.ibm.com>
19346 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
19349 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
19350 Hongtao Liu <hongtao.liu@intel.com>
19354 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
19355 Modified, original implementation isn't correct.
19357 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19359 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
19360 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
19361 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
19362 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
19363 (FRAME_POINTER_REGNUM): Change numbering.
19364 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
19365 (alt_reg_names): Adjust.
19366 (rs6000_conditional_register_usage): Don't mark hard register 64 as
19368 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19369 (DWARF_FRAME_REGISTERS): Delete.
19370 (DWARF2_FRAME_REG_OUT): Fix whitespace.
19371 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19373 (REG_ALLOC_ORDER): Adjust.
19374 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
19375 (REG_CLASS_CONTENTS): Adjust.
19376 (RETURN_ADDR_RTX): Change comment.
19377 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
19379 (REGISTER_NAMES): Adjust.
19380 (ADDITIONAL_REGISTER_NAMES): Adjust.
19381 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19383 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19385 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
19387 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19388 (DWARF_FRAME_REGISTERS): Adjust.
19389 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19391 (REG_ALLOC_ORDER): Adjust.
19392 (enum reg_class): Delete SPR_REGS.
19393 (REG_CLASS_NAMES): Delete SPR_REGS.
19394 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
19395 (REGISTER_NAMES): Adjust.
19396 (ADDITIONAL_REGISTER_NAMES): Adjust.
19397 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19398 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
19399 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
19400 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
19401 (htm_spr_regno): Delete.
19402 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
19404 (rs6000_dbx_register_number): Adjust.
19406 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19408 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
19410 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19412 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
19413 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
19415 2019-05-06 Jakub Jelinek <jakub@redhat.com>
19417 PR tree-optimization/88709
19418 PR tree-optimization/90271
19419 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
19420 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
19421 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
19423 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
19424 of the store merging group is larger than
19425 PARAM_STORE_MERGING_MAX_SIZE parameter.
19426 (split_group): Add bzero_first argument. If set, always emit first
19427 the first store which must be = {} of the whole area and then for the
19428 rest of the stores consider all zero bytes as paddings.
19429 (imm_store_chain_info::output_merged_store): Check if first store
19430 is = {} of the whole area and if yes, determine which setting of
19431 bzero_first for split_group gives smaller number of stores. Adjust
19432 split_group callers.
19433 (lhs_valid_for_store_merging_p): Allow decls.
19434 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
19436 (pass_store_merging::process_store): Likewise.
19438 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
19441 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
19442 handling of V1TImode.
19444 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
19447 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
19448 and enable_frame_pointer ...
19449 * configure.ac: ... here. Update help strings for
19450 --enable-frame-pointer.
19451 * configure: Regenerate.
19452 * config/i386/i386-options.c (ix86_option_override_internal): Remove
19453 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
19454 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
19455 (USE_X86_64_FRAME_POINTER): Ditto.
19457 2019-05-06 Martin Liska <mliska@suse.cz>
19459 * config.gcc: Append to target_gtfiles and fix indentation.
19461 2019-05-06 Richard Biener <rguenther@suse.de>
19463 PR tree-optimization/90358
19464 * tree-vect-stmts.c (get_group_load_store_type): Properly
19465 detect unused upper half of load.
19466 (vectorizable_load): Likewise.
19468 2019-05-06 Richard Biener <rguenther@suse.de>
19470 PR tree-optimization/88828
19471 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
19472 (simplify_vector_constructor): ...here. Handle constants in
19475 2019-05-06 Richard Biener <rguenther@suse.de>
19477 PR tree-optimization/90328
19478 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
19479 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
19480 is valid in the loop nest before using it.
19481 (initialize_data_dependence_relation): Adjust.
19482 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
19483 loop as loop-nest to dr_may_alias_p.
19485 2019-05-06 Richard Biener <rguenther@suse.de>
19487 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
19489 2019-05-06 Richard Biener <rguenther@suse.de>
19491 PR tree-optimization/90316
19492 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
19493 compute target on demand.
19494 (get_continuation_for_phi): Remove code walking stmts to
19495 get to a target virtual operand which could end up being
19498 2019-05-06 Martin Liska <mliska@suse.cz>
19501 * config/i386/i386-options.c (ix86_option_override_internal): Error only
19502 when -mabi is selected to a non-default version.
19504 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
19505 Martin Liska <mliska@suse.cz>
19507 * Makefile.in: Add lto-dump.texi.
19508 * cgraph.h: Add new functions get_visibility_string and
19509 get_symtab_type_string.
19510 * doc/gcc.texi: Include lto-dump section.
19511 * doc/lto-dump.texi: New file.
19512 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
19513 (parse_dump_option): Factor out this function.
19514 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
19515 (parse_dump_option): Export the function.
19516 * symtab.c (symtab_node::get_visibility_string): New function.
19517 (symtab_node::get_symtab_type_string): Likewise.
19519 2019-05-06 Martin Liska <mliska@suse.cz>
19521 * config/i386/i386-builtins.c: New file.
19522 * config/i386/i386-builtins.h: New file.
19523 * config/i386/i386-expand.c: New file.
19524 * config/i386/i386-expand.h: New file.
19525 * config/i386/i386-features.c: New file.
19526 * config/i386/i386-features.h: New file.
19527 * config/i386/i386-options.c: New file.
19528 * config/i386/i386-options.h: New file.
19529 * config.gcc: Add new files into extra_objs and
19531 * config/i386/i386.c: Split content of the file
19532 into newly introduced files.
19533 * config/i386/i386.h: Declare common variables
19535 * config/i386/t-i386: Define dependencies for new files.
19537 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
19540 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
19541 Restrict 'all' variant to 32-bit configurations.
19542 (unaligned_loadhiu): Likewise.
19543 (unaligned_storehi): Likewise.
19544 (unaligned_storesi): Likewise.
19545 (unaligned_loadhis): Disable when compiling for thumb1.
19547 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
19549 PR tree-optimization/90269
19550 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
19553 2019-05-03 Martin Liska <mliska@suse.cz>
19555 * hash-map.h: Add is_empty function.
19556 * hash-set.h: Likewise.
19557 * hash-table.h: Likewise.
19558 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
19559 elements () == 0 (and similar usages).
19560 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
19561 * gimplify.c (gimplify_bind_expr): Likewise.
19562 (gimplify_switch_expr): Likewise.
19563 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
19564 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
19565 * postreload-gcse.c (dump_hash_table): Likewise.
19566 (gcse_after_reload_main): Likewise.
19567 * predict.c (combine_predictions_for_bb): Likewise.
19568 * tree-parloops.c (reduction_phi): Likewise.
19569 (separate_decls_in_region): Likewise.
19570 (transform_to_exit_first_loop): Likewise.
19571 (gen_parallel_loop): Likewise.
19572 (gather_scalar_reductions): Likewise.
19573 (try_create_reduction_list): Likewise.
19574 * var-tracking.c (dump_vars): Likewise.
19575 (emit_notes_for_changes): Likewise.
19576 (vt_emit_notes): Likewise.
19578 2019-05-03 Richard Biener <rguenther@suse.de>
19580 PR tree-optimization/90316
19581 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
19584 2019-05-03 Richard Biener <rguenther@suse.de>
19586 * tree-vect-stmts.c (get_group_load_store_type): Avoid
19587 peeling for gaps by loading only lower halves of vectors
19589 (vectorizable_load): Likewise.
19591 2019-05-03 Richard Biener <rguenther@suse.de>
19593 PR middle-end/89518
19594 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
19596 2019-05-03 Richard Biener <rguenther@suse.de>
19598 PR middle-end/87314
19599 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
19600 Handle STRING_CST vs DECL or STRING_CST.
19602 2019-05-03 Richard Biener <rguenther@suse.de>
19604 PR tree-optimization/88963
19605 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
19606 vector loads feeding only BIT_FIELD_REFs to component
19607 loads. Rewrite stores fed by CONSTRUCTORs to component
19610 2019-05-03 Jakub Jelinek <jakub@redhat.com>
19612 * opts.h (finish_options): Remove lang_mask argument.
19613 (print_help, help_option_argument): Declare.
19614 * opts.c (print_help): Remove forward declaration, no longer static.
19615 (finish_options): Remove lang_mask argument, don't call print_help
19617 * opts-global.c (decode_options): Adjust finish_option caller, call
19620 PR tree-optimization/90303
19621 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
19622 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
19624 2019-05-03 Richard Biener <rguenther@suse.de>
19626 PR tree-optimization/89698
19627 * gimple-fold.c (canonicalize_constructor_val): Early out
19628 for constants, handle unfolded INTEGER_CSTs as they appear in
19629 C++ virtual table ctors.
19631 2019-05-03 Richard Biener <rguenther@suse.de>
19633 * passes.c (execute_function_todo): Remove dead code.
19635 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19637 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
19638 the internal register number, for any "real" register.
19640 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19642 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
19643 correct numbers for TFHAR, TFIAR, TEXASR.
19645 2019-05-02 Richard Biener <rguenther@suse.de>
19647 PR tree-optimization/89653
19648 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
19649 update-address-taken before the pass.
19650 * passes.def (pass_tree_loop_init): Put comment before it.
19652 2019-05-02 Richard Biener <rguenther@suse.de>
19654 PR tree-optimization/89509
19655 * tree-ssa-structalias.c (compute_dependence_clique): Look
19656 at the first subvar when determining whether it is restrict.
19658 2019-05-02 Richard Biener <rguenther@suse.de>
19660 PR tree-optimization/90273
19661 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
19662 useless debug stmts.
19664 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19666 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
19668 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
19670 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
19671 VEC_COND_EXPR be inserted to emulate a conditional internal function.
19672 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
19673 (vectorizable_reduction): Use the functions above to vectorize in a
19674 fully masked loop codes that don't have a conditional internal
19677 2019-05-02 Martin Liska <mliska@suse.cz>
19679 * cgraphclones.c: Call valid_attribute_p with 1 for
19681 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
19682 it's for target attribute.
19683 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
19684 Add new boolean argument.
19685 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
19687 (ix86_valid_target_attribute_tree): Pass target_clone_attr
19688 to ix86_valid_target_attribute_inner_p.
19689 (ix86_valid_target_attribute_p): Pass flags argument to
19690 ix86_valid_target_attribute_inner_p.
19691 (get_builtin_code_for_version): Use 0 as it's target attribute.
19693 2019-05-02 Martin Liska <mliska@suse.cz>
19695 * gcc.c (process_command): Add dummy file only
19697 * opts-global.c (decode_options): Pass lang_mask.
19698 * opts.c (print_help): New function.
19699 (finish_options): Print --help if help_option_argument
19701 (common_handle_option): Factor out content of OPT__help_
19703 * opts.h (finish_options): Add new argument.
19705 2019-05-02 Martin Liska <mliska@suse.cz>
19708 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
19709 With -minline-all-stringops use inline expansion using 4B loop.
19710 * doc/invoke.texi: Document the change of
19711 -minline-all-stringops.
19713 2019-05-01 Jeff Law <law@redhat.com>
19715 PR tree-optimization/88797
19716 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
19717 PHI feeds a conditional on the RHS of an assignment.
19719 2019-04-30 Andrew Waterman <andrew@sifive.com>
19720 Jim Wilson <jimw@sifive.com>
19722 * config/riscv/constraints.md (L): New.
19723 * config/riscv/predicates.md (lui_operand): New.
19724 (sfb_alu_operand): New.
19725 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
19726 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
19727 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
19728 * config/riscv/risc.md (type): Add sfb_alu.
19729 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
19730 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
19731 (branch_zero<mode>): Delete.
19732 (mov<mode>cc): New.
19733 (mov<GPR:mode><X:mode>cc): Likewise.
19734 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
19736 2019-04-30 Nathan Sidwell <nathan@acm.org>
19738 * tree.h (MARK_TS_EXP): New.
19740 2019-04-30 Martin Liska <mliska@suse.cz>
19742 * opts.c (enable_warning_as_error): Provide hints
19743 for unknown options.
19745 2019-04-30 Martin Liska <mliska@suse.cz>
19748 * doc/invoke.texi: Add missing dash for gas-locview-support
19749 and gno-as-locview-support.
19751 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19754 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
19755 whitespace at the start of target attribute string.
19757 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19760 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
19761 Define __ARM_FEATURE_ATOMICS.
19763 2019-04-30 Martin Liska <mliska@suse.cz>
19765 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
19766 into built_in_function enum. Remove code for endp == 2 and
19767 use BUILT_IN_* constants.
19768 (gimple_fold_builtin): Call the function with fcode.
19770 2019-04-30 Martin Liska <mliska@suse.cz>
19772 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
19773 DECL_FUNCTION_CODE into ix86_builtins enum before
19774 the switch statement.
19776 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19778 PR tree-optimization/89475
19779 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
19782 2019-04-30 Martin Liska <mliska@suse.cz>
19784 PR translation/90274
19785 * opts.c (print_filtered_help): Wrap string in _(...).
19787 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
19789 PR tree-optimization/90240
19791 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19793 PR tree-optimization/90078
19794 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19795 checks for infinite_cost overflow.
19797 2019-04-29 Jeff Law <law@redhat.com>
19799 * passes.def: Move -Wrestrict pass after copy propagation.
19801 2019-04-29 Maya Rashish <coypu@sdf.org>
19803 * config.gcc (default_gnu_indirect_function): Default to yes
19804 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
19805 sparc*-*-netbsd*, x86_64-*-netbsd*.
19807 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
19809 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
19810 where cond2 is NE_EXPR.
19811 (is_value_included_in): Update comment.
19813 2019-04-29 Richard Biener <rguenther@suse.de>
19815 PR tree-optimization/90278
19816 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
19817 EH on comparison simplification.
19819 2019-04-29 Jason Merrill <jason@redhat.com>
19821 PR c++/82081 - tail call optimization breaks noexcept
19822 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
19823 nothrow function to a might-throw function into a tail call.
19825 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
19827 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
19828 (DDR_INNER_LOOP): Likewise.
19829 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
19830 (initialize_data_dependence_relation): Likewise.
19831 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
19833 2019-04-29 Jakub Jelinek <jakub@redhat.com>
19835 PR rtl-optimization/90257
19836 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
19840 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19844 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
19847 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
19850 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
19852 * lra-spills.c (lra_final_code_change): Remove useless move insns.
19854 2019-04-29 Richard Biener <rguenther@suse.de>
19856 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
19859 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
19861 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
19862 varasm.h, and netbsd-protos.h.
19864 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
19867 * config/i386/i386-protos.h (ix86_data_alignment): Change
19868 the second argument type to unsigned int.
19869 * config/i386/i386.c (ix86_data_alignment): Change "align"
19870 argument type to unsigned int.
19872 2019-04-27 Martin Liska <mliska@suse.cz>
19874 PR middle-end/90258
19875 * opt-suggestions.c (option_proposer::build_option_suggestions):
19876 When get_valid_option_values returns empty values, add the
19877 misspelling candidate.
19879 2019-04-26 Jim Wilson <jimw@sifive.com>
19881 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
19883 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
19884 Pass orig_mode to riscv_build_integer.
19885 (riscv_split_integer): Pass mode to riscv_move_integer.
19886 (riscv_legitimize_const_move): Likewise.
19887 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
19888 promoted_mode. Replace force_reg call with code to load constant into
19889 promoted reg and then subreg it for the store.
19890 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
19891 riscv_move_integer.
19893 2018-04-26 Eugene Sharygin <eush@ispras.ru>
19895 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
19898 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
19900 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
19901 commentary about the encoding of precision.
19903 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
19905 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
19906 * config/i386/t-freebsd64: New file.
19907 * config.gcc: Add the t-freebsd64 for multilib support.
19909 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
19911 * doc/extend.texi (vector_size): Add missing comma after @xref.
19913 2019-04-25 Jakub Jelinek <jakub@redhat.com>
19915 * BASE-VER: Set to 10.0.0.
19917 2019-04-25 Richard Biener <rguenther@suse.de>
19919 PR middle-end/89765
19920 * gimplify.c (gimplify_expr): Avoid turning a lvalue
19921 VIEW_CONVERT_EXPR into one operating on an rvalue.
19923 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
19926 * config/i386/i386.c (feature_priority): Moved to file scope.
19927 (processor_features): Likewise.
19928 (processor_model): Likewise.
19929 (_arch_names_table): Likewise.
19930 (arch_names_table): Likewise.
19931 (_feature_list): Removed.
19932 (feature_list): Likewise.
19933 (_isa_names_table): Moved to file scope. Add priority.
19934 (isa_names_table): Likewise.
19935 (get_builtin_code_for_version): Replace feature_list with
19936 isa_names_table. Update error message for P_ZERO priority.
19938 2019-04-25 Richard Biener <rguenther@suse.de>
19940 * tree-pass.h (make_pass_phi_only_cprop): Remove.
19941 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
19943 2019-04-24 Jeff Law <law@redhat.com>
19945 PR tree-optimization/90037
19946 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
19947 * passes.def: Replace all instance of phi-only cprop with the
19948 lattice propagator. Move propagation pass from after erroneous
19949 path isolation to before erroneous path isolation.
19950 * tree-ssa-phionlycprop.c: Remove.
19952 2019-04-24 Richard Biener <rguenther@suse.de>
19954 PR middle-end/90213
19955 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
19956 by size and BITS_PER_UNIT on poly-wide-ints.
19958 2019-04-25 Richard Biener <rguenther@suse.de>
19960 PR middle-end/90194
19961 * match.pd: Add pattern to simplify view-conversion of an
19964 2019-04-24 Clement Chigot <clement.chigot@atos.net>
19966 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
19967 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
19968 for Go on 32 bit AIX.
19969 * config/rs6000/aix72.h: Likewise.
19971 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19974 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
19975 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
19977 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
19980 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
19981 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
19982 for restored hard frame pointer.
19983 (s390_sched_dependencies_evaluation): Implement new target hook.
19984 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
19986 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
19988 * config/arc/arc-options.def: Fix typos and spelling mistakes.
19989 * config/arc/arc.c (arc_init): Cleanup warning message.
19990 (arc_override_options): Likewise.
19992 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19995 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
19996 a register if both if_true and if_false are MEMs.
19998 PR tree-optimization/90208
19999 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
20000 after labels of new_bb, not before them.
20002 PR tree-optimization/90211
20003 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
20004 which are not SSA_NAMEs.
20006 2018-04-23 Sudakshina Das <sudi.das@arm.com>
20008 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
20010 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
20012 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
20014 PR rtl-optimization/87979
20015 * modulo-sched.c (sms_schedule): Start ii value "mii" should
20018 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
20020 PR rtl-optimization/84032
20021 * modulo-sched.c (ps_insn_find_column): Change condition so that
20022 branch will always be the last insn in a row inside partial
20025 2019-04-23 Richard Biener <rguenther@suse.de>
20028 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
20029 dest_single_pred_p argument.
20030 (remove_forwarder_block): Adjust.
20031 (remove_forwarder_block_with_phi): Likewise.
20033 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20034 Bernd Edlinger <bernd.edlinger@hotmail.de>
20035 Jakub Jelinek <jakub@redhat.com>
20038 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
20039 if used with general-regs-only.
20040 (arm_conditional_register_usage): Don't add non-general regs if
20042 (arm_valid_target_attribute_rec): Handle general-regs-only.
20043 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
20045 (TARGET_HARD_FLOAT_SUB): Define.
20046 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
20047 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
20048 (TARGET_REALLY_IWMMXT2): Likewise.
20049 * config/arm/arm.opt: Add -mgeneral-regs-only.
20050 * doc/extend.texi: Document ARM general-regs-only target.
20051 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
20053 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20055 PR tree-optimization/90078
20056 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
20057 checks for infinite_cost overflow.
20059 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20061 PR tree-optimization/90021
20062 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
20063 and check univariate against it.
20064 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
20065 * tree-data-ref.c (add_other_self_distances): Pass new argument.
20067 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
20071 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
20074 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
20077 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
20079 * lra-spills.c (lra_final_code_change): Remove useless move insns.
20081 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
20083 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
20084 names using operand format, rather than hard-wired.
20085 (speculation_barrier): Likewise.
20087 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
20089 PR tree-optimization/88055
20090 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
20091 (gen_one_condition): Use it if !HONOR_NANS.
20093 2019-04-19 Jakub Jelinek <jakub@redhat.com>
20095 PR middle-end/90139
20096 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
20097 assign_temp instead of gen_reg_rtx.
20099 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
20101 PR translation/90118
20102 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20103 Add missing space before %<.
20105 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
20107 PR rtl-optimization/87871
20108 * ira-lives.c (make_object_dead): Don't add conflicts to
20109 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
20111 2019-04-18 Martin Sebor <msebor@redhat.com>
20113 PR middle-end/89797
20114 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
20115 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
20116 assuming type size fits in SHWI.
20118 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
20121 * ipa-inline.c (flatten_function): New parameter UPDATE.
20122 (ipa_inline, early_inliner): Use it.
20124 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20126 * fold-const.c (int_const_binop): Return early on failure.
20128 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20130 PR middle-end/85164
20131 * combine.c (force_int_to_mode): Cast the argument rather than
20132 the result of known_alignment.
20133 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
20135 2019-04-18 Richard Biener <rguenther@suse.de>
20138 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
20140 (remove_forwarder_block): ... here.
20141 (remove_forwarder_block_with_phi): Also move debug stmts here.
20143 2019-04-18 Jakub Jelinek <jakub@redhat.com>
20145 PR translation/79183
20146 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
20147 inform where appropriate.
20149 2019-04-18 Richard Biener <rguenther@suse.de>
20151 * tree.c (get_qualified_type): Put found type variants at the
20152 head of the variant list.
20154 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20156 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
20158 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
20161 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
20162 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
20163 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
20164 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
20165 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
20167 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
20169 * ira-conflicts.c (print_allocno_conflicts): Always print something,
20170 even for allocno's with no conflicts.
20171 (print_conflicts): Print an extra newline.
20173 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20175 * auto-inc-dec.c (attempt_change): Set the alignment of the
20176 temporary memory to that of the original.
20178 2019-04-17 Joao Moreira <jmoreira@suse.de>
20180 * targhooks.c (default_print_patchable_function_entry): Emit
20181 __patchable_function_entries section with writable flags to allow
20182 relocation resolution.
20184 2019-04-17 Jonny Grant <jg@jguk.org>
20186 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
20188 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20190 PR middle-end/90095
20191 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
20192 on lowpart SUBREGs.
20194 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
20196 * config/arc/arc.c (arc_init): Format diagnostic string.
20197 (arc_override_options): Likewise.
20198 (check_if_valid_regno_const): Likewise.
20199 (arc_reorg): Likewise.
20201 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20204 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
20206 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
20208 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
20209 (*movdi_update1): Use Pmode.
20210 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
20211 (movdi_<mode>_update_stack): Rename to ...
20212 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
20214 (*movsi_update1): Use Pmode.
20215 (*movsi_update2): Use Pmode.
20216 (movsi_update): Rename to ...
20217 (movsi_<mode>_update): ... this. Use Pmode.
20218 (movsi_update_stack): Fix condition.
20219 (*movhi_update1): Use Pmode. Fix argument to
20220 avoiding_indexed_address_p.
20221 (*movhi_update2): Ditto.
20222 (*movhi_update3): Ditto.
20223 (*movhi_update4): Ditto.
20224 (*movqi_update1): Ditto.
20225 (*movqi_update2): Ditto.
20226 (*movqi_update3): Ditto.
20227 (*movsf_update1, *movdf_update1): Merge, rename to...
20228 (*mov<mode>_update1): This. Use Pmode. Fix argument to
20229 avoiding_indexed_address_p. Add "size" attribute.
20230 (*movsf_update2, *movdf_update2): Merge, rename to...
20231 (*mov<mode>_update2): This. Ditto.
20232 (*movsf_update3): Use Pmode. Fix argument to
20233 avoiding_indexed_address_p.
20234 (*movsf_update4): Ditto.
20235 (allocate_stack): Simplify condition. Adjust pattern names.
20237 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20240 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
20241 whitespace at the start of target attribute string.
20243 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
20246 * config/rs6000/power9.md: Add store forwarding bypass.
20248 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
20251 * valtrack.c (dead_debug_insert_temp): Reset debug references
20252 to the return value of a call being removed.
20254 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20256 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
20257 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
20258 implement target hook.
20259 (arc_memory_move_cost): New function.
20260 (TARGET_REGISTER_MOVE_COST): Define.
20261 (TARGET_MEMORY_MOVE_COST): Likewise.
20262 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
20263 (MEMORY_MOVE_COST): Likewise.
20265 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20267 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
20268 (sibcall_value_insn): Likewise.
20269 * config/arc/constraints.md (Rs5): Remove.
20271 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20273 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
20274 for last two fake registers.
20275 (arc_conditional_register_usage): Make sure fake frame and arg
20276 pointer regs are in general regs class.
20277 (FRAME_POINTER_MASK): Remove.
20278 (RETURN_ADDR_MASK): Remove.
20279 (arc_must_save_register): Use hard frame regnum.
20280 (frame_restore_reg): Use hard_frame_pointer_rtx.
20281 (arc_save_callee_saves): Likewise.
20282 (arc_restore_callee_saves): Likewise.
20283 (arc_save_callee_enter): Likewise.
20284 (arc_restore_callee_leave): Likewise.
20285 (arc_save_callee_milli): Likewise.
20286 (arc_eh_return_address_location): Likewise.
20287 (arc_check_multi): Use hard frame regnum.
20288 (arc_can_eliminate): Likewise.
20289 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
20290 for register allocator.
20291 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
20292 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
20293 (FRAME_POINTER_REGNUM): Change it to a fake register.
20294 (HARD_FRAME_POINTER_REGNUM): Defined.
20295 (ARG_POINTER_REGNUM): Change it to a new fake register.
20296 (ELIMINABLE_REGS): Update.
20297 (REGISTER_NAMES): Update names.
20298 * config/arc/arc.md (LP_START): Remove.
20299 (LP_END): Likewise.
20300 (shift_si3_loop): Update pattern.
20302 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20304 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
20305 to avoid delay slot scheduling.
20306 (arc_must_save_register): Don't save SP.
20307 * config/arc/arc.md (stack_tie): Remove.
20308 (UNSPEC_ARC_STKTIE): Likewise.
20310 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
20311 Shiva Chen <shiva0217@gmail.com>
20313 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
20314 code gen with large shift amount.
20316 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
20318 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
20321 2019-04-16 Jakub Jelinek <jakub@redhat.com>
20324 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
20325 print -m64/-mx32/-m32 if it is true.
20326 (ix86_debug_options, ix86_function_specific_print): Pass true as
20327 ADD_ABI_P to ix86_target_string.
20328 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
20329 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
20330 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
20332 PR rtl-optimization/90082
20333 * dce.c (can_delete_call): New function.
20334 (deletable_insn_p, mark_insn): Use it.
20336 PR tree-optimization/90090
20337 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
20339 (is_division_by_square): Likewise. Formatting fix.
20341 2019-04-16 Richard Biener <rguenther@suse.de>
20343 PR tree-optimization/56049
20344 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
20345 equality check if alias-set zero will prevail.
20347 2019-04-15 Jeff Law <law@redhat.com>
20349 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
20350 size and alignment as unsigned.
20352 2019-04-15 Richard Biener <rguenther@suse.de>
20355 * tree-loop-distribution.c (destroy_loop): Preserve correct
20358 2019-04-15 Richard Biener <rguenther@suse.de>
20360 PR tree-optimization/90071
20361 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
20362 abnormal operands from def stmts.
20364 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
20366 PR rtl-optimization/89794
20367 * combine.c (count_auto_inc): New function.
20368 (try_combine): Count how many auto_inc expressions there were in the
20369 original instructions. Ensure we have the same number in the new
20370 instructions. Remove the code that tried to ensure auto_inc side
20371 effects on i1 and i0 are not lost.
20373 2019-04-15 Richard Biener <rguenther@suse.de>
20376 * tree.h (auto_var_p): Declare.
20377 * tree.c (auto_var_p): New function, split out from ...
20378 (auto_var_in_fn_p): ... here.
20379 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
20381 (new_var_info): Initialize it.
20382 (set_uids_in_ptset): Also set the shadow variable uid if required.
20383 (ipa_pta_execute): Postprocess points-to solutions assigning
20384 shadow variable uids for locals that may reach their containing
20385 function recursively.
20386 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
20387 assert but instead check whether the points-to solution is
20390 2019-04-15 Martin Jambor <mjambor@suse.cz>
20393 * cgraph.c (clone_of_p): Loop over clone chain for each step in
20396 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20398 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
20400 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20401 Kito Cheng <kito.cheng@gmail.com>
20402 Shiva Chen <shiva0217@gmail.com>
20404 * config/nds32/nds32-md-auxiliary.c
20405 (nds32_legitimize_pic_address): Use new PIC pattern.
20406 (nds32_legitimize_tls_address): Use new TLS pattern.
20407 (nds32_output_symrel): New.
20408 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
20409 (nds32_alloc_relax_group_id): Ditto.
20410 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
20411 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
20413 (nds32_group_tls_insn): Ditto.
20414 (nds32_group_float_insns): Ditto.
20415 * config/nds32/nds32.md (tls_le): New.
20418 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
20420 * configure: Add nds32 target for dwarf2 debug_line checking.
20421 * configure.ac: Regenerated.
20423 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
20426 * ipa-devirt.c (skip_in_fields_list_p): New.
20427 (odr_types_equivalent_p): Use it.
20429 2019-04-13 Jakub Jelinek <jakub@redhat.com>
20432 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
20433 instead of strncmp when checking for thumb and arm. Formatting fixes.
20435 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
20437 * doc/install.texi: Document --with-target-system-zlib.
20439 2019-04-12 Martin Sebor <msebor@redhat.com>
20445 * targhooks.c (default_vector_alignment): Avoid assuming
20446 argument fits in SHWI.
20447 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
20448 a shift expression.
20449 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
20451 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20453 PR rtl-optimization/89965
20454 * dce.c: Include rtl-iter.h.
20455 (struct check_argument_load_data): New type.
20456 (check_argument_load): New function.
20457 (find_call_stack_args): Check for loads from stack slots still tracked
20458 in sp_bytes and punt if any is found.
20460 * config/mips/loongson-mmiintrin.h: Fix up #error message.
20462 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
20464 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
20465 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
20467 2019-04-12 Martin Liska <mliska@suse.cz>
20469 PR middle-end/89970
20470 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
20472 (separate_attrs): Handle multiple 'default's.
20473 (expand_target_clones): Rework error handling code.
20475 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
20478 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
20479 mode of vector rather than mode of destination for move instruction.
20480 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
20481 Use QI inner mode with V16QI vector mode.
20483 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20486 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
20487 "invalid %%t operand" in output_operand_lossage message.
20489 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
20491 * config/s390/predicates.md (permute_pattern_operand): New
20493 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
20494 operand for the permute pattern.
20495 ("*vec_perm<mode>"): New insn definition.
20496 ("bswap<mode>"): Generate the permute pattern operand in the
20497 expander and perform the operand reloads for pre arch13 level
20499 ("*bswap<mode>_emu"): Rename to ...
20500 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
20501 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
20502 Add the USE operand for the permute pattern.
20503 ("*vec_set_bswap_vec<mode>"): Likewise.
20505 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20508 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
20509 and gcc_unreachable if it fails, just call tree_to_uhwi which
20510 verifies that too. Test TREE_CHAIN instead of list_length > 1.
20511 Start warning message with a lower-case letter. Formatting fixes.
20513 PR rtl-optimization/90026
20514 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
20515 successors, look for BARRIERs inside of the whole BB_FOOTER chain
20516 rather than just at the start of it. If e->src BB_FOOTER is not NULL
20517 in cfglayout mode, use emit_barrier_after_bb.
20519 2018-04-11 Steve Ellcey <sellcey@marvell.com>
20521 PR rtl-optimization/87763
20522 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
20525 2019-04-11 Tom de Vries <tdevries@suse.de>
20527 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
20528 max macro using statement expression.
20530 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
20532 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
20533 * xcoffout.c (xcoff_private_rodata_section_name): Define.
20534 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
20535 read_only_private_data_section using xcoff_private_rodata_section_name.
20536 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
20538 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
20541 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
20543 2019-04-11 Jakub Jelinek <jakub@redhat.com>
20545 PR rtl-optimization/89965
20546 * dce.c (sp_based_mem_offset): New function.
20547 (find_call_stack_args): Use sp_based_mem_offset.
20549 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
20551 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
20553 2019-04-11 Richard Biener <rguenther@suse.de>
20555 PR tree-optimization/90020
20556 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
20557 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
20558 * tree-ssa-pre.c (compute_avail): Use it to not put
20559 possibly trapping references after a call that might not
20560 return into EXP_GEN.
20561 * gcse.c (compute_hash_table_work): Do not elide
20562 marking a block containing a call if the call might not
20565 2019-04-11 Richard Biener <rguenther@suse.de>
20567 PR tree-optimization/90018
20568 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
20569 Test both SLP and interleaving variants.
20571 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
20573 * config/s390/8561.md: New file.
20574 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20575 Add arch13 cpu model.
20576 * config/s390/s390-opts.h (enum processor_type): Likewise.
20577 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
20578 (s390_get_unit_mask): Likewise.
20579 (s390_is_fpd): Likewise.
20580 (s390_is_fxd): Likewise.
20581 * config/s390/s390.h (s390_tune_attr): Likewise.
20582 * config/s390/s390.md: Include arch13 pipeline description.
20583 * config/s390/s390.opt: Add arch13.
20585 2018-04-10 Steve Ellcey <sellcey@marvell.com>
20587 PR rtl-optimization/87763
20588 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
20590 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
20592 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
20594 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
20595 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
20596 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
20597 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
20599 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
20601 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
20602 "Although" in -fipa-icf documentation.
20604 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
20605 of using multiple -g options.
20607 2019-04-10 Martin Liska <mliska@suse.cz>
20609 PR gcov-profile/89959
20610 * doc/gcov.texi: Make documentation of -x option
20613 2019-04-10 Richard Biener <rguenther@suse.de>
20615 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
20617 (DR_GROUP_SAME_DR_STMT): Remove.
20618 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
20619 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
20620 replace with assert.
20621 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
20622 (vect_record_grouped_load_vectors): Remove unreachable code.
20624 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
20627 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
20628 obsolete reference to N.
20630 2019-04-10 Jakub Jelinek <jakub@redhat.com>
20632 PR middle-end/90025
20633 * expr.c (store_expr): Set properly size on the MEM passed to
20637 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
20638 with strlen in between hostsz-3 and hostsz-1 inclusive when no
20639 translation is needed, and when translation is needed, only append
20640 ... if the string length is hostsz or more bytes long. Avoid using
20643 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
20646 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
20647 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
20649 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
20650 differences directly.
20651 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
20653 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20655 PR translation/90011
20656 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
20658 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
20660 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
20661 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
20662 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
20663 trailing space from -gsplit-dwarf diagnostics.
20665 PR tree-optimization/89998
20666 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
20667 instead of integer_type_node if possible, don't add ranges if return
20668 type is not compatible with int.
20669 * gimple-fold.c (gimple_fold_builtin_sprintf,
20670 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
20673 2019-04-09 Martin Liska <mliska@suse.cz>
20675 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
20676 * doc/install.texi: Document the new config.
20678 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
20680 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
20681 use gimple_expr_type for load and store calls. Skip over the
20682 condition argument in a conditional internal function.
20683 Protect use of TREE_INT_CST_LOW.
20685 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20688 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
20689 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
20690 trailing period from it too.
20692 2019-04-08 wu yuan <wuyuan5@huawei.com>
20694 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
20695 * config/aarch64/aarch64.md : Add "tsv110.md"
20696 * config/aarch64/tsv110.md: New file.
20698 2019-04-08 Richard Biener <rguenther@suse.de>
20700 PR tree-optimization/90006
20701 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
20704 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
20707 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
20709 (fma_root_node): Likewise.
20710 (func_fma_steering): Likewise.
20712 2019-04-08 Jakub Jelinek <jakub@redhat.com>
20714 PR rtl-optimization/89865
20715 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
20717 PR rtl-optimization/89865
20718 * config/i386/i386.md
20719 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
20720 numbers not to clash with the additional operands[4].
20721 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
20722 with extra register copy in the middle.
20724 2019-04-08 Martin Liska <mliska@suse.cz>
20726 PR gcov-profile/89961
20727 * doc/gcov.texi: Document data_file.
20728 * gcov.c (generate_results): Add data_info into JSON output.
20730 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
20732 PR tree-optimization/89725
20733 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
20734 loop's chrec as invariant symbol.
20735 * tree-chrec.h (chrec_contains_symbols): New parameter.
20736 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
20737 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
20738 function of loops not in DDR's loop_nest.
20739 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
20741 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
20744 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
20747 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
20750 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
20751 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
20753 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
20755 * sched-deps.c (sched_macro_fuse_insns): Check return value of
20756 targetm.fixed_condition_code_regs.
20758 2019-04-05 Richard Biener <rguenther@suse.de>
20762 * tree-cfgcleanup.c (remove_forwarder_block): Always move
20763 debug bind stmts but reset them if they are not valid at the
20766 2019-04-05 Martin Liska <mliska@suse.cz>
20768 PR translation/89936
20769 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
20770 order to wrap keywords or arguments.
20771 * collect2.c (main): Likewise.
20772 (scan_prog_file): Likewise.
20773 (scan_libraries): Likewise.
20774 * common/config/riscv/riscv-common.c
20775 (riscv_subset_list::parsing_subset_version): Likewise.
20776 (riscv_subset_list::parse_std_ext): Likewise.
20777 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20779 * config/arm/arm.c (arm_option_override): Likewise.
20780 * config/cris/cris.c (cris_print_operand): Likewise.
20781 * config/darwin-c.c (darwin_pragma_options): Likewise.
20782 (darwin_pragma_unused): Likewise.
20783 (darwin_pragma_ms_struct): Likewise.
20784 * config/ft32/ft32.c (ft32_print_operand): Likewise.
20785 * config/i386/i386.c (print_reg): Likewise.
20786 (ix86_print_operand): Likewise.
20787 * config/i386/xm-djgpp.h: Likewise.
20788 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
20789 * config/m32c/m32c.c (m32c_option_override): Likewise.
20790 * config/msp430/msp430.c (msp430_option_override): Likewise.
20791 * config/nds32/nds32.c (nds32_option_override): Likewise.
20792 * config/nvptx/mkoffload.c (main): Likewise.
20793 * config/rx/rx.c (rx_print_operand): Likewise.
20794 (valid_psw_flag): Likewise.
20795 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
20796 (vms_pragma_nomember_alignment): Likewise.
20797 (vms_pragma_extern_model): Likewise.
20798 * lto-wrapper.c (compile_offload_image): Likewise.
20799 * omp-offload.c (oacc_parse_default_dims): Likewise.
20800 * symtab.c (symtab_node::verify_base): Likewise.
20801 * tlink.c (recompile_files): Likewise.
20802 (start_tweaking): Likewise.
20803 * tree-profile.c (parse_profile_filter): Likewise.
20805 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
20807 PR tree-optimization/89956
20808 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
20809 multiple negates of the same value.
20811 2019-04-04 Martin Sebor <msebor@redhat.com>
20813 PR middle-end/89957
20814 PR middle-end/89911
20815 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
20816 have the same precision since the function crashes otherwise.
20817 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
20818 has non-zero arguments.
20820 2019-04-04 Martin Sebor <msebor@redhat.com>
20822 PR middle-end/89934
20823 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
20824 out if the number of arguments is less than expected.
20826 2019-04-04 Jeff Law <law@redhat.com>
20828 PR rtl-optimization/89399
20829 * ree.c (combine_set_extension): Use single_set rather than
20830 digging into PATTERN for items on the candidate list.
20831 (combine_reaching_defs): Likewise.
20833 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
20835 PR rtl-optimization/46590
20836 * loop-invariant.c (find_defs): Move df_remove_problem and
20837 df_process_deferred_rescans to move_invariants.
20838 Move df_live_add_problem and df_live_set_all_dirty calls
20839 to move_invariants.
20840 (move_invariants): Likewise.
20841 (move_loop_invariants): Likewise, making the df_live calls
20842 conditional on -O. Remove the problem again if we added it
20845 2019-04-03 qing zhao <qing.zhao@oracle.com>
20847 PR tree-optimization/89730
20848 * ipa-inline.c (can_inline_edge_p): Delete the checking for
20849 -flive-patching=inline-only-static.
20850 (can_inline_edge_by_limits_p): Add the checking for
20851 -flive-patching=inline-only-static and grant always_inline
20852 even when -flive-patching=inline-only-static is specified.
20854 2019-04-03 Jeff Law <law@redhat.com>
20856 PR rtl-optimization/81025
20857 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
20859 2019-04-03 Richard Biener <rguenther@suse.de>
20861 PR tree-optimization/84101
20862 * tree-vect-stmts.c: Include explow.h for hard_function_value,
20863 regs.h for hard_regno_nregs.
20864 (cfun_returns): New helper.
20865 (vect_model_store_cost): When vectorizing a store to a decl
20866 we return and the function ABI returns in a multi-reg location
20867 account for the possible spilling that will happen.
20869 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
20871 * config/s390/s390.c (s390_legitimate_address_p): Reject long
20872 displacement addresses for vector mode operands.
20874 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
20876 * config/arc/arc.c (GMASK_LEN): Define.
20877 (arc_restore_callee_saves): Restore first blink when
20880 2019-04-03 Sudakshina Das <sudi.das@arm.com>
20882 * doc/extend.texi: Add deprecated comment on sign-return-address
20883 function attribute and add mbranch-protection.
20884 * doc/invoke.texi: Add bti to the options for mbranch-protection.
20886 2019-04-03 Richard Biener <rguenther@suse.de>
20889 * lto-wrapper.c (run_gcc): Avoid implicit rules making
20890 the all target phony.
20892 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
20896 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
20897 Return false for variable DImode shifts.
20898 (dimode_scalar_chain::compute_convert_gain): Do not handle
20899 register count operand in variable DImode shifts.
20900 (dimode_scalar_chain::make_vector_copies): Remove support to copy
20901 count argument of a variable shift instruction to a vector register.
20902 (dimode_scalar_chain::convert_reg): Remove support to convert
20903 count argument of a variable shift instruction.
20905 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20907 PR rtl-optimization/84206
20908 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
20909 iterating over loop headers.
20911 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20913 PR rtl-optimization/85876
20914 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
20915 beyond the original fence.
20917 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
20919 * config.gcc: Mark spu* targets as deprecated/obsolete.
20921 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20923 * config/s390/s390-builtin-types.def: New builtin function type
20924 definitions. Remove unused types.
20925 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
20926 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
20927 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
20928 overloaded builtins.
20929 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
20930 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
20931 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
20932 (vec_double, vec_signed, vec_unsigned): Define to use the new
20933 overloaded builtins.
20934 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
20937 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20939 * config/s390/s390-builtin-types.def: New builtin function type
20941 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
20942 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
20943 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
20944 (s390_vstrszh, s390_vstrszf): New low-level builtins.
20945 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
20946 constant definitions.
20947 * config/s390/vecintrin.h (vec_search_string_cc)
20948 (vec_search_string_until_zero_cc): New builtin name definitions.
20949 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
20951 ("vec_vstrs<mode>"): New insn definition.
20953 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20955 * config/s390/s390-builtin-types.def: Add new builtin function
20957 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
20958 New overloaded builtins.
20959 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
20961 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
20962 (UNSPEC_VEC_SLDBYTE): ... this.
20963 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
20964 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
20966 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
20967 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
20968 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
20970 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20972 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
20973 New insn definition.
20974 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
20975 * config/s390/vector.md (V_HW_HSD): ... here.
20977 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20979 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
20980 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
20981 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
20982 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
20983 New insn definitions.
20985 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20987 * config/s390/s390-builtin-types.def: Add new builtin function type.
20988 * config/s390/s390-builtins.def: Add overloaded builtin
20989 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
20990 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
20991 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
20992 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
20993 ("eltswap<mode>"): New expander.
20994 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
20997 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20999 * config/s390/s390-builtin-types.def: Add new builtin function types.
21000 * config/s390/s390-builtins.def: Add overloaded builtin
21001 s390_vec_revb. Add low-level builtins for vlbr and vstbr
21003 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
21004 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
21005 ("bswap<mode>"): New expander.
21006 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
21008 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21010 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
21011 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
21012 vector builtin version number in __VEC__.
21014 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21016 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
21018 (SFSI): New mode attribute.
21019 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
21020 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
21022 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
21023 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
21024 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
21025 ("floatsi<mode>2"): Add wcefb instruction.
21027 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21029 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
21030 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
21032 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
21033 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
21034 support 32 bit fp-int conversions. Rename to ...
21035 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
21036 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
21037 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
21038 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
21041 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21043 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
21044 if-then-else constructs if we can use the select instruction.
21045 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
21047 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21049 * config/s390/s390.md ("*popcountdi_arch13_cc")
21050 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
21052 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
21053 Append _z196 to make it ...
21054 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
21055 ("popcounthi2_z196"): ... this.
21056 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
21057 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
21059 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21061 * config/s390/s390.c (s390_canonicalize_comparison): Convert
21062 certain compares for arch13 in order to make use of the condition
21063 code result produced by the new instructions.
21064 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
21065 nxrk, and nxgrk instruction patterns.
21066 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
21067 (inv_no): Add new code iterator together with some attributes.
21068 ("*andc_split_<mode>"): Disable splitter for arch13.
21069 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
21070 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
21071 ("*<ANDOR:bitops_name>c<GPR:mode>")
21072 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
21073 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
21074 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
21075 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
21077 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21079 * common/config/s390/s390-common.c (processor_flags_table): New
21081 * config.gcc: Support arch13 with the --with-arch= configure flag.
21082 * config/s390/driver-native.c (s390_host_detect_local_cpu):
21083 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
21084 * config/s390/s390.c (s390_get_sched_attrmask)
21085 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
21086 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
21087 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
21088 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
21089 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
21091 * config/s390/s390.opt: Support arch13 as processor type in
21092 command line options.
21094 2019-04-02 Martin Liska <mliska@suse.cz>
21096 PR translation/89912
21097 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
21098 Fix param description of graphite-max-arrays-per-scop.
21100 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
21102 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
21103 (ASAN_CC1_SPEC): Use it in 64-bit mode.
21104 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
21106 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21108 PR rtl-optimization/85412
21109 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
21110 sel_sched_region_1, not after.
21112 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21114 PR rtl-optimization/86928
21115 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
21116 compute_live if necessary.
21117 (sel_redirect_edge_and_branch): Likewise.
21119 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
21121 PR rtl-optimization/89865
21122 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
21123 register if it is a part of small class.
21125 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21127 PR rtl-optimization/87273
21128 * sel-sched-ir.c (merge_fences): Remove assert.
21130 2019-04-01 Richard Biener <rguenther@suse.de>
21132 PR tree-optimization/46590
21133 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
21134 (dom_walker::m_reachability): Add in place of...
21135 (dom_walker::m_skip_unreachable_blocks): ...this.
21136 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
21137 Move complex initialization ...
21138 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
21139 lazily and initialize edge flags on each invocation.
21140 (dom_walker::bb_reachable): Use m_reachability.
21142 2019-04-01 Martin Liska <mliska@suse.cz>
21145 * opt-suggestions.c (option_proposer::build_option_suggestions):
21146 Add variant without any argument in order to provide better
21149 2019-04-01 Richard Biener <rguenther@suse.de>
21152 * gimple.c: Include langhooks.h.
21153 (gimple_get_alias_set): Treat enumeral types as the underlying
21156 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
21157 Eric Botcazou <ebotcazou@adacore.com>
21159 PR rtl-optimization/89862
21160 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
21161 that operates on the full registers for WORD_REGISTER_OPERATIONS
21164 2019-03-29 Jim Wilson <jimw@sifive.com>
21166 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
21167 Clear MASK_RVC and then set if C subset supported.
21169 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21172 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
21173 non-addressable complit into its initializer if it is volatile.
21175 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
21177 * opts-common.c (integral_argument): Set errno properly in one case.
21179 2019-03-29 Martin Liska <mliska@suse.cz>
21181 * doc/invoke.texi: Remove -Wchkp from documentation.
21183 2019-03-29 Martin Liska <mliska@suse.cz>
21185 * dbgcnt.c (print_limit_reach): New function.
21188 2019-03-29 Martin Liska <mliska@suse.cz>
21190 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
21191 (dbg_cnt_process_opt): Parse first tokens aas
21192 dbg_cnt_process_single_pair is also using strtok.
21194 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21196 PR rtl-optimization/87485
21197 * function.c (expand_function_end): Move stack_protect_epilogue
21198 before loading of return value into hard register(s).
21200 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21202 PR middle-end/89621
21203 * tree-inline.h (struct copy_body_data): Add
21204 dont_remap_vla_if_no_change flag.
21205 * tree-inline.c (remap_type_3, remap_type_2): New functions.
21206 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
21207 and remap_type_2 returns false.
21208 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
21209 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
21210 only from where it is copied to nested contexts.
21212 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21215 * config/i386/i386.md (RMW operation with LEA peephole):
21216 Use LEAMODE mode attribute instead of SWI mode iterator for
21219 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21222 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
21223 Also process XEXP (src, 0) of a shift insn.
21225 2019-03-28 David Malcolm <dmalcolm@redhat.com>
21227 PR middle-end/89725
21228 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
21229 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
21231 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21233 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
21235 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
21236 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
21237 immediately after first one with df_analyze in between, but rather
21238 process all bbs, queueing ones that need second pass in a worklist,
21239 df_analyze, process queued debug insn changes and if second pass is
21240 needed, process bbs from worklist, df_analyze, process queued debug
21243 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
21244 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
21245 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
21247 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
21250 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
21253 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
21256 * config/i386/i386.c (ix86_function_value_1): Call the newly added
21257 function for 32-bit MS_ABI.
21258 (function_value_ms_32): New function.
21260 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
21262 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
21263 (movdi): Call gen_movdi_symbol_save_scc.
21264 (gen_movdi_symbol_save_scc): New insn and split.
21266 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
21268 PR rtl-optimization/89313
21269 * function.c (matching_constraint_num): New static function.
21270 (match_asm_constraints_1): Use it. Fixup white space and comment.
21271 Don't replace inputs with non-matching constraints which conflict
21272 with early clobber outputs.
21274 2019-03-27 Jeff Law <law@redhat.com>
21276 PR rtl-optimization/87761
21277 PR rtl-optimization/89826
21278 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
21280 (pass_cprop_hardreg::execute): Call df_analyze after adding the
21281 note problem to get REG_DEAD/REG_UNUSED notes updated.
21283 2019-03-27 Richard Biener <rguenther@suse.de>
21285 PR tree-optimization/89463
21286 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
21287 queue edges to remove.
21288 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
21289 dead stmts. Delay edge removal until PHIs are removed to
21290 make debug-stmt creation not confused by seemingly degenerate
21293 2019-03-27 Alan Modra <amodra@gmail.com>
21295 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
21297 * config/rs6000/darwin.h: Likewise.
21298 * config/rs6000/rs6000.c: Likewise.
21300 2019-03-27 Alan Modra <amodra@gmail.com>
21302 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
21303 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
21305 2019-03-26 Andrew Waterman <andrew@sifive.com>
21306 Jim Wilson <jimw@sifive.com>
21308 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
21309 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
21310 (generic_idivdi, generic_fmul_single, generic_fmul_double)
21311 (generic_fdiv, generic_fsqrt): Add check for generic tune.
21312 (generic_alu): Add auipc to type list.
21313 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
21314 (riscv_microarchitecture): Declare.
21315 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
21316 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
21318 (riscv_microarchitecture): New.
21319 (sifive_7_tune_info): New.
21320 (riscv_cpu_info_table): Add microarchitecture value for rocket and
21321 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
21323 (riscv_store_data_bypass_p): New.
21324 (riscv_option_override): Set riscv_microarchitecture from
21325 cpu->microarchitecture.
21326 * config/riscv/riscv.md: Include sifive-7.md.
21329 (auipc<mode>): Change type to auipc.
21330 (restore_stack_nonlocal): New.
21331 * config/riscv/sifive-7.md: New.
21332 * doc/invoke.texi (RISC-V Options): Update mtune docs.
21334 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
21337 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
21338 Also process XEXP (src, 0) of a shift insn.
21340 2019-03-26 Richard Biener <rguenther@suse.de>
21342 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
21343 (copy_debug_stmt): Likewise.
21344 (expand_call_inline): Likewise.
21345 (copy_bb): Avoid redundant lookup & set of gimple_block.
21346 * gimple-low.c (lower_gimple_return): Likewise.
21347 (lower_builtin_setjmp): Likewise.
21349 2019-03-26 Jakub Jelinek <jakub@redhat.com>
21351 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
21352 is constant 0, turn into static const data member initialized to false.
21353 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
21354 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
21356 2019-03-26 Jason Merrill <jason@redhat.com>
21357 Jakub Jelinek <jakub@redhat.com>
21359 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
21361 (mem_alloc_description::release_object_overhead): Fix comment typos.
21362 * hash-table.h (hash_table::~hash_table): Call
21363 release_instance_overhead only if m_entries is non-NULL, otherwise
21364 call unregister_descriptor.
21366 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
21368 PR tree-optimization/81740
21369 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
21370 In case of outer loop vectorization, check for backward dependence
21371 at the inner loop if outer loop dependence is reversed.
21373 2019-03-26 Alan Modra <amodra@gmail.com>
21375 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
21376 rs6000_vector_mem init. Correct wI and wJ comment.
21378 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
21380 PR rtl-optimization/88347
21381 PR rtl-optimization/88423
21382 * sched-deps.c (sched_analyze_insn): Take into account that for
21383 tablejumps the barrier appears after a label and a jump_table_data.
21385 2019-03-25 Martin Sebor <msebor@redhat.com>
21388 * c-common.c (check_user_alignment): Rename local. Correct maximum
21389 alignment in diagnostic. Avoid assuming argument fits in SHWI,
21390 convert it to UHWI when it fits.
21392 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
21395 * dwarf2out.c (premark_used_variables): New function.
21396 (prune_unused_types_walk): Do not mark not premarked external
21398 (prune_unused_types): Call premark_used_variables.
21400 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
21402 PR rtl-optimization/89676
21403 * lra-constraints.c (curr_insn_transform): Do match reload for
21404 early clobbers when the match was successful only for different
21407 2019-03-25 Martin Sebor <msebor@redhat.com>
21409 * doc/extend.texi (Common Type Attributes): Document vector_size.
21410 (Common Variable Attributes): Mention size constraint. Correct
21412 (Vector Extensions): Use @dfn when defining bas type. Clarify
21413 base type and size constraints.
21415 2019-03-25 Richard Biener <rguenther@suse.de>
21417 PR tree-optimization/89789
21418 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
21419 changes from non-undefined back to undefined.
21421 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
21423 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
21424 heap string and a gc string, but since this variable is unknown to
21425 ggc the gc string might get reused and corrupted. Fixed by always
21426 using a heap string.
21428 2019-03-25 Richard Biener <rguenther@suse.de>
21430 PR tree-optimization/89779
21431 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
21432 to remove IV defs, delay actual removal.
21433 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
21434 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
21435 very end, properly also reset loop control IV information.
21437 2019-03-25 Richard Biener <rguenther@suse.de>
21439 PR tree-optimization/89802
21440 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
21441 move EH data to folded stmt.
21443 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21445 * config/s390/s390-builtin-types.def: Remove few unused types and
21446 fix sort order for others.
21448 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21450 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
21451 expected and found types with -mdebug during builtin matching.
21453 2019-03-25 Richard Biener <rguenther@suse.de>
21455 PR middle-end/89790
21456 * fold-const.c (operand_equal_p): Revert last change with
21459 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
21461 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
21462 notes for the result of the __tls_get_addr calls.
21463 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
21465 2019-03-24 Jeff Law <law@redhat.com>
21467 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
21469 PR rtl-optimization/87761
21470 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
21471 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
21473 (pass_cprop_hardreg::execute): Add df note problem and defer insn
21474 rescans. Reprocess blocks as needed, calling df_analyze before
21475 reprocessing. Always call df_analyze before fixing up debug bind
21478 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
21480 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
21483 2019-03-22 Andrew Pinski <apinski@marvell.com>
21485 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
21486 attrribute for uxtw.
21488 2019-03-26 Jeff Law <law@redhat.com>
21490 PR rtl-optimization/87761
21491 * config/mips/mips-protos.h (mips_split_move): Add new argument.
21492 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
21493 (mips_split_move): Accept new INSN argument. Try to forward SRC
21494 into the next instruction.
21495 (mips_split_move_insn): Pass INSN through to mips_split_move.
21497 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
21499 PR rtl-optimization/89676
21500 * lra-constraints.c (curr_insn_transform): Do match reload for
21501 early clobbers even if the match was successful.
21503 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21506 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
21508 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
21510 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
21512 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21514 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
21515 <avx512>_fmsub_<mode>_mask3<round_name>,
21516 <avx512>_fnmadd_<mode>_mask3<round_name>,
21517 <avx512>_fnmsub_<mode>_mask3<round_name>,
21518 avx512f_vmfmadd_<mode>_mask3<round_name>,
21519 avx512f_vmfmsub_<mode>_mask3<round_name>,
21520 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
21521 instead of register_operand and %v instead of v for match_operand 1.
21522 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
21523 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
21524 <round_nimm_predicate> instead of register_operand and %v instead of v
21525 for match_operand 1.
21527 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
21528 <avx512>_fmadd_<mode>_mask3<round_name>,
21529 <avx512>_fmsub_<mode>_mask<round_name>,
21530 <avx512>_fmsub_<mode>_mask3<round_name>,
21531 <avx512>_fnmadd_<mode>_mask<round_name>,
21532 <avx512>_fnmadd_<mode>_mask3<round_name>,
21533 <avx512>_fnmsub_<mode>_mask<round_name>,
21534 <avx512>_fnmsub_<mode>_mask3<round_name>,
21535 <avx512>_fmaddsub_<mode>_mask<round_name>,
21536 <avx512>_fmaddsub_<mode>_mask3<round_name>,
21537 <avx512>_fmsubadd_<mode>_mask<round_name>,
21538 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
21539 <round_nimm_predicate> instead of nonimmediate_operand.
21540 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
21541 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
21542 Use register_operand instead of <round_nimm_predicate> for the
21543 operand that needs to match output.
21544 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
21545 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
21546 Likewise. Formatting fixes.
21549 * config/i386/i386.c (enum ix86_builtins): Remove
21550 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
21551 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
21552 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
21553 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
21554 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
21555 __builtin_ia32_vfmsubss3_mask3): New builtins.
21556 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
21557 avx512f_vmfmadd_<mode>_mask3<round_name>,
21558 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
21559 *avx512f_vmfmsub_<mode>_mask<round_name>,
21560 avx512f_vmfmsub_<mode>_mask3<round_name>,
21561 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
21562 *avx512f_vmfnmadd_<mode>_mask<round_name>,
21563 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
21564 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
21565 *avx512f_vmfnmsub_<mode>_mask<round_name>,
21566 avx512f_vmfnmsub_<mode>_mask3<round_name>,
21567 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
21568 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
21569 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
21570 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
21571 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
21572 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
21573 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
21574 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
21575 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
21576 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
21577 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
21578 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
21579 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
21580 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
21581 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
21582 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
21583 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
21584 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
21585 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
21586 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
21587 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
21588 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
21590 2019-03-21 Martin Sebor <msebor@redhat.com>
21592 PR tree-optimization/89350
21593 * builtins.c (compute_objsize): Also ignore offsets whose upper
21595 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
21596 (builtin_memref::builtin_memref): Initialize new member.
21597 Allow EXPR to be null.
21598 (builtin_memref::extend_offset_range): Replace local with a member.
21599 Avoid assuming pointer offsets are unsigned.
21600 (builtin_memref::set_base_and_offset): Determine base object
21601 before computing offset range.
21602 (builtin_access::builtin_access): Handle memset.
21603 (builtin_access::generic_overlap): Replace local with a member.
21604 (builtin_access::strcat_overlap): Same.
21605 (builtin_access::overlap): Same.
21606 (maybe_diag_overlap): Same.
21607 (maybe_diag_access_bounds): Same.
21608 (wrestrict_dom_walker::check_call): Handle memset.
21609 (check_bounds_or_overlap): Same.
21611 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
21612 Jakub Jelinek <jakub@redhat.com>
21615 * tree.c (fld_type_variant, fld_incomplete_type_of,
21616 fld_process_array_type): Call fld->pset.add and don't call
21617 add_tree_to_fld_list if it returns true.
21618 (free_lang_data_in_type): Similarly with self-recursive call. Purge
21619 non-marked types from TYPE_NEXT_VARIANT list.
21620 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
21622 2019-03-21 Jakub Jelinek <jakub@redhat.com>
21624 * hash-table.h (hash_table): Add Lazy template parameter defaulted
21625 to false, if true, don't alloc_entries during construction, but defer
21626 it to the first method that needs m_entries allocated.
21627 (hash_table::hash_table, hash_table::~hash_table,
21628 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
21629 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
21630 hash_table::clear_slot, hash_table::traverse_noresize,
21631 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
21632 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
21634 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
21635 NO_INSERT instead of find_with_hash.
21636 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
21637 hash_set::m_table): Add Lazy to template params of hash_table.
21638 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
21639 * attribs.c (test_attribute_exclusions): Likewise.
21640 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
21641 hash_set. Add tests for hash_set with Lazy = true.
21643 2019-03-21 Richard Biener <rguenther@suse.de>
21645 PR tree-optimization/89779
21646 * tree.c (tree_nop_conversion): Consolidate and fix defensive
21647 checks with respect to released SSA names now having error_mark_node
21649 * fold-const.c (operand_equal_p): Likewise.
21651 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
21654 * config/s390/s390.c (global_not_special_regno_p): Move to make it
21656 (s390_optimize_register_info): Use global_not_special_regno_p to
21657 check for global regs.
21659 2019-03-20 Jakub Jelinek <jakub@redhat.com>
21662 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
21663 update this_alternative nor this_alternative_set.
21665 2019-03-19 Jim Wilson <jimw@sifive.com>
21668 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
21669 align, size, offset. Use them to handle a BLKmode reference. Update
21671 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
21673 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21675 PR rtl-optimization/89768
21676 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
21677 instead of GEN_INT.
21678 (unroll_loop_runtime_iterations): Likewise.
21680 2019-03-19 Martin Sebor <msebor@redhat.com>
21682 PR tree-optimization/89644
21683 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
21684 rather than endptr as an indicator of nul-termination.
21686 PR tree-optimization/89644
21687 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
21688 arrays in determining sequence sizes in strncpy and stpncpy.
21690 2019-03-19 Martin Liska <mliska@suse.cz>
21692 PR middle-end/89737
21693 * predict.c (combine_predictions_for_bb): Empty likely_edges and
21694 unlikely_edges if there's an edge that belongs to both these sets.
21696 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
21699 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
21700 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
21701 go via a stack temporary.
21703 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21706 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
21707 instead of gen_rtx_SUBREG.
21708 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
21710 2019-03-19 Richard Biener <rguenther@suse.de>
21713 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
21715 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
21719 * tree.c (free_lang_data_in_decl): Do not free context of C++
21722 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21725 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
21726 subs for the first alternative except when operands[3] is 1.
21729 * gimplify.c (gimplify_asm_expr): For output argument with
21730 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
21733 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
21735 PR rtl-optimization/89753
21736 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
21737 explicit unrolling factor even more robust.
21739 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21742 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
21743 compensation use x2 += 1 instead of x2 -= -1 and when honoring
21744 signed zeros, do another copysign after the compensation.
21746 2019-03-18 Martin Sebor <msebor@redhat.com>
21748 PR tree-optimization/89720
21749 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
21750 more conservatively, the same as anti-range.
21752 2019-03-18 Richard Biener <rguenther@suse.de>
21754 PR middle-end/88945
21755 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
21756 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
21757 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
21758 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
21760 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
21762 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
21763 Extend queue to 1024 entries.
21764 Add "consumed" field.
21765 (gomp_print_output): Remove print_index parameter.
21766 Add final parameter.
21767 Change limit to unsigned.
21768 Use consumed field to implement circular buffer.
21769 Detect interrupted print in final pass.
21770 Flush output at the end.
21771 (run): Update gomp_print_output usage.
21772 (main): Initialize kernargs->output_data.consumed.
21774 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
21776 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
21777 calculation of the minimum number of scalar iterations for
21778 fully-predicated loops.
21780 2019-03-18 Martin Jambor <mjambor@suse.cz>
21782 PR tree-optimization/89546
21783 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
21784 any propagation to its children took place.
21786 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
21789 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
21790 parameter, and make use of it.
21791 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
21793 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21795 * config/arc/arc.opt (mcode-density-frame): Get the inital value
21796 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
21797 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21798 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21799 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
21800 match what the ops is doing.
21801 (push_multi_fp_blink): Likewise.
21802 * config/arc/arc.c (arc_override_options): Enable enter/leave when
21803 compiling for size and elf target.
21804 (arc_save_callee_enter): Adjust note to match what enter/leave
21807 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21809 * config/arc/arc.md (tst_movb): Fix constraint.
21811 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21813 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
21815 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21817 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
21818 * config/arc/arc.c (arc_conditional_register_usage): Remove all
21819 reg_alloc_order references.
21820 (size_alloc_order): Define.
21821 (arc_adjust_reg_alloc_order): New function.
21822 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
21824 (ADJUST_REG_ALLOC_ORDER): Define.
21825 (HONOR_REG_ALLOC_ORDER): Likewise.
21827 2019-03-18 Richard Biener <rguenther@suse.de>
21830 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
21831 loads and stores a bit more.
21833 2019-03-18 Richard Biener <rguenther@suse.de>
21836 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
21837 load pessimization to stores as well.
21839 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
21841 PR middle-end/86979
21842 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
21843 successor, use NULL as its av set.
21845 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
21847 PR rtl-optimization/89721
21848 * lra-constraints (invariant_p): Return false if side_effects_p holds.
21850 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
21853 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21854 When handling vec_extract, use modular arithmetic to allow
21855 constant selectors greater than vector length.
21856 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
21857 V1TImode vectors to have constant selector values greater than 0.
21858 Use modular arithmetic to compute vector index.
21859 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
21860 index for in-memory vectors. Correct code generation for
21861 in-register vectors.
21862 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
21865 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
21869 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
21872 2019-03-15 Jakub Jelinek <jakub@redhat.com>
21875 * tree.c (inchash::add_expr): Strip any location wrappers.
21876 * fold-const.c (operand_equal_p): Move stripping of location wrapper
21877 after hash verification.
21880 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
21881 SIGN_EXTEND and ZERO_EXTEND.
21883 2019-03-14 Jason Merrill <jason@redhat.com>
21884 Jakub Jelinek <jakub@redhat.com>
21886 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
21887 than if is_empty (*slot).
21888 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
21889 existing elt and for elt removal.
21890 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
21891 of already removed elt.
21893 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
21896 * config/i386/i386.c (remove_partial_avx_dependency): Handle
21897 REG_EH_REGION note.
21899 2019-03-14 Martin Liska <mliska@suse.cz>
21902 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
21904 2019-03-14 Richard Biener <rguenther@suse.de>
21907 * config/i386/i386.c (make_resolver_func): Properly set
21908 DECL_CONTEXT on the RESULT_DECL.
21909 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
21911 2019-03-14 Richard Biener <rguenther@suse.de>
21913 * gimple-pretty-print.c: Include cfgloop.h.
21914 (dump_gimple_phi): Adjust.
21915 (dump_gimple_bb_header): Dump loop header for GIMPLE.
21916 (pp_cfg_jump): Adjust.
21917 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
21918 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
21919 (lower_phi_internal_fn): Remove.
21920 (verify_gimple_call): Remove IFN_PHI special-casing.
21921 (dump_function_to_file): Dump IL state.
21922 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
21923 done to deal with PHI nodes being present in non-SSA state.
21925 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21928 * multiple_target.c (create_dispatcher_calls): Change
21929 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
21930 In the node->iterate_referring loop, push *ref rather than ref, call
21931 ref->remove_reference () and always pass 0 to iterate_referring.
21933 PR rtl-optimization/89679
21934 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
21935 would contain a paradoxical SUBREG.
21937 2019-03-14 Richard Biener <rguenther@suse.de>
21939 PR tree-optimization/89710
21940 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
21943 2019-03-14 Martin Liska <mliska@suse.cz>
21945 * coverage.c (coverage_begin_function): Stream also
21947 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
21948 documentation about function declaration location.
21949 * gcov-dump.c (tag_function): Print whole range
21950 of function declaration.
21951 * gcov.c (struct function_info): Add end_column field.
21952 (function_info::function_info): Initialize it.
21953 (output_json_intermediate_file): Output {start,end}_column
21955 (read_graph_file): Read end_column.
21957 2019-03-14 Richard Biener <rguenther@suse.de>
21959 PR middle-end/89698
21960 * fold-const.c (operand_equal_p): For INDIRECT_REF check
21961 that the access types are similar.
21963 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21965 PR tree-optimization/89703
21966 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
21967 aren't compatible also with builtin_decl_explicit. Check pure
21968 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
21969 and BUILT_IN_STPNCPY{,_CHK}.
21971 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
21974 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
21975 addr32 prefix to VSIB address for X32.
21976 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
21978 (*avx512pf_gatherpf<mode>df_mask): Likewise.
21979 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
21980 (*avx512pf_scatterpf<mode>df_mask): Likewise.
21981 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
21982 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
21983 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
21984 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
21985 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
21986 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
21987 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
21988 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
21989 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
21990 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
21991 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
21992 (*avx512f_scatterdi<mode>): Likewise.
21994 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
21997 * lra-constraints.c (inherit_in_ebb): Update
21998 potential_reload_hard_regs along with live_hard_regs.
22000 2019-03-13 Jakub Jelinek <jakub@redhat.com>
22003 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
22005 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
22007 2019-03-13 Martin Sebor <msebor@redhat.com>
22009 PR tree-optimization/89662
22010 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
22013 2019-03-13 Richard Biener <rguenther@suse.de>
22015 PR middle-end/89677
22016 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
22017 throw FP expressions at tree-affine.
22019 2019-03-14 Richard Biener <rguenther@suse.de>
22021 * tree-pretty-print.c (dump_generic_node): For -gimple properly
22022 dump negative integer constants using _Literal (type) -num.
22024 2019-03-13 Jakub Jelinek <jakub@redhat.com>
22026 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
22027 nonlocal_value member.
22029 PR middle-end/88588
22030 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
22031 (ipa_simd_modify_function_body): Handle PHIs.
22033 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22035 * config/s390/s390.c (s390_option_override_internal): Use more
22036 aggressive inlining parameters.
22038 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22040 * config/s390/3906.md: New file.
22041 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
22042 (LONGRUNNING_THRESHOLD): Remove.
22043 (MAX_SCHED_MIX_SCORE): Decrease.
22044 (MAX_SCHED_MIX_DISTANCE): Decrease.
22045 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
22046 (struct s390_sched_state): New struct to hold scheduling state.
22047 (S390_SCHED_STATE_NORMAL): Remove.
22048 (S390_SCHED_STATE_CRACKED): Remove.
22049 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
22050 (s390_get_sched_attrmask): Use new attribute.
22051 (s390_get_unit_mask): Use new units.
22052 (s390_is_fpd): New function.
22053 (s390_is_fxd): New function.
22054 (s390_is_longrunning): New function.
22055 (s390_sched_score): Use new functions.
22056 (s390_sched_reorder): Likewise.
22057 (s390_sched_variable_issue): Rework and use new functions.
22058 (s390_sched_init): Use new functions.
22059 * config/s390/s390.h (s390_tune_attr): Add z14.
22060 * config/s390/s390.md: Add z14.
22062 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22064 * config/s390/2964.md: Update pipeline description.
22065 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
22066 (LONGRUNNING_THRESHOLD): Remove.
22067 (LATENCY_FACTOR): Remove.
22068 (s390_get_unit_mask): Add unit.
22069 (s390_sched_score): Use fxd/fpd.
22070 (s390_sched_variable_issue): Use fxd/fpd.
22072 2019-03-12 Martin Liska <mliska@suse.cz>
22074 * config/i386/i386.c: Reword an error message.
22076 2019-03-12 Martin Jambor <mjambor@suse.cz>
22078 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
22079 terminate with newline.
22081 2019-03-12 Jakub Jelinek <jakub@redhat.com>
22084 * config/s390/s390.md (tabort): Use %wd instead of
22085 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
22086 letters and periods.
22087 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
22088 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
22091 PR middle-end/89663
22092 * builtins.c (expand_builtin_int_roundingfn,
22093 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
22094 gcc_unreachable if validate_arglist fails.
22096 2019-03-12 Richard Biener <rguenther@suse.de>
22098 PR tree-optimization/89664
22099 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
22100 free the occurance tree after the early out.
22102 2019-03-11 Jakub Jelinek <jakub@redhat.com>
22104 PR middle-end/89655
22106 * vr-values.c (vr_values::update_value_range): If
22107 old_vr->varying_p (), don't update it, make new_vr also VARYING
22110 2019-03-11 Martin Liska <mliska@suse.cz>
22112 * config/aarch64/aarch64.c (aarch64_override_options_internal):
22113 Fix double string quoting.
22115 2019-03-11 Martin Liska <mliska@suse.cz>
22117 * collect-utils.c (collect_wait): Wrap apostrophes
22118 in gcc internal format with %'.
22119 * collect2.c (main): Likewise.
22120 (scan_prog_file): Likewise.
22121 (scan_libraries): Likewise.
22122 * config/i386/i386.c (ix86_expand_call): Likewise.
22123 (ix86_handle_interrupt_attribute): Likewise.
22124 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
22125 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
22126 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
22127 * lto-wrapper.c (find_crtoffloadtable): Likewise.
22128 * symtab.c (symtab_node::verify_base): Likewise.
22129 * tree-cfg.c (verify_gimple_label): Likewise.
22130 * tree.c (verify_type_variant): Likewise.
22132 2019-03-11 Martin Liska <mliska@suse.cz>
22134 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
22135 in a string format message and fix GNU coding style.
22136 (expand_builtin_set_thread_pointer): Likewise.
22137 * common/config/aarch64/aarch64-common.c
22138 (aarch64_rewrite_selected_cpu): Likewise.
22139 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
22140 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
22141 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
22142 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
22143 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
22144 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
22145 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
22146 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
22147 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
22148 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
22150 * common/config/riscv/riscv-common.c
22151 (riscv_subset_list::parsing_subset_version): Likewise.
22152 (riscv_subset_list::parse_std_ext): Likewise.
22153 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22154 (riscv_subset_list::parse): Likewise.
22155 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
22156 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
22157 (aarch64_override_options_internal): Likewise.
22158 (aarch64_validate_mcpu): Likewise.
22159 (aarch64_validate_march): Likewise.
22160 (aarch64_validate_mtune): Likewise.
22161 (aarch64_override_options): Likewise.
22162 * config/alpha/alpha.c (alpha_option_override): Likewise.
22163 * config/arc/arc.c (arc_init): Likewise.
22164 (parse_mrgf_banked_regs_option): Likewise.
22165 (arc_override_options): Likewise.
22166 (arc_expand_builtin_aligned): Likewise.
22167 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
22168 (arm_expand_builtin): Likewise.
22169 * config/arm/arm.c (arm_option_check_internal): Likewise.
22170 (arm_configure_build_target): Likewise.
22171 (arm_option_override): Likewise.
22172 (arm_options_perform_arch_sanity_checks): Likewise.
22173 (arm_handle_cmse_nonsecure_entry): Likewise.
22174 (arm_handle_cmse_nonsecure_call): Likewise.
22175 (arm_tls_referenced_p): Likewise.
22176 (thumb1_expand_prologue): Likewise.
22177 * config/avr/avr.c (avr_option_override): Likewise.
22178 * config/bfin/bfin.c (bfin_option_override): Likewise.
22179 * config/c6x/c6x.c (c6x_option_override): Likewise.
22180 * config/cr16/cr16.c (cr16_override_options): Likewise.
22181 * config/cris/cris.c (cris_option_override): Likewise.
22182 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
22183 * config/darwin-c.c (macosx_version_as_macro): Likewise.
22184 * config/darwin.c (darwin_override_options): Likewise.
22185 * config/frv/frv.c (frv_expand_builtin): Likewise.
22186 * config/h8300/h8300.c (h8300_option_override): Likewise.
22187 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
22188 (ix86_option_override_internal): Likewise.
22189 (warn_once_call_ms2sysv_xlogues): Likewise.
22190 (ix86_expand_prologue): Likewise.
22191 (split_stack_prologue_scratch_regno): Likewise.
22192 (ix86_warn_parameter_passing_abi): Likewise.
22193 * config/ia64/ia64.c (fix_range): Likewise.
22194 * config/m68k/m68k.c (m68k_option_override): Likewise.
22195 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
22196 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
22197 (mips_set_compression_mode): Likewise.
22198 * config/mmix/mmix.c (mmix_option_override): Likewise.
22199 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
22200 * config/msp430/msp430.c (msp430_option_override): Likewise.
22201 * config/nds32/nds32.c (nds32_option_override): Likewise.
22202 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
22203 (nios2_option_override): Likewise.
22204 (nios2_expand_custom_builtin): Likewise.
22205 * config/nvptx/mkoffload.c (main): Likewise.
22206 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
22207 * config/pa/pa.c (fix_range): Likewise.
22208 (pa_option_override): Likewise.
22209 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
22210 (riscv_option_override): Likewise.
22211 * config/rl78/rl78.c (rl78_option_override): Likewise.
22212 * config/rs6000/aix61.h: Likewise.
22213 * config/rs6000/aix71.h: Likewise.
22214 * config/rs6000/aix72.h: Likewise.
22215 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
22216 * config/rs6000/freebsd64.h: Likewise.
22217 * config/rs6000/linux64.h: Likewise.
22218 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
22219 (rs6000_expand_zeroop_builtin): Likewise.
22220 (rs6000_expand_mtfsb_builtin): Likewise.
22221 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
22222 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
22223 (rs6000_invalid_builtin): Likewise.
22224 (rs6000_expand_split_stack_prologue): Likewise.
22225 * config/rs6000/rtems.h: Likewise.
22226 * config/rx/rx.c (valid_psw_flag): Likewise.
22227 (rx_expand_builtin): Likewise.
22228 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
22229 * config/s390/s390.c (s390_expand_builtin): Likewise.
22230 (s390_function_profiler): Likewise.
22231 (s390_option_override_internal): Likewise.
22232 (s390_option_override): Likewise.
22233 * config/sh/sh.c (sh_option_override): Likewise.
22234 (sh_builtin_saveregs): Likewise.
22235 (sh_fix_range): Likewise.
22236 * config/sh/vxworks.h: Likewise.
22237 * config/sparc/sparc.c (sparc_option_override): Likewise.
22238 * config/spu/spu.c (spu_option_override): Likewise.
22239 (fix_range): Likewise.
22240 * config/visium/visium.c (visium_option_override): Likewise.
22241 (visium_handle_interrupt_attr): Likewise.
22242 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
22243 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
22244 (dbg_cnt_process_opt): Likewise.
22245 * dwarf2out.c (output_dwarf_version): Likewise.
22246 * except.c (expand_eh_return): Likewise.
22247 * gcc.c (defined): Likewise.
22248 (driver_handle_option): Likewise.
22249 (process_command): Likewise.
22250 (compare_files): Likewise.
22251 (driver::prepare_infiles): Likewise.
22252 (driver::do_spec_on_infiles): Likewise.
22253 (driver::maybe_run_linker): Likewise.
22254 * omp-offload.c (oacc_parse_default_dims): Likewise.
22255 * opts-global.c (handle_common_deferred_options): Likewise.
22256 * opts.c (parse_sanitizer_options): Likewise.
22257 (common_handle_option): Likewise.
22258 (enable_warning_as_error): Likewise.
22259 * passes.c (enable_disable_pass): Likewise.
22260 * plugin.c (parse_plugin_arg_opt): Likewise.
22261 (default_plugin_dir_name): Likewise.
22262 * targhooks.c (default_expand_builtin_saveregs): Likewise.
22263 (default_pch_valid_p): Likewise.
22264 * toplev.c (init_asm_output): Likewise.
22265 (process_options): Likewise.
22266 (toplev::run_self_tests): Likewise.
22267 * tree-cfg.c (verify_gimple_call): Likewise.
22268 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
22269 (tree_inlinable_function_p): Likewise.
22270 * var-tracking.c (vt_find_locations): Likewise.
22272 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
22274 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
22275 only on the else branch.
22277 2019-03-11 Martin Liska <mliska@suse.cz>
22279 * gcov.c (output_intermediate_json_line): Print function
22281 (output_json_intermediate_file): Add new argument.
22282 * doc/gcov.texi: Document the change.
22284 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
22286 PR rtl-optimization/89588
22287 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
22288 explicit unrolling factor more robust.
22290 2019-03-11 Richard Biener <rguenther@suse.de>
22292 PR tree-optimization/89649
22293 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
22294 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
22295 on the prolog and epilog loops.
22296 (vect_loop_versioning): Return copy of loop.
22297 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
22298 on the non-vectorized version of the loop.
22300 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
22303 * config/i386/sse.md (*vec_extractv2di_0_sse):
22304 Add (=r,x) alternative and corresponding splitter.
22306 2019-03-10 Martin Jambor <mjambor@suse.cz>
22308 PR tree-optimization/85762
22309 PR tree-optimization/87008
22310 PR tree-optimization/85459
22311 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
22312 it points to if there is a type changing MEM_REF. Adjust all callers.
22313 (build_accesses_from_assign): Disable total scalarization if
22314 contains_vce_or_bfcref_p returns true through the new parameter, for
22317 2019-03-09 Jakub Jelinek <jakub@redhat.com>
22320 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
22321 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
22324 * common.opt (fdiagnostics-show-labels,
22325 fdiagnostics-show-line-numbers, fdiagnostics-format=,
22326 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
22327 gas-locview-support, ginline-points, ginternal-reset-location-views):
22328 Terminate description text with a dot.
22329 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
22330 * config/mcore/mcore.opt (m210, m340): Likewise.
22331 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
22332 mnops=): Start description text with a capital letter.
22333 * config/arc/arc.opt (msize-level=): Likewise.
22334 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
22335 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
22336 mnewlib): Likewise.
22337 * config/ft32/ft32.opt (msim): Likewise.
22338 (mft32b, mcompress): Likewise. Terminate description text with a dot.
22339 (mnodiv, mnopm): Terminate description text with a dot.
22340 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
22342 * config/i386/i386.opt (prefer_vector_width, instrument_return):
22344 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
22347 PR rtl-optimization/89634
22348 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
22349 are modified in BB_END (e->src) instruction.
22351 2019-03-08 David Malcolm <dmalcolm@redhat.com>
22354 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
22355 messages more amenable to translation, and improve wording.
22357 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
22359 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
22360 ud- and du-chains between phases.
22362 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
22365 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
22366 instead of POLY_INT_CST.
22368 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
22370 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
22373 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
22378 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
22379 (_mm_storeu_si64): Ditto.
22381 2019-03-08 Martin Liska <mliska@suse.cz>
22384 * config/i386/i386.c (ix86_option_override_internal): Disable
22385 jump tables when retpolines are used.
22387 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
22390 * ipa-split.c (execute_split_functions): Do not split
22391 'noinline' or 'section' function.
22393 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22396 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
22397 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
22398 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
22401 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
22402 from diagnostics. Formatting fixes.
22405 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
22406 warn_odr diagnostics.
22409 * lra-constraints.c (process_alt_operands): Avoid one space before
22410 " at the end of line and another after " on another line in a string
22412 * attribs.c (handle_dll_attribute): Likewise.
22413 * config/avr/avr-devices.c (avr_texinfo): Likewise.
22415 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
22416 warning_at or inform messages in G_() if there is no ?:.
22418 PR tree-optimization/89550
22419 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
22420 returned true. Formatting fixes.
22421 (expand_builtin_strnlen): Formatting fixes.
22422 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
22423 if warning_at returned true.
22424 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
22426 2019-03-08 Richard Biener <rguenther@suse.de>
22428 PR middle-end/89578
22429 * cfgloop.h (struct loop): Add owned_clique field.
22430 * cfgloopmanip.c (copy_loop_info): Copy it.
22431 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
22433 * tree-inline.c (copy_loops): Remap owned_clique.
22434 * lto-streamer-in.c (input_cfg): Stream owned_clique.
22435 * lto-streamer-out.c (output_cfg): Likewise.
22437 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22440 * config/darwin.c: Include intl.h.
22441 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
22442 composing the message out of two separate parts.
22444 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22447 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
22448 doesn't start with a capital letter and doesn't end with a dot.
22449 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
22450 with a capital letter.
22451 (ix86_mangle_function_version_assembler_name): Likewise.
22452 (ix86_generate_version_dispatcher_body): Likewise.
22453 (fold_builtin_cpu): Likewise.
22454 (get_builtin_code_for_version): Likewise. Remove extraneous space.
22455 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
22456 translators, wrap full type name in %qs.
22458 PR translation/79999
22459 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
22460 depend clause with source (or sink) modifier.
22461 * omp-expand.c (expand_omp_ordered_sink): Likewise.
22464 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
22465 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
22466 (avx512f_load<mode>_mask): New define_expand.
22467 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
22468 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
22469 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
22470 __builtin_ia32_movess_mask): New builtins.
22471 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
22472 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
22473 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
22474 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
22476 2019-03-07 Martin Jambor <mjambor@suse.cz>
22479 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
22480 for extern inline functions.
22482 2019-03-07 Martin Jambor <mjambor@suse.cz>
22485 * cgraph.h (cgraph_node): New inline method former_thunk_p.
22486 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
22487 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
22488 have multiple callees. At the end check if declarations match as
22489 opposed to cgraph_nodes.
22491 2019-03-07 Martin Liska <mliska@suse.cz>
22493 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
22494 which is equivalent to searching for this in clones chain.
22495 * symtab.c (symtab_node::verify_base): Similarly compare ASM
22496 names with a neighbour and special case first node in a chain.
22498 2019-01-25 Jason Merrill <jason@redhat.com>
22500 PR c++/80916 - spurious "static but not defined" warning.
22501 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
22502 for an internal symbol with DECL_EXTERNAL.
22504 2019-04-07 Richard Biener <rguenther@suse.de>
22506 PR middle-end/89618
22507 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
22508 * tree-inline.c (copy_loops): Simplify.
22510 2019-03-07 Martin Liska <mliska@suse.cz>
22512 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
22514 2019-03-07 Richard Biener <rguenther@suse.de>
22516 PR tree-optimization/89595
22517 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
22518 stmt iterator as reference, take boolean output parameter to
22519 indicate whether the stmt was removed and thus the iterator
22521 (dom_opt_dom_walker::before_dom_children): Re-iterate over
22522 stmts created by folding.
22524 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22527 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
22530 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
22532 PR rtl-optimization/88845
22533 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
22535 * lra.c (remove_scratches_1): New function.
22536 (remove_scratches): Use it.
22537 (lra_emit_move): Likewise.
22539 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
22541 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
22542 unaligned_access variable.
22543 * config/arc/arc.c (arc_override_options): Set unaligned access
22544 default on for HS CPUs.
22545 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
22547 2019-03-06 Martin Liska <mliska@suse.cz>
22549 PR gcov-profile/89577
22550 * doc/gcov.texi: Prefer to use --coverage.
22551 * doc/sourcebuild.texi: Likewise.
22553 2019-03-02 Jason Merrill <jason@redhat.com>
22555 PR c++/86485 - -Wmaybe-unused with empty class ?:
22556 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
22558 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22561 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
22564 PR middle-end/89590
22565 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
22566 exactly one argument.
22568 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22569 Richard Sandiford <richard.sandiford@arm.com>
22571 PR tree-optimization/89570
22572 * match.pd (vec_cond into cond_op simplification): Don't use
22573 get_conditional_internal_fn, use as_internal_fn (cond_op).
22575 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
22578 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
22579 to decide when to split off a non-zero offset from a symbol.
22580 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
22581 in function symbols.
22583 2019-03-05 Richard Biener <rguenther@suse.de>
22585 PR tree-optimization/89594
22586 * tree-if-conv.c (pass_if_conversion::execute): Handle
22587 case where .LOOP_VECTORIZED_FUNCTION was removed.
22589 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22592 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
22593 instead alloca it only when needed with the needed size.
22595 PR tree-optimization/89570
22596 * match.pd (vec_cond into cond_op simplification): Guard with
22597 vectorized_internal_fn_supported_p test and #if GIMPLE.
22599 PR tree-optimization/89566
22600 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
22601 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
22602 Punt if get_user_idx_format succeeds, but idx_format argument is
22603 not provided or doesn't have pointer type, or if idx_args is above
22604 number of provided arguments.
22606 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
22608 PR tree-optimization/89437
22609 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
22611 2019-03-04 Richard Biener <rguenther@suse.de>
22613 PR middle-end/89572
22614 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
22617 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
22619 PR tree-optimization/89487
22620 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
22621 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
22622 (distribute_loop): Don't do runtime alias check if there is non-
22623 addressable data reference.
22624 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
22625 is a register variable.
22627 2019-03-02 Jakub Jelinek <jakub@redhat.com>
22630 * config/arm/arm.md (cmpsi2_addneg): Use
22631 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
22632 If operands[2] is 0 or INT_MIN, force use of subs.
22633 (*compare_scc splitter): Use gen_int_mode.
22634 (*negscc): Likewise.
22635 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
22637 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
22638 Monk Chiang <sh.chiang04@gmail.com>
22640 * common/config/riscv/riscv-common.c: Include sstream.
22641 (riscv_subset_list::to_string): New.
22642 (riscv_arch_str): Likewise.
22643 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
22644 * config.in: Regen.
22645 * config/riscv/riscv-protos.h (riscv_arch_str): New.
22646 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
22647 (riscv_emit_attribute): New.
22648 (riscv_file_start): Emit attribute if needed.
22649 (riscv_option_override): Init riscv_emit_attribute_p.
22650 * config/riscv/riscv.opt (mriscv-attribute): New option.
22651 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
22652 * configure: Regen.
22653 * doc/install.texi: Document --with-riscv-attribute.
22654 * doc/invoke.texi: Document -mriscv-attribute.
22656 * common/config/riscv/riscv-common.c:
22657 Include config/riscv/riscv-protos.h.
22658 (INCLUDE_STRING): Defined.
22659 (RISCV_DONT_CARE_VERSION): Defined.
22660 (riscv_subset_t): Declare.
22661 (riscv_subset_t::riscv_subset_t): New.
22662 (riscv_subset_list): Declare.
22663 (riscv_subset_list::riscv_subset_list): New.
22664 (riscv_subset_list::~riscv_subset_list): Likewise.
22665 (riscv_subset_list::parsing_subset_version): Likewise.
22666 (riscv_subset_list::parse_std_ext): Likewise.
22667 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22668 (riscv_subset_list::add): Likewise.
22669 (riscv_subset_list::lookup): Likewise.
22670 (riscv_subset_list::xlen): Likewise.
22671 (riscv_subset_list::parse): Likewise.
22672 (riscv_supported_std_ext): Likewise.
22673 (current_subset_list): Likewise.
22674 (riscv_parse_arch_string): Using riscv_subset_list::parse to
22677 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
22679 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22680 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
22681 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
22683 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
22685 PR rtl-optimization/85899
22686 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
22687 fallthru edges leading to the exit block.
22689 2019-03-01 Tamar Christina <tamar.christina@arm.com>
22692 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
22693 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
22695 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
22697 PR tree-optimization/89535
22698 * tree-vect-stmts.c (vectorizable_call): Record the vector types
22699 for each operand. Calculate the fallback choice for mask operands
22700 and pass it to vect_get_vec_def_for_operand.
22702 2019-03-01 Richard Biener <rguenther@suse.de>
22704 PR middle-end/89541
22705 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
22706 get virtual operands.
22707 (get_expr_operands): Handle CONST_DECL like other decls.
22709 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22711 PR middle-end/89503
22712 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
22713 on DECL_P and EXPR_P.
22715 2019-03-01 Richard Biener <rguenther@suse.de>
22717 PR middle-end/89497
22718 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
22719 argument, defaulted to zero.
22720 * passes.c (execute_function_todo): Pass down SSA update flags
22721 to cleanup_tree_cfg.
22722 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
22723 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
22725 (cleanup_tree_cfg): Get and pass down SSA update flags.
22727 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22730 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
22731 early_lto_debug argument.
22733 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
22735 PR tree-optimization/89536
22736 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
22737 only whether bit #0 of the value is 0 instead of the entire value.
22739 2019-02-28 Marek Polacek <polacek@redhat.com>
22741 PR c++/87068 - missing diagnostic with fallthrough statement.
22742 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
22743 at the end of a seq, save its location to walk_stmt_info.
22744 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
22747 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
22750 * tree.c (find_atomic_core_type): Move ahead in file.
22751 (check_base_type): Correctly compare alignments of atomic types.
22753 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
22756 * config/i386/i386.c (get_builtin_code_for_version): Identify
22757 Westmere from PCLMUL, instead of AES.
22759 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22762 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
22763 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
22766 2019-02-28 Tamar Christina <tamar.christina@arm.com>
22769 * config/aarch64/aarch64-option-extensions.def: Document it.
22770 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
22773 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22776 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
22777 builtins if they don't have a single scalar floating point argument.
22780 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
22782 PR rtl-optimization/89490
22783 * varasm.c (get_block_for_section): Bail out for mergeable sections.
22784 (default_use_anchors_for_symbol_p, output_object_block): Assert the
22785 block section is not mergeable.
22787 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22790 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
22791 old define_insn to ...
22792 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
22793 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
22794 Rename old define_insn to ...
22795 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
22796 (thumb2_casesi_internal_pic): New define_expand. Rename old
22798 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
22799 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
22800 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
22802 2019-02-27 Richard Biener <rguenther@suse.de>
22805 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
22807 2019-02-27 Richard Biener <rguenther@suse.de>
22809 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
22812 2019-02-27 Richard Biener <rguenther@suse.de>
22815 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
22816 parameter, prefix section name with .gnu.debuglto_ if true.
22817 (dwarf2out_finish): Pass false to output_comdat_type_unit.
22818 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
22820 2019-02-27 Richard Biener <rguenther@suse.de>
22823 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
22824 rather than on use_debug_types, doing what output_die does.
22825 (value_format): Likewise.
22827 2019-02-27 Martin Jambor <mjambor@suse.cz>
22828 Martin Sebor <msebor@redhat.com>
22830 * doc/invoke.texi (Warning Options): Reword description of
22831 -Wno-absolute-value.
22833 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22835 PR tree-optimization/89280
22836 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
22837 builtin_setjmp_setup_bb): New functions.
22838 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
22839 When visiting __builtin_setjmp_setup block, queue in special
22840 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
22841 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
22842 from visited after the loop if they don't have any visited successor
22845 2018-02-26 Steve Ellcey <sellcey@marvell.com>
22847 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
22849 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
22851 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22854 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
22855 with types other than sizetype/ssizetype.
22857 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22859 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
22860 (enum sparc_processor_type): ...this.
22861 (enum sparc_code_model_type): New enumeration type.
22862 (enum sparc_memory_model_type): Tweak comments.
22863 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
22865 (mcmodel): Use sparc_code_model enumeration and variable.
22866 (sparc_code_model): New enumeration.
22867 (mdebug): Add Undocumented marker.
22868 * config/sparc/sparc.h (enum cmodel): Delete.
22869 (sparc_cmodel): Likewise.
22870 (TARGET_CM_MEDLOW): Adjust to above renaming.
22871 (TARGET_CM_MEDMID): Likewise.
22872 (TARGET_CM_MEDANY): Likewise.
22873 (TARGET_CM_EMBMEDANY): Likewise.
22874 * config/sparc/sparc.c (sparc_cmodel): Delete.
22875 (sparc_option_override): Remove string/value mapping support for the
22876 code model. Move code and memory model support to after the handling
22877 of target flags. Do private machine setup last.
22878 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
22879 (sparc_legitimize_reload_address): Likewise.
22880 (sparc_output_mi_thunk): Likewise.
22881 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
22883 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22885 PR tree-optimization/89500
22886 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
22887 (handle_builtin_strlen): Remove noncst_bound variable. Always
22888 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
22889 cst if the first cst bytes starting at x are known to be non-zero,
22890 even if the string is not zero terminated. Don't try to modify
22891 *si for strnlen. Update strlen_to_stridx only for strlen or if
22892 we can prove strnlen returns the same value as strlen would.
22894 2019-02-26 Martin Liska <mliska@suse.cz>
22896 * alloc-pool.h (struct pool_usage): Remove extra
22898 * bitmap.h (struct bitmap_usage): Likewise.
22899 * ggc-common.c (struct ggc_usage): Likewise.
22900 * mem-stats.h (struct mem_usage): Likewise.
22901 (mem_alloc_description::dump): Print dash lines
22902 here and repeat header at the end of a table report.
22903 It's then more readable.
22904 * tree-phinodes.c (phinodes_print_statistics): Make
22905 horizontal alignment.
22906 * tree-ssanames.c (ssanames_print_statistics): Likewise.
22907 * vec.c (struct vec_usage): Remove extra print_dash_line.
22908 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
22910 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
22912 * doc/extend.texi (__builtin_object_size):
22913 Use @pxref instead of @xref inside parenthesis.
22914 (__builtin_has_attribute): Add missing comma after @xref.
22915 (__builtin_object_size): Ditto.
22916 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
22918 2019-02-26 Jeff Law <law@redhat.com>
22920 PR rtl-optimization/87761
22921 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
22922 detect obviously dead insns and delete them.
22924 2019-02-26 Richard Biener <rguenther@suse.de>
22926 PR tree-optimization/89505
22927 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
22928 to handle restrict pointed-to vars with multiple subvars
22931 2019-02-26 Richard Biener <rguenther@suse.de>
22933 PR tree-optimization/89489
22934 * tree-parloops.c (create_loop_fn): Copy over last_clique.
22936 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22938 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
22939 and move around comment.
22940 <BIT_AND_EXPR>: Likewise.
22941 <BIT_NOT_EXPR>: Add specific handling for boolean types.
22943 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22946 * config/i386/i386.c (remove_partial_avx_dependency): Call
22947 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
22948 after changing possibly many instructions to use that pseudo. Fix up
22949 insertion of v4sf_const0 setter at the start of bb.
22951 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22954 * doc/extend.texi (Variadic Pointer Args): New section.
22956 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22957 Martin Sebor <msebor@gmail.com>
22959 * common.opt (Wattribute-alias): Likewise.
22960 * doc/invoke.texi (Option Summary): List general form of
22961 -Wattribute-alias=. List positive form of -Wmissing-attributes.
22962 (-Wmissing-attributes): Invert entry, rewrite and correct default.
22963 Add cross-references.
22964 (-Wattribute-alias): Rewrite and correct default. Mention
22965 considered attributes (same as for -Wmissing-attributes).
22967 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
22969 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
22970 (_mm_cvtpd_ps): Likewise.
22971 (_mm_cvttpd_epi32): Likewise.
22974 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
22975 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
22978 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
22980 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22983 * common/config/aarch64/aarch64-common.c
22984 (struct aarch64_option_extension): Add is_synthetic.
22985 (all_extensions): Use it.
22986 (TARGET_OPTION_INIT_STRUCT): Define hook.
22987 (struct gcc_targetm_common): Moved to end.
22988 (all_extensions_by_on): New.
22989 (opt_ext_cmp, typedef opt_ext): New.
22990 (aarch64_option_init_struct): New.
22991 (aarch64_contains_opt): New.
22992 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
22993 * config/aarch64/aarch64-option-extensions.def
22994 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
22995 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
22996 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
22997 Set is_synthetic to false.
22998 (crypto): Set is_synthetic to true.
22999 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
23002 2019-02-25 Tamar Christina <tamar.christina@arm.com>
23004 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
23005 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
23006 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
23007 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
23008 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
23009 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
23010 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
23011 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
23013 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
23014 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
23015 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
23016 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
23017 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
23018 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
23019 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
23020 vfmlsl_laneq_high_f16): ... To this.
23021 * config/arm/neon.md: Update comments.
23023 2019-02-25 Tamar Christina <tamar.christina@arm.com>
23025 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
23026 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
23027 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
23028 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
23029 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
23030 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
23031 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
23032 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
23034 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
23035 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
23036 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
23037 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
23038 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
23039 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
23040 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
23041 vfmlslq_laneq_high_f16): ... To this.
23043 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
23045 PR rtl-optimization/86096
23046 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
23047 comparing mw_order values.
23049 2019-02-25 Jakub Jelinek <jakub@redhat.com>
23052 * config/arm/arm.md (*subsi3_carryin_const): Use
23053 arm_neg_immediate_operand predicate instead of
23054 arm_not_immediate_operand, "L" constraint instead of "K" and
23055 print it using %n2 instead of %B2.
23056 (*subsi3_carryin_const0): New define_insn.
23057 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
23058 instead of arm_not_operand and "I" constraint instead of "K" and
23059 print it using %n3 instead of %B2. Instead of using match_dup 2 add
23060 another match_operand and in the condition check that it is negation
23062 (*subsi3_carryin_compare_const0): New define_ins.
23063 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
23064 *subsi3_carryin_const.
23065 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
23066 split into *subsi3_carryin_compare_const0 if the highpart is zero.
23069 * config/arm.vfp.md (*negdf2_vfp): Use
23070 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
23071 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
23073 2019-02-24 Jakub Jelinek <jakub@redhat.com>
23075 PR rtl-optimization/89445
23076 * simplify-rtx.c (simplify_ternary_operation): Don't use
23077 simplify_merge_mask on operands that may trap.
23078 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
23079 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
23080 second operand is CONST_VECTOR, check if any element could be zero.
23081 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
23082 their operands can trap.
23084 2019-02-23 Martin Sebor <msebor@redhat.com>
23086 * gimple-ssa-sprintf.c (target_strtol): Rename...
23087 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
23088 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
23089 check for range error.
23091 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
23094 * opts-common.c (prune_options): Also prune joined switches
23095 with Negative and RejectNegative.
23096 * config/i386/i386.opt (march=): Add Negative(march=).
23097 (mtune=): Add Negative(mtune=).
23098 * doc/options.texi: Document Negative used together with Joined
23099 and RejectNegative.
23101 2019-02-22 Martin Sebor <msebor@redhat.com>
23103 * doc/extend.texi (Other Builtins): Add
23104 __builtin_is_constant_evaluated.
23106 2019-02-22 Richard Biener <rguenther@suse.de>
23108 PR tree-optimization/87609
23109 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
23111 2019-02-22 Jeff Law <law@redhat.com>
23113 PR rtl-optimization/87761
23114 * config/mips/mips.md: Add new combiner pattern to recognize
23115 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
23117 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
23120 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
23121 destination register in peepholes generating patterns for ADDS/SUBS.
23122 (add<mode>3_compare0,
23123 *addsi3_compare0_uxtw, add<mode>3_compareC,
23124 add<mode>3_compareV_imm, add<mode>3_compareV,
23125 *adds_<optab><ALLX:mode>_<GPI:mode>,
23126 *subs_<optab><ALLX:mode>_<GPI:mode>,
23127 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
23128 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
23129 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
23130 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
23131 sub<mode>3_compare1): Allow stack pointer for source register.
23132 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
23134 2019-02-22 Martin Sebor <msebor@redhat.com>
23136 PR tree-optimization/88993
23137 PR tree-optimization/88853
23138 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
23140 (sprintf_dom_walker::call_info::is_string_func): New helper.
23141 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
23142 for formatted string functions.
23143 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
23145 2019-02-22 Martin Sebor <msebor@redhat.com>
23148 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
23149 unreachable subexpressions.
23151 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
23152 Hongtao Liu <hongtao.liu@intel.com>
23153 Sunil K Pandey <sunil.k.pandey@intel.com>
23156 * config/i386/i386-passes.def: Add
23157 pass_remove_partial_avx_dependency.
23158 * config/i386/i386-protos.h
23159 (make_pass_remove_partial_avx_dependency): New.
23160 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
23162 (pass_data_remove_partial_avx_dependency): New.
23163 (pass_remove_partial_avx_dependency): Likewise.
23164 (make_pass_remove_partial_avx_dependency): Likewise.
23165 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
23166 (*extendsfdf2): Add avx_partial_xmm_update.
23167 (truncdfsf2): Likewise.
23168 (*float<SWI48:mode><MODEF:mode>2): Likewise.
23169 (SF/DF conversion splitters): Disabled for TARGET_AVX.
23171 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
23173 PR middle-end/85598
23174 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
23177 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
23180 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
23181 (PTA_SKYLAKE): Add PTA_AES.
23182 (PTA_GOLDMONT): Likewise.
23184 2019-02-22 Sudakshina Das <sudi.das@arm.com>
23186 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
23187 instruction if enabled.
23188 (aarch64_override_options): Remove reference to return address key.
23190 2019-02-22 Richard Biener <rguenther@suse.de>
23192 PR tree-optimization/89440
23193 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
23194 not necessary assert.
23196 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
23199 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
23200 (oacc_replace_fn_attrib_attr): ... this new function.
23201 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
23202 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
23204 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23206 * config/arm/arm-cpus.in (ares): Rename to...
23207 (neoverse-n1): ... This. Add ares as alias.
23208 * config/arm/arm-tables.opt: Regenerate.
23209 * config/arm/arm-tune.md: Likewise.
23210 * doc/invoke.txt (ARM Options): Document neoverse-n1.
23212 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23214 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
23215 * config/aarch64/aarch64-tune.md: Regenerate.
23216 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
23218 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23220 * config/aarch64/aarch64.c (ares_tunings): Rename to...
23221 (neoversen1_tunings): ... This.
23222 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
23223 (neoverse-n1): New CPU.
23224 * config/aarch64/aarch64-tune.md: Regenerate.
23225 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
23227 2019-02-22 Richard Biener <rguenther@suse.de>
23229 PR middle-end/87609
23230 * cfghooks.h (dependence_hash): New typedef.
23231 (struct copy_bb_data): New type.
23232 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
23233 (duplicate_block): Likewise.
23234 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
23235 (copy_bbs): Create and pass down copy_bb_data.
23236 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
23237 (rtl_duplicate_bb): Likewise.
23238 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
23239 remap dependence info.
23241 2019-02-22 Richard Biener <rguenther@suse.de>
23243 PR tree-optimization/87609
23244 * tree-core.h (tree_base): Document special clique values.
23245 * tree-inline.c (remap_dependence_clique): Do not use the
23246 special clique value of one.
23247 (maybe_set_dependence_info): Use clique one.
23248 (clear_dependence_clique): New callback.
23249 (compute_dependence_clique): Clear clique one from all refs
23250 before assigning it (again).
23252 2019-02-21 Martin Sebor <msebor@redhat.com>
23254 * doc/extend.texi (__clear_cache): Correct signature.
23256 2019-02-21 Ian Lance Taylor <iant@golang.org>
23259 * varasm.c (decode_addr_const): Call lookup_constant_def rather
23260 than output_constant_def.
23261 (add_constant_to_table): New static function.
23262 (output_constant_def): Call add_constant_to_table.
23263 (tree_output_constant_def): Likewise.
23265 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23268 * builtins.c (fold_builtin_arith_overflow): If first two args are
23269 INTEGER_CSTs, set intres and ovfres to constants rather than calls
23272 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
23275 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
23276 error for -mindirect-branch/-mfunction-return with incompatible
23279 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23282 * constraints.md (q): Remove.
23283 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
23286 2019-02-21 Martin Jambor <mjambor@suse.cz>
23289 * omp-general.c (omp_extract_for_data): Removed a duplicate call
23290 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
23291 (omp_adjust_for_condition): ...here. Added necessary parameters.
23292 * omp-general.h (omp_adjust_for_condition): Updated declaration.
23293 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
23294 proper values to new parameters of omp_adjust_for_condition.
23296 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23298 PR middle-end/89412
23299 * expr.c (expand_assignment): If result is a MEM, use change_address
23300 instead of simplify_gen_subreg.
23302 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23303 David Malcolm <dmalcolm@redhat.com>
23305 PR middle-end/89091
23306 * fold-const.c (decode_field_reference): Return NULL_TREE if
23307 lang_hooks.types.type_for_size returns NULL. Check it before
23308 overwriting *exp_. Use return NULL_TREE instead of return 0.
23310 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23312 PR middle-end/88074
23313 PR middle-end/89415
23314 * toplev.c (do_compile): Double the emin/emax exponents to workaround
23317 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
23320 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
23321 TARGET_SSE in addition to TARGET_SSE_MATH.
23323 (ix86_excess_precision): Ditto.
23324 (ix86_float_exceptions_rounding_supported_p): Ditto.
23325 (use_rsqrt_p): Ditto.
23326 * config/i386/sse.md (rsqrt<mode>2): Ditto.
23328 2019-02-20 David Malcolm <dmalcolm@redhat.com>
23331 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
23332 linenum_arith_t when determining if two adjacent line spans are
23333 close enough to merge.
23334 (diagnostic_show_locus): Use linenum_arith_t when iterating over
23335 lines within each line_span.
23337 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
23340 * lra-constraints.c(uses_hard_regs_p): Fix handling of
23341 paradoxical SUBREGS.
23343 2019-02-20 Li Jia He <helijia@linux.ibm.com>
23346 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
23347 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
23348 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
23351 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
23353 * config/gcn/gcn.c (print_operand): Fix typo.
23355 2019-02-19 Richard Biener <rguenther@suse.de>
23357 PR middle-end/88074
23358 * toplev.c (do_compile): Initialize mpfr's exponent range
23359 based on available float modes.
23361 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
23363 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
23364 as long as the epilogue isn't completed.
23366 2019-02-18 Martin Sebor <msebor@redhat.com>
23368 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
23369 __has_cpp_attribute, and __has_include.
23371 2019-02-18 Martin Sebor <msebor@redhat.com>
23373 * doc/invoke.texi (-Wreturn-type): Correct and expand.
23375 2019-02-18 Martin Sebor <msebor@redhat.com>
23377 PR middle-end/89294
23378 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
23380 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
23382 2019-02-18 Richard Biener <rguenther@suse.de>
23384 PR tree-optimization/89296
23385 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
23386 of no-warning flag to cases that might emit the bogus warning.
23388 2019-02-18 Jakub Jelinek <jakub@redhat.com>
23391 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
23393 * config/arm/vfp.md (*movdi_vfp): Likewise.
23394 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
23395 "q" constraint for operands[0].
23398 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
23399 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
23400 pattern in a temporary buffer.
23401 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
23402 than 64-operands[2].
23405 * config/s390/s390.c (s390_indirect_branch_attrvalue,
23406 s390_indirect_branch_settings): Define unconditionally.
23407 (s390_set_current_function): Likewise, but guard the whole body except
23408 the s390_indirect_branch_settings call with
23409 #if S390_USE_TARGET_ATTRIBUTE.
23410 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
23412 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
23413 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
23414 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
23415 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
23416 HOST_WIDE_INT_1U instead of 1ULL.
23417 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
23418 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
23419 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
23420 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
23422 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
23425 2019-02-18 Martin Jambor <mjambor@suse.cz>
23427 PR tree-optimization/89209
23428 * tree-sra.c (create_access_replacement): New optional parameter
23429 reg_tree. Use it as a type if non-NULL and access type is not of
23431 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
23432 to create_access_replacement.
23433 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
23434 Check lacc is non-NULL before attempting to re-create it on the RHS.
23436 2019-02-18 Martin Liska <mliska@suse.cz>
23439 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
23441 (symbol_table::free_edge): Recycle m_summary_id.
23442 * cgraph.h (get_summary_id): New.
23443 (symbol_table::release_symbol): Set m_summary_id to -1
23445 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
23446 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
23447 function_summary to fast_function_summary.
23448 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
23449 * ipa-pure-const.c (class funct_state_summary_t):
23450 Switch from function_summary to fast_function_summary.
23451 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
23452 (class ipa_ref_opt_summary_t): Switch from function_summary
23453 to fast_function_summary.
23454 * symbol-summary.h (class function_summary_base): New class
23455 that is created from base of former function_summary.
23456 (function_summary_base::unregister_hooks): New.
23457 (class function_summary): Inherit from function_summary_base.
23458 (class call_summary_base): New class
23459 that is created from base of former call_summary.
23460 (class call_summary): Inherit from call_summary_base.
23461 (struct is_same): New.
23462 (class fast_function_summary): New summary class.
23463 (class fast_call_summary): New summary class.
23464 * vec.h (vec_safe_grow_cleared): New function.
23466 2019-02-18 Martin Liska <mliska@suse.cz>
23468 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
23469 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
23470 * doc/tm.texi: Document new target hook.
23471 * doc/tm.texi.in: Likewise.
23472 * target.def: Add new target macro.
23473 * gcc.c (find_fortran_preinclude_file): Do not search multilib
23476 2019-02-17 Alan Modra <amodra@gmail.com>
23479 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
23480 output reg on add insn.
23481 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
23483 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23486 * config/i386/sse.md (ssedoublemode): Remove V4HI.
23487 (PMULHRSW): Likewise.
23488 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
23490 (ssse3_pmulhrswv4hi3): New expander.
23492 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23494 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
23495 MMX. Add isa attribute.
23497 2019-02-16 Jakub Jelinek <jakub@redhat.com>
23499 PR rtl-optimization/66152
23500 * builtins.h (c_readstr): Declare.
23501 * builtins.c (c_readstr): Remove forward declaration. Add
23502 null_terminated_p argument, if false, read all bytes from the
23503 string instead of stopping after '\0'.
23504 * expr.c (string_cst_read_str): New function.
23505 (store_expr): Use string_cst_read_str instead of
23506 builtin_strncpy_read_str. Try to store by pieces the whole
23507 exp_len first, and only if that fails, split it up into
23508 store by pieces followed by clear_storage. Formatting fix.
23510 * config/i386/i386.md (*movqi_internal): Remove static from
23511 buf variable. Use output_asm_insn (buf, operands); return "";
23512 instead of return buf;.
23513 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
23514 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
23515 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
23517 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23519 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
23520 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
23521 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
23522 (CC1_SPEC): Likewise.
23523 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
23525 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23527 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
23528 the base address on 64-bit strict-alignment platforms.
23530 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
23532 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
23534 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23536 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
23538 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
23540 PR rtl-optimization/88308
23541 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
23542 on copied instruction.
23544 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23546 * final.c (insn_current_reference_address): Replace test on JUMP_P
23547 with test on jump_to_label_p.
23548 * config/visium/visium-passes.def: New file.
23549 * config/visium/t-visium (PASSES_EXTRA): Define.
23550 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
23551 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
23552 (TRAMPOLINE_ALIGNMENT): Define.
23553 * config/visium/visium.c (visium_option_override): Do not register
23554 the machine-specific reorg pass here.
23555 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
23557 (output_branch): Adjust threshold for long branch instruction.
23558 * config/visium/visium.md (cpu): Move around.
23559 (length): Adjust for the GR6.
23561 2019-02-15 Richard Biener <rguenther@suse.de>
23562 Jakub Jelinek <jakub@redhat.com>
23564 PR tree-optimization/89278
23565 * tree-loop-distribution.c: Include tree-eh.h.
23566 (generate_memset_builtin, generate_memcpy_builtin): Call
23567 rewrite_to_non_trapping_overflow on builtin->size before passing it
23568 to force_gimple_operand_gsi.
23570 2019-02-15 Jakub Jelinek <jakub@redhat.com>
23573 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
23575 * opth-gen.awk: Likewise.
23577 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23579 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
23580 Enable MMX, SSE and SSE2 by default.
23581 * config/i386/i386.c (ix86_option_override_internal): Do not
23582 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
23584 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23586 PR rtl-optimization/89354
23587 * combine.c (make_extraction): Punt if extraction_mode is narrower
23590 2019-02-14 Maya Rashish <coypu@sdf.org>
23592 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
23593 * config/netbsd-d.c: New file.
23594 * config/t-netbsd: Add netbsd-d.o
23596 2018-02-14 Steve Ellcey <sellcey@marvell.com>
23598 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
23599 affects_type_identity to true for aarch64_vector_pcs.
23600 (aarch64_comp_type_attributes): New function.
23601 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
23603 2019-02-14 Tamar Christina <tamar.christina@arm.com>
23606 * config/arm/iterators.md (ANY64): Add V4HF.
23608 2019-02-14 Martin Liska <mliska@suse.cz>
23610 PR rtl-optimization/89242
23611 * dce.c (delete_unmarked_insns): Call free_dominance_info we
23612 process a transformation.
23614 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23616 PR tree-optimization/89314
23617 * fold-const.c (fold_binary_loc): Cast strlen argument to
23618 const char * before dereferencing it. Formatting fixes.
23620 PR middle-end/89284
23621 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
23623 2019-02-13 Ian Lance Taylor <iant@golang.org>
23625 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
23626 and set current index for other optimizations.
23628 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
23630 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
23631 nonimmediate_operand as operand 2 predicate.
23632 (vec_set<VF2_512_256:mode>_0): Ditto.
23633 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
23634 (*vec_concatv2si): Remove alternative 2.
23635 (*vec_concatv4si_0): Use vm constraint for alternative 0.
23636 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
23637 (vec_concatv2di): Split alternatives 4,5,6 to ...
23638 (*vec_concatv2di_0) ... new pattern.
23640 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
23643 * config/arm/arm.c (ldm_stm_operation_p) Set
23644 addr_reg_in_reglist correctly for first register.
23645 (load_multiple_sequence): Remove dead base check.
23646 (gen_ldm_seq): Correctly set write_back for Thumb-1.
23648 2019-02-13 Tamar Christina <tamar.christina@arm.com>
23651 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
23652 Expose as @aarch64_pred_mov.
23653 * config/aarch64/aarch64.c (aarch64_classify_address):
23654 Use expand_insn which legitimizes operands.
23656 2019-02-13 Martin Liska <mliska@suse.cz>
23658 * builtins.h (expand_builtin_with_bounds): Remove declaration.
23659 * calls.c (struct arg_data): Remove special_slot, pointer_arg
23660 and pointer_offset fields.
23661 (initialize_argument_information): Remove usage of dead
23663 * cgraph.h (struct cgraph_thunk_info): Remove
23664 add_pointer_bounds_args.
23665 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
23667 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
23669 * config/i386/i386.c (ix86_function_arg_advance): Remove
23671 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
23672 (def_builtin): Remove usage of dead fields.
23673 (ix86_add_new_builtins): Likewise.
23674 * ipa-fnsummary.c (compute_fn_summary): Likewise.
23675 * ipa-icf.c (sem_function::equals_wpa): Likewise.
23676 (sem_function::init): Likewise.
23677 (sem_variable::merge): Likewise.
23678 * ipa-visibility.c (function_and_variable_visibility): Likewise.
23679 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
23680 * lto-cgraph.c (lto_output_node): Likewise.
23681 (lto_output_varpool_node): Likewise.
23682 (input_node): Likewise.
23683 (input_varpool_node): Likewise.
23684 * lto-streamer-out.c (lto_output): Likewise.
23685 * tree-inline.c (expand_call_inline): Remove usage of
23687 * tree-inline.h (struct copy_body_data): Likewise.
23688 * varpool.c (varpool_node::dump): Likewise.
23690 2019-02-13 Jakub Jelinek <jakub@redhat.com>
23692 PR middle-end/89303
23693 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
23694 into pt->vars_contains_escaped_heap instead of setting
23695 pt->vars_contains_escaped_heap to it.
23697 PR middle-end/89281
23698 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
23699 INTVAL (size), compare it to GET_MODE_MASK instead of
23700 1 << GET_MODE_BITSIZE.
23703 * config/i386/predicates.md (x86_64_immediate_operand): Allow
23704 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
23707 2019-02-13 Martin Liska <mliska@suse.cz>
23710 * cfgrtl.c (remove_barriers_from_footer): New function.
23711 (try_redirect_by_replacing_jump): Use it.
23712 (cfg_layout_redirect_edge_and_branch): Likewise.
23714 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
23716 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
23717 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
23718 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
23719 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
23720 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
23721 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
23723 * config/rs6000/rs6000.c (builtin_function_type)
23724 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
23725 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
23726 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
23727 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
23728 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
23730 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
23732 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
23733 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
23735 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
23738 * config/i386/i386.md (*movoi_internal_avx): Revert revision
23739 268678 and revision 268657.
23740 (*movti_internal): Likewise.
23742 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
23745 * config/s390/s390.c (s390_decompose_address): Update comment.
23746 (s390_check_qrst_address): Reject invalid address forms after
23749 2019-02-12 Martin Liska <mliska@suse.cz>
23752 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
23753 we need default values of funct_state for a function that
23756 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
23758 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
23759 the object to pick the size of stores on strict-alignment platforms.
23761 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
23762 (*movdi_insn_sp32): Likewise.
23763 (*movdi_insn_sp64): Likewise.
23765 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
23768 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
23769 types that needs constructiong.
23770 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
23772 2019-02-12 Richard Biener <rguenther@suse.de>
23774 PR tree-optimization/89253
23775 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
23776 duplicate the loop.
23778 2019-02-11 David Malcolm <dmalcolm@redhat.com>
23781 * input.c (selftest::test_line_offset_overflow): New selftest.
23782 (selftest::input_c_tests): Call it.
23784 2019-02-11 Martin Sebor <msebor@redhat.com>
23786 PR tree-optimization/88771
23787 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
23788 when -Wstringop-overflow is set.
23789 (builtin_memref::builtin_memref): Adjust excessive upper bound
23790 only when lower bound is not excessive.
23791 (maybe_diag_overlap): Detect and diagnose excessive bounds via
23792 -Wstringop-ovefflow.
23793 (maybe_diag_offset_bounds): Rename...
23794 (maybe_diag_access_bounds): ...to this.
23795 (check_bounds_or_overlap): Adjust for name change above.
23797 2019-02-11 Martin Sebor <msebor@redhat.com>
23800 * builtins.c (max_object_size): Move from here...
23801 * builtins.h (max_object_size): ...and here...
23802 * tree.c (max_object_size): ...to here...
23803 * tree.h (max_object_size): ...and here.
23805 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
23807 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
23808 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
23809 for correct semantics.
23811 2019-02-11 Alan Modra <amodra@gmail.com>
23813 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
23814 -mlongcall and -mpltseq.
23815 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
23816 (RS/6000 and PowerPC Options <-mpltseq>): Document.
23817 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
23818 * config/rs6000/sysv4.opt (mpltseq): New option.
23819 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
23820 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
23821 support is lacking. Don't allow -mpltseq with -mbss-plt.
23822 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
23823 -mpltseq given for ELFv1.
23824 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
23825 Only use UNSPEC_PLTSEQ for inline PLT calls.
23826 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
23827 use UNSPEC_PLTSEQ for inline PLT calls.
23828 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
23829 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
23830 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
23831 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
23832 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
23833 (pltseq_mtctr_<mode>): Likewise.
23835 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23837 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
23839 * configure: Regenerate.
23841 2019-02-11 Jakub Jelinek <jakub@redhat.com>
23844 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
23847 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23849 * function.c (assign_parm_setup_block): Use the stored
23850 size, not the passed size, when allocating stack-space,
23851 also for a parameter with alignment larger than
23852 MAX_SUPPORTED_STACK_ALIGNMENT.
23854 2019-02-11 Martin Liska <mliska@suse.cz>
23857 * ipa-cp.c (build_toporder_info): Remove usage of a param.
23858 * ipa-inline.c (inline_small_functions): Likewise.
23859 * ipa-pure-const.c (propagate_pure_const): Likewise.
23860 (propagate_nothrow): Likewise.
23861 * ipa-reference.c (propagate): Likewise.
23862 * ipa-utils.c (struct searchc_env): Remove unused field.
23863 (searchc): Always search across AVAIL_INTERPOSABLE.
23864 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
23865 the only called IPA pure const can properly not propagate
23866 across interposable boundary.
23867 * ipa-utils.h (ipa_reduced_postorder): Remove param.
23869 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
23871 * config/nds32/nds32.md (call_internal, call_value_internal,
23872 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
23874 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23876 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
23879 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
23881 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
23884 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23886 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
23888 2019-02-10 Jakub Jelinek <jakub@redhat.com>
23890 PR tree-optimization/89268
23891 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
23892 if preds is non-NULL.
23894 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23897 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
23900 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23902 * config/nds32/nds32.md (trap): New pattern.
23904 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23906 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
23909 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23911 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
23914 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23916 * ipa-visibility.c (localize_node): Also do not localize
23917 LDPR_PREVAILING_DEF_IRONLY_EXP.
23919 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23922 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
23923 instead of type_with_linkage.
23925 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23928 * params.def (uninlined-function-insns, uninlined-function-time,
23929 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
23930 bound so we don't get overflows.
23932 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
23934 * config/rs6000/rs6000-string.c (expand_compare_loop,
23935 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
23938 2019-02-09 Jakub Jelinek <jakub@redhat.com>
23940 PR middle-end/89246
23941 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23942 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
23943 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
23945 2019-02-09 Alan Modra <amodra@gmail.com>
23948 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
23949 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
23952 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
23954 PR middle-end/88560
23955 * lra-constraints.c (process_alt_operands): Don't increase reject
23956 for memory when offset memory is required.
23958 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
23960 * config/s390/vector.md: Implement vector copysign.
23962 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23964 * expr.c (expand_constructor): Correct indentations.
23966 2019-02-08 Richard Biener <rguenther@suse.de>
23968 PR tree-optimization/89247
23969 * tree-if-conv.c: Include tree-cfgcleanup.h.
23970 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
23971 (tree_if_conversion): Pass through predicate vector.
23972 (pass_if_conversion::execute): Do CFG cleanup and SSA update
23973 inline, see if any if-converted loops we refrece in
23974 LOOP_VECTORIZED calls vanished and fixup.
23975 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
23977 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
23979 * config/s390/constraints.md (jdd): New constraint.
23981 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23984 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
23985 upper 16 vector registers without TARGET_AVX512VL.
23986 (*movti_internal): Likewise.
23988 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23990 PR rtl-optimization/89234
23991 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
23992 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
23993 (copy_reg_eh_region_note_backward): Likewise.
23995 2019-02-08 Richard Biener <rguenther@suse.de>
23997 PR middle-end/89223
23998 * tree-data-ref.c (initialize_matrix_A): Fail if constant
23999 doesn't fit in HWI.
24000 (analyze_subscript_affine_affine): Handle failure from
24001 initialize_matrix_A.
24003 2019-02-08 Jakub Jelinek <jakub@redhat.com>
24005 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
24008 2019-02-07 David Malcolm <dmalcolm@redhat.com>
24010 PR tree-optimization/86637
24011 PR tree-optimization/89235
24012 * tree-vect-loop.c (optimize_mask_stores): Add an
24013 auto_purge_vect_location sentinel to ensure that vect_location is
24015 * tree-vectorizer.c
24016 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
24017 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
24018 to ensure that vect_location is purged on exit.
24019 (pass_slp_vectorize::execute): Likewise, replacing the manual
24021 * tree-vectorizer.h (class auto_purge_vect_location): New class.
24023 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24025 * config/aarch64/iterators.md (max_opp): New code_attr.
24026 (USMAX): New code iterator.
24027 * config/aarch64/predicates.md (aarch64_smin): New predicate.
24028 (aarch64_smax): Likewise.
24029 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
24030 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
24033 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
24036 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
24037 for TARGET_AVX512VL.
24038 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
24040 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
24042 * config/s390/s390-builtin-types.def: Add new types.
24043 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
24044 (s390_vec_xlw4): Make the memory operand into a const pointer.
24045 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
24047 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
24048 a new vector type with the alignment of the scalar memory operand.
24050 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
24051 Jakub Jelinek <jakub@redhat.com>
24054 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
24055 arm_count_ldrdstrd_insns): New declarations.
24056 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
24058 (valid_operands_ldrd_strd): New function.
24059 (arm_count_ldrdstrd_insns): New function.
24060 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
24061 sets instead of single DImode set and define new insns to match this.
24063 2019-02-07 Tamar Christina <tamar.christina@arm.com>
24065 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
24066 Make it a C initializer.
24068 2019-02-07 Tamar Christina <tamar.christina@arm.com>
24071 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
24073 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24075 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
24076 Use neon_dot<q> for type.
24077 (neon_<sup>dot_lane<vsi2qi>): Likewise.
24079 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24081 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
24082 Use neon_dot<q> for type.
24083 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
24084 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
24086 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
24088 PR rtl-optimization/89225
24089 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
24092 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
24094 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
24095 after restoring registers saved to allocate the frame on Windows.
24097 2019-02-06 Richard Biener <rguenther@suse.de>
24099 PR tree-optimization/89182
24100 * graphite.h (cached_scalar_evolution_in_region): Declare.
24101 * graphite.c (struct seir_cache_key): New.
24102 (struct sese_scev_hash): Likewise.
24103 (seir_cache): New global.
24104 (cached_scalar_evolution_in_region): New function.
24105 (graphite_transform_loops): Allocate and release seir_cache.
24106 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
24107 cached_scalar_evolution_in_region.
24108 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24110 (scop_detection::graphite_can_represent_expr: Use
24111 cached_scalar_evolution_in_region.
24112 (scop_detection::stmt_simple_for_scop_p): Likewise.
24113 (find_params_in_bb): Likewise.
24114 (gather_bbs::before_dom_children): Likewise.
24115 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
24116 (add_loop_constraints): Likewise.
24118 2019-02-06 Jakub Jelinek <jakub@redhat.com>
24120 PR middle-end/89210
24121 * fold-const-call.c (fold_const_vec_convert): Pass true as last
24122 operand to new_unary_operation only if both element types are integral
24123 and it isn't a widening conversion. Return NULL_TREE if
24124 new_unary_operation failed.
24126 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
24129 * config/s390/s390.md: Remove load and test FP splitter.
24131 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24134 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
24135 expand_compare_loop, expand_block_compare_gpr,
24136 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
24137 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
24138 #include "profile-count.h" and "predict.h" for types and functions
24139 needed to work with REG_BR_PROB notes.
24141 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24144 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
24145 for the long branch case.
24147 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24150 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
24151 can throw, non-call exceptions are enabled and we can't delete
24152 dead exceptions or alter cfg. Set must_clean if
24153 delete_insn_and_edges returns true, don't set it blindly for calls.
24154 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
24156 PR rtl-optimization/89195
24157 * combine.c (make_extraction): For MEMs, don't extract bytes outside
24158 of the original MEM.
24160 2019-02-05 Martin Liska <mliska@suse.cz>
24162 PR gcov-profile/89000
24163 * gcov.c (function_summary): Remove argument.
24164 (file_summary): New function.
24165 (print_usage): Replace tabs with spaces.
24166 (generate_results): Use new function file_summary.
24168 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24171 * optabs.c (prepare_cmp_insn): Pass x and y to
24172 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
24174 2019-02-05 Richard Biener <rguenther@suse.de>
24176 PR middle-end/89150
24177 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
24178 (struct bitmap_element): Drop chain_prev so we properly recurse on
24179 the prev member, supporting tree views.
24180 (struct bitmap_head): GTY skip the obstack member.
24182 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
24185 * doc/extend.texi (Vector Extensions): Add an example of using vector
24186 types together with x86 intrinsics.
24188 2019-02-04 Alan Modra <amodra@gmail.com>
24190 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
24191 str[] size to 160, and comment.
24193 2019-02-04 Alan Modra <amodra@gmail.com>
24195 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
24196 (rs6000_pltseq_template): Guard output of TLS markers with
24197 TARGET_TLS_MARKERS.
24198 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
24199 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
24200 to use inline PLT sequences.
24201 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
24202 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
24203 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
24205 2019-02-04 Martin Liska <mliska@suse.cz>
24208 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
24209 out when ipa_fn_summaries does not contain entry for callee.
24211 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
24213 * config/sparc/sparc.h: Remove superfluous blank lines.
24214 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
24215 (got_register_rtx): ...this.
24216 (sparc_got): Adjust to above renaming.
24217 (sparc_tls_got): Likewise.
24218 (sparc_delegitimize_address): Likewise.
24219 (sparc_output_mi_thunk): Likewise.
24220 (sparc_init_pic_reg): Likewise.
24221 (save_local_or_in_reg_p): Fix test on the GOT register.
24222 (USE_HIDDEN_LINKONCE): Move around.
24223 (get_pc_thunk_name): Likewise.
24224 (gen_load_pcrel_sym): Likewise.
24225 (load_got_register): Likewise.
24227 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
24229 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
24230 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
24232 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24234 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
24235 into consideration.
24237 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24239 * config.gcc (with_nds32_lib, glibc):
24240 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
24241 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
24242 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
24244 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
24247 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
24248 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
24249 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
24250 (*rcpsf2_sse): Ditto.
24251 (*rsqrtsf2_sse): Ditto.
24252 (sse4_1_round<mode<2): Ditto.
24254 2019-02-03 Richard Biener <rguenther@suse.de>
24257 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
24260 2019-02-02 Jakub Jelinek <jakub@redhat.com>
24262 PR middle-end/87887
24263 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24264 Punt with warning on aggregate return or argument types. Ignore
24265 type/mode checking for uniform arguments.
24267 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
24269 * combine.c (try_combine): Do not print "Can't combine" messages unless
24270 printing failed combination attempts.
24272 2019-02-01 Martin Jambor <mjambor@suse.cz>
24275 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
24276 segment and global segment variables before making them static.
24278 2019-02-01 Martin Jambor <mjambor@suse.cz>
24280 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
24281 missed optimization dump with dump_enabled_p.
24283 2019-02-01 Richard Biener <rguenther@suse.de>
24285 PR middle-end/88597
24286 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
24287 the instantiate cache.
24288 (instantiate_scev_binary): Elide second operand procesing
24289 if equal to the first.
24290 * tree-chrec.c (chrec_contains_symbols): Add visited set.
24291 (chrec_contains_undetermined): Likewise.
24292 (tree_contains_chrecs): Likewise.
24294 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
24296 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
24298 2019-02-01 Jakub Jelinek <jakub@redhat.com>
24300 PR tree-optimization/89143
24301 * wide-int-range.h (wide_int_range_absu): Declare.
24302 * wide-int-range.cc (wide_int_range_absu): New function.
24303 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
24305 PR tree-optimization/88107
24306 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
24307 instead of assertion that eh_region_outermost is non-NULL, if it
24308 is NULL, set *ALL to true and return NULL.
24309 (move_sese_region_to_fn): Adjust caller, if all is set, call
24310 duplicate_eh_regions with NULL region.
24312 2019-02-01 Richard Biener <rguenth@suse.de>
24314 PR rtl-optimization/88593
24315 * mode-switching.c (optimize_mode_switching): Free dominators before
24316 calling cleanup_cfg.
24318 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
24320 PR tree-optimization/88932
24321 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
24323 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24325 PR middle-end/89137
24326 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
24327 bogus clang warning.
24329 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
24332 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
24333 alternative to avoid partial SSE register stall for TARGET_AVX.
24334 (truncdfsf2): Ditto.
24335 (sse4_1_round<mode>2): Ditto.
24337 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
24339 PR tree-optimization/89008
24340 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
24341 process anything of the form X * 0.
24343 2019-01-31 Richard Biener <rguenther@suse.de>
24345 PR tree-optimization/89135
24346 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
24347 with abnormal preds.
24349 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24352 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
24353 always_inline callees into no_sanitize_address callers.
24355 2019-01-31 Richard Biener <rguenther@suse.de>
24357 PR rtl-optimization/89115
24358 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
24360 2019-01-30 Martin Sebor <msebor@redhat.com>
24363 * doc/extend.texi (cast to a union): Correct and expand.
24365 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
24367 PR rtl-optimization/87246
24368 * lra-constraints.c (simplify_operand_subreg): Reload memory
24369 in subreg if the address became invalid.
24371 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
24374 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
24375 Disable for little-endian.
24377 2019-01-30 Richard Biener <rguenther@suse.de>
24379 PR rtl-optimization/89115
24380 * opts.c (default_options_optimization): Reduce
24381 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
24382 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
24385 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
24387 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
24388 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
24389 type of vector element when vec_extract is implemented by direct
24392 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
24394 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
24396 2019-01-30 Richard Biener <rguenther@suse.de>
24398 PR tree-optimization/89111
24399 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
24400 canonicalization to appropriately sized access types.
24402 2019-01-30 Jakub Jelinek <jakub@redhat.com>
24405 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
24406 for arguments to functions that are TU-local and shouldn't be
24407 referenced by assembly.
24409 2019-01-30 Ulrich Drepper <drepper@redhat.com>
24411 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
24414 2019-01-29 Martin Sebor <msebor@redhat.com>
24417 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
24419 2019-01-29 Jakub Jelinek <jakub@redhat.com>
24423 * omp-simd-clone.c (simd_clone_clauses_extract)
24424 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
24425 OMP_CLAUSE_ALIGNED_ALIGNMENT.
24427 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
24429 * config.gcc: Force .init_array for ARC.
24431 2019-01-29 Richard Biener <rguenther@suse.de>
24434 * dwarf2out.c (collect_skeleton_dies): New helper.
24435 (copy_decls_for_unworthy_types): Call it.
24436 (build_abbrev_table): Assert we do not try to replace
24437 DW_AT_signature refs with local refs.
24439 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24441 PR middle-end/89002
24442 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
24443 for lastprivate/linear IV, push gimplify context around gimplify_assign
24444 and, if it needed any temporaries, pop it into a gimple bind around the
24447 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
24449 * common.opt (-Wattribute-alias): Remove "no-" from name.
24450 Make -Wattribute-alias command line option and
24451 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
24453 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24456 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
24457 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
24459 (bmi2): Add missing @opindex.
24460 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
24461 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
24462 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
24463 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
24464 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
24465 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
24466 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
24467 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
24468 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
24469 xsavec, xsaveopt and xsaves options.
24471 2019-01-28 Richard Biener <rguenther@suse.de>
24474 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
24477 2019-01-28 Richard Biener <rguenther@suse.de>
24479 PR tree-optimization/88739
24480 * tree-cfg.c (verify_types_in_gimple_reference): Verify
24481 BIT_FIELD_REFs only are applied to mode-precision operands
24482 when they are integral.
24483 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
24484 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
24485 BIT_FIELD_REFs of non-mode-precision integral operands.
24487 2019-01-27 Jakub Jelinek <jakub@redhat.com>
24490 * config/i386/sse.md
24491 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
24492 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
24493 first constants in pairs are multiples of 2. Formatting fixes.
24494 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
24495 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
24496 first constants in each quadruple are multiples of 4. Formatting fixes.
24498 2019-01-26 Martin Jambor <mjambor@suse.cz>
24501 * tree-inline.c: Include tree-cfgcleanup.h.
24502 (delete_unreachable_blocks_update_callgraph): Move...
24503 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
24504 ...here, make externally visible, make second argument bool, adjust
24506 * tree-cfgcleanup.c: Include cgraph.h.
24507 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
24509 * ipa-prop.c: Include tree-cfgcleanup.h.
24510 (ipcp_transform_function): Call
24511 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
24513 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
24515 PR rtl-optimization/88846
24516 * ira.c (process_set_for_memref_referenced_p): New.
24517 (memref_referenced_p): Add new param. Use
24518 process_set_for_memref_referenced_p. Add new switch cases.
24519 (memref_used_between_p): Pass new arg to memref_referenced_p.
24521 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
24524 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
24525 argument ABI_BREAK. Set to true if the calculated alignment has
24526 changed in gcc-9. Check bit-fields for their base type alignment.
24527 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
24528 (aarch64_function_arg_boundary): Likewise.
24529 (aarch64_gimplify_va_arg_expr): Likewise.
24531 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24533 PR middle-end/89037
24534 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
24535 instead of accessing TREE_INT_CST_ELT directly.
24537 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
24539 * doc/sourcebuild.texi (Environment attributes): Add fenv and
24540 fenv_exceptions description.
24542 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
24544 PR rtl-optimization/87763
24545 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
24546 Allow SUBREG when matching CC_NZmode compare.
24548 2019-01-25 Richard Biener <rguenther@suse.de>
24550 PR tree-optimization/89049
24551 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
24552 Look at the pattern stmt to determine if the stmt is vectorized.
24554 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24556 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
24557 (pred_mov<mode>): Handle all-register forms using both a new
24558 alternative and a split.
24560 2019-01-25 Richard Biener <rguenther@suse.de>
24562 PR tree-optimization/86865
24563 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24564 Reject non-do-while loops.
24566 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
24568 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
24569 * config/rs6000/constraints.md (Q constraint): Use REG_P.
24570 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
24571 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24572 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
24573 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24574 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
24575 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
24576 vlogical_operand, gpc_reg_operand, int_reg_operand,
24577 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
24578 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
24579 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
24580 (save_world_operation, restore_world_operation, lmw_operation,
24581 stmw_operation): Use MEM_P and REG_P.
24582 (tie_operand): Use MEM_P.
24583 (vrsave_operation, crsave_operation): Use REG_P.
24584 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
24585 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
24586 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
24587 (call_operand): Use HARD_REGISTER_P.
24588 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
24590 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
24591 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
24592 quad_aligned_load_p, replace_swapped_aligned_store,
24593 recombine_lvx_pattern, replace_swapped_aligned_load,
24594 recombine_stvx_pattern): Use MEM_P.
24595 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
24596 Use MEM_P and SYMBOL_REF_P.
24597 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
24598 (insn_is_swappable_p): Use REG_P and MEM_P.
24599 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
24600 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
24602 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
24603 Use CONST_DOUBLE_P.
24604 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
24606 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
24607 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
24608 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
24609 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
24611 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24612 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
24613 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
24614 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
24615 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
24616 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
24617 rs6000_split_logical_di): Use CONST_INT_P.
24618 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
24619 REG_P and SYMBOL_REF_P.
24620 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
24621 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
24622 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
24623 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
24624 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
24625 (small_data_operand, print_operand_address): Use CONST_INT_P and
24627 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
24628 (rs6000_init_hard_regno_mode_ok, direct_move_p):
24629 Use HARD_REGISTER_NUM_P.
24630 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
24631 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
24632 SUBREG_P and SYMBOL_REF_P.
24633 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
24634 and HARD_REGISTER_NUM_P.
24635 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
24637 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
24638 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
24640 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
24641 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
24642 find_addr_reg): Use REG_P.
24643 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
24644 (rs6000_emit_le_vsx_move): Use SUBREG_P.
24645 (offsettable_ok_by_alignment, constant_pool_expr_p,
24646 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
24647 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
24648 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
24649 rs6000_assemble_integer, create_TOC_reference,
24650 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
24651 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
24652 (rs6000_split_vec_extract_var): Use reg_or_subregno.
24653 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24654 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24655 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24656 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24657 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
24658 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
24659 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
24660 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
24661 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
24662 and cbranch<mode>4): Use CONST_INT_P.
24663 (multiple define_splits): Use REG_P and SUBREG_P.
24664 (define_expands call, call_value): Use MEM_P.
24665 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
24666 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
24667 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
24668 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
24669 and HARD_REGISTER_NUM_P.
24670 (multiple define_splits): Use HARD_REGISTER_NUM_P.
24672 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
24674 PR rtl-optimization/88948
24675 * rtl.h (prepare_copy_insn): New prototype.
24676 * gcse.c (prepare_copy_insn): New function, split out from
24677 process_insert_insn.
24678 (process_insert_insn): Use prepare_copy_insn.
24679 * store-motion.c (replace_store_insn): Use prepare_copy_insn
24680 instead of gen_move_insn.
24682 2019-01-24 Jakub Jelinek <jakub@redhat.com>
24685 * config/i386/i386.c (ix86_pic_register_p): Return true for
24686 UNSPEC_SET_GOT too.
24688 PR tree-optimization/88964
24689 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
24690 punt if HONOR_SNANS (chrec).
24692 PR middle-end/89015
24693 * tree-nested.c (convert_nonlocal_reference_stmt,
24694 convert_local_reference_stmt, convert_tramp_reference_stmt,
24695 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
24696 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
24697 or GIMPLE_OMP_TASK.
24699 PR tree-optimization/89027
24700 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
24701 for "omp simd array" variables.
24703 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
24706 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
24707 force the alignment of m_val.
24709 2019-01-24 Richard Biener <rguenther@suse.de>
24712 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
24713 When in "legacy" debug mode make sure to reset self-origins.
24715 2019-01-24 Martin Liska <mliska@suse.cz>
24717 PR gcov-profile/88994
24718 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
24719 result will be always smaller or equal to the original.
24720 * gcov.c (mangle_name): Fix else branch where we should
24721 also copy to PTR and shift the pointer.
24723 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
24725 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
24726 * vr-values.c (find_case_label_ranges): Fix a comment typo.
24728 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
24730 * common/config/i386/i386-common.c
24731 (OPTION_MASK_ISA_ENQCMD_SET,
24732 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
24733 (ix86_handle_option): Handle -menqcmd.
24734 * config.gcc (enqcmdintrin.h): New header file.
24735 * config/i386/cpuid.h (bit_ENQCMD): New bit.
24736 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
24738 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
24740 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
24741 __builtin_ia32_enqcmds): New builtins.
24742 * config/i386/i386-c.c (__ENQCMD__): New macro.
24743 * config/i386/i386-option.c (ix86_target_string): Add
24745 (ix86_valid_target_attribute_inner_p): Likewise.
24746 * config/i386/i386-expand.c
24747 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
24748 IX86_BUILTIN_ENQCMDS.
24749 * config/i386/i386.h (TARGET_ENQCMD): New.
24750 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
24751 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
24752 (movdir64b_<mode>): Parameterize to enable share expansion code
24753 with ENQCMD in function ix86_expand_builtin.
24754 * config/i386/i386.opt: Add -menqcmd.
24755 * config/i386/immintrin.h: Include enqcmdintrin.h.
24756 * config/i386/enqcmdintrin.h: New intrinsic file.
24757 * doc/invoke.texi: Add -menqcmd.
24759 2019-01-23 Bin Cheng <bin.cheng@arm.com>
24760 Steve Ellcey <sellcey@marvell.com>
24763 * recog.c (address_operand): Return false on wrong mode for address.
24764 (constrain_operands): Check for mode with 'p' constraint.
24766 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
24769 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
24770 Disparage MMX alternative.
24771 (sse2_cvtpd2pi): Ditto.
24772 (sse2_cvttpd2pi): Ditto.
24774 2019-01-23 David Malcolm <dmalcolm@redhat.com>
24777 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
24778 use-after-free of the result of
24779 aarch64_get_extension_string_for_isa_flags.
24781 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24784 * doc/extend.texi: Document break and continue behavior in
24785 statement expressions.
24787 2019-01-23 Richard Biener <rguenther@suse.de>
24789 PR tree-optimization/89008
24790 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
24791 not leave another stray operand.
24793 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24795 * BASE-VER: Bump to 9.0.1.
24797 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
24799 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
24800 thunk that returns by reference, use the type of the return object
24801 of the thunk instead of that of the alias to build the dereference.
24803 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
24805 * config/arc/atomic.md: Add operand to DMB instruction.
24807 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24809 PR tree-optimization/88964
24810 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
24811 build_zero_cst instead of build_int_cst. Return false for loop
24812 invariants which honor signed zeros.
24814 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
24816 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
24818 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24821 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
24822 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
24823 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
24825 PR middle-end/88968
24826 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
24827 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
24830 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
24831 Disable for little endian.
24833 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24836 * config/arm/arm.c (arm_needs_double_word_align): Check
24837 DECL_BIT_FIELD_TYPE.
24839 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
24840 H.J. Lu <hongjiu.lu@intel.com>
24843 * config/i386/i386-builtin.def: Add mask2 to all builtin
24844 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
24846 * config/i386/i386.c (BDESC): Add mask2 to the definition.
24847 (BDESC_FIRST): Likewise.
24848 (define_builtin): Add an argument for mask2. Updated to handle
24849 both ix86_isa_flags and ix86_isa_flags2.
24850 (define_builtin_const): Likewise.
24851 (define_builtin_pure): Likewise.
24852 (define_builtin2): Deleted.
24853 (define_builtin_const2): Likewise.
24854 (builtin_description): Add a member, mask2.
24855 (bdesc_*): Add mask2 to builtin initializations.
24856 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
24857 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
24859 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
24861 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
24864 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
24867 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24870 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
24871 alignment is dominated by a bitfield with 64-bit aligned base type.
24872 (arm_function_arg): Emit a warning if the alignment has changed since
24873 earlier GCC releases.
24874 (arm_function_arg_boundary): Likewise.
24875 (arm_setup_incoming_varargs): Likewise.
24877 2019-01-22 Richard Biener <rguenther@suse.de>
24879 PR tree-optimization/88862
24880 * graphite-scop-detection.c
24881 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
24883 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
24885 * doc/extend.tex (AMD GCN Function Attributes): New section.
24886 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
24887 * doc/invoke.texi (AMD GCN Options): New section.
24888 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
24890 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
24892 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
24893 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
24895 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24897 PR tree-optimization/88044
24898 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
24899 is false in the first iteration, but !every_iteration, return false
24900 instead of true with niter->niter zero.
24902 PR rtl-optimization/88904
24903 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
24904 any nonequal registers before processing BB_END (b).
24907 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
24909 (expand_binop_directly, expand_doubleword_clz,
24910 expand_doubleword_popcount, expand_ctz, expand_ffs,
24911 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
24913 PR rtl-optimization/49429
24915 PR rtl-optimization/86334
24917 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
24918 addressable from here...
24919 (emit_block_op_via_libcall): ... to here.
24921 2019-01-22 Richard Biener <rguenther@suse.de>
24923 * tree-vect-loop.c (vect_analyze_loop_operations): Use
24924 auto_vec for cost vector to fix memleak.
24925 (vectorize_fold_left_reduction): Properly gather SLP defs.
24926 (vectorizable_comparison): Do not swap operands to properly
24929 2019-01-22 Alan Modra <amodra@gmail.com>
24932 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
24933 stays a reg. Allow a const_int.
24934 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
24935 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
24936 (IS_NOMARK_TLSGETADDR): Define.
24937 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
24938 (rs6000_output_tlsargs): New function.
24939 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
24940 __tls_get_addr call takes an arg.
24941 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
24942 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
24944 (call_value_nonlocal_sysv): ..or here, delete split.
24945 (tls_gdld_nomark): Delete.
24946 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
24947 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
24948 (call_value_nonlocal_sysv): Likewise.
24949 (call_value_nonlocal_sysv_secure): Likewise.
24950 (call_value_nonlocal_aix): Likewise.
24951 (call_value_indirect_aix): Likewise.
24952 (call_value_indirect_elfv2): Likewise.
24953 (call_value_local32, call_value_local64): Disable for no-mark tls.
24954 (call_value_local_aix): Likewise.
24956 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
24959 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
24960 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
24962 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
24964 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
24965 string contents as hash_map keys.
24967 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
24970 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
24971 for rvalue context. Handle rvalues correctly. Use min_align_of_type
24972 instead of TYPE_ALIGN.
24973 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
24974 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
24975 pointer from TYPE_STUB_DECL.
24977 2019-01-21 Richard Biener <rguenther@suse.de>
24979 PR tree-optimization/88934
24980 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
24981 at the possibly non-constant operand.
24982 (vect_get_constant_vectors): Adjust.
24984 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
24987 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
24988 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
24989 instead of _X86INTRIN_H_INCLUDED.
24990 * onfig/i386/clwbintrin.h: Likewise.
24991 * config/i386/pkuintrin.h: Likewise.
24992 * config/i386/prfchwintrin.h: Likewise.
24993 * config/i386/rdseedintrin.h: Likewise.
24994 * config/i386/wbnoinvdintrin.h: Likewise.
24995 * config/i386/xsavecintrin.h: Likewise.
24996 * config/i386/xsavesintrin.h: Likewise.
24997 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
24998 * config/i386/xsaveintrin.h: Likewise.
24999 * config/i386/xsaveoptintrin.h: Likewise.
25000 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
25001 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
25002 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
25003 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
25004 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
25005 * config/i386/immintrin.h: Here.
25007 2019-01-20 Martin Jambor <mjambor@suse.cz>
25010 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
25011 with aa_walk_budget.
25012 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
25013 aa_walk_budget_p parameter.
25014 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
25015 walk. Updated all callers.
25016 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
25017 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
25019 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
25020 parameter info. Extract info from fbi. Pass fbi to recursive calls
25021 and to unmodified_parm.
25022 (phi_result_unknown_predicate): New parameter fbi, removed parameter
25023 info, updated call to will_be_nonconstant_expr_predicate.
25024 (param_change_prob): New parameter fbi, limit AA walking.
25025 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
25026 calls to various above functions.
25027 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
25028 parameter. Use it to limit AA walking.
25029 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
25030 fbi, limit AA walk.
25031 (detect_type_change): New parameter fbi, pass it on to
25032 detect_type_change_from_memory_writes.
25033 (detect_type_change_ssa): Likewise.
25034 (aa_overwalked): Removed.
25035 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
25036 accordingly, adjust to the neew AA limiting scheme.
25037 (parm_ref_data_preserved_p): Likewise.
25038 (ipa_compute_jump_functions_for_edge): Adjust call to
25040 (ipa_analyze_call_uses): Likewise.
25041 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
25042 (ipa_analyze_node): Initialize aa_walk_budget.
25043 (ipcp_transform_function): Likewise.
25044 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
25045 to get_dynamic_type.
25047 2019-01-19 Jakub Jelinek <jakub@redhat.com>
25049 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
25050 outside of #if CHECKING_P code.
25052 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
25054 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
25055 New function, split out from...
25056 (loop_versioning::analyze_stride): ...here.
25057 (loop_versioning::find_per_loop_multiplication): Use gassign.
25058 (loop_versioning::analyze_term_using_scevs): Return a success code.
25059 (loop_versioning::analyze_arbitrary_term): New function.
25060 (loop_versioning::analyze_address_fragment): Use
25061 analyze_arbitrary_term if all else fails.
25063 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
25066 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
25069 2019-01-18 Richard Biener <rguenther@suse.de>
25071 PR tree-optimization/88903
25072 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
25073 scalar stmts a SLP shift amount is composed of when detecting
25076 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
25079 * config/arm/arm-cpus.in (mp): New feature.
25080 (sec): New feature.
25081 (fgroup ARMv7ve): Add mp and sec features.
25082 (arch armv7-a): Add options to allow mp and sec extensions.
25083 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
25084 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
25085 extenstions to the base architecture.
25086 (cpu cortex-a8): Add sec extension to the base architecture.
25087 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
25088 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
25089 variants down to the base v7-a varaint.
25090 * config/arm/t-multilib (v7_a_arch_variants): New variable.
25091 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
25092 of permitted extensions for -march=armv7-a and for
25093 -mcpu=generic-armv7-a.
25095 2019-01-18 Martin Liska <mliska@suse.cz>
25097 * params.def: Fix comment.
25098 * tree-profile.c (gimple_init_gcov_profiler): Bump function
25100 (gimple_gen_ic_func_profiler): Likewise.
25102 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25104 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
25105 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
25106 and put in error checks for stack protector guard options.
25107 (aarch64_stack_protect_guard): New.
25108 (TARGET_STACK_PROTECT_GUARD): Define.
25109 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
25110 (reg_stack_protect_address<mode>): New.
25111 (stack_protect_set): Adjust for SSP_GLOBAL.
25112 (stack_protect_test): Likewise.
25113 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
25114 (-mstack-protector-guard): Likewise.
25115 (-mstack-protector-guard-offset): Likewise.
25117 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25119 PR tree-optimization/86214
25120 * tree-inline.h (struct copy_body_data): Add
25121 add_clobbers_to_eh_landing_pads member.
25122 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
25123 (copy_edges_for_bb): Call it if EH edge destination is <
25124 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
25125 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
25126 if flag_stack_reuse != SR_NONE and clear it afterwards.
25128 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
25131 * doc/install.texi (with-multilib-list): Document for aarch64.
25133 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25136 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
25137 (("..."))) with ("...").
25139 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
25141 * doc/extend.texi (Built-in Functions for Memory Model Aware
25142 Atomic Operations): Document atomic fetch and nand.
25144 2019-01-18 Martin Liska <mliska@suse.cz>
25145 Richard Biener <rguenther@suse.de>
25147 PR middle-end/88587
25148 * cgraph.h (create_version_clone_with_body): Add new argument
25150 * cgraphclones.c (cgraph_node::create_version_clone): Add
25151 DECL_ATTRIBUTES to a newly created decl. And call
25152 valid_attribute_p so that proper cl_target_optimization_node
25153 is set for the newly created declaration.
25154 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
25156 (expand_target_clones): Do not call valid_attribute_p, it must
25158 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
25161 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25164 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
25165 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
25166 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
25168 2019-01-17 Martin Sebor <msebor@redhat.com>
25170 PR middle-end/88273
25171 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
25172 Handle anti-ranges the same as no range at all.
25174 2018-01-17 Steve Ellcey <sellcey@cavium.com>
25176 * config/aarch64/aarch64.c (cgraph.h): New include.
25177 (intl.h): New include.
25178 (supported_simd_type): New function.
25179 (currently_supported_simd_type): Ditto.
25180 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
25181 (aarch64_simd_clone_adjust): Ditto.
25182 (aarch64_simd_clone_usable): Ditto.
25183 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
25184 (TARGET_SIMD_CLONE_ADJUST): Ditto.
25185 (TARGET_SIMD_CLONE_USABLE): Ditto.
25186 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
25187 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
25190 2019-01-17 Martin Sebor <msebor@redhat.com>
25192 PR tree-optimization/88800
25193 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
25194 NO_WARNING bit here. Avoid folding out-of-bounds calls.
25195 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
25196 redundant argument. Add new argument and issue diagnostics under
25197 its control. Detect out-of-bounds access even with warnings
25199 (check_bounds_or_overlap): Change return type. Add argument.
25200 (wrestrict_dom_walker::check_call): Adjust.
25201 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
25202 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
25203 check_bounds_or_overlap's return value.
25204 (handle_builtin_stxncpy): Same.
25205 (handle_builtin_strcat): Same.
25207 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25208 Kwok Cheung Yeung <kcy@codesourcery.com>
25209 Julian Brown <julian@codesourcery.com>
25210 Tom de Vries <tom@codesourcery.com>
25212 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
25214 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25216 * doc/sourcebuild.texi: Document dg-require-effective-target
25217 llvm_binutils and offload_gcn.
25219 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25220 Kwok Cheung Yeung <kcy@codesourcery.com>
25221 Julian Brown <julian@codesourcery.com>
25222 Tom de Vries <tom@codesourcery.com>
25224 * doc/sourcebuild.texi: Document dg-required-effective-target
25227 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25228 Kwok Cheung Yeung <kcy@codesourcery.com>
25229 Julian Brown <julian@codesourcery.com>
25230 Tom de Vries <tom@codesourcery.com>
25231 Jan Hubicka <hubicka@ucw.cz>
25232 Martin Jambor <mjambor@suse.cz>
25234 * config.gcc: Add amdgcn*-*-amdhsa configuration.
25235 * configure.ac: Check for dlopen.
25236 * configure: Regenerate.
25238 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25239 Kwok Cheung Yeung <kcy@codesourcery.com>
25240 Julian Brown <julian@codesourcery.com>
25241 Tom de Vries <tom@codesourcery.com>
25242 Jan Hubicka <hubicka@ucw.cz>
25243 Martin Jambor <mjambor@suse.cz>
25245 * common/config/gcn/gcn-common.c: New file.
25246 * config/gcn/driver-gcn.c: New file.
25247 * config/gcn/gcn-builtins.def: New file.
25248 * config/gcn/gcn-hsa.h: New file.
25249 * config/gcn/gcn-modes.def: New file.
25250 * config/gcn/gcn-opts.h: New file.
25251 * config/gcn/gcn-passes.def: New file.
25252 * config/gcn/gcn-protos.h: New file.
25253 * config/gcn/gcn-run.c: New file.
25254 * config/gcn/gcn-tree.c: New file.
25255 * config/gcn/gcn.c: New file.
25256 * config/gcn/gcn.h: New file.
25257 * config/gcn/gcn.opt: New file.
25258 * config/gcn/t-gcn-hsa: New file.
25260 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25261 Kwok Cheung Yeung <kcy@codesourcery.com>
25262 Julian Brown <julian@codesourcery.com>
25263 Tom de Vries <tom@codesourcery.com>
25264 Jan Hubicka <hubicka@ucw.cz>
25265 Martin Jambor <mjambor@suse.cz>
25267 * config/gcn/constraints.md: New file.
25268 * config/gcn/gcn-valu.md: New file.
25269 * config/gcn/gcn.md: New file.
25270 * config/gcn/predicates.md: New file.
25272 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
25274 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
25275 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
25276 (stmt_uses_0_or_null_in_undefined_way): Likewise.
25277 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
25279 2019-01-17 Tamar Christina <tamar.christina@arm.com>
25282 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
25283 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
25284 it and document registers.
25286 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25288 * config/aarch64/aarch64.c (ares_tunings): Define.
25289 * config/aarch64/aarch64-cores.def (ares): Use the above.
25291 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25295 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
25297 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
25298 (_mm512_fixupimm_round_pd): Update parameters and builtin.
25299 (_mm512_maskz_fixupimm_round_pd): Ditto.
25300 (_mm512_fixupimm_round_ps): Ditto.
25301 (_mm512_maskz_fixupimm_round_ps): Ditto.
25302 (_mm_fixupimm_round_sd): Ditto.
25303 (_mm_maskz_fixupimm_round_sd): Ditto.
25304 (_mm_fixupimm_round_ss): Ditto.
25305 (_mm_maskz_fixupimm_round_ss): Ditto.
25306 (_mm512_fixupimm_pd): Ditto.
25307 (_mm512_maskz_fixupimm_pd): Ditto.
25308 (_mm512_fixupimm_ps): Ditto.
25309 (_mm512_maskz_fixupimm_ps): Ditto.
25310 (_mm_fixupimm_sd): Ditto.
25311 (_mm_maskz_fixupimm_sd): Ditto.
25312 (_mm_fixupimm_ss): Ditto.
25313 (_mm_maskz_fixupimm_ss): Ditto.
25314 (_mm512_mask_fixupimm_round_pd): Update builtin.
25315 (_mm512_mask_fixupimm_round_ps): Ditto.
25316 (_mm_mask_fixupimm_round_sd): Ditto.
25317 (_mm_mask_fixupimm_round_ss): Ditto.
25318 (_mm512_mask_fixupimm_pd): Ditto.
25319 (_mm512_mask_fixupimm_ps): Ditto.
25320 (_mm_mask_fixupimm_sd): Ditto.
25321 (_mm_mask_fixupimm_ss): Ditto.
25322 * config/i386/avx512vlintrin.h:
25323 (_mm256_fixupimm_pd): Update parameters and builtin.
25324 (_mm256_maskz_fixupimm_pd): Ditto.
25325 (_mm256_fixupimm_ps): Ditto.
25326 (_mm256_maskz_fixupimm_ps): Ditto.
25327 (_mm_fixupimm_pd): Ditto.
25328 (_mm_maskz_fixupimm_pd): Ditto.
25329 (_mm_fixupimm_ps): Ditto.
25330 (_mm_maskz_fixupimm_ps): Ditto.
25331 (_mm256_mask_fixupimm_pd): Update builtin.
25332 (_mm256_mask_fixupimm_ps): Ditto.
25333 (_mm_mask_fixupimm_pd): Ditto.
25334 (_mm_mask_fixupimm_ps): Ditto.
25335 * config/i386/i386-builtin-types.def: Add new types and remove
25337 * config/i386/i386-builtin.def: Update builtin definitions.
25338 * config/i386/i386.c: Handle new builtin types and remove useless ones.
25339 * config/i386/sse.md: Update VFIXUPIMM* patterns.
25340 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25341 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25342 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
25343 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25344 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25345 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
25346 * config/i386/subst.md:
25347 (round_saeonly_sd_mask_operand4): Add new subst_attr.
25348 (round_saeonly_sd_mask_op4): Ditto.
25349 (round_saeonly_expand_operand5): Ditto.
25350 (round_saeonly_expand): Update.
25352 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25356 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
25358 * config/i386/sse.md: Combine VFIXUPIMM* patterns
25359 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25360 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25361 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
25362 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25363 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25364 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
25366 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25370 2018-12-15 Jakub Jelinek <jakub@redhat.com>
25373 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
25374 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
25375 instead of UNSPEC_FIXUPIMM.
25377 2019-01-17 Richard Biener <rguenther@suse.de>
25380 * dwarf2out.c (want_pubnames): Never generate pubnames sections
25381 and friends for the LTO part of debug info.
25383 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25385 PR tree-optimization/86214
25386 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
25389 PR rtl-optimization/88870
25390 * dce.c (deletable_insn_p): Never delete const/pure calls that can
25391 throw if we can't alter the cfg or delete dead exceptions.
25392 (mark_insn): Don't call find_call_stack_args for such calls.
25394 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
25396 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
25397 prototypes for vec_st.
25398 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
25399 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
25400 mainly on signed/unsigned long long and double.
25402 2019-01-16 David Malcolm <dmalcolm@redhat.com>
25405 * combine.c (delete_noop_moves): Convert to "bool" return,
25406 returning true if any edges are eliminated.
25407 (combine_instructions): Also return true if delete_noop_moves
25410 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25412 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
25413 correct max nunits for endian swap.
25414 (aarch64_expand_fcmla_builtin): Correct subreg code.
25415 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25416 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
25419 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
25421 * config/alpha/alpha.c (alpha_gimplify_va_arg):
25422 Handle split indirect COMPLEX_TYPE arguments.
25424 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
25427 * config/aarch64/aarch64-modes.def: Add comment about how the carry
25428 bit is set by add and compare.
25429 (CC_ADC): New CC_MODE.
25430 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
25431 to cache the code and mode of X. Adjust the shape of a CC_Cmode
25432 comparison. Add detection for CC_ADCmode.
25433 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
25435 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
25436 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
25437 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
25438 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
25439 to eliminate the need for zero-extending the operands.
25440 (add<mode>3_compareC_imm): Delete. Merge into ...
25441 (add<mode>3_compareC): ... this. Restructure the comparison to
25442 eliminate the need for zero-extending the operands.
25443 (add<mode>3_carryin): Use LTU for the overflow detection.
25444 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
25445 Reexpress comparison for overflow.
25446 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
25447 (add<mode>3_carryinC): Likewise.
25448 (add<mode>3_carryinV): Use LTU for carry between partials.
25449 * config/aarch64/predicates.md (aarch64_carry_operation): Update
25450 handling of CC_Cmode and add CC_ADCmode.
25451 (aarch64_borrow_operation): Likewise.
25453 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25455 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
25456 Remove patternmode.
25457 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
25458 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25459 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
25460 Remove endianness conversion.
25462 2019-01-16 Martin Liska <mliska@suse.cz>
25464 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
25466 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
25468 * gcc.c (add_sysrooted_hdrs_prefix): New function.
25469 (path_prefix_reset): Move up in the source file.
25470 (find_fortran_preinclude_file): Make complex search for the
25471 fortran header files.
25473 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
25475 * godump.c (go_output_typedef): When outputting a typedef, refer
25476 to the underlying type by its name and not its structure.
25478 2019-01-15 David Malcolm <dmalcolm@redhat.com>
25481 * tree.c (build_function_type): Assert that arg_types is not
25484 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
25486 PR inline-asm/52813
25487 * doc/extend.texi: Document that listing the stack pointer in the
25488 clobber list of an asm is a deprecated feature.
25489 * common.opt (Wdeprecated): Moved from c-family/c.opt.
25490 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
25491 warning instead of an error for clobbers of the stack pointer.
25492 Add a note explaining why.
25494 2019-01-15 Richard Biener <rguenther@suse.de>
25497 * dwarf2out.c (gen_member_die): Do not generate inheritance
25500 2019-01-15 Richard Biener <rguenther@suse.de>
25502 PR tree-optimization/88855
25503 * tree-if-conv.c (combine_blocks): Collect
25504 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
25506 2019-01-15 Tom de Vries <tdevries@suse.de>
25509 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
25510 lhs == NULL_TREE for gang-level reduction.
25512 2019-01-15 Richard Biener <rguenther@suse.de>
25513 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25516 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
25517 return true if SSA_NAME is already marked in visited bitmap.
25518 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
25520 2019-01-15 Jakub Jelinek <jakub@redhat.com>
25522 PR tree-optimization/88775
25523 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
25524 equal == 0 equality pointer comparisons some more if compared in
25525 integral types and either one points to an automatic var and the
25526 other to a global, or we can prove at least one points to the middle
25527 or both point to start or both point to end.
25529 2019-01-14 Andi Kleen <ak@linux.intel.com>
25531 * Makefile.in: Lower autofdo sampling rate by 10x.
25532 * Makefile.tpl: Dito.
25534 2019-01-14 Tom Honermann <tom@honermann.net>
25536 * defaults.h: Define CHAR8_TYPE.
25538 2019-01-14 Martin Sebor <msebor@redhat.com>
25541 * doc/extend.texi (Darwin Format Checks): Clarify.
25543 2019-01-14 Richard Biener <rguenther@suse.de>
25545 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
25546 whether we are in (simplify ...) or (match ...) context.
25548 2019-01-14 Jakub Jelinek <jakub@redhat.com>
25550 PR rtl-optimization/88796
25551 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
25552 * cfgexpand.c (stack_protect_prologue): Initialize
25553 crtl->stack_protect_guard_decl.
25554 * function.c (stack_protect_epilogue): Use it instead of calling
25555 targetm.stack_protect_guard again.
25556 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
25557 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
25558 crtl->stack_protect_guard_decl.
25559 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
25560 on the returned MEM_EXPR.
25562 2019-01-12 Tom de Vries <tdevries@suse.de>
25564 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
25565 vector length using -fopenacc-dim.
25567 2019-01-12 Tom de Vries <tdevries@suse.de>
25569 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
25570 lengths into account.
25572 2019-01-12 Svante Signell <svante.signell@gmail.com>
25574 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
25575 (TARGET_CAN_SPLIT_STACK): Define.
25576 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
25578 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
25580 * params.def (inline-unit-growth): Set to 40.
25582 2019-01-12 Jakub Jelinek <jakub@redhat.com>
25584 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
25586 2019-01-12 Tom de Vries <tdevries@suse.de>
25588 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
25589 region calling vector-partitionable routine, set default_vector_length
25592 2019-01-12 Tom de Vries <tdevries@suse.de>
25594 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
25595 variable default_vector_length.
25597 2019-01-12 Tom de Vries <tdevries@suse.de>
25599 PR middle-end/88703
25600 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
25601 from oacc_default_dims, as oacc_validate_dims would do it, and apply
25604 2019-01-12 Tom de Vries <tdevries@suse.de>
25606 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
25607 (nvptx_goacc_validate_dims): Add used parameter.
25608 * doc/tm.texi: Regenerate.
25609 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
25610 argument to call to targetm.goacc.validate_dims.
25611 (default_goacc_validate_dims): Add used
25613 * target.def (validate_dims): Add used parameter in DEFHOOK.
25614 * targhooks.h (default_goacc_validate_dims): Add used parameter.
25616 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25618 PR middle-end/85956
25620 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
25622 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
25623 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
25624 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
25625 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
25627 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
25629 PR rtl-optimization/87305
25631 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
25632 for little endian pseudos used as paradoxical subreg.
25634 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25636 PR tree-optimization/88693
25637 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
25638 for STRING_CSTs that don't contain any NUL characters in the first
25639 TREE_STRING_LENGTH bytes.
25641 2019-01-11 Alan Modra <amodra@gmail.com>
25645 * genattrtab.c (min_fn): Don't translate values.
25646 (min_attr_value): Return INT_MAX when the value can't be calculated.
25647 Return minimum among any values that can be calculated.
25648 (max_attr_value): Adjust.
25650 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25652 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
25654 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25656 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25657 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
25658 (aarch64_return_call_with_max_clobbers): New function.
25659 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
25660 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
25662 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
25663 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
25664 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
25665 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
25666 * cselib.c (cselib_process_insn): Add argument to
25667 targetm.hard_regno_call_part_clobbered call.
25668 * ira-conflicts.c (ira_build_conflicts): Ditto.
25669 * ira-costs.c (ira_tune_allocno_costs): Ditto.
25670 * lra-constraints.c (inherit_reload_reg): Ditto.
25671 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
25672 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
25673 argument. Call targetm.return_call_with_max_clobbers.
25674 Add argument to targetm.hard_regno_call_part_clobbered call.
25675 (calls_have_same_clobbers_p): New function.
25676 (process_bb_lives): Add call_insn and last_call_insn variables.
25677 Pass call_insn to check_pseudos_live_through_calls.
25678 Modify if stmt to check targetm.return_call_with_max_clobbers.
25679 Update setting of flush variable.
25680 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
25682 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
25683 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
25684 targetm.hard_regno_call_part_clobbered call.
25685 * reginfo.c (choose_hard_reg_mode): Ditto.
25686 * regrename.c (check_new_reg_p): Ditto.
25687 * reload.c (find_equiv_reg): Ditto.
25688 * reload1.c (emit_reload_insns): Ditto.
25689 * sched-deps.c (deps_analyze_insn): Ditto.
25690 * sel-sched.c (init_regs_for_mode): Ditto.
25691 (mark_unavailable_hard_regs): Ditto.
25692 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
25693 * target.def (hard_regno_call_part_clobbered): Add insn argument.
25694 (return_call_with_max_clobbers): New target function.
25695 * doc/tm.texi: Regenerate.
25696 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
25697 * hooks.c (hook_bool_uint_mode_false): Change to
25698 hook_bool_insn_uint_mode_false.
25699 * hooks.h (hook_bool_uint_mode_false): Ditto.
25701 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25703 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25704 (aarch64_remove_extra_call_preserved_regs): New function.
25705 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
25706 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
25707 * doc/tm.texi: Regenerate.
25708 * final.c (get_call_reg_set_usage): Call new hook.
25709 * target.def (remove_extra_call_preserved_regs): New hook.
25710 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
25711 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
25713 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25716 * passes.c (finish_optimization_passes): Call print_combine_total_stats
25717 inside of pass_combine_1 dump rather than pass_profile_1.
25719 2019-01-11 Tom de Vries <tdevries@suse.de>
25721 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
25722 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
25723 (PTX_NUM_PER_WORKER_BARRIERS): Define.
25724 (nvptx_apply_dim_limits): Prevent vector_length 64 and
25727 2019-01-11 Tom de Vries <tdevries@suse.de>
25729 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
25731 2019-01-11 Jan Beulich <jbeulich@suse.com>
25733 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
25734 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
25735 sse2_cvtsi2sd): Add {l}.
25736 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
25739 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25742 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
25744 (*float<floatunssuffix>v2div2sf2): New define_insn.
25745 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
25746 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
25747 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
25748 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
25749 match_operands with "const0_operand" "C".
25751 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25753 * config/aarch64/aarch64-builtins.c
25754 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
25755 (aarch64_init_simd_builtins): ...Here
25757 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
25759 PR rtl-optimization/87305
25761 (setup_live_pseudos_and_spill_after_risky_transforms): Check
25762 allocation for big endian pseudos used as paradoxical subregs and
25763 spill them if it is wrong.
25764 * lra-constraints.c (lra_constraints): Add a comment.
25766 2019-01-10 Richard Biener <rguenther@suse.de>
25768 PR tree-optimization/88792
25769 * tree-ssa-pre.c (get_representative_for): Do not return a
25772 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25774 PR middle-end/84877
25776 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
25777 (assign_parm_setup_block): Do the argument slot realignment here
25780 2019-01-10 Stefan Agner <stefan@agner.ch>
25783 * config/arm/arm.c (arm_option_override_internal): Force
25784 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
25786 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25789 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
25792 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25794 * config/arm/arm-builtins.c
25795 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
25796 (MAC_LANE_PAIR_QUALIFIERS): New.
25797 (arm_expand_builtin_args): Use it.
25798 (arm_expand_builtin_1): Likewise.
25799 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
25800 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
25801 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
25802 * config/arm/arm_neon.h:
25803 (vcadd_rot90_f16): New.
25804 (vcaddq_rot90_f16): New.
25805 (vcadd_rot270_f16): New.
25806 (vcaddq_rot270_f16): New.
25809 (vcmla_lane_f16): New.
25810 (vcmla_laneq_f16): New.
25811 (vcmlaq_lane_f16): New.
25812 (vcmlaq_laneq_f16): New.
25813 (vcmla_rot90_f16): New.
25814 (vcmlaq_rot90_f16): New.
25815 (vcmla_rot90_lane_f16): New.
25816 (vcmla_rot90_laneq_f16): New.
25817 (vcmlaq_rot90_lane_f16): New.
25818 (vcmlaq_rot90_laneq_f16): New.
25819 (vcmla_rot180_f16): New.
25820 (vcmlaq_rot180_f16): New.
25821 (vcmla_rot180_lane_f16): New.
25822 (vcmla_rot180_laneq_f16): New.
25823 (vcmlaq_rot180_lane_f16): New.
25824 (vcmlaq_rot180_laneq_f16): New.
25825 (vcmla_rot270_f16): New.
25826 (vcmlaq_rot270_f16): New.
25827 (vcmla_rot270_lane_f16): New.
25828 (vcmla_rot270_laneq_f16): New.
25829 (vcmlaq_rot270_lane_f16): New.
25830 (vcmlaq_rot270_laneq_f16): New.
25831 (vcadd_rot90_f32): New.
25832 (vcaddq_rot90_f32): New.
25833 (vcadd_rot270_f32): New.
25834 (vcaddq_rot270_f32): New.
25837 (vcmla_lane_f32): New.
25838 (vcmla_laneq_f32): New.
25839 (vcmlaq_lane_f32): New.
25840 (vcmlaq_laneq_f32): New.
25841 (vcmla_rot90_f32): New.
25842 (vcmlaq_rot90_f32): New.
25843 (vcmla_rot90_lane_f32): New.
25844 (vcmla_rot90_laneq_f32): New.
25845 (vcmlaq_rot90_lane_f32): New.
25846 (vcmlaq_rot90_laneq_f32): New.
25847 (vcmla_rot180_f32): New.
25848 (vcmlaq_rot180_f32): New.
25849 (vcmla_rot180_lane_f32): New.
25850 (vcmla_rot180_laneq_f32): New.
25851 (vcmlaq_rot180_lane_f32): New.
25852 (vcmlaq_rot180_laneq_f32): New.
25853 (vcmla_rot270_f32): New.
25854 (vcmlaq_rot270_f32): New.
25855 (vcmla_rot270_lane_f32): New.
25856 (vcmla_rot270_laneq_f32): New.
25857 (vcmlaq_rot270_lane_f32): New.
25858 (vcmlaq_rot270_laneq_f32): New.
25859 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
25860 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
25861 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
25862 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
25863 vcmlaq_lane270): New.
25864 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25865 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
25866 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
25867 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
25868 (arm_option_reconfigure_globals): Use them.
25869 * config/arm/iterators.md (VDF, VQ_HSF): New.
25870 (VCADD, VCMLA): New.
25871 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
25872 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
25874 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
25875 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
25877 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25879 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
25880 Add qualifier_lane_pair_index.
25881 (emit-rtl.h): Include.
25882 (TYPES_QUADOP_LANE_PAIR): New.
25883 (aarch64_simd_expand_args): Use it.
25884 (aarch64_simd_expand_builtin): Likewise.
25885 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
25887 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
25888 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
25889 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
25890 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
25891 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
25892 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
25893 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
25894 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
25895 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
25896 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
25897 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
25898 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
25899 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
25900 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
25901 Add __ARM_FEATURE_COMPLEX.
25902 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
25903 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
25904 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
25905 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
25906 fcmlaq_lane270): New.
25907 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25908 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
25909 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
25910 * config/aarch64/arm_neon.h:
25911 (vcadd_rot90_f16): New.
25912 (vcaddq_rot90_f16): New.
25913 (vcadd_rot270_f16): New.
25914 (vcaddq_rot270_f16): New.
25917 (vcmla_lane_f16): New.
25918 (vcmla_laneq_f16): New.
25919 (vcmlaq_lane_f16): New.
25920 (vcmlaq_rot90_lane_f16): New.
25921 (vcmla_rot90_laneq_f16): New.
25922 (vcmla_rot90_lane_f16): New.
25923 (vcmlaq_rot90_f16): New.
25924 (vcmla_rot90_f16): New.
25925 (vcmlaq_laneq_f16): New.
25926 (vcmla_rot180_laneq_f16): New.
25927 (vcmla_rot180_lane_f16): New.
25928 (vcmlaq_rot180_f16): New.
25929 (vcmla_rot180_f16): New.
25930 (vcmlaq_rot90_laneq_f16): New.
25931 (vcmlaq_rot270_laneq_f16): New.
25932 (vcmlaq_rot270_lane_f16): New.
25933 (vcmla_rot270_laneq_f16): New.
25934 (vcmlaq_rot270_f16): New.
25935 (vcmla_rot270_f16): New.
25936 (vcmlaq_rot180_laneq_f16): New.
25937 (vcmlaq_rot180_lane_f16): New.
25938 (vcmla_rot270_lane_f16): New.
25939 (vcadd_rot90_f32): New.
25940 (vcaddq_rot90_f32): New.
25941 (vcaddq_rot90_f64): New.
25942 (vcadd_rot270_f32): New.
25943 (vcaddq_rot270_f32): New.
25944 (vcaddq_rot270_f64): New.
25948 (vcmla_lane_f32): New.
25949 (vcmla_laneq_f32): New.
25950 (vcmlaq_lane_f32): New.
25951 (vcmlaq_laneq_f32): New.
25952 (vcmla_rot90_f32): New.
25953 (vcmlaq_rot90_f32): New.
25954 (vcmlaq_rot90_f64): New.
25955 (vcmla_rot90_lane_f32): New.
25956 (vcmla_rot90_laneq_f32): New.
25957 (vcmlaq_rot90_lane_f32): New.
25958 (vcmlaq_rot90_laneq_f32): New.
25959 (vcmla_rot180_f32): New.
25960 (vcmlaq_rot180_f32): New.
25961 (vcmlaq_rot180_f64): New.
25962 (vcmla_rot180_lane_f32): New.
25963 (vcmla_rot180_laneq_f32): New.
25964 (vcmlaq_rot180_lane_f32): New.
25965 (vcmlaq_rot180_laneq_f32): New.
25966 (vcmla_rot270_f32): New.
25967 (vcmlaq_rot270_f32): New.
25968 (vcmlaq_rot270_f64): New.
25969 (vcmla_rot270_lane_f32): New.
25970 (vcmla_rot270_laneq_f32): New.
25971 (vcmlaq_rot270_lane_f32): New.
25972 (vcmlaq_rot270_laneq_f32): New.
25973 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
25974 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
25975 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
25976 (FCADD, FCMLA): New.
25978 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
25980 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25984 * config/pa/pa.c: Change "can not" to "cannot".
25985 * gimple-ssa-evrp-analyze.c: Likewise.
25986 * ipa-icf.c: Likewise.
25987 * ipa-polymorphic-call.c: Likewise.
25988 * ipa-pure-const.c: Likewise.
25989 * lra-constraints.c: Likewise.
25990 * lra-remat.c: Likewise.
25991 * reload1.c: Likewise.
25992 * reorg.c: Likewise.
25993 * tree-ssa-uninit.c: Likewise.
25995 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25999 * Makefile.in: Mechanically replace "can not" with "cannot".
26000 * alias.c: Likewise.
26001 * builtins.c: Likewise.
26002 * calls.c: Likewise.
26003 * cgraph.c: Likewise.
26004 * cgraph.h: Likewise.
26005 * cgraphclones.c: Likewise.
26006 * cgraphunit.c: Likewise.
26007 * combine-stack-adj.c: Likewise.
26008 * combine.c: Likewise.
26009 * common/config/i386/i386-common.c: Likewise.
26010 * config/aarch64/aarch64.c: Likewise.
26011 * config/alpha/sync.md: Likewise.
26012 * config/arc/arc.c: Likewise.
26013 * config/arc/predicates.md: Likewise.
26014 * config/arm/arm-c.c: Likewise.
26015 * config/arm/arm.c: Likewise.
26016 * config/arm/arm.h: Likewise.
26017 * config/arm/arm.md: Likewise.
26018 * config/arm/cortex-r4f.md: Likewise.
26019 * config/csky/csky.c: Likewise.
26020 * config/csky/csky.h: Likewise.
26021 * config/darwin-f.c: Likewise.
26022 * config/epiphany/epiphany.md: Likewise.
26023 * config/i386/i386.c: Likewise.
26024 * config/i386/sol2.h: Likewise.
26025 * config/m68k/m68k.c: Likewise.
26026 * config/mcore/mcore.h: Likewise.
26027 * config/microblaze/microblaze.md: Likewise.
26028 * config/mips/20kc.md: Likewise.
26029 * config/mips/sb1.md: Likewise.
26030 * config/nds32/nds32.c: Likewise.
26031 * config/nds32/predicates.md: Likewise.
26032 * config/pa/pa.c: Likewise.
26033 * config/rs6000/e300c2c3.md: Likewise.
26034 * config/rs6000/rs6000.c: Likewise.
26035 * config/s390/s390.h: Likewise.
26036 * config/sh/sh.c: Likewise.
26037 * config/sh/sh.md: Likewise.
26038 * config/spu/vmx2spu.h: Likewise.
26039 * cprop.c: Likewise.
26040 * dbxout.c: Likewise.
26041 * df-scan.c: Likewise.
26042 * doc/cfg.texi: Likewise.
26043 * doc/extend.texi: Likewise.
26044 * doc/fragments.texi: Likewise.
26045 * doc/gty.texi: Likewise.
26046 * doc/invoke.texi: Likewise.
26047 * doc/lto.texi: Likewise.
26048 * doc/md.texi: Likewise.
26049 * doc/objc.texi: Likewise.
26050 * doc/rtl.texi: Likewise.
26051 * doc/tm.texi: Likewise.
26053 * emit-rtl.c: Likewise.
26054 * emit-rtl.h: Likewise.
26055 * except.c: Likewise.
26056 * expmed.c: Likewise.
26057 * expr.c: Likewise.
26058 * fold-const.c: Likewise.
26059 * genautomata.c: Likewise.
26060 * gimple-fold.c: Likewise.
26061 * hard-reg-set.h: Likewise.
26062 * ifcvt.c: Likewise.
26063 * ipa-comdats.c: Likewise.
26064 * ipa-cp.c: Likewise.
26065 * ipa-devirt.c: Likewise.
26066 * ipa-fnsummary.c: Likewise.
26067 * ipa-icf.c: Likewise.
26068 * ipa-inline-transform.c: Likewise.
26069 * ipa-inline.c: Likewise.
26070 * ipa-polymorphic-call.c: Likewise.
26071 * ipa-profile.c: Likewise.
26072 * ipa-prop.c: Likewise.
26073 * ipa-pure-const.c: Likewise.
26074 * ipa-reference.c: Likewise.
26075 * ipa-split.c: Likewise.
26076 * ipa-visibility.c: Likewise.
26078 * ira-build.c: Likewise.
26079 * ira-color.c: Likewise.
26080 * ira-conflicts.c: Likewise.
26081 * ira-costs.c: Likewise.
26082 * ira-int.h: Likewise.
26083 * ira-lives.c: Likewise.
26086 * loop-invariant.c: Likewise.
26087 * loop-unroll.c: Likewise.
26088 * lower-subreg.c: Likewise.
26089 * lra-assigns.c: Likewise.
26090 * lra-constraints.c: Likewise.
26091 * lra-eliminations.c: Likewise.
26092 * lra-lives.c: Likewise.
26093 * lra-remat.c: Likewise.
26094 * lra-spills.c: Likewise.
26096 * lto-cgraph.c: Likewise.
26097 * lto-streamer-out.c: Likewise.
26098 * postreload-gcse.c: Likewise.
26099 * predict.c: Likewise.
26100 * profile-count.h: Likewise.
26101 * profile.c: Likewise.
26102 * recog.c: Likewise.
26104 * reload.c: Likewise.
26105 * reload1.c: Likewise.
26106 * reorg.c: Likewise.
26107 * resource.c: Likewise.
26108 * rtl.def: Likewise.
26110 * rtlanal.c: Likewise.
26111 * sched-deps.c: Likewise.
26112 * sched-ebb.c: Likewise.
26113 * sched-rgn.c: Likewise.
26114 * sel-sched-ir.c: Likewise.
26115 * sel-sched.c: Likewise.
26116 * shrink-wrap.c: Likewise.
26117 * simplify-rtx.c: Likewise.
26118 * symtab.c: Likewise.
26119 * target.def: Likewise.
26120 * toplev.c: Likewise.
26121 * tree-call-cdce.c: Likewise.
26122 * tree-cfg.c: Likewise.
26123 * tree-complex.c: Likewise.
26124 * tree-core.h: Likewise.
26125 * tree-eh.c: Likewise.
26126 * tree-inline.c: Likewise.
26127 * tree-loop-distribution.c: Likewise.
26128 * tree-nrv.c: Likewise.
26129 * tree-profile.c: Likewise.
26130 * tree-sra.c: Likewise.
26131 * tree-ssa-alias.c: Likewise.
26132 * tree-ssa-dce.c: Likewise.
26133 * tree-ssa-dom.c: Likewise.
26134 * tree-ssa-forwprop.c: Likewise.
26135 * tree-ssa-loop-im.c: Likewise.
26136 * tree-ssa-loop-ivcanon.c: Likewise.
26137 * tree-ssa-loop-ivopts.c: Likewise.
26138 * tree-ssa-loop-niter.c: Likewise.
26139 * tree-ssa-phionlycprop.c: Likewise.
26140 * tree-ssa-phiopt.c: Likewise.
26141 * tree-ssa-propagate.c: Likewise.
26142 * tree-ssa-threadedge.c: Likewise.
26143 * tree-ssa-threadupdate.c: Likewise.
26144 * tree-ssa-uninit.c: Likewise.
26145 * tree-ssanames.c: Likewise.
26146 * tree-streamer-out.c: Likewise.
26147 * tree.c: Likewise.
26148 * tree.h: Likewise.
26149 * vr-values.c: Likewise.
26151 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
26153 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
26154 (ix86_split_xorsign): Ditto.
26155 * config/i386/i386.c (ix86_expand_xorsign): New function.
26156 (ix86_split_xorsign): Ditto.
26157 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
26158 (xorsign<mode>3): New expander.
26159 (xorsign<mode>3_1): New insn_and_split pattern.
26160 * config/i386/sse.md (xorsign<mode>3): New expander.
26162 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26164 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
26165 (*tablejump_sp64): Likewise.
26166 (*tablejump<P:mode>): ...this.
26167 (*call_address_sp32): Merge into...
26168 (*call_address_sp64): Likewise.
26169 (*call_address<P:mode>): ...this.
26170 (*call_symbolic_sp32): Merge into...
26171 (*call_symbolic_sp64): Likewise.
26172 (*call_symbolic<P:mode>): ...this.
26173 (call_value): Remove constraint and add predicate.
26174 (*call_value_address_sp32): Merge into...
26175 (*call_value_address_sp64): Likewise.
26176 (*call_value_address<P:mode>): ...this.
26177 (*call_value_symbolic_sp32): Merge into...
26178 (*call_value_symbolic_sp64): Likewise.
26179 (*call_value_symbolic<P:mode>): ...this.
26180 (*sibcall_symbolic_sp32): Merge into...
26181 (*sibcall_symbolic_sp64): Likewise.
26182 (*sibcall_symbolic<P:mode>): ...this.
26183 (sibcall_value): Remove constraint and add predicate.
26184 (*sibcall_value_symbolic_sp32): Merge into...
26185 (*sibcall_value_symbolic_sp64): Likewise.
26186 (*sibcall_value_symbolic<P:mode>): ...this.
26187 (window_save): Minor tweak.
26188 (*branch_sp32): Merge into...
26189 (*branch_sp64): Likewise.
26190 (*branch<P:mode>): ...this.
26192 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26193 James Clarke <jrtc27@jrtc27.com>
26196 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
26197 consistently in TLS address generation and adjust code to the renaming
26198 of patterns. Mark calls to __tls_get_addr as const.
26199 * config/sparc/sparc.md (tgd_hi22): Turn into...
26200 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
26201 (tgd_lo10): Turn into...
26202 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
26203 (tgd_add32): Merge into...
26204 (tgd_add64): Likewise.
26205 (tgd_add<P:mode>): ...this and use Pmode throughout.
26206 (tldm_hi22): Turn into...
26207 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
26208 (tldm_lo10): Turn into...
26209 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
26210 (tldm_add32): Merge into...
26211 (tldm_add64): Likewise.
26212 (tldm_add<P:mode>): ...this and use Pmode throughout.
26213 (tldm_call32): Merge into...
26214 (tldm_call64): Likewise.
26215 (tldm_call<P:mode>): ...this and use Pmode throughout.
26216 (tldo_hix22): Turn into...
26217 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
26218 (tldo_lox10): Turn into...
26219 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
26220 (tldo_add32): Merge into...
26221 (tldo_add64): Likewise.
26222 (tldo_add<P:mode>): ...this and use Pmode throughout.
26223 (tie_hi22): Turn into...
26224 (tie_hi22<P:mode>): ...this and use Pmode throughout.
26225 (tie_lo10): Turn into...
26226 (tie_lo10<P:mode>): ...this and use Pmode throughout.
26227 (tie_ld64): Use DImode throughout.
26228 (tie_add32): Merge into...
26229 (tie_add64): Likewise.
26230 (tie_add<P:mode>): ...this and use Pmode throughout.
26231 (tle_hix22_sp32): Merge into...
26232 (tle_hix22_sp64): Likewise.
26233 (tle_hix22<P:mode>): ...this and use Pmode throughout.
26234 (tle_lox22_sp32): Merge into...
26235 (tle_lox22_sp64): Likewise.
26236 (tle_lox22<P:mode>): ...this and use Pmode throughout.
26237 (*tldo_ldub_sp32): Merge into...
26238 (*tldo_ldub_sp64): Likewise.
26239 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
26240 (*tldo_ldub1_sp32): Merge into...
26241 (*tldo_ldub1_sp64): Likewise.
26242 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
26243 (*tldo_ldub2_sp32): Merge into...
26244 (*tldo_ldub2_sp64): Likewise.
26245 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
26246 (*tldo_ldsb1_sp32): Merge into...
26247 (*tldo_ldsb1_sp64): Likewise.
26248 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
26249 (*tldo_ldsb2_sp32): Merge into...
26250 (*tldo_ldsb2_sp64): Likewise.
26251 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
26252 (*tldo_ldub3_sp64): Use DImode throughout.
26253 (*tldo_ldsb3_sp64): Likewise.
26254 (*tldo_lduh_sp32): Merge into...
26255 (*tldo_lduh_sp64): Likewise.
26256 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
26257 (*tldo_lduh1_sp32): Merge into...
26258 (*tldo_lduh1_sp64): Likewise.
26259 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
26260 (*tldo_ldsh1_sp32): Merge into...
26261 (*tldo_ldsh1_sp64): Likewise.
26262 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
26263 (*tldo_lduh2_sp64): Use DImode throughout.
26264 (*tldo_ldsh2_sp64): Likewise.
26265 (*tldo_lduw_sp32): Merge into...
26266 (*tldo_lduw_sp64): Likewise.
26267 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
26268 (*tldo_lduw1_sp64): Use DImode throughout.
26269 (*tldo_ldsw1_sp64): Likewise.
26270 (*tldo_ldx_sp64): Likewise.
26271 (*tldo_stb_sp32): Merge into...
26272 (*tldo_stb_sp64): Likewise.
26273 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
26274 (*tldo_sth_sp32): Merge into...
26275 (*tldo_sth_sp64): Likewise.
26276 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
26277 (*tldo_stw_sp32): Merge into...
26278 (*tldo_stw_sp64): Likewise.
26279 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
26280 (*tldo_stx_sp64): Use DImode throughout.
26282 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26284 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
26285 check configure option to set BTI and Return Address Signing.
26286 * configure.ac: Add --enable-standard-branch-protection and
26287 --disable-standard-branch-protection.
26288 * configure: Regenerated.
26289 * doc/install.texi: Document the same.
26291 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26292 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26294 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
26295 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
26296 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
26298 * config/aarch64/aarch64-bti-insert.c: New file.
26299 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
26301 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
26303 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
26304 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
26305 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
26306 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
26308 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26310 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
26311 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
26312 Disable bti for -mbranch-protection=none.
26313 (aarch64_handle_standard_branch_protection): Enable bti for
26314 -mbranch-protection=standard.
26315 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
26316 -mbranch-protection.
26317 (aarch64_bti_enabled): Check if bti is enabled.
26318 * config/aarch64/aarch64.opt: Declare target variable.
26319 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
26321 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26323 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
26324 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
26325 (aarch64_expand_epilogue): Likewise.
26326 (aarch64_output_mi_thunk): Likewise.
26327 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
26328 TAILCALL_ADDR_REGS to x16 and x17.
26329 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
26331 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26333 * config/aarch64/aarch64-option-extensions.def: Define
26334 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
26335 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
26336 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
26337 (AARCH64_FL_PREDRES): New.
26338 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
26339 AARCH64_FL_PREDRES by default.
26340 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
26342 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26344 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
26346 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
26347 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
26348 * doc/invoke.texi: Document ARMv8.5-A.
26350 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26352 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
26353 (xorsign<mode>3): Likewise.
26355 2019-01-09 Jelinek <jakub@redhat.com>
26357 PR middle-end/88758
26358 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
26359 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
26361 PR rtl-optimization/88331
26362 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
26363 not currently_expanding_to_rtl.
26365 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26367 * doc/invoke.texi (-Os): Remove trailing spaces.
26368 (-finline-functions): Remove reference to -O2.
26370 2019-01-08 Jakub Jelinek <jakub@redhat.com>
26372 PR rtl-optimization/79593
26373 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
26375 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
26376 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
26378 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
26381 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
26385 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
26386 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
26388 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
26391 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
26392 ix86_avx_u128_mode_entry.
26394 2019-01-08 Martin Liska <mliska@suse.cz>
26396 PR tree-optimization/88753
26397 * tree-switch-conversion.c (switch_conversion::build_one_array):
26398 Come up with local variable constructor. Convert first to
26399 type of constructor values.
26401 2019-01-08 Richard Biener <rguenther@suse.de>
26403 PR tree-optimization/86554
26404 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
26405 rpo_avail): Move earlier.
26406 (visit_nary_op): When value-numbering to expressions
26407 with different overflow behavior make sure there's an
26408 available expression on the path.
26410 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
26412 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
26413 aarch64_parse_branch_protection,
26414 struct aarch64_branch_protect_type,
26415 aarch64_handle_no_branch_protection,
26416 aarch64_handle_standard_branch_protection,
26417 aarch64_validate_mbranch_protection,
26418 aarch64_handle_pac_ret_protection,
26419 aarch64_handle_attr_branch_protection,
26420 accepted_branch_protection_string,
26421 aarch64_pac_ret_subtypes,
26422 aarch64_branch_protect_types,
26423 aarch64_handle_pac_ret_leaf): Define.
26424 (aarch64_override_options_after_change_1, aarch64_override_options):
26425 Add check for accepted_branch_protection_string.
26426 (aarch64_option_save): Save accepted_branch_protection_string.
26427 (aarch64_option_restore): Save accepted_branch_protection_string.
26428 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
26429 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
26430 msign-return-address.
26431 * doc/invoke.texi: Add mbranch-protection.
26433 2019-01-08 Alan Modra <amodra@gmail.com>
26436 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
26437 Delete "unknownp" parameter. Adjust callers. Handle
26438 CONST_INT, PLUS, MINUS, and MULT.
26439 (attr_value_aligned): Renamed from or_attr_value.
26440 (min_attr_value): Return INT_MIN for unhandled rtl case..
26441 (min_fn): ..and translate to INT_MAX here.
26442 (write_length_unit_log): Modify to cope without "unknown".
26443 (write_attr_value): Handle IF_THEN_ELSE.
26445 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26447 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
26448 optimization for masked stores.
26450 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26452 PR middle-end/88567
26453 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
26454 output vector directly to duplicate_and_interleave instead of
26455 going through a temporary. Postpone insertion of ctor_seq to
26456 the end of the loop.
26458 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
26461 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
26462 unsigned_p. Handle signed and unsigned overflow correction as
26464 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
26466 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
26468 (add<mode>3_compareV_imm): Make this callable for expanding.
26469 (subv<GPI:mode>4): Use register_operand for operand 1. Use
26470 aarch64_plus_operand for operand 2.
26471 (subv<GPI:mode>_insn): New insn pattern.
26472 (subv<GPI:mode>_imm): Likewise.
26473 (negv<GPI:mode>3): New expand pattern.
26474 (negv<GPI:mode>_insn): New insn pattern.
26475 (negv<GPI:mode>_cmp_only): Likewise.
26476 (cmpv<GPI:mode>_insn): Likewise.
26477 (subvti4): Use register_operand for operand 1. Update call to
26478 aarch64_expand_subvti.
26479 (usubvti4): Likewise.
26480 (negvti3): New expand pattern.
26481 (negdi_carryout): New insn pattern.
26482 (negvdi_carryinV): New insn pattern.
26483 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
26484 version the named version.
26485 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
26487 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
26489 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
26491 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
26492 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
26493 (sub<mode>3_carryinCV): Delete.
26494 (sub<GPI:mode>3_carryinV): New expand pattern.
26495 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
26497 2019-01-07 Richard Biener <rguenther@suse.de>
26499 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
26500 of tree_operand_hash.
26502 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26504 PR tree-optimization/88598
26505 * tree.h (single_nonzero_element): Declare.
26506 * tree.c (single_nonzero_element): New function.
26507 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
26508 if I is the only nonzero element of CST.
26510 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26512 PR tree-optimization/88598
26513 * tree.h (initializer_each_zero_or_onep): Declare.
26514 * tree.c (initializer_each_zero_or_onep): New function.
26515 (signed_or_unsigned_type_for): Handle float types too.
26516 (unsigned_type_for, signed_type_for): Update comments accordingly.
26517 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
26518 x & { 0 or -1, 0 or -1, ... }.
26520 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
26522 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
26523 with x86_64-pc-linux-gnu.
26525 2019-01-07 Tom de Vries <tdevries@suse.de>
26528 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
26530 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
26533 2019-01-07 Jakub Jelinek <jakub@redhat.com>
26535 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
26536 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
26537 TARGET_AVX512F as condition.
26540 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
26541 const_not_ok_for_debug_p target hook.
26542 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
26543 on UNSPEC and subexpressions thereof if all subexpressions of the
26544 UNSPEC are CONSTANT_P.
26546 PR tree-optimization/88676
26547 * tree-ssa-phiopt.c (two_value_replacement): New function.
26548 (tree_ssa_phiopt_worker): Call it.
26551 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
26552 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
26555 * tree-vect-generic.c: Include insn-config.h and recog.h.
26556 (expand_vector_piecewise): Add defaulted ret_type argument,
26557 if non-NULL, use that in preference to type for the result type.
26558 (expand_vector_parallel): Formatting fix.
26559 (do_vec_conversion, do_vec_narrowing_conversion,
26560 expand_vector_conversion): New functions.
26561 (expand_vector_operations_1): Call expand_vector_conversion
26562 for VEC_CONVERT ifn calls.
26563 * internal-fn.def (VEC_CONVERT): New internal function.
26564 * internal-fn.c (expand_VEC_CONVERT): New function.
26565 * fold-const-call.c (fold_const_vec_convert): New function.
26566 (fold_const_call): Use it for CFN_VEC_CONVERT.
26567 * doc/extend.texi (__builtin_convertvector): Document.
26569 2019-01-07 Tom de Vries <tdevries@suse.de>
26571 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
26572 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
26573 vector_red_partition, vector_red_sym): New global variables.
26574 (nvptx_option_override): Initialize vector_red_sym.
26575 (nvptx_declare_function_name): Restore red_partition register.
26576 (nvptx_file_end): Emit code to declare the vector reduction variables.
26577 (nvptx_output_red_partition): New function.
26578 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
26579 large vector reductions.
26580 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
26581 (nvptx_init_builtins): Add VECTOR_ADDR.
26582 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
26583 Handle nvptx_expand_shared_addr.
26584 (nvptx_get_shared_red_addr): Add vector argument and handle large
26586 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
26588 (nvptx_goacc_reduction_init): Likewise.
26589 (nvptx_goacc_reduction_fini): Likewise.
26590 (nvptx_goacc_reduction_teardown): Likewise.
26591 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
26592 init,fini,teardown}.
26593 (nvptx_init_axis_predicate): Initialize vector_red_partition.
26594 (nvptx_set_current_function): Init vector_red_partition.
26595 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
26596 (nvptx_red_partition): New insn.
26597 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
26599 2019-01-07 Tom de Vries <tdevries@suse.de>
26602 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
26605 2019-01-07 Tom de Vries <tdevries@suse.de>
26607 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
26608 (nvptx_option_override): Init oacc_bcast_partition.
26609 (nvptx_init_oacc_workers): New function.
26610 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
26611 (nvptx_needs_shared_bcast): New function.
26612 (nvptx_find_par): Generalize to enable vectors to use shared-memory
26613 to propagate state.
26614 (nvptx_shared_propagate): Initialize vector bcast partition and
26615 synchronization state.
26616 (nvptx_single): Generalize to enable vectors to use shared-memory
26617 to propagate state.
26618 (nvptx_process_pars): Likewise.
26619 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
26620 * config/nvptx/nvptx.h (struct machine_function): Add
26621 bcast_partition and sync_bar members.
26623 2019-01-07 Tom de Vries <tdevries@suse.de>
26625 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
26626 (nvptx_apply_dim_limits): New function.
26627 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
26630 2019-01-07 Tom de Vries <tdevries@suse.de>
26632 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
26633 as late as possible.
26635 2019-01-07 Tom de Vries <tdevries@suse.de>
26637 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
26638 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
26639 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
26640 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
26641 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
26643 2019-01-07 Tom de Vries <tdevries@suse.de>
26645 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
26647 2019-01-07 Tom de Vries <tdevries@suse.de>
26649 * omp-offload.c (oacc_get_min_dim): New function.
26650 * omp-offload.h (oacc_get_min_dim): Declare.
26652 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
26655 * config/i386/i386.c (function_value_ms_64): Return small sturct in
26656 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
26658 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26662 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
26664 * ipa-inline.c (edge_badness): Use inlined_time instead of
26665 inline_summaries->get.
26667 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26669 * opts.c (enable_fdo_optimizations): Enable
26670 version-loops-for-strides, loop-interchange, unrol-and-jam
26671 and tree-loop-distribution.
26672 * invoke.texi: Document newly enabled options.
26674 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26676 * doc/invoke.texi (max-inline-insns-small): New parameters.
26677 * ipa-inline.c (want_early_inline_function_p): simplify.
26678 (want_inline_small_function_p): Fix pasto from previous patch;
26679 use max-inline-insns-small bound.
26680 * params.def (max-inline-insns-small): New param.
26681 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
26682 variables correctly.
26684 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26686 * doc/invoke.texi: Document max-inline-insns-size,
26687 uninlined-function-insns, uninlined-function-time,
26688 uninlined-thunk-insns and uninlined-thunk-time.
26689 * params.def: Add max-inline-insns-size,
26690 uninlined-function-insns, uninlined-function-time,
26691 uninlined-thunk-insns and uninlined-thunk-time.
26692 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
26694 * ipa-inline.c (can_inline_edge_by_limits_p,
26695 want_inline_small_function_p): Use new parameters.
26697 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26699 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
26701 2019-01-05 Jakub Jelinek <jakub@redhat.com>
26703 PR middle-end/82564
26705 * expr.c (expand_assignment): For calls returning VLA structures
26706 if to_rtx is not a MEM, force it into a stack temporary.
26709 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
26710 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
26711 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
26712 subexpressions of both operands.
26713 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
26714 subrtxes are CONSTANT_P.
26715 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
26716 2018-11-09 changes.
26718 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
26720 * params.def (hot-bb-count-ws-permille): Set to 990.
26722 2019-01-04 Martin Sebor <msebor@redhat.com>
26725 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
26728 2019-01-04 Martin Sebor <msebor@redhat.com>
26731 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
26733 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26735 * gdbinit.in: Turn off pagination for the skip commands, restore
26736 it to previous state afterwards.
26738 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26741 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
26742 of GET_MODE (opN) as modes of the libcall arguments.
26744 2019-01-04 Jan Beulich <jbeulich@suse.com>
26746 * config/i386/sse.md
26747 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
26748 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
26749 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26750 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26751 avx512f_vmcmp<mode>3<round_saeonly_name>,
26752 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
26753 avx512f_maskcmp<mode>3,
26754 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26755 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26756 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26757 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26758 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26759 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26760 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26761 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26762 <avx512>_testm<mode>3<mask_scalar_merge_name>,
26763 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
26764 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
26765 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
26766 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
26767 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
26768 avx512cd_maskb_vec_dup<mode>,
26769 avx512cd_maskw_vec_dup<mode>,
26770 avx512dq_fpclass<mode><mask_scalar_merge_name>,
26771 avx512dq_vmfpclass<mode>,
26772 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
26775 2019-01-03 Martin Sebor <msebor@redhat.com>
26777 PR tree-optimization/88659
26778 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
26780 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
26782 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
26783 unaligned vsx and avoid lxvd2x/stxvd2x.
26784 (gen_lvx_v4si_move): New function.
26786 2019-01-03 Tom de Vries <tdevries@suse.de>
26788 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
26789 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
26791 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
26793 2019-01-03 Tom de Vries <tdevries@suse.de>
26795 * config/nvptx/nvptx.c (struct offload_attrs): New.
26796 (populate_offload_attrs): New function. Factor mask extraction out of
26797 nvptx_reorg. Add extraction of dimensions.
26798 (nvptx_reorg): Use populate_offload_attrs.
26800 2019-01-03 Tom de Vries <tdevries@suse.de>
26802 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
26803 cases for oacc_min_dims_p and routine_p. Add asserts for
26804 oacc_default_dims_p and offload_region_p.
26806 2019-01-03 Tom de Vries <tdevries@suse.de>
26808 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
26809 factored out of ...
26810 (nvptx_goacc_validate_dims): ... here.
26812 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26814 PR tree-optimization/85574
26815 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
26817 (struct ssa_equip_hash_traits): Declare.
26818 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
26820 2019-01-03 Jakub Jelinek <jakub@redhat.com>
26823 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
26824 change it to qualified_type.
26826 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26828 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
26829 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
26831 2019-01-02 Martin Sebor <msebor@redhat.com>
26832 Jeff Law <law@redhat.com>
26834 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
26835 (get_range_strlen_tree): Update appropriately.
26837 * gimple-fold.h (get_range_strlen): Drop unused last argument.
26839 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
26840 rather than set_range_info.
26841 * tree-ssa-strlen.c (set_strlen_range): Extracted from
26842 maybe_set_strlen_range. Handle potentially boundary crossing
26843 cases more conservatively.
26844 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
26845 Call set_strlen_range.
26846 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
26848 PR middle-end/88663
26849 * gimple-fold.c (get_range_strlen): Update prototype to no longer
26850 need the flexp argument.
26851 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
26852 from calls to get_range_strlen. Update comments. Just update
26853 VAL for an unterminated const char array and let the reset of the
26854 code handle it normally. No longer try to set *flexp. Adjust
26856 (get_range_strlen): Update for the new get_range_strlen API.
26857 (get_maxval_strlen): Similarly.
26858 (gimple_fold_builtin_strlen): Handle update meaning of return value
26859 from get_range_strlen.
26860 * gimple-ssa-sprintf.c (get_string_length): Update for the new
26861 get_range_strlen API.
26863 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
26866 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
26867 false at WPA time when body was removed.
26869 2019-01-02 Martin Liska <mliska@suse.cz>
26871 PR tree-optimization/88650
26872 * predict.c (set_even_probabilities): Calculate probability
26873 remainer only when really used.
26875 2019-01-02 Richard Biener <rguenther@suse.de>
26877 PR middle-end/88651
26878 * tree-data-ref.c (analyze_subscript_affine_affine): Use
26879 widest_ints when mangling max_stmt_execution results.
26881 2019-01-02 Richard Biener <rguenther@suse.de>
26883 PR tree-optimization/88621
26884 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
26885 bitfields when canoncalizing.
26887 2019-01-02 Richard Biener <rguenther@suse.de>
26890 * config/i386/x86-tune-costs.h (intel_cost): Adjust
26891 cost of cheap SSE instruction.
26893 2019-01-02 Richard Biener <rguenther@suse.de>
26896 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
26897 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
26899 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
26900 set after UIDs before splitting them.
26902 2019-01-01 Martin Sebor <msebor@redhat.com>
26903 Jeff Law <law@redhat.com>
26905 * gimple-fold.c (get_range_strlen_tree): Record if the computed
26906 length is optimistic. If it is, then arrange to compute the
26907 conservative length as well.
26909 * gimple-fold.h (get_range_strlen): Update prototype.
26910 * builtins.c (check_access): Update call to get_range_strlen to use
26911 c_strlen_data pointer. Change various variable accesses to instead
26912 pull data from the c_strlen_data structure.
26913 (check_strncat_sizes, expand_builtin_strncat): Likewise.
26914 * calls.c (maybe_warn_nonstring_arg): Likewise.
26915 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
26916 minimum length if maximum lengh is unknown.
26917 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
26918 that used c_strlen, it's no longer needed. Restructure slightly.
26919 (format_string): Set unlikely range appropriately.
26920 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
26922 (get_range_strlen): Accept c_strlen_data pointer for external
26923 call sites as well. Pass through to call to internal get_range_strlen.
26924 Adjust minlen, maxlen and maxbound as needed.
26925 (get_maxval_strlen): Update comments.
26926 (gimple_fold_builtin_strlen): Update call to get_range_strlen
26927 to use c_strlen_data pointer. Change variable accesses to instead
26928 use c_strlen_data data members.
26930 * gimple-fold.c (get_range_strlen): Update prototype.
26931 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
26932 local variables. Use pdata to return information to caller.
26933 Update calls to get_range_strlen. Update pdata->maxbound.
26934 (get_range_strlen -- static version): Similarly.
26935 (get_range_strlen -- extern version): Update for internal
26936 get_range_strlen API change. Convert to external data format.
26937 (get_maxval_strlen): Similarly.
26939 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
26941 * coverage.c (get_coverage_counts): Use current_function_decl.
26942 * profile.c (read_thunk_profile): New function.
26943 (branch_prob): Add THUNK parameter.
26944 * tree-profile.c (tree_profiling): Handle thunks.
26945 * value-prof.c (init_node_map): Handle thunks.
26946 * value-prof.h (branch_prob): Upate prototype.
26947 (read_thunk_profile): Declare.
26949 2019-01-01 Jakub Jelinek <jakub@redhat.com>
26951 Update copyright years.
26953 * gcc.c (process_command): Update copyright notice dates.
26954 * gcov-dump.c (print_version): Ditto.
26955 * gcov.c (print_version): Ditto.
26956 * gcov-tool.c (print_version): Ditto.
26957 * gengtype.c (create_file): Ditto.
26958 * doc/cpp.texi: Bump @copying's copyright year.
26959 * doc/cppinternals.texi: Ditto.
26960 * doc/gcc.texi: Ditto.
26961 * doc/gccint.texi: Ditto.
26962 * doc/gcov.texi: Ditto.
26963 * doc/install.texi: Ditto.
26964 * doc/invoke.texi: Ditto.
26966 Copyright (C) 2019 Free Software Foundation, Inc.
26968 Copying and distribution of this file, with or without modification,
26969 are permitted in any medium without royalty provided the copyright
26970 notice and this notice are preserved.