1 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
3 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
4 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
5 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
6 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
8 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
10 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
12 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
14 * tree-vrp.c (value_range_base::dump): Display +INF for both
15 pointers and integers when appropriate.
17 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
19 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
20 when to use versioning threshold.
22 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
24 * tree-vect-loop.c (determine_peel_for_niter): New function contained
25 outlined code from ...
26 (vect_analyze_loop_2): ... here.
28 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
30 * tree-vect-loop.c (vect_transform_loop): Move code from here...
31 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
32 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
34 2019-10-17 Richard Biener <rguenther@suse.de>
36 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
37 (vect_is_simple_reduction): Move all validity checks ...
38 (vectorizable_reduction): ... here. Compute whether we
39 need a fold-left reduction here.
40 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
41 both overloads, check needs_fold_left_reduction_p directly.
42 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
44 2019-10-17 Richard Biener <rguenther@suse.de>
46 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
47 TARGET_MEM_REF creation.
49 2019-10-17 Richard Biener <rguenther@suse.de>
51 PR tree-optimization/92129
52 * tree-vect-loop.c (vectorizable_reduction): Also fail
55 2019-10-17 Jakub Jelinek <jakub@redhat.com>
57 PR tree-optimization/92056
58 * tree-object-size.c (cond_expr_object_size): Return early if then_
59 processing resulted in unknown size.
61 PR tree-optimization/92115
62 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
63 temporary if it could trap.
65 2019-10-17 Richard Biener <rguenther@suse.de>
68 * dwarf2out.c (gen_formal_parameter_die): Also try to match
69 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
71 2019-10-16 Jakub Jelinek <jakub@redhat.com>
73 * tree-ssa-strlen.c (maybe_invalidate): Use
74 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
76 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
77 Jim Wilson <jimw@sifive.com>
79 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
81 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
82 passing regs to SIBCALL_REGS.
84 2019-10-16 Martin Sebor <msebor@redhat.com>
86 PR tree-optimization/83821
87 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
88 the length of a string when available.
89 (handle_builtin_memset) Add argument.
90 (handle_store, strlen_check_and_optimize_call): Same.
91 (check_and_optimize_stmt): Same. Pass it to callees.
93 2019-10-16 Martin Sebor <msebor@redhat.com>
95 PR tree-optimization/91996
96 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
98 (compare_nonzero_chars): Add an overload.
99 (count_nonzero_bytes): Add an argument. Call overload above.
100 Handle non-constant lengths in some range.
101 (handle_store): Add an argument.
102 (check_and_optimize_stmt): Pass an argument to handle_store.
104 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
106 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
108 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
110 * config/mips/mips.c (mips_expand_builtin_insn): Force the
111 operands which correspond to the same input-output register to
112 have the same pseudo assigned to them.
114 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
116 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
118 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
120 * config/aarch64/aarch64.c (aarch64_classify_symbol):
121 Apply reasonable limit to symbol offsets.
123 2019-10-16 Richard Biener <rguenther@suse.de>
125 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
126 (vect_is_simple_reduction): Delay checking to
127 vectorizable_reduction and relax the checking.
128 (vectorizable_reduction): Check we have a simple use. Check
129 for bogus condition reductions.
130 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
131 are looking at the last stmt in a pattern sequence when
132 filling in backedge PHI values.
134 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
135 Jiufu Guo <guojiufu@linux.ibm.com>
138 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
139 the callee explicitly disables some isa_flags the caller is using.
141 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
143 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
145 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
147 * genmodes.c (mode_data::order): New field.
148 (blank_mode): Update accordingly.
149 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
150 (make_vector_modes): Likewise.
151 (VECTOR_MODES): Update use accordingly.
152 (cmp_modes): Sort by the new order field ahead of sorting by size.
153 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
154 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
155 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
156 (aarch64_classify_vector_mode): Handle the new partial modes.
157 (aarch64_vl_bytes): New function.
158 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
159 when counting the number of registers in an SVE mode.
160 (aarch64_class_max_nregs): Likewise.
161 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
163 (aarch64_classify_address): Treat partial vectors analogously
165 (aarch64_print_address_internal): Consolidate the printing of
166 MUL VL addresses, using aarch64_vl_bytes as the number of
167 bytes represented by "VL".
168 (aarch64_vector_mode_supported_p): Reject partial vector modes.
170 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
172 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
173 rather than known_lt when choosing frame layouts.
175 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
177 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
178 that all the adjustments add up to the full frame size.
179 Use crtl->outgoing_args_size directly as the final adjustment
182 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
184 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
185 "frame" reference instead of always referring directly to
186 "cfun->machine->frame".
188 2019-10-16 Richard Biener <rguenther@suse.de>
190 PR tree-optimization/92119
191 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
192 against missing bswap lhs.
194 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
197 * poly-int.h (constant_lower_bound_with_limit): New function.
198 (constant_upper_bound_with_limit): Likewise.
199 * doc/poly-int.texi: Document them.
200 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
201 into the worst-case INTEGER_CST bounds.
203 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
206 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
207 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
208 * ipa-predicat.h (struct expr_eval_op): New struct.
209 (expr_eval_ops): New typedef.
210 (struct condition): Add type and param_ops fields, remove size field.
211 (add_condition): Replace size parameter with type parameter, add
213 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
214 (predicate::add_clause): Add comparisons on type and param_ops.
215 (dump_condition): Add debug dump for param_ops.
216 (remap_after_inlining): Adjust call arguments to add_condition.
217 (add_condition): Replace size parameter with type parameter, add
218 param_ops parameter. Unshare constant value used in conditions.
219 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
220 parameter expressions using param_ops.
221 (decompose_param_expr): New function.
222 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
223 to replace call to unmodified_parm_or_parm_agg_item.
224 (set_switch_stmt_execution_predicate): Likewise.
225 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
227 (inline_read_section): Read param_ops from summary stream.
228 (ipa_fn_summary_write): Write param_ops to summary stream.
230 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
232 PR rtl-optimization/92107
233 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
236 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
238 * config/darwin.c: Update description of fix and continue.
240 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
242 * config/darwin.c (darwin_binds_local_p): Update to call
243 default_binds_local_p_3 () directly. amend comments.
245 2019-10-15 Richard Biener <rguenther@suse.de>
247 * lto-streamer-out.c (lto_variably_modified_type_p): New.
248 (tree_is_indexable): Use it.
249 * tree-streamer-out.c (pack_ts_type_common_value_fields):
250 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
251 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
253 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
255 * config/msp430/msp430.md (zero_extendqipsi2): New.
256 (zero_extendqisi2): Optimize case where src register and base dst
257 register are the same.
258 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
259 (zero_extendpsisi2): Optimize r->m case.
260 Add unnamed insn patterns to catch insns combine searches for when
261 optimizing pointer manipulation.
263 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
265 * config/msp430/msp430.md: Group zero_extend* insns together.
267 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
269 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
271 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
273 (msp430_subreg): Likewise.
274 (msp430_split_addsi): Likewise.
275 (msp430_print_operand_addr): Likewise.
276 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
277 (USE_STORE_POST_INCREMENT): Define.
278 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
279 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
280 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
281 (msp430_general_dst_operand): New.
282 (msp430_general_dst_nonv_operand): New.
283 (msp430_nonsubreg_operand): Remove.
284 (msp430_nonsubreg_dst_operand): New.
285 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
286 of defunct msp430_nonsubreg_operand.
287 (msp430_nonsubregnonpostinc_or_imm_operand): New.
289 2019-10-15 Richard Biener <rguenther@suse.de>
291 PR tree-optimization/91929
292 * tree-ssa-pre.c (pre_expr_d::loc): New member.
293 (get_or_alloc_expr_for_name): Initialize it.
294 (get_or_alloc_expr_for_constant): Likewise.
295 (phi_translate_1): Copy it.
296 (create_expression_by_pieces): Use the original location
297 of the expression for the inserted stmt.
298 (compute_avail): Record the location of the stmt for the
301 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
303 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
304 before using tree_to_uhwi.
306 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
308 * config/s390/s390.md: Run %a0:DI splitters only after reload.
310 2019-10-15 Richard Biener <rguenther@suse.de>
312 PR tree-optimization/92094
313 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
314 do not adjust the reduction definition def type.
315 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
316 defines the latch argument of the PHI.
318 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
321 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
322 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
323 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
324 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
325 _mm_maskz_roundscale_round_sd): New intrinsics.
326 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
327 __builtin_ia32_rndscales?_mask_round builtins instead of
328 __builtin_ia32_rndscales?_round.
329 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
330 __builtin_ia32_rndscalesd_round): Remove.
331 (__builtin_ia32_rndscaless_mask_round,
332 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
334 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
335 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
336 ... this, adjust and add subst atrributes to make it maskable.
338 2019-10-15 Richard Biener <rguenther@suse.de>
341 * common.opt (fallow-store-data-races): New.
342 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
343 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
344 * doc/invoke.texi (fallow-store-data-races): Document.
345 (--param allow-store-data-races): Remove docs.
346 * opts.c (default_options_table): Enable -fallow-store-data-races
348 (default_options_optimization): Do not enable --param
349 allow-store-data-races at -Ofast.
350 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
351 instead of PARAM_ALLOW_STORE_DATA_RACES.
352 * tree-ssa-loop-im.c (execute_sm): Likewise.
354 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
356 PR tree-optimization/92085
357 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
358 instead of calling it unconditionally after
359 delete_dead_or_redundant_assignment and fix indentation.
361 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
363 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
365 (*fmsub<SDF:mode>4): Likewise.
366 *fnmsub<SDF:mode>4): Likewise.
367 (*fnmadd<SDF:mode>4): Likewise.
369 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
371 * doc/tree-ssa.texi: Update renamed macro name.
373 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
375 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
378 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
380 * config/darwin.c: Use unsigned ints for the picbase label
381 counters, initialise the vars explicitly.
382 (update_pic_label_number_if_needed): Move a variable declaration
383 to where it's needed.
384 (machopic_output_function_base_name): Use a more strict checking
385 assert, and and unsigned int for the picbase label counter.
386 (machopic_get_function_picbase): Likewise.
388 2019-10-14 Richard Biener <rguenther@suse.de>
391 * dse.c (scan_insn): Use param max_active_local_stores.
392 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
393 based on optimization level.
394 * loop-invariant.c (move_loop_invariants): Adjust
395 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
396 * opts.c (default_options_optimization): Do not adjust
397 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
398 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
400 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
402 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
404 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
406 * config/arm/arm.c (arm_option_override): Don't override sched
409 2019-10-14 Richard Biener <rguenther@suse.de>
411 PR tree-optimization/92069
412 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
413 cycles do not set vect_nested_cycle on the latch definition.
415 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
417 * function-abi.h (expr_callee_abi): Declare.
418 * function-abi.cc (expr_callee_abi): New function.
420 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
422 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
424 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
425 non-zero being represented as [1,MAX].
427 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
429 * tree-sra.c (dump_access): Add missing braces.
431 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
433 * config/darwin.c (machopic_indirection_name): Rework the
434 function to emit linker-visible symbols only for indirections
435 in the data section. Clean up the code and update comments.
437 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
439 * config/darwin.c (machopic_indirect_data_reference): Remove
442 2019-10-13 Nathan Sidwell <nathan@acm.org>
444 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
446 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
448 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
451 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
453 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
454 so non-virutal are before virutals.
455 (output_function): Avoid body modifications.
457 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
459 * config/pa/pa.c (pa_output_call): Load descriptor address to register
460 %r22. Load function address before global pointer.
461 (pa_attr_length_indirect_call): Adjust length of inline versions of
463 (pa_output_indirect_call): Remove fast inline version of $$dyncall
464 before normal cases. Update inline $$dyncall sequences to preserve
465 function descriptor address in register %r22.
466 (TRAMPOLINE_CODE_SIZE): Adjust.
467 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
468 register %r22 contains trampoline address.
469 (pa_trampoline_init): Adjust offsets.
470 (pa_trampoline_adjust_address): Likewise.
471 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
473 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
476 * config/darwin.c (machopic_indirection): New field to flag
477 non-lazy-symbol-pointers in the data section.
478 (machopic_indirection_name): Compute if an indirection should
479 appear in the data section.
480 (machopic_output_data_section_indirection): New callback split
481 from machopic_output_indirection.
482 (machopic_output_stub_indirection): Likewise.
483 (machopic_output_indirection): Retain the code for non-lazy
484 symbol pointers in their regular section.
485 (machopic_finish): Use the new callbacks to order the indirection
488 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
490 * config/darwin-protos.h (machopic_finish): Delete.
491 * config/darwin.c (machopic_finish): Make static.
493 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
495 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
496 sections when building kernel extension code.
498 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
500 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
503 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
505 * gcc/config/pa/pa.c (pa_option_override): Remove trailing comma
508 2019-10-12 Jakub Jelinek <jakub@redhat.com>
511 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
512 <case VEC_COND_EXPR>: Return false with *handled = false.
513 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
514 recursing on the first operand.
515 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
516 instead of tree_could_trap_p.
517 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
519 2019-10-11 Jim Wilson <jimw@sifive.com>
521 PR rtl-optimization/91860
522 * combine.c (subst): If new_rtx is a constant, also check for
523 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
525 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
527 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
528 INTVAL when calling store_bit_field.
530 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
532 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
535 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
537 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
538 vectorizable_live_operation.
539 (vectorizable_live_operation): Adjust parameters.
540 * tree-vect-stmts.c (vect_init_vector,
541 vect_gen_widened_results_half): Fix typo in function comment.
542 (can_vectorize_live_stmts): Adjust function comment.
543 Adjust parameters. Adjust call to vectorizable_live_operation.
544 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
545 (vect_transform_stmt): Adjust function comment. Adjust call to
546 can_vectorize_live_stmts.
547 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
549 2019-10-11 Richard Biener <rguenther@suse.de>
551 PR tree-optimization/90883
552 PR tree-optimization/91091
553 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
554 alias-sets both for recording VN table entries and continuing
555 walking after translating through copies. Handle same-sized
556 reads from SSA names by returning the plain SSA name.
557 (eliminate_dom_walker::eliminate_stmt): Properly handle
558 non-size precision stores in redundant store elimination.
560 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
562 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
563 (ggc_collect): Dump later to not interfere with release_page dump.
564 (ggc_trim): New function.
565 * ggc-none.c (ggc_trim): New.
566 * ggc.h (ggc_trim): Declare.
568 2019-10-11 Richard Biener <rguenther@suse.de>
570 PR tree-optimization/92066
571 PR tree-optimization/92046
572 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
573 Fix bogus cost model check.
575 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
577 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
578 (LANG_HOOKS_DECLS): Add it.
579 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
580 update comment for omp_is_optional_argument.
581 * omp-general.c (omp_is_allocatable_or_ptr): New.
582 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
583 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
584 Fortran's optional arguments and allocatable/pointer scalars
585 with use_device_addr.
587 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
590 * config/s390/2827.md: Add new opcodes.
591 * config/s390/2964.md: Likewise.
592 * config/s390/3906.md: Likewise.
593 * config/s390/8561.md: Likewise.
594 * config/s390/s390-builtins.def (s390_vfchesb): Use
595 the new vec_cmpgev4sf_quiet_nocc.
596 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
597 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
598 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
599 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
600 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
601 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
602 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
603 * config/s390/s390-modes.def (CCSFPS): New mode.
604 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
605 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
606 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
607 (s390_expand_vec_compare): Use non-signaling patterns where
609 (s390_reverse_condition): Support CCSFPS.
610 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
611 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
612 (asm_fcmp_op): Likewise.
613 (*smaxv2df3_vx): Use pattern for quiet comparison.
614 (*sminv2df3_vx): Likewise.
615 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
616 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
617 (vec_cmpgt<mode>_quiet_nocc): Likewise.
618 (vec_cmplt<mode>_quiet_nocc): New expander.
619 (vec_cmpge<mode>_quiet_nocc): New pattern.
620 (vec_cmple<mode>_quiet_nocc): New expander.
621 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
622 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
623 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
624 (*vec_cmpge<mode>_signaling_nocc): Likewise.
625 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
626 (vec_cmpungt<mode>): New expander.
627 (vec_cmpunge<mode>): Likewise.
628 (vec_cmpuneq<mode>): Use quiet patterns.
629 (vec_cmpltgt<mode>): Allow only on z14+.
630 (vec_cmpordered<mode>): Use quiet patterns.
631 (vec_cmpunordered<mode>): Likewise.
632 (VEC_CMP_EXPAND): Add ungt and unge.
634 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
636 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
638 * lto-streamer-out.c: Include tree-dfa.h.
639 (output_cfg): Do not use cfun.
640 (lto_prepare_function_for_streaming): New.
641 (output_function): Do not push cfun; do not initialize loop optimizer.
642 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
643 * passes.c (ipa_write_summaries): Use it.
644 (ipa_write_optimization_summaries): Do not modify bodies.
645 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
646 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
647 * tree-ssa-dse.c (pass_dse::execute): Update use of
648 renumber_gimple_stmt_uids.
649 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
651 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
653 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
654 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
656 2019-10-10 Joseph Myers <joseph@codesourcery.com>
658 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
660 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
661 Also define DFP macros for these conditions.
662 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
663 DEC128_SUBNORMAL_MIN): Do not define.
664 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
665 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
667 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
668 Sandra Loosemore <sandra@codesourcery.com>
671 * doc/lto.texi (IPA): Reference to the IPA passes.
672 * doc/passes.texi (Pass manager): Add node IPA passes and
673 description for each IPA pass.
675 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
677 * ipa-reference.c: Do not include splay-tree.h
678 (reference_vars_to_consider): Turn to hash map.
679 (get_static_name, ipa_init, analyze_function, propagate,
680 stream_out_bitmap, ipa_reference_write_optimization_summary,
681 ipa_reference_write_optimization_summary): Update.
683 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
685 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
687 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
689 * config/darwin.c: Lookup Objective C metadata and force indirection
692 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
694 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
696 (mem_operand_gpr): Add check for prefixed addresses.
697 (mem_operand_ds_form): Add check for prefixed addresses.
698 (rs6000_legitimate_offset_address_p): If we support prefixed
699 addresses, check for a 34-bit offset instead of 16-bit.
700 (rs6000_legitimate_address_p): Add check for prefixed addresses.
701 Do not allow load/store with update if the address is prefixed.
702 (rs6000_mode_dependent_address): If we support prefixed
703 addresses, check for a 34-bit offset instead of 16-bit.
705 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
708 * config/s390/vector.md (vcond_comparison_operator): New
710 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
712 2019-10-10 David Malcolm <dmalcolm@redhat.com>
715 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
717 * configure.ac (--with-documentation-root-url): New option.
718 * configure: Regenerate.
719 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
720 option URL, add it as a new string field of the diagnostic option.
721 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
722 (print_option_information): If get_option_url is non-NULL, call
723 it, and if the result is non-NULL, potentially emit an escape
724 sequence to markup the option text with the resulting URL.
725 * diagnostic.h (diagnostic_context::get_option_url): New callback.
726 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
727 example of JSON output.
728 * opts-diagnostic.h (get_option_url): New decl.
729 * opts.c (get_option_url): New function.
730 * toplev.c (general_init): Initialize the get_option_url callback.
732 2019-10-10 David Malcolm <dmalcolm@redhat.com>
735 * common.opt (fdiagnostics-urls=): New option.
736 (diagnostic-url.h): Add SourceInclude.
737 (diagnostic_url_rule): New enum.
738 * diagnostic-color.c: Include "diagnostic-url.h".
739 (diagnostic_urls_enabled_p): New function.
740 * diagnostic-url.h: New file.
741 * diagnostic.c: Include "diagnostic-url.h".
742 (diagnostic_urls_init): New function.
743 * diagnostic.h (diagnostic_urls_init): New decl.
744 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
745 -fdiagnostics-urls to the list.
746 (-fdiagnostics-urls): New option.
747 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
748 (driver::global_initializations): Call diagnostic_urls_init.
749 * opts-global.c (init_options_once): Likewise.
750 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
751 * pretty-print.c (pretty_printer::pretty_printer): Initialize
753 (pp_begin_url): New function.
754 (pp_end_url): New function.
755 (selftest::test_urls): New selftest.
756 (selftest::pretty_print_c_tests): Call it.
757 * pretty-print.h (pretty_printer::show_urls): New field.
758 (pp_begin_url): New decl.
759 (pp_end_url): New decl.
761 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
764 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
766 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
769 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
770 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
771 also for TARGET_FPU_SH4_300.
772 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
774 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
775 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
776 (*negsf2_i): Split into ...
777 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
778 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
779 (**abssf2_i): Split into ...
780 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
781 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
782 (*negdf2_i): Split into ...
783 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
784 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
785 (**abssf2_i): Split into ...
786 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
788 2019-10-10 Richard Biener <rguenther@suse.de>
791 * opts.c (finish_options): Do not influence global --params
792 from options that are adjustable per function.
793 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
794 Apply --param adjustment based on active cost-model.
795 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
796 further store-sinking when vectorization or if-conversion
799 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
802 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
803 rather than ggc_alloc_cleared to alloc symbol table.
804 * toplev.c (general_init): Likewise.
805 * cgraph.h (symbol_table): Explicitly construct every field.
807 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
809 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
811 * config.gcc: Add z15 as option for --with-arch and --with-tune
813 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
814 error reporting for unsupported builtins.
815 * config/s390/s390-opts.h (enum processor_type): Rename
816 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
817 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
818 * config/s390/driver-native.c (s390_host_detect_local_cpu):
820 * config/s390/s390-builtins.def: Likewise.
821 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
822 (s390_expand_builtin): Add missing check for unsupported builtins.
823 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
824 (s390_rtx_costs): Likewise.
825 (s390_get_sched_attrmask): Rename arch13 to z15.
826 (s390_get_unit_mask): Likewise.
827 (s390_is_fpd): Likewise.
828 (s390_is_fxd): Likewise.
829 * config/s390/s390.h (enum processor_flags): Likewise.
830 * config/s390/s390.md: Likewise.
831 * config/s390/vector.md: Likewise.
832 * config/s390/vx-builtins.md: Likewise.
833 * config/s390/s390.opt: Add z15 to processor_type value.
835 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
838 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
840 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
841 ("split_stack_data", "split_stack_call")
842 ("split_stack_call_<mode>", "split_stack_cond_call")
843 ("split_stack_cond_call_<mode>"): Remove.
844 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
846 * config/s390/s390.c (s390_output_split_stack_data): New function.
847 (s390_expand_split_stack_prologue): Use the merged expander.
849 2019-10-09 Martin Sebor <msebor@redhat.com>
851 PR tree-optimization/90879
852 * builtins.c (check_access): Avoid using maxbound when null.
853 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
854 * doc/invoke.texi (-Wstring-compare): Document new warning option.
855 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
857 (get_range_strlen): Overwrite initial maxbound when non-null.
858 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
860 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
861 (used_only_for_zero_equality): New function.
862 (handle_builtin_memcmp): Call it.
863 (determine_min_objsize): Return an integer instead of tree.
864 (get_len_or_size, strxcmp_eqz_result): New functions.
865 (maybe_warn_pointless_strcmp): New function.
866 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
867 between a longer string and a smaller array.
868 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
870 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
872 * config/darwin.c (darwin_override_options): Make the check for
873 Objective-C ABI version more specific for 64bit code.
875 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
877 * config/darwin.c (machopic_indirect_data_reference): Set flag to
878 indicate that the new symbol is an indirection.
879 (machopic_indirect_call_target): Likewise.
880 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
881 (MACHO_SYMBOL_INDIRECTION_P): New.
882 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
884 2019-10-08 Jason Merrill <jason@redhat.com>
886 * doc/invoke.texi: Document -fconcepts-ts.
888 2019-10-09 Richard Biener <rguenther@suse.de>
890 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
891 allow stmts other than GIMPLE_ASSIGN in nested cycles.
893 2019-10-08 Richard Biener <rguenther@suse.de>
895 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
896 (_stmt_vec_info::force_single_cycle): Likewise.
897 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
898 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
899 * tree-vect-loop.c (vectorizable_reduction): Set
900 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
901 (vect_transform_reduction): Use them to remove redundant code.
902 (vect_transform_cycle_phi): Likewise.
904 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
906 PR tree-optimization/90836
907 * gcc/match.pd (popcount): New pattern.
909 2019-10-08 Martin Sebor <msebor@redhat.com>
913 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
914 again once nbytes has been set. Set the access size when not yet set.
916 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
918 * config/darwin.c (machopic_select_section): Remove dead code for
919 old Objective-C section selection method, replace with unreachable.
921 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
923 * config/darwin.c (machopic_indirect_data_reference): Check for
924 required indirections before making direct access to defined
926 (machopic_output_indirection): Place the indirected pointes for
927 required indirections into the non-lazy symbol pointers section.
928 (darwin_encode_section_info):
929 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
930 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
932 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
935 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
936 instead of ALL_SSE_REG to check if function call preserves some
937 256-bit SSE registers.
939 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
941 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
942 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
943 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
945 2019-10-08 Richard Biener <rguenther@suse.de>
947 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
948 (_stmt_vec_info::is_reduc_info): Add.
949 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
950 (vectorizable_condition): Remove.
951 (vectorizable_shift): Likewise.
952 (vectorizable_reduction): Adjust.
953 (info_for_reduction): New.
954 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
955 (vect_analyze_scalar_cycles_1): ... here.
956 (vect_analyze_loop_operations): Adjust.
957 (needs_fold_left_reduction_p): Simplify for single caller.
958 (vect_is_simple_reduction): Likewise. Remove stmt restriction
959 for nested cycles not part of double reductions.
960 (vect_model_reduction_cost): Pass in the reduction type.
961 (info_for_reduction): New function.
962 (vect_create_epilog_for_reduction): Use it, access reduction
963 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
964 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
965 (vectorize_fold_left_reduction): Remove pointless assert.
966 (vectorizable_reduction): Analyze the full reduction when
967 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
968 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
969 stmt code-generation to vectorizable_* in most cases. Verify
970 code-generation only for cases handled by
971 vect_transform_reductuon.
972 (vect_transform_reduction): Use info_for_reduction to get at
973 reduction meta. Simplify.
974 (vect_transform_cycle_phi): Likewise.
975 (vectorizable_live_operation): Likewise.
976 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
977 at the PHI node for STMT_VINFO_REDUC_TYPE.
978 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
979 longer necessary code.
980 * tree-vect-stmts.c (vectorizable_shift): Make static again.
981 (vectorizable_condition): Likewise. Get at reduction related
982 info via info_for_reduction.
983 (vect_analyze_stmt): Adjust.
984 (vect_transform_stmt): Likewise.
985 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
986 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
988 2019-10-08 Joseph Myers <joseph@codesourcery.com>
990 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
991 -fno-fp-int-builtin-inexact default for C2X.
993 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
994 Richard Biener <rguenther@suse.de>
996 PR tree-optimization/91532
997 * tree-if-conv.c: Include tree-ssa-dse.h.
998 (ifcvt_local_dce): Change param from bb to loop,
999 and call dse_classify_store.
1000 (tree_if_conversion): Pass loop instead of loop->header as arg
1002 * tree-ssa-dse.c: Include tree-ssa-dse.h.
1003 (delete_dead_or_redundant_assignment): Remove static qualifier from
1004 declaration, and add prototype in tree-ssa-dse.h.
1005 (dse_store_status): Move to tree-ssa-dse.h.
1006 (dse_classify_store): Remove static qualifier and add new tree param
1007 stop_at_vuse, and add prototype in tree-ssa-dse.h.
1008 * tree-ssa-dse.h: New header.
1010 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
1012 * config/darwin.c (machopic_output_indirection): Don't put
1013 hidden symbol indirections into the .data section, use the
1014 non-lazy symbol pointers section as normal.
1015 (darwin_encode_section_info): Record if a symbol is hidden.
1016 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
1017 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
1019 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
1021 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
1022 predicates instead of accessing bits directly.
1023 (machopic_indirect_call_target): Likewise.
1024 (machopic_output_indirection): Likewise.
1025 (darwin_encode_section_info): Improve description. Use renamed
1026 symbol flags. Use predicate macros for variables and functions.
1028 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
1029 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
1030 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
1031 (MACHO_SYMBOL_VARIABLE_P): New.
1032 (MACHO_SYMBOL_DEFINED_P):New.
1033 (MACHO_SYMBOL_STATIC_P): New.
1034 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
1035 (SYMBOL_FLAG_SUBT_DEP): New.
1036 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
1038 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1040 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
1041 (msp430_expand_epilogue): Likewise.
1042 * config/msp430/predicates.md: Likewise.
1043 * config/msp430/msp430.md: Likewise.
1044 Replace blocks of 8 spaces with tabs.
1046 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1048 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
1049 * config/msp430/msp430.c (msp430_split_addsi): New.
1050 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
1051 a block of C code for splitting addsi.
1053 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
1055 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
1056 ix86_expand_rounddf_32): Reorder functions.
1057 * config/i386/i386-protos.h: Update.
1059 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1061 * config.in: Regenerate.
1062 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
1063 Add new "Yx" constraint.
1064 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
1066 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
1068 * config/msp430/msp430.c (msp430_option_override): Allow the lower
1069 code/data region to be selected in the small memory model.
1070 (msp430_section_attr): Don't warn if the "section" and "lower"
1071 attributes are used together.
1072 (msp430_handle_generic_attribute): Likewise.
1073 (msp430_var_in_low_mem): New function.
1074 (TARGET_ENCODE_SECTION_INFO): Define.
1075 (msp430_encode_section_info): New function.
1076 (gen_prefix): Return early in the small memory model.
1077 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
1078 ".lower" prefix if -m{code,data}-region=lower have been passed.
1079 (msp430_output_aligned_decl_common): Emit common symbols when
1080 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
1082 (TARGET_ASM_FILE_END): Define.
1083 (msp430_file_end): New function.
1084 (msp430_do_not_relax_short_jumps): Allow relaxation when
1085 function will be in the lower region.
1086 (msp430_op_not_in_high_mem): New function.
1087 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
1088 the 'X' operand selector.
1089 Clarify comment for 'x' operand selector.
1090 * config/msp430/msp430.h (LINK_SPEC): Propagate
1091 -m{code,data}-region to the linker via spec function
1092 msp430_propagate_region_opt.
1093 (msp430_propagate_region_opt): New prototype.
1094 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
1095 (SYMBOL_FLAG_LOW_MEM): Define.
1096 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
1098 (zero_extendqihi2): Fix operand number used by "%X" selector.
1099 (zero_extendqisi2): Likewise.
1100 (zero_extendhisi2): Likewise.
1101 (movqi): Use "Yx" constraint in place of "%X" operand selector.
1106 (addhi3_cy): Likewise.
1107 (addchi4_cy): Likewise.
1111 (bic<mode>3): Likewise.
1112 (and<mode>3): Likewise.
1113 (ior<mode>3): Likewise.
1114 (xor<mode>3): Likewise.
1115 (slli_1): Add missing "%X" operand selector.
1123 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
1125 (cbranchhi4_real): Likewise.
1126 (cbranchqi4_reversed): Likewise.
1127 (cbranchhi4_reversed): Likewise.
1128 (*bitbranch<mode>4): Likewise.
1129 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
1130 * config/msp430/msp430.opt (mcode-region=): Set default to
1131 MSP430_REGION_LOWER. Improve docstring.
1132 (mdata-region=): Likewise.
1133 (muse-lower-region-prefix): New option.
1134 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
1135 mdata-region=none multilib.
1136 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
1137 mdata-region=none multilib.
1138 MULTILIB_EXCEPTIONS: Remove.
1139 MULTILIB_REQUIRED: Define.
1140 * configure: Regenerate.
1141 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
1142 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
1143 * doc/extend.texi: Clarify comment for {upper,lower,either}
1144 function attributes.
1145 Add separate description for "lower" variable attribute.
1147 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1150 * optabs-tree.c (vcond_icode_p): New function.
1151 (vcond_eq_icode_p): Likewise.
1152 (expand_vec_cond_expr_p): Use vcond_icode_p and
1154 * optabs.c (can_vcond_compare_p): New function.
1155 * optabs.h (can_vcond_compare_p): Likewise.
1157 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
1160 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
1161 caller passes a non-trapping condition.
1162 (is_gimple_condexpr): Allow trapping conditions.
1163 (is_gimple_condexpr_1): New helper function.
1164 (is_gimple_condexpr_for_cond): New function, acts like old
1166 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
1167 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
1168 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
1169 * gimplify.c (gimplify_cond_expr): Use
1170 is_gimple_condexpr_for_cond.
1171 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
1172 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
1174 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
1175 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
1176 is_gimple_condexpr_for_cond, remove pointless tmp check
1177 (forward_propagate_into_cond): Remove pointless tmp check.
1179 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1181 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
1182 match that of other gsi_next_* functions. Adjust the comment.
1183 (gsi_start_nonvirtual_phis): New function.
1184 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
1185 gsi_next_nonvirtual_phi accordingly. (No functional change.)
1187 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1189 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
1190 setjmp situation here. Fix a verb's ending: "the exact variables or
1191 elements for which there are warnings depends" -> "... depend".
1193 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1195 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
1197 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1199 * ipa-prop.c (ipa_vr::nonzero_p): New.
1200 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
1202 * ipa-prop.h (class ipa_vr): Add nonzero_p.
1203 * tree-vrp.c (range_has_numeric_bounds_p): New.
1204 (range_int_cst_p): Use range_has_numeric_bounds_p.
1205 (get_range_op_handler): New.
1206 (supported_types_p): New.
1207 (defined_ranges_p): New.
1208 (drop_undefines_to_varying): New.
1209 (range_fold_binary_symbolics_p): New.
1210 (range_fold_unary_symbolics_p): New.
1211 (range_fold_unary_expr): Extract out into above functions.
1212 (range_fold_binary_expr): Same.
1213 (value_range_base::normalize_addresses): New.
1214 (value_range_base::normalize_symbolics): Normalize addresses.
1215 * tree-vrp.h (class value_range_base): Add normalize_addresses.
1217 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1219 * tree-vrp.c (value_range_base::singleton_p): Use
1220 value_range_base::num_pairs instead of vrp_val_is* to check
1221 if a range has one sub-range.
1223 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1225 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
1226 DEF is not a true earlyclobber but is tied to a specific input
1227 operand, and so is effectively earlyclobber wrt inputs that have
1229 (make_early_clobber_and_input_conflicts): Pass this case to the above.
1231 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1233 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
1234 (pod_mode): Mark operators likewise.
1235 (scalar_int_mode): Mark non-default constructors and
1236 operators with CONSTEXPR.
1237 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
1238 (fixed_size_mode): Likewise.
1240 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1243 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
1244 and wrap the unspec_volatile in a parallel.
1245 (*avx_vzeroupper): New define_insn. Use a match_parallel around
1246 the unspec_volatile.
1247 * config/i386/predicates.md (vzeroupper_pattern): Expect the
1248 unspec_volatile to be wrapped in a parallel.
1249 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
1250 (ix86_add_reg_usage_to_vzerouppers): New functions.
1251 (rest_of_handle_insert_vzeroupper): Use them to add register
1252 usage information to the vzeroupper instructions.
1254 2019-10-07 Richard Biener <rguenther@suse.de>
1256 PR tree-optimization/91975
1257 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
1260 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
1262 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
1263 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
1265 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
1267 * config/darwin.c (darwin_override_options): Adjust objective-c
1268 ABI version error messages to avoid punctuation and contracted
1271 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
1273 * ipa-inline.c: Fix type; compute size rather than self_size
1274 for size of caller function.
1276 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
1279 * config/darwin.c (darwin_rodata_section): Add relocation flag,
1280 choose const_data section for constants with relocations.
1281 (machopic_select_section): Pass relocation flag to
1282 darwin_rodata_section ().
1284 2019-10-05 Jakub Jelinek <jakub@redhat.com>
1286 PR tree-optimization/91734
1287 * generic-match-head.c: Include fold-const-call.h.
1288 * match.pd (sqrt(x) cmp c): Check the boundary value and
1289 in case inexact computation of c*c affects comparison of the boundary,
1290 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
1291 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
1292 for -frounding-math. For c2, try the next smaller or larger floating
1293 point constant depending on comparison code and if it has the same
1294 sqrt as c2, use it instead of c2.
1296 2019-10-04 Martin Sebor <msebor@redhat.com>
1299 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
1300 MEM_REF right operand. Avoid failing for MEM_REF assignments from
1301 uninitialized objects.
1303 2019-10-04 Martin Sebor <msebor@redhat.com>
1305 * builtins.c (compute_objsize): Add an argument.
1306 * tree-object-size.c (addr_object_size): Same.
1307 (compute_builtin_object_size): Same.
1308 * tree-object-size.h (compute_builtin_object): Same.
1310 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
1312 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
1314 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
1316 * match.pd (sinh (x) / cosh (x)): New simplification rule.
1318 2019-10-04 Martin Jambor <mjambor@suse.cz>
1320 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
1321 fntype when switching to calling memcpy instead of memset.
1323 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1325 * hash-table.h (hash_table::empty_slow): Don't assign
1326 size_t values to int variables.
1328 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1330 * expr.c (convert_mode_scalar): Remove shadowing local var.
1331 (emit_block_move): Rename local vars.
1332 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
1333 (emit_push_insn): Rename local vars.
1334 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
1335 shadowing local vars.
1336 (store_constructor): Remove shadowing local vars. Rename local var.
1337 (store_field, expand_cond_expr_using_cmove,
1338 expand_expr_real_2): Remove shadowing local vars.
1339 (expand_expr_real_1,
1340 do_store_flag): Remove shadowing local vars. Rename local vars.
1342 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1344 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
1346 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1348 * genmatch.c (commutate): Rename local var.
1349 (lower_cond): Reuse local var.
1350 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
1351 dt_operand::gen, dt_operand::gen_gimple_expr,
1352 dt_simplify::gen): Add a param. Rename generated vars.
1353 (decision_tree::insert_operand,
1354 (capture_info::walk_match, capture_info::walk_result,
1355 capture_info::walk_c_expr): Rename local vars.
1356 (expr::gen_transform): Rename generated vars.
1357 Use snprintf. Rename local vars.
1358 (capture::gen_transform, dt_operand::get_name,
1359 dt_operand::gen_opname): Rename generated vars.
1360 (write_predicate): Adjust call to gen_kids.
1361 (parser::get_internal_capture_id): Rename generated vars.
1362 (parser::parse_expr): Rename local vars.
1363 (parser::parse_if): Remove local var.
1364 (parser::parse_pattern, add_operator): Rename local vars.
1366 2019-10-04 Joseph Myers <joseph@codesourcery.com>
1368 * builtins.def (DEF_C2X_BUILTIN): New macro.
1369 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
1370 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
1371 (strndup): Use DEF_C2X_BUILTIN.
1372 * coretypes.h (enum function_class): Add function_c2x_misc.
1374 2019-10-04 Maya Rashish <coypu@sdf.org>
1376 * ira-color.c (update_costs_from_allocno): Call
1377 ira_init_register_move_cost_if_necessary.
1379 2019-10-04 Jeff Law <law@redhat.com>
1381 * config/h8300/h8300.md (cpymemsi): Disable.
1382 (movmd, movmd_internal_<mode>, movstr, movsd):
1383 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
1384 (movmd splitter, movsd splitter): Likewise.
1386 * range-op.cc (range_tests): Avoid two tests when ints and
1387 shorts are the same size.
1389 2019-10-04 Richard Biener <rguenther@suse.de>
1392 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
1395 2019-10-04 Richard Biener <rguenther@suse.de>
1397 PR tree-optimization/91982
1398 * tree-vect-loop.c (vectorizable_live_operation): Also guard
1399 against EXTRACT_LAST_REDUCTION.
1400 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
1402 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
1404 * range-op.o (value_range_from_overflowed_bounds): Rename from
1405 adjust_overflow_bound.
1406 (value_range_with_overflow): Rename from
1407 create_range_with_overflow.
1408 (create_possibly_reversed_range): Adjusted for above renames.
1409 (operator_*::wi_fold): Same.
1410 (cross_product_operator::wi_cross_productor): Same.
1412 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1414 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
1415 -Wshadow=compatible-local): Fix description.
1416 Add an example where -Wshadow=compatible-local does not
1419 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
1421 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
1423 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
1424 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
1426 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
1428 * expr.c (emit_block_move_hints): Slightly cleaner fix to
1429 can_move_by_pieces issue.
1431 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
1434 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
1435 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
1436 is available and the user has not set one on the command line.
1438 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1441 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
1442 instead of REGNO equality check on addr.reg.
1444 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
1446 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
1447 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
1448 * doc/invoke.texi (inline-heuristics-hint-percent,
1449 inline-heuristics-hint-percent-O2): Document.
1450 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
1452 (can_inline_edge_by_limits_p): Use it.
1454 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
1456 * config/arm/arm.c (arm_print_value): Use real_to_decimal
1457 to print CONST_DOUBLEs.
1459 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
1461 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
1462 * ipa-prop.c (ipcp_free_transformation_sum): New function.
1463 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
1465 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
1467 * Makefile.in (OBJS): Add range.o and range-op.o.
1468 Remove wide-int-range.o.
1469 * function-tests.c (test_ranges): New.
1470 (function_tests_c_tests): Call test_ranges.
1471 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
1472 range_fold_unary_expr instead of extract_range_from_unary_expr.
1473 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
1474 * range-op.cc: New file.
1475 * range-op.h: New file.
1476 * range.cc: New file.
1477 * range.h: New file.
1478 * selftest.h (range_tests): New prototype.
1479 * ssa.h: Include range.h.
1480 * tree-vrp.c (value_range_base::value_range_base): New
1482 (value_range_base::singleton_p): Do not call
1483 ranges_from_anti_range until sure we will need to.
1484 (value_range_base::type): Rename gcc_assert to
1485 gcc_checking_assert.
1486 (vrp_val_is_max): New argument.
1487 (vrp_val_is_min): Same.
1488 (wide_int_range_set_zero_nonzero_bits): Move from
1490 (extract_range_into_wide_ints): Remove.
1491 (extract_range_from_multiplicative_op): Remove.
1492 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
1493 from extract_range_from_binary_expr.
1494 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
1495 from extract_range_from_binary_expr.
1496 (extract_range_from_binary_expr): Remove.
1497 (normalize_for_range_ops): New.
1498 (range_fold_binary_expr): New.
1499 (range_fold_unary_expr): New.
1500 (value_range_base::num_pairs): New.
1501 (value_range_base::lower_bound): New.
1502 (value_range_base::upper_bound): New.
1503 (value_range_base::upper_bound): New.
1504 (value_range_base::contains_p): New.
1505 (value_range_base::invert): New.
1506 (value_range_base::union_): New.
1507 (value_range_base::intersect): New.
1508 (range_compatible_p): New.
1509 (value_range_base::operator==): New.
1510 (determine_value_range_1): Call range_fold_*expr instead of
1511 extract_range_from_*expr.
1512 * tree-vrp.h (class value_range_base): Add new constructors.
1513 Add methods for union_, intersect, operator==, contains_p,
1514 num_pairs, lower_bound, upper_bound, invert.
1515 (vrp_val_is_min): Add handle_pointers argument.
1516 (vrp_val_is_max): Same.
1517 (extract_range_from_unary_expr): Remove.
1518 (extract_range_from_binary_expr): Remove.
1519 (range_fold_unary_expr): New.
1520 (range_fold_binary_expr): New.
1521 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
1522 range_fold_binary_expr instead of extract_range_from_binary_expr.
1523 (vr_values::extract_range_basic): Same.
1524 (vr_values::extract_range_from_unary_expr): Call
1525 range_fold_unary_expr instead of extract_range_from_unary_expr.
1526 * wide-int-range.cc: Remove.
1527 * wide-int-range.h: Remove.
1529 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
1531 * config/rs6000/rs6000.c (mem_operand_gpr): Use
1532 SIGNED_16BIT_OFFSET_EXTRA_P macro.
1533 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
1534 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
1537 2019-10-02 Joseph Myers <joseph@codesourcery.com>
1539 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
1540 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
1541 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
1542 * glimits.h: Likewise.
1544 2019-10-03 Jakub Jelinek <jakub@redhat.com>
1546 PR rtl-optimization/91976
1547 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
1548 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
1549 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
1551 2019-10-02 Martin Sebor <msebor@redhat.com>
1553 PR tree-optimization/80936
1554 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
1556 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1558 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
1559 instead of reg_class_contents[ALL_REGS].
1561 2019-09-30 Jason Merrill <jason@redhat.com>
1563 Add some hash_map_safe_* functions like vec_safe_*.
1564 * hash-map.h (default_hash_map_size): New variable.
1565 (create_ggc): Use it as default argument.
1566 (hash_map_maybe_create, hash_map_safe_get)
1567 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
1569 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
1571 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
1572 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
1573 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
1574 (can_inline_edge_by_limits_p): Use it.
1575 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
1576 (want_inline_small_function_p): Use O2 bounds.
1577 (edge_badness): LIkewise.
1578 * opts.c (default_options): Add OPT_finline_functions.
1579 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
1580 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
1582 * doc/invoke.texi (-finline-functions): Update documentation.
1583 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
1584 inline-min-speedup-O2): Document.
1585 (early-inlining-insns-O2): Simplify docs.
1587 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
1589 PR rtl-optimization/87047
1590 * ifcvt.c (average_cost): New static function. Use it...
1591 (noce_process_if_block): ... here.
1593 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1595 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
1596 * config/rs6000/rs6000-string.c (expand_block_move): Add
1598 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
1599 (cpymemsi): Add might_overlap parm to expand_block_move() call.
1601 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1603 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
1604 (expand_builtin_memcpy): Use might_overlap parm.
1605 (expand_builtin_mempcpy_args): Use might_overlap parm.
1606 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
1607 (expand_builtin_memory_copy_args): Add might_overlap parm.
1608 * expr.c (emit_block_move_via_cpymem): Rename to
1609 emit_block_move_via_pattern, add might_overlap parm, use cpymem
1610 or movmem optab as appropriate.
1611 (emit_block_move_hints): Add might_overlap parm, do the right
1612 thing for might_overlap==true.
1613 * expr.h (emit_block_move_hints): Update prototype.
1615 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
1617 * tree-eh.h (unsplit_eh_edges): Declare.
1618 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
1619 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
1620 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
1621 (struct store_immediate_info): Add lp_nr field.
1622 (store_immediate_info::store_immediate_info): Add NR2 parameter and
1623 initialize lp_nr with it.
1624 (struct merged_store_group): Add lp_nr and only_constants fields.
1625 (merged_store_group::merged_store_group): Initialize them.
1626 (merged_store_group::can_be_merged_into): Deal with them.
1627 (pass_store_merging): Rename terminate_and_release_chain into
1628 terminate_and_process_chain.
1629 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
1630 renaming and remove useless assertions.
1631 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
1632 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
1633 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
1634 instead of always recomputing it and compare lp_nr.
1635 (imm_store_chain_info::output_merged_store): If the group is in an
1636 active EH region, register new stores if they can throw. Moreover,
1637 if the insertion has created new basic blocks, adjust the PHI nodes
1638 of the post landing pad.
1639 (imm_store_chain_info::output_merged_stores): If the original stores
1640 are in an active EH region, deregister them.
1641 (lhs_valid_for_store_merging_p): Prettify.
1642 (adjust_bit_pos): New function extracted from...
1643 (mem_valid_for_store_merging): ...here. Use it for the base address
1644 and also for the offset if it is the addition of a constant.
1645 (lp_nr_for_store): New function.
1646 (pass_store_merging::process_store): Change return type to bool.
1647 Call lp_nr_for_store to initialize the store info. Propagate the
1648 return status of various called functions to the return value.
1649 (store_valid_for_store_merging_p): New predicate.
1650 (enum basic_block_status): New enumeration.
1651 (get_status_for_store_merging): New function.
1652 (pass_store_merging::execute): If the function can throw and catch
1653 non-call exceptions, unsplit the EH edges on entry and clean up the
1654 CFG on exit if something changed. Call get_status_for_store_merging
1655 for every basic block and keep the chains open across basic blocks
1656 when possible. Terminate and process open chains at the end, if any.
1658 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1660 * reginfo.c (globalize_reg): Fix shadowed variable in
1663 2019-10-02 Martin Jambor <mjambor@suse.cz>
1665 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
1666 do not compute some stuff when set.
1667 (cgraph_node::create_edge): Likewise.
1668 (cgraph_node::create_indirect_edge): Renamed last parameter to
1669 coning_p and flipped its meaning, don't even calculate
1670 inline_failed when set.
1671 * cgraph.h (cgraph_node::create_edge): Add new parameter.
1672 (symbol_table::::create_edge): Likewise.
1673 (cgraph_node::create_indirect_edge): Rename last parameter, flip
1675 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
1676 call graph edge creating functions.
1678 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1681 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
1684 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
1686 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
1688 2019-10-02 Richard Biener <rguenther@suse.de>
1690 * tree-vectorizer.h (vect_transform_reduction): Declare.
1691 * tree-vect-stmts.c (vect_transform_stmt): Use it.
1692 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
1693 stmt transform to ...
1694 (vect_transform_reduction): ... this.
1696 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
1698 * omp-low.c (lower_omp_target): Dereference optional argument
1699 to work with the right pointer.
1701 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
1703 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
1705 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
1706 * langhooks.h (omp_is_optional_argument): New hook.
1707 * omp-general.c (omp_is_optional_argument): New.
1708 * omp-general.h (omp_is_optional_argument): New declaration.
1709 * omp-low.c (lower_omp_target): Create temporary for received value
1710 and take the address for new_var if the original variable was a
1711 DECL_BY_REFERENCE. Use size of referenced object when a
1712 pass-by-reference optional argument used as argument to firstprivate.
1714 2019-10-02 Jakub Jelinek <jakub@redhat.com>
1716 PR tree-optimization/91940
1717 * tree-vect-patterns.c: Include tree-vector-builder.h and
1719 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
1720 unpromoting the argument back to uint16_t, or by converting into a
1721 rotate, or into shifts plus ior.
1723 2019-10-02 Richard Biener <rguenther@suse.de>
1725 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
1727 (vect_transform_cycle_phi): Declare.
1728 * tree-vect-stmts.c (vect_transform_stmt): Call
1729 vect_transform_cycle_phi.
1730 * tree-vect-loop.c (vectorizable_reduction): Split out
1731 PHI transformation stage to ...
1732 (vect_transform_cycle_phi): ... here.
1734 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1737 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
1738 eliminable registers.
1739 (make_hard_regno_live): Likewise, and don't make them live.
1741 2019-10-01 David Malcolm <dmalcolm@redhat.com>
1743 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
1744 Call pp_emit_prefix.
1745 (layout::print_source_line): Likewise.
1746 (layout::start_annotation_line): Likewise.
1747 (diagnostic_show_locus): Remove call to temporarily clear the
1749 (selftest::test_one_liner_fixit_remove): Add test coverage for the
1750 interaction of pp_set_prefix with rulers and fix-it hints.
1751 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
1752 prefix when calling diagnostic_show_locus, rather than destroying
1754 (print_parseable_fixits): Temporarily clear prefix.
1755 * pretty-print.c (pp_format): Save and restore line_length, rather
1756 than assuming it is zero.
1757 (pp_output_formatted_text): Remove assertion that line_length is
1760 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1762 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
1764 (nonoverlapping_refs_since_match_p): ... this; handle also
1766 (alias_stats): Update stats.
1767 (dump_alias_stats): Likewise.
1768 (cheap_array_ref_low_bound): New function.
1769 (aliasing_matching_component_refs_p): Add partial_overlap
1771 pass it to nonoverlapping_refs_since_match_p.
1772 (aliasing_component_refs_walk): Update call of
1773 aliasing_matching_component_refs_p
1774 (nonoverlapping_array_refs_p): New function.
1775 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
1776 indirect_refs_may_alias_p): Update calls of
1777 nonoverlapping_refs_since_match_p.
1779 2019-10-01 Maya Rashish <coypu@sdf.org>
1782 * ira-color.c (allocno_copy_cost_saving): Call
1783 ira_init_register_move_cost_if_necessary.
1785 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
1787 * Makefile.in (gnat_install_lib): New variable.
1788 * configure.ac: Substitute it.
1789 * configure: Regenerate.
1791 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1794 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
1795 is matched with non-C++ type
1797 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1799 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
1802 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1804 * doc/invoke.texi (early-inlining-insns-O2): Document.
1805 (early-inlining-insns): Update.
1806 * params.def (early-inlining-insns-O2): New bound.
1807 (early-inlining-insns): Update docs.
1808 * ipa-inline.c (want_early_inline_function_p): Use new bound.
1810 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
1813 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
1814 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
1815 a memory access insn.
1817 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
1819 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
1822 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1825 * config/s390/s390.c (s390_expand_vec_compare): Use
1826 gen_vec_cmpordered and gen_vec_cmpunordered.
1827 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
1828 vec_unordered): Delete.
1829 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
1830 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
1831 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
1832 (vec_cmp<code>): Generic dispatcher.
1834 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1837 * config/s390/vector.md (V_HW): Add V1TI in order to make
1838 vcond$a$b generate vcondv1tiv1tf.
1840 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1842 PR rtl-optimization/91948
1843 * ira-build.c (ira_create_allocno): Initialize
1844 ALLOCNO_CROSSED_CALLS_ABIS.
1845 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
1846 than regno to ira_need_caller_save_p.
1848 2019-10-01 Alexandre Oliva <oliva@adacore.com>
1850 * config/i386/i386-options.c
1851 (ix86_recompute_optlev_based_flags): New, moved out of...
1852 (ix86_option_override_internal): ... this. Call it.
1853 (ix86_override_options_after_change): Call it here too.
1856 * dwarf2out.c (override_type_for_decl_p): New.
1857 (gen_variable_die): Use it.
1859 2019-10-01 Richard Biener <rguenther@suse.de>
1861 * tree-vect-loop.c (vectorizable_reduction): Move variables
1862 to where they are used.
1864 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1866 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
1867 (build_def_use): Use PC instead of CC0 in a comment.
1869 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1871 * rtl.def (CLOBBER_HIGH): Delete.
1872 * doc/rtl.texi (clobber_high): Remove documentation.
1873 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
1874 (reg_is_clobbered_by_clobber_high): Delete.
1875 (gen_hard_reg_clobber_high): Likewise.
1876 * alias.c (record_set): Remove CLOBBER_HIGH handling.
1877 * cfgexpand.c (expand_gimple_stmt): Likewise.
1878 * combine-stack-adj.c (single_set_for_csa): Likewise.
1879 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
1880 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
1881 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
1882 * cse.c (invalidate_reg): Remove clobber_high parameter.
1883 (invalidate): Update call accordingly.
1884 (canonicalize_insn): Remove CLOBBER_HIGH handling.
1885 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
1886 (count_reg_usage, insn_live_p): Likewise.
1887 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
1888 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
1889 (cselib_invalidate_rtx_note_stores): Update call accordingly.
1890 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
1891 (cselib_invalidate_regno, cselib_process_insn): Likewise.
1892 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
1893 (mark_nonreg_stores_2): Likewise.
1894 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
1895 (df_get_call_refs): Likewise.
1896 * dwarf2out.c (mem_loc_descriptor): Likewise.
1897 * emit-rtl.c (verify_rtx_sharing): Likewise.
1898 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
1899 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
1900 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
1901 * genemit.c (gen_exp, gen_insn): Likewise.
1902 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
1903 * haifa-sched.c (haifa_classify_rtx): Likewise.
1904 * ira-build.c (create_insn_allocnos): Likewise.
1905 * ira-costs.c (scan_one_insn): Likewise.
1906 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
1907 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
1908 * jump.c (mark_jump_label_1): Likewise.
1909 * lra-int.h (lra_insn_reg::clobber_high): Delete.
1910 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
1912 (mark_not_eliminable): Likewise.
1913 * lra-lives.c (process_bb_lives): Likewise.
1914 * lra.c (new_insn_reg): Remove clobber_high parameter.
1915 (collect_non_operand_hard_regs): Likewise. Update call to new
1916 insn_reg. Remove CLOBBER_HIGH handling.
1917 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
1918 to collect_non_operand_hard_regs.
1919 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
1920 Update call to new_insn_reg.
1921 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
1922 * postreload.c (reload_cse_simplify, reload_combine_note_use)
1923 (move2add_note_store): Likewise.
1924 * print-rtl.c (print_pattern): Likewise.
1925 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
1926 (if_test_bypass_p): Likewise.
1927 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
1928 * reginfo.c (reg_scan_mark_refs): Likewise.
1929 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
1930 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
1931 (forget_old_reloads_1): Likewise.
1932 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
1933 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
1934 (dbr_schedule): Likewise.
1935 * resource.c (update_live_status, mark_referenced_resources)
1936 (mark_set_resources): Likewise.
1937 * rtl.c (copy_rtx): Likewise.
1938 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
1939 (note_pattern_stores): Likewise.
1940 (reg_is_clobbered_by_clobber_high): Delete.
1941 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
1942 CLOBBER_HIGH handling.
1944 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1947 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
1948 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
1949 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
1950 Handle ARM_PCS_TLSDESC.
1951 (aarch64_tlsdesc_abi_id): New function.
1952 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
1953 rtx instead of a list of clobbers and clobber_highs.
1954 (tlsdesc_small_<mode>): Update accordingly.
1956 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1958 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
1959 extra callee_abi argument.
1960 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
1961 Insert a CALLEE_ABI unspec into the call pattern as the second
1962 element in the PARALLEL.
1963 (aarch64_simd_call_p): Delete.
1964 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
1965 the new CALLEE_ABI element of the PARALLEL.
1966 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
1967 from the function type, if given.
1968 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
1969 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
1970 when passed the function_arg_info end marker.
1971 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
1972 final argument of gen_sibcall.
1973 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
1974 (call): Make operand 2 a const_int_operand and pass it to expand_call.
1975 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
1977 (call_value): Likewise operand 3.
1978 (sibcall): Likewise operand 2. Place the unspec before rather than
1980 (sibcall_value): Likewise operand 3.
1981 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
1982 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
1983 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
1985 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
1987 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1989 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
1990 choose_hard_reg_mode.
1991 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1993 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1995 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
1996 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
1997 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
1999 2019-09-30 David Malcolm <dmalcolm@redhat.com>
2001 * diagnostic-show-locus.c (line_label::line_label): Initialize
2003 (line_label::comparator): Reverse the sort order by m_state_idx,
2004 so that when the list is walked backwards the labels appear in
2005 order of insertion into the rich_location.
2006 (line_label::m_has_vbar): New field.
2007 (layout::print_any_labels): When dealing with multiple labels at
2008 the same line and column, only print vertical bars for the one
2009 with the highest label_line.
2010 (selftest::test_one_liner_labels): Update test for multiple labels
2011 to expect the labels to be in the order of insertion into the
2012 rich_location. Add a test for many such labels, where the column
2013 numbers are out-of-order relative to the insertion order.
2015 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2017 * config/i386/i386.h (ix86_frame::expensive_p): New field.
2018 (ix86_frame::expensive_count): Likewise.
2019 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
2020 of use_fast_prologue_epilogue robust against incidental changes
2023 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2026 * config/s390/vector.md (vec_unordered<mode>): Call
2027 gen_vec_ordered<mode>.
2029 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
2031 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
2032 New pattern for ASRD.
2033 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
2034 * internal-fn.def (IFN_DIV_POW2): New internal function.
2035 * optabs.def (sdiv_pow2_optab): New optab.
2036 * tree-vect-patterns.c (vect_recog_divmod_pattern):
2037 Modify pattern to support new operation.
2038 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
2039 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
2040 Document new target selector.
2042 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2044 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
2045 to test whether we're compiling a vector PCS function and to test
2046 whether the function needs to save a particular register.
2047 Remove the vector PCS handling of df_set_regs_ever_live.
2048 (aarch64_components_for_bb): Use crtl->abi to test whether
2049 the function needs to save a particular register.
2050 (aarch64_process_components): Use crtl->abi to test whether
2051 we're compiling a vector PCS function.
2052 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
2053 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
2055 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2057 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
2059 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
2060 whether the block calls a function that clobbers more registers
2061 than the current function is allowed to.
2062 (aarch64_use_simple_return_insn_p): Delete.
2063 * config/aarch64/aarch64.md (simple_return): Remove condition.
2065 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2067 * function-abi.h (function_abi_aggregator): New class.
2068 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
2070 * ira.c (update_equiv_regs_prescan): New function. Call
2071 set_paradoxical_subreg here rather than...
2072 (update_equiv_regs): ...here.
2073 (ira): Call update_equiv_regs_prescan.
2075 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2077 * hard-reg-set.h (regs_invalidated_by_call): Only define if
2079 (call_used_or_fixed_regs): Likewise.
2080 (call_used_or_fixed_reg_p): Likewise.
2081 * reginfo.c (regs_invalidated_by_call): New macro.
2083 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2085 * shrink-wrap.c: Include function-abi.h.
2086 (requires_stack_frame_p): Use crtl->abi to test whether the
2087 current function can use a register without saving it first.
2089 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2091 * sel-sched-ir.h (_def::crosses_call): Replace with...
2092 (_def::crossed_call_abis): ..this new field.
2093 (def_list_add): Take a mask of ABIs instead of a crosses_call
2095 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
2096 of _def accordingly.
2097 * sel-sched.c: Include function-abi.h.
2098 (hard_regs_data::regs_for_call_clobbered): Delete.
2099 (reg_rename::crosses_call): Replace with...
2100 (reg_rename::crossed_call_abis): ...this new field.
2101 (fur_static_params::crosses_call): Replace with...
2102 (fur_static_params::crossed_call_abis): ...this new field.
2103 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
2104 (init_hard_regs_data): Use crtl->abi to test which registers the
2105 current function would need to save before it uses them.
2106 (mark_unavailable_hard_regs): Update handling of call-clobbered
2107 registers, using call_clobbers_in_region to find out which registers
2108 might be call-clobbered (but without taking -fipa-ra into account
2109 for now). Remove separate handling of partially call-clobbered
2111 (verify_target_availability): Use crossed_call_abis instead of
2113 (get_spec_check_type_for_insn, find_used_regs): Likewise.
2114 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
2116 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2118 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
2119 function to test whether a register is fully or partly clobbered.
2121 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2123 * rtlanal.c: Include function-abi.h.
2124 (reg_set_p): Use insn_callee_abi to get the ABI of the called
2125 function and clobbers_reg_p to test whether the register
2127 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
2128 to get the ABI of the called function and full_reg_clobbers to
2129 get the set of fully call-clobbered registers. Warn about the
2130 pitfalls of using this mode.
2132 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2134 * reload.c: Include function-abi.h.
2135 (find_equiv_reg): Use clobbers_reg_p to test whether either
2136 of the equivalent registers is clobbered by a call.
2137 * reload1.c: Include function-abi.h.
2138 (reg_reloaded_call_part_clobbered): Delete.
2139 (reload): Use crtl->abi to test which registers would need
2140 saving in the prologue before use.
2141 (find_reg): Likewise.
2142 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
2143 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
2144 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
2146 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2148 * regrename.h (du_head::call_clobber_mask): New field.
2149 (du_head::need_caller_save_reg): Replace with...
2150 (du_head::call_abis): ...this new field.
2151 * regrename.c: Include function-abi.h.
2152 (call_clobbered_in_chain_p): New function.
2153 (check_new_reg_p): Use crtl->abi when deciding whether a register
2154 is free for use after RA. Use call_clobbered_in_chain_p to test
2155 whether a candidate register would be clobbered by a call.
2156 (find_rename_reg): Don't add call-clobber conflicts here.
2157 (rename_chains): Check call_abis instead of need_caller_save_reg.
2158 (merge_chains): Update for changes to du_head.
2159 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
2160 target. Record the ABI identifier in call_abis and the set of
2161 fully or partially clobbered registers in call_clobber_mask.
2162 Add fully-clobbered registers to hard_conflicts here rather
2163 than in find_rename_reg.
2164 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
2165 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
2166 * config/aarch64/falkor-tag-collision-avoidance.c: Include
2168 * config/c6x/c6x.c: Likewise.
2170 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2172 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
2173 mode of the register when deciding whether it is no longer
2174 available after a call.
2176 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2178 * recog.c: Include function-abi.h.
2179 (peep2_find_free_register): Use crtl->abi when deciding whether
2180 a register is free for use after RA.
2182 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2184 * postreload-gcse.c: Include regs.h and function-abi.h.
2185 (record_opr_changes): Use insn_callee_abi to get the ABI of the
2186 call insn target. Conservatively assume that partially-clobbered
2187 registers are altered.
2189 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2191 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
2192 when deciding whether a register is free for use after RA.
2193 (reload_combine): Remove unnecessary use of fixed_reg_set.
2194 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
2195 call insn target. Use reg_mode when testing whether a register
2196 is no longer available.
2198 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2200 * target.def (return_call_with_max_clobbers): Delete.
2201 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2202 * doc/tm.texi: Regenerate.
2203 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
2204 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2205 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
2206 (lra_reg::call_insn): Delete.
2207 * lra.c: Include function-abi.h.
2208 (initialize_lra_reg_info_element): Don't initialize the fields above.
2209 (lra): Use crtl->abi to test whether the current function needs to
2210 save a register in the prologue. Remove special pre-inheritance
2211 lra_create_live_ranges pass for flag_ipa_ra.
2212 * lra-assigns.c: Include function-abi.h
2213 (find_hard_regno_for_1): Use crtl->abi to test whether the current
2214 function needs to save a register in the prologue.
2215 (lra_assign): Assert that registers aren't allocated to a
2216 conflicting register, rather than checking only for overlaps
2217 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
2218 and for registers that are not live across a call.
2219 * lra-constraints.c (last_call_for_abi): New variable.
2220 (full_and_partial_call_clobbers): Likewise.
2221 (setup_next_usage_insn): Remove the register from
2222 full_and_partial_call_clobbers.
2223 (need_for_call_save_p): Use call_clobbered_in_region_p to test
2224 whether the register needs a caller save.
2225 (need_for_split_p): Use full_and_partial_reg_clobbers instead
2226 of call_used_or_fixed_regs.
2227 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
2228 full_and_partial_call_clobbers.
2229 * lra-lives.c (check_pseudos_live_through_calls): Replace
2230 last_call_used_reg_set and call_insn arguments with an abi argument.
2231 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
2232 as the set of conflicting registers.
2233 (calls_have_same_clobbers_p): Delete.
2234 (process_bb_lives): Track the ABI of the last call instead of an
2235 insn/HARD_REG_SET pair. Update calls to
2236 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
2237 the set of registers that could be clobbered by an EH edge.
2238 Include partially-clobbered as well as fully-clobbered registers.
2239 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
2240 * lra-remat.c: Include function-abi.h.
2241 (call_used_regs_arr_len, call_used_regs_arr): Delete.
2242 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
2243 registers and bitmap_view to combine them into dead_regs.
2244 (call_used_input_regno_present_p): Take a function_abi argument
2245 and use it to test whether a register is call-clobbered.
2246 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
2247 call insn target. Update tje call to call_used_input_regno_present_p.
2248 (do_remat): Likewise.
2249 (lra_remat): Remove the initialization of call_used_regs_arr_len
2250 and call_used_regs_arr.
2252 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2254 * loop-iv.c: Include regs.h and function-abi.h.
2255 (simplify_using_initial_values): Use insn_callee_abi to get the
2256 ABI of the call insn target. Conservatively assume that
2257 partially-clobbered registers are altered.
2259 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2261 * function-abi.h (call_clobbers_in_region): Declare.
2262 (call_clobbered_in_region_p): New function.
2263 * function-abi.cc (call_clobbers_in_region): Likewise.
2264 * ira-int.h: Include function-abi.h.
2265 (ira_allocno::crossed_calls_abis): New field.
2266 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
2267 (ira_need_caller_save_regs): New function.
2268 (ira_need_caller_save_p): Likewise.
2269 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
2270 of call_used_or_fixed_regs.
2271 (do_reload): Use crtl->abi to test whether the current function
2272 needs to save a register in the prologue. Count registers that
2273 need to be saved rather than registers that don't.
2274 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
2275 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2276 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
2277 (propagate_some_info_from_allocno): Likewise.
2278 (copy_info_to_removed_store_destinations): Likewise.
2279 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
2280 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
2281 (ira_build): Use ira_need_caller_save_regs instead of
2282 call_used_or_fixed_regs.
2283 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
2284 whether the current function would need to save a register
2286 (calculate_spill_cost): Likewise.
2287 (allocno_reload_assign): Use ira_need_caller_save_regs and
2288 ira_need_caller_save_p instead of call_used_or_fixed_regs.
2289 * ira-conflicts.c (ira_build_conflicts): Use
2290 ira_need_caller_save_regs rather than call_used_or_fixed_regs
2291 as the set of call-clobbered registers. Remove the
2292 call_used_or_fixed_regs mask from the calculation of
2293 temp_hard_reg_set and mask its use instead. Remove special
2294 handling of partially-clobbered registers.
2295 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
2296 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
2297 calculate the set of conflicting registers for calls that
2298 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
2299 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
2300 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2301 Use eh_edge_abi to calculate the set of registers that could
2302 be clobbered by an EH edge. Include partially-clobbered as
2303 well as fully-clobbered registers.
2305 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2307 * haifa-sched.c: Include function-abi.h.
2308 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
2309 the function would need to save a register before using it.
2311 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2313 * gcse.c: Include function-abi.h.
2314 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
2315 the call insn target. Invalidate partially call-clobbered
2316 registers as well as fully call-clobbered ones.
2318 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2320 * function.c (aggregate_value_p): Work out which ABI the
2321 function is using before testing which registers are at least
2322 partly preserved by a call.
2324 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2326 * early-remat.c: Include regs.h and function-abi.h.
2327 (early_remat::maybe_add_candidate): Don't check for call-clobbered
2329 (early_remat::restrict_remat_for_unavail_regs): New function.
2330 (early_remat::restrict_remat_for_call): Likewise.
2331 (early_remat::process_block): Before calling emit_remat_insns
2332 for a previous call in the block, invalidate any candidates
2333 that would clobber call-preserved registers.
2334 (early_remat::emit_remat_insns_for_block): Likewise for the
2335 final call in a block. Do the same thing for live-in registers
2336 when calling emit_remat_insns at the head of a block.
2338 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2340 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
2341 whether the current function needs to save at least part of a
2342 register before using it.
2343 (df_get_exit_block_use_set): Likewise for epilogue restores.
2345 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2347 * df-problems.c: Include regs.h and function-abi.h.
2348 (df_rd_problem_data): Rename sparse_invalidated_by_call to
2349 sparse_invalidated_by_eh and dense_invalidated_by_call to
2350 dense_invalidated_by_eh.
2351 (df_print_bb_index): Update accordingly.
2352 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
2353 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
2354 that are clobbered by an EH edge. Clobber partially-clobbered
2355 registers as well as fully-clobbered ones.
2356 (df_md_confluence_n): Likewise.
2357 (df_rd_local_compute): Likewise. Update for changes to
2359 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
2360 of registers that are clobbered by an EH edge. Includde partially-
2361 clobbered registers as well as fully-clobbered ones.
2363 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2365 * cselib.c (cselib_process_insn): If we know what mode a
2366 register was set in, check whether it is clobbered in that
2367 mode by a call. Only fall back to reg_raw_mode if that fails.
2369 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2371 * cse.c: Include regs.h and function-abi.h.
2372 (invalidate_for_call): Take the call insn as an argument.
2373 Use insn_callee_abi to get the ABI of the call and invalidate
2374 partially clobbered registers as well as fully clobbered ones.
2375 (cse_insn): Update call accordingly.
2377 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2379 * combine.c: Include function-abi.h.
2380 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
2381 of the target of call insns. Invalidate partially-clobbered
2382 registers as well as fully-clobbered ones.
2384 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2386 * cfgloopanal.c: Include regs.h and function-abi.h.
2387 (init_set_costs): Use default_function_abi to test whether
2388 a general register is call-clobbered.
2390 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2392 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
2393 instead of the call-clobbered sets.
2395 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2397 * caller-save.c (setup_save_areas): Remove redundant |s of
2399 (save_call_clobbered_regs): Likewise. Use the call ABI rather
2400 than call_used_or_fixed_regs to decide whether a REG_RETURNED
2403 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2405 * rtl.h (predefined_function_abi): Declare.
2406 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2407 instead of a boolean call_save flag.
2408 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
2410 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2411 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2412 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
2413 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2414 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2415 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
2416 * reginfo.c (init_reg_modes_target): Likewise.
2417 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2418 instead of a boolean call_save flag.
2419 * targhooks.c: Include function-abi.h.
2420 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
2421 using eh_edge_abi to choose the mode.
2423 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2425 * target.def (hard_regno_call_part_clobbered): Take an ABI
2426 identifier instead of an rtx_insn.
2427 * doc/tm.texi: Regenerate.
2428 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
2429 (hook_bool_uint_uint_mode_false): New function.
2430 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
2431 (hook_bool_uint_uint_mode_false): New function.
2432 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2433 Take an ABI identifier instead of an rtx_insn.
2434 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
2435 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
2436 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
2437 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
2438 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
2440 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
2441 * cselib.c: Include function-abi.h.
2442 (cselib_process_insn): Update call to
2443 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2444 to get the appropriate ABI identifier.
2445 * function-abi.cc (predefined_function_abi::initialize): Update call
2446 to targetm.hard_regno_call_part_clobbered.
2447 * ira-conflicts.c (ira_build_conflicts): Likewise.
2448 * ira-costs.c (ira_tune_allocno_costs): Likewise.
2449 * lra-constraints.c: Include function-abi.h.
2450 (need_for_call_save_p): Update call to
2451 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2452 to get the appropriate ABI identifier.
2453 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
2454 * regcprop.c (copyprop_hardreg_forward_1): Update call
2455 to targetm.hard_regno_call_part_clobbered.
2456 * reginfo.c (choose_hard_reg_mode): Likewise.
2457 * regrename.c (check_new_reg_p): Likewise.
2458 * reload.c (find_equiv_reg): Likewise.
2459 * reload1.c (emit_reload_insns): Likewise.
2460 * sched-deps.c: Include function-abi.h.
2461 (deps_analyze_insn): Update call to
2462 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2463 to get the appropriate ABI identifier.
2464 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
2465 call to targetm.hard_regno_call_part_clobbered.
2466 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
2468 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2470 * config/i386/i386.c: Include function-abi.h.
2471 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
2472 if they preserve some 256-bit or 512-bit SSE registers.
2474 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2476 * target.def (insn_callee_abi): New hook.
2477 (remove_extra_call_preserved_regs): Delete.
2478 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
2479 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2480 * doc/tm.texi: Regenerate.
2481 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
2482 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
2483 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
2485 (aarch64_remove_extra_call_preserved_regs): Delete.
2486 (aarch64_insn_callee_abi): New function.
2487 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2488 (TARGET_INSN_CALLEE_ABI): New macro.
2489 * rtl.h (get_call_fndecl): Declare.
2490 (cgraph_rtl_info): Fix formatting. Tweak comment for
2491 function_used_regs. Remove function_used_regs_valid.
2492 * rtlanal.c (get_call_fndecl): Moved from final.c
2493 * function-abi.h (insn_callee_abi): Declare.
2494 (target_function_abi_info): Mention insn_callee_abi.
2495 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
2496 way to get_call_reg_set_usage did.
2497 (insn_callee_abi): New function.
2498 * regs.h (get_call_reg_set_usage): Delete.
2499 * final.c: Include function-abi.h.
2500 (collect_fn_hard_reg_usage): Add fixed and stack registers to
2501 function_used_regs before the main loop rather than afterwards.
2502 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
2503 if function_used_regs ends up not being useful.
2504 (get_call_fndecl): Move to rtlanal.c
2505 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
2506 * caller-save.c: Include function-abi.h.
2507 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
2508 instead of get_call_reg_set_usage.
2509 * cfgcleanup.c: Include function-abi.h.
2510 (old_insns_match_p): Use insn_callee_abi instead of
2511 get_call_reg_set_usage.
2512 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
2514 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
2516 * df-scan.c: Include function-abi.h.
2517 (df_get_call_refs): Use insn_callee_abi instead of
2518 get_call_reg_set_usage.
2519 * ira-lives.c: Include function-abi.h.
2520 (process_bb_node_lives): Use insn_callee_abi instead of
2521 get_call_reg_set_usage.
2522 * lra-lives.c: Include function-abi.h.
2523 (process_bb_lives): Use insn_callee_abi instead of
2524 get_call_reg_set_usage.
2525 * postreload.c: Include function-abi.h.
2526 (reload_combine): Use insn_callee_abi instead of
2527 get_call_reg_set_usage.
2528 * regcprop.c: Include function-abi.h.
2529 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
2530 get_call_reg_set_usage.
2531 * resource.c: Include function-abi.h.
2532 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
2533 instead of get_call_reg_set_usage.
2534 * var-tracking.c: Include function-abi.h.
2535 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
2536 get_call_reg_set_usage.
2538 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2540 * target.def (fntype_abi): New target hook.
2541 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
2542 * doc/tm.texi: Regenerate.
2543 * target.h (predefined_function_abi): Declare.
2544 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
2546 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
2547 * config/aarch64/aarch64.c: Include function-abi.h.
2548 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
2549 (TARGET_FNTYPE_ABI): Define.
2551 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2553 * Makefile.in (OBJS): Add function-abi.o.
2554 (GTFILES): Add function-abi.h.
2555 * function-abi.cc: New file.
2556 * function-abi.h: Likewise.
2557 * emit-rtl.h (rtl_data::abi): New field.
2558 * function.c: Include function-abi.h.
2559 (prepare_function_start): Initialize crtl->abi.
2560 * read-rtl-function.c: Include regs.h and function-abi.h.
2561 (read_rtl_function_body): Initialize crtl->abi.
2562 (read_rtl_function_body_from_file_range): Likewise.
2563 * reginfo.c: Include function-abi.h.
2564 (init_reg_sets_1): Initialize default_function_abi.
2565 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
2566 when making a register global.
2567 * target-globals.h (this_target_function_abi_info): Declare.
2568 (target_globals::function_abi_info): New field.
2569 (restore_target_globals): Copy it.
2570 * target-globals.c: Include function-abi.h.
2571 (default_target_globals): Initialize the function_abi_info field.
2572 (target_globals): Allocate it.
2573 (save_target_globals): Free it.
2575 2019-09-30 Nick Clifton <nickc@redhat.com>
2578 * config/frv/frv.c (frv_register_move_cost): Add break statements
2579 to avoid falling through to the wrong cases. Tidy code.
2581 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2583 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2584 For multi-registers modes, test how big each register part is.
2586 2019-09-30 Nick Clifton <nickc@redhat.com>
2589 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
2590 (TARGET_ASM_SELECT_SECTION): Remove definition.
2591 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
2593 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2595 * emit-rtl.c (init_raw_REG): New function.
2596 (gen_raw_REG): Use init_raw_REG.
2597 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
2599 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
2600 * rtl.h (rtx_init): New function.
2601 (rtx_alloca): New function.
2602 (init_raw_REG): New function.
2603 (alloca_raw_REG): New macro.
2605 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
2607 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
2608 (pcrel_local_address): Replace pcrel_address predicate, use the
2609 new function address_to_insn_form.
2610 (pcrel_external_address): Replace with new implementation using
2611 address_to_insn_form..
2612 (prefixed_mem_operand): Delete predicate which is now unused.
2613 (pcrel_external_mem_operand): Delete predicate which is now
2615 * config/rs6000/rs6000-protos.h (enum insn_form): New
2617 (enum non_prefixed_form): New enumeration.
2618 (address_to_insn_form): New declaration.
2619 (prefixed_load_p): New declaration.
2620 (prefixed_store_p): New declaration.
2621 (prefixed_paddi_p): New declaration.
2622 (rs6000_asm_output_opcode): New declaration.
2623 (rs6000_final_prescan_insn): Move declaration and update calling
2625 (address_is_prefixed): New helper inline function.
2626 * config/rs6000/rs6000.c(print_operand_address): Check for either
2627 PC-relative local symbols or PC-relative external symbols.
2628 (rs6000_emit_move): Support loading PC-relative addresses.
2629 (mode_supports_prefixed_address_p): Delete, no longer used.
2630 (rs6000_prefixed_address_mode_p): Delete, no longer used.
2631 (address_to_insn_form): New function to decode an address format.
2632 (reg_to_non_prefixed): New function to identify what the
2633 non-prefixed memory instruction format is for a register.
2634 (prefixed_load_p): New function to identify prefixed loads.
2635 (prefixed_store_p): New function to identify prefixed stores.
2636 (prefixed_paddi_p): New function to identify prefixed load
2638 (next_insn_prefixed_p): New static state variable.
2639 (rs6000_final_prescan_insn): New function to determine if an insn
2640 uses a prefixed instruction.
2641 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
2642 prefixed instruction.
2643 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
2644 (ASM_OUTPUT_OPCODE): New target hook.
2645 * config/rs6000/rs6000.md (prefixed): New insn attribute for
2646 prefixed instructions.
2647 (prefixed_length): New insn attribute for the size of prefixed
2649 (non_prefixed_length): New insn attribute for the size of
2650 non-prefixed instructions.
2651 (pcrel_local_addr): New insn to load up a local PC-relative
2653 (pcrel_extern_addr): New insn to load up an external PC-relative
2655 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
2656 GPR and loading a 128-bit floating point type to a GPR.
2658 2019-09-30 Richard Biener <rguenther@suse.de>
2660 * gimple.c (gimple_get_lhs): For PHIs return the result.
2661 * tree-vectorizer.h (vectorizable_live_operation): Also get the
2662 SLP instance as argument.
2663 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
2664 double-reduction PHIs with vectorizable_lc_phi.
2665 (vect_analyze_loop_operations): Adjust.
2666 (vect_create_epilog_for_reduction): Remove all code not dealing
2667 with reduction LC PHI or epilogue generation.
2668 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
2669 for live stmts of reductions.
2670 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
2671 do not handle defs that are not vect_internal_def.
2672 (can_vectorize_live_stmts): Adjust.
2673 (vect_analyze_stmt): When the vectorized stmt defined a value
2674 used on backedges adjust the backedge uses of vectorized PHIs.
2676 2019-09-30 Martin Jambor <mjambor@suse.cz>
2679 * tree-inline.c (force_value_to_type): New function.
2680 (setup_one_parameter): Use force_value_to_type to convert type.
2681 * tree-inline.c (force_value_to_type): Declare.
2682 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
2683 with register type mismatches.
2685 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
2687 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
2689 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
2690 * config/rs6000/t-freebsd64: Make use of the above define and build
2691 the 32-bit libraries with secure-plt.
2693 2019-09-30 Jakub Jelinek <jakub@redhat.com>
2696 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
2697 gen_int_mode instead of GEN_INT.
2699 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
2701 * config/darwin.c (gen_macho_low): Amend to include the mode
2703 (machopic_indirect_data_reference): Amend gen_macho_low call
2704 to include mode argument
2705 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
2706 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
2707 the macho_high expander and two define_insn entries.
2709 2019-09-29 Jakub Jelinek <jakub@redhat.com>
2712 * optc-save-gen.awk: Fix up printing string option differences.
2714 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2716 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
2717 vec_perm cost to 1 for non-Power7 VSX architectures.
2719 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2721 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
2722 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
2723 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
2725 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
2727 * config/darwin.c (gen_macho_high): Amend to include the mode
2729 (machopic_indirect_data_reference): Amend gen_macho_high call
2730 to include mode argument.
2731 (machopic_legitimize_pic_address): Likewise.
2732 * config/rs6000/rs6000.c (rs6000_legitimize_address):
2733 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
2734 the macho_high expander and two define_insn entries.
2736 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2739 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
2741 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2744 * config/sh/sh.c (parse_validate_atomic_model_option): Use
2745 std::string::compare instead of std::string::find.
2747 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
2749 * configure: Regenerate.
2751 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2754 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
2755 variables as shared.
2757 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
2759 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
2760 replaces the expander and two define_insn entries.
2761 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
2763 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
2765 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2767 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
2768 (fibonacci_heap::nodes): Likewise.
2769 (fibonacci_heap::min_key): Likewise.
2770 (fibonacci_heap::min): Likewise.
2772 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2774 * cgraph.c (cgraph_node::get_fun): Make const.
2775 * cgraph.h (cgraph_node::get_fun): Likewise.
2777 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2780 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
2783 2019-09-27 Richard Biener <rguenther@suse.de>
2785 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
2786 (STMT_VINFO_REDUC_FN): Likewise.
2787 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
2788 STMT_VINFO_REDUC_FN.
2789 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
2790 for condition reductions.
2791 (vect_create_epilog_for_reduction): Compute all required state
2792 from the stmt to be vectorized.
2793 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
2794 invocation and remove then dead code. For single def-use chains
2795 record only a single vector stmt.
2797 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2799 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
2800 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
2801 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
2802 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
2803 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
2804 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
2805 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
2806 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
2807 (aarch64_general_builtin_rsqrt): Declare.
2808 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
2810 (aarch64_mangle_builtin_type): Rename to...
2811 (aarch64_general_mangle_builtin_type): ...this.
2812 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
2813 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
2814 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
2815 aarch64_general_add_builtin instead of add_builtin_function.
2816 (aarch64_init_builtins): Rename to...
2817 (aarch64_general_init_builtins): ...this. Use
2818 aarch64_general_add_builtin instead of add_builtin_function.
2819 (aarch64_builtin_decl): Rename to...
2820 (aarch64_general_builtin_decl): ...this and remove the unused
2822 (aarch64_expand_builtin): Rename to...
2823 (aarch64_general_expand_builtin): ...this and remove the unused
2825 (aarch64_builtin_rsqrt): Rename to...
2826 (aarch64_general_builtin_rsqrt): ...this.
2827 (aarch64_fold_builtin): Rename to...
2828 (aarch64_general_fold_builtin): ...this. Take the function subcode
2829 and return type as arguments. Remove the "ignored" argument.
2830 (aarch64_gimple_fold_builtin): Rename to...
2831 (aarch64_general_gimple_fold_builtin): ...this. Take the function
2832 subcode and gcall as arguments, and return the new function call.
2833 * config/aarch64/aarch64.c (aarch64_init_builtins)
2834 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
2835 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
2836 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
2837 instead of aarch64_builtin_rsqrt.
2838 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
2839 instead of aarch64_mangle_builtin_type.
2841 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2843 * target.def (check_builtin_call): New target hook.
2844 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
2845 * doc/tm.texi: Regenerate.
2847 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2849 PR tree-optimization/91909
2850 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
2851 reduc_index parameter. When handling COND_REDUCTION, make sure
2852 that the reduction phi operand is in the correct arm of the
2854 (vectorizable_reduction): Pass reduc_index to the above.
2856 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
2858 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
2859 New combine pattern.
2861 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
2863 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
2864 loop instruction into new basic block before the loop when basic
2865 block that precedes the loop is empty.
2867 2019-09-26 Jakub Jelinek <jakub@redhat.com>
2869 * function.c (gimplify_parameters): Use build_clobber function.
2870 * tree-ssa.c (execute_update_addresses_taken): Likewise.
2871 * tree-inline.c (expand_call_inline): Likewise.
2872 * tree-sra.c (clobber_subtree): Likewise.
2873 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
2874 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
2875 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
2876 lower_omp_target): Likewise.
2877 * omp-expand.c (expand_omp_for_generic): Likewise.
2878 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
2880 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
2882 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
2883 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
2884 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
2885 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
2886 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
2887 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
2888 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
2889 LD_ELEMREV_V16QI): Use the PURE attribute.
2891 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
2893 * config/rs6000/darwin.md: Replace the expanders for
2894 load_macho_picbase and reload_macho_picbase with use of '@'
2895 and <mode> in their respective define_insns.
2896 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
2897 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
2898 Pmode to gen_load_macho_picbase.
2899 * config/rs6000/rs6000.md: Likewise.
2901 2019-09-25 Richard Biener <rguenther@suse.de>
2903 PR tree-optimization/91896
2904 * tree-vect-loop.c (vectorizable_reduction): The single
2905 def-use cycle optimization cannot apply when there's more
2906 than one pattern stmt involved.
2908 2019-09-26 Richard Biener <rguenther@suse.de>
2910 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
2911 loop-closed PHIs that are vect_internal_def.
2912 (vect_create_epilog_for_reduction): Exit early for nested cycles.
2914 (vectorizable_lc_phi): New.
2915 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
2916 (vect_transform_stmt): Likewise.
2917 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
2918 (vectorizable_lc_phi): Declare.
2920 2019-09-26 Richard Biener <rguenther@suse.de>
2922 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
2923 vectorizable_reduction for vect_double_reduction_def.
2924 (vect_transform_loop): Likewise.
2925 (vect_create_epilog_for_reduction): Move double-reduction
2926 PHI creation and preheader argument setting of PHIs ...
2927 (vectorizable_reduction): ... here. Also process
2928 vect_double_reduction_def PHIs, creating the vectorized
2929 PHI nodes, remembering the scalar adjustment computed for
2930 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
2931 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
2932 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
2933 Initialize STMT_VINFO_REDUC_CODE.
2934 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
2935 (_stmt_vec_info::reduc_code): Likewise.
2936 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
2937 (STMT_VINFO_REDUC_CODE): Likewise.
2939 2019-09-26 Matt Turner <mattst88@gmail.com>
2942 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
2943 (mtune=): Add Negative(mtune=).
2944 (mcpu=): Add Negative(mcpu=).
2945 * config/arm/arm.opt: Likewise.
2947 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2949 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2950 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
2952 * config/arm/arm_acle.h: Define builtins for the above.
2953 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
2954 (simd32_op): Handle the above.
2955 * config/arm/unspecs.md: Define unspecs for the above.
2957 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2959 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2960 (arm_<sup>xtb16): Likewise.
2961 (arm_usada8): Likewise.
2962 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
2963 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
2964 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
2965 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
2966 __sxtb16, __uxtab16, __uxtb16): Define.
2967 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2968 * config/arm/unspecs.md: Define unspecs for the above.
2969 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
2970 (USXTB16): Likewise.
2971 (simd32_op): New int_attribute.
2972 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
2973 * doc/sourcebuild.exp (arm_simd32_ok): Document.
2975 2019-09-26 Martin Jambor <mjambor@suse.cz>
2977 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
2980 2019-09-26 Martin Jambor <mjambor@suse.cz>
2982 * ipa-sra.c (process_scan_results): Fix continue condition.
2984 2019-09-26 Martin Liska <mliska@suse.cz>
2986 PR tree-optimization/91885
2987 * tree-vectorizer.c (try_vectorize_loop_1): Add
2988 TODO_update_ssa_only_virtuals similarly to what slp pass does.
2990 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
2992 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
2993 aarch64_plus_immediate rather than aarch64_uimm12_shift
2994 to test for valid PLUS immediates.
2996 2019-09-25 Martin Jambor <mjambor@suse.cz>
2998 * tree-sra.c (no_accesses_p): Remove.
2999 (no_accesses_representant): Likewise.
3001 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3003 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
3005 (vaba_s16): Likewise.
3006 (vaba_s32): Likewise.
3007 (vaba_u8): Likewise.
3008 (vaba_u16): Likewise.
3009 (vaba_u32): Likewise.
3010 (vabal_high_s8): Likewise.
3011 (vabal_high_s16): Likewise.
3012 (vabal_high_s32): Likewise.
3013 (vabal_high_u8): Likewise.
3014 (vabal_high_u16): Likewise.
3015 (vabal_high_u32): Likewise.
3016 (vabal_s8): Likewise.
3017 (vabal_s16): Likewise.
3018 (vabal_s32): Likewise.
3019 (vabal_u8): Likewise.
3020 (vabal_u16): Likewise.
3021 (vabal_u32): Likewise.
3022 (vabaq_s8): Likewise.
3023 (vabaq_s16): Likewise.
3024 (vabaq_s32): Likewise.
3025 (vabaq_u8): Likewise.
3026 (vabaq_u16): Likewise.
3027 (vabaq_u32): Likewise.
3028 (vabd_s8): Likewise.
3029 (vabd_s16): Likewise.
3030 (vabd_s32): Likewise.
3031 (vabd_u8): Likewise.
3032 (vabd_u16): Likewise.
3033 (vabd_u32): Likewise.
3034 (vabdl_high_s8): Likewise.
3035 (vabdl_high_s16): Likewise.
3036 (vabdl_high_s32): Likewise.
3037 (vabdl_high_u8): Likewise.
3038 (vabdl_high_u16): Likewise.
3039 (vabdl_high_u32): Likewise.
3040 (vabdl_s8): Likewise.
3041 (vabdl_s16): Likewise.
3042 (vabdl_s32): Likewise.
3043 (vabdl_u8): Likewise.
3044 (vabdl_u16): Likewise.
3045 (vabdl_u32): Likewise.
3046 (vabdq_s8): Likewise.
3047 (vabdq_s16): Likewise.
3048 (vabdq_s32): Likewise.
3049 (vabdq_u8): Likewise.
3050 (vabdq_u16): Likewise.
3051 (vabdq_u32): Likewise.
3052 (vaddlv_s8): Likewise.
3053 (vaddlv_s16): Likewise.
3054 (vaddlv_u8): Likewise.
3055 (vaddlv_u16): Likewise.
3056 (vaddlvq_s8): Likewise.
3057 (vaddlvq_s16): Likewise.
3058 (vaddlvq_s32): Likewise.
3059 (vaddlvq_u8): Likewise.
3060 (vaddlvq_u16): Likewise.
3061 (vaddlvq_u32): Likewise.
3062 (vcvtx_f32_f64): Likewise.
3063 (vcvtx_high_f32_f64): Likewise.
3064 (vcvtxd_f32_f64): Likewise.
3065 (vmla_n_f32): Likewise.
3066 (vmla_n_s16): Likewise.
3067 (vmla_n_s32): Likewise.
3068 (vmla_n_u16): Likewise.
3069 (vmla_n_u32): Likewise.
3070 (vmla_s8): Likewise.
3071 (vmla_s16): Likewise.
3072 (vmla_s32): Likewise.
3073 (vmla_u8): Likewise.
3074 (vmla_u16): Likewise.
3075 (vmla_u32): Likewise.
3076 (vmlal_high_n_s16): Likewise.
3077 (vmlal_high_n_s32): Likewise.
3078 (vmlal_high_n_u16): Likewise.
3079 (vmlal_high_n_u32): Likewise.
3080 (vmlal_high_s8): Likewise.
3081 (vmlal_high_s16): Likewise.
3082 (vmlal_high_s32): Likewise.
3083 (vmlal_high_u8): Likewise.
3084 (vmlal_high_u16): Likewise.
3085 (vmlal_high_u32): Likewise.
3086 (vmlal_n_s16): Likewise.
3087 (vmlal_n_s32): Likewise.
3088 (vmlal_n_u16): Likewise.
3089 (vmlal_n_u32): Likewise.
3090 (vmlal_s8): Likewise.
3091 (vmlal_s16): Likewise.
3092 (vmlal_s32): Likewise.
3093 (vmlal_u8): Likewise.
3094 (vmlal_u16): Likewise.
3095 (vmlal_u32): Likewise.
3096 (vmlaq_n_f32): Likewise.
3097 (vmlaq_n_s16): Likewise.
3098 (vmlaq_n_s32): Likewise.
3099 (vmlaq_n_u16): Likewise.
3100 (vmlaq_n_u32): Likewise.
3101 (vmlaq_s8): Likewise.
3102 (vmlaq_s16): Likewise.
3103 (vmlaq_s32): Likewise.
3104 (vmlaq_u8): Likewise.
3105 (vmlaq_u16): Likewise.
3106 (vmlaq_u32): Likewise.
3107 (vmls_n_f32): Likewise.
3108 (vmls_n_s16): Likewise.
3109 (vmls_n_s32): Likewise.
3110 (vmls_n_u16): Likewise.
3111 (vmls_n_u32): Likewise.
3112 (vmls_s8): Likewise.
3113 (vmls_s16): Likewise.
3114 (vmls_s32): Likewise.
3115 (vmls_u8): Likewise.
3116 (vmls_u16): Likewise.
3117 (vmls_u32): Likewise.
3118 (vmlsl_high_n_s16): Likewise.
3119 (vmlsl_high_n_s32): Likewise.
3120 (vmlsl_high_n_u16): Likewise.
3121 (vmlsl_high_n_u32): Likewise.
3122 (vmlsl_high_s8): Likewise.
3123 (vmlsl_high_s16): Likewise.
3124 (vmlsl_high_s32): Likewise.
3125 (vmlsl_high_u8): Likewise.
3126 (vmlsl_high_u16): Likewise.
3127 (vmlsl_high_u32): Likewise.
3128 (vmlsl_n_s16): Likewise.
3129 (vmlsl_n_s32): Likewise.
3130 (vmlsl_n_u16): Likewise.
3131 (vmlsl_n_u32): Likewise.
3132 (vmlsl_s8): Likewise.
3133 (vmlsl_s16): Likewise.
3134 (vmlsl_s32): Likewise.
3135 (vmlsl_u8): Likewise.
3136 (vmlsl_u16): Likewise.
3137 (vmlsl_u32): Likewise.
3138 (vmlsq_n_f32): Likewise.
3139 (vmlsq_n_s16): Likewise.
3140 (vmlsq_n_s32): Likewise.
3141 (vmlsq_n_u16): Likewise.
3142 (vmlsq_n_u32): Likewise.
3143 (vmlsq_s8): Likewise.
3144 (vmlsq_s16): Likewise.
3145 (vmlsq_s32): Likewise.
3146 (vmlsq_u8): Likewise.
3147 (vmlsq_u16): Likewise.
3148 (vmlsq_u32): Likewise.
3149 (vmovl_high_s8): Likewise.
3150 (vmovl_high_s16): Likewise.
3151 (vmovl_high_s32): Likewise.
3152 (vmovl_high_u8): Likewise.
3153 (vmovl_high_u16): Likewise.
3154 (vmovl_high_u32): Likewise.
3155 (vmovl_s8): Likewise.
3156 (vmovl_s16): Likewise.
3157 (vmovl_s32): Likewise.
3158 (vmovl_u8): Likewise.
3159 (vmovl_u16): Likewise.
3160 (vmovl_u32): Likewise.
3161 (vmovn_high_s16): Likewise.
3162 (vmovn_high_s32): Likewise.
3163 (vmovn_high_s64): Likewise.
3164 (vmovn_high_u16): Likewise.
3165 (vmovn_high_u32): Likewise.
3166 (vmovn_high_u64): Likewise.
3167 (vmovn_s16): Likewise.
3168 (vmovn_s32): Likewise.
3169 (vmovn_s64): Likewise.
3170 (vmovn_u16): Likewise.
3171 (vmovn_u32): Likewise.
3172 (vmovn_u64): Likewise.
3173 (vmull_high_n_s16): Likewise.
3174 (vmull_high_n_s32): Likewise.
3175 (vmull_high_n_u16): Likewise.
3176 (vmull_high_n_u32): Likewise.
3177 (vmull_high_p8): Likewise.
3178 (vmull_high_s8): Likewise.
3179 (vmull_high_s16): Likewise.
3180 (vmull_high_s32): Likewise.
3181 (vmull_high_u8): Likewise.
3182 (vmull_high_u16): Likewise.
3183 (vmull_high_u32): Likewise.
3184 (vmull_n_s16): Likewise.
3185 (vmull_n_s32): Likewise.
3186 (vmull_n_u16): Likewise.
3187 (vmull_n_u32): Likewise.
3188 (vmull_p8): Likewise.
3189 (vmull_s8): Likewise.
3190 (vmull_s16): Likewise.
3191 (vmull_s32): Likewise.
3192 (vmull_u8): Likewise.
3193 (vmull_u16): Likewise.
3194 (vmull_u32): Likewise.
3195 (vpadal_s8): Likewise.
3196 (vpadal_s16): Likewise.
3197 (vpadal_s32): Likewise.
3198 (vpadal_u8): Likewise.
3199 (vpadal_u16): Likewise.
3200 (vpadal_u32): Likewise.
3201 (vpadalq_s8): Likewise.
3202 (vpadalq_s16): Likewise.
3203 (vpadalq_s32): Likewise.
3204 (vpadalq_u8): Likewise.
3205 (vpadalq_u16): Likewise.
3206 (vpadalq_u32): Likewise.
3207 (vpaddl_s8): Likewise.
3208 (vpaddl_s16): Likewise.
3209 (vpaddl_s32): Likewise.
3210 (vpaddl_u8): Likewise.
3211 (vpaddl_u16): Likewise.
3212 (vpaddl_u32): Likewise.
3213 (vpaddlq_s8): Likewise.
3214 (vpaddlq_s16): Likewise.
3215 (vpaddlq_s32): Likewise.
3216 (vpaddlq_u8): Likewise.
3217 (vpaddlq_u16): Likewise.
3218 (vpaddlq_u32): Likewise.
3219 (vpaddq_s8): Likewise.
3220 (vpaddq_s16): Likewise.
3221 (vpaddq_s32): Likewise.
3222 (vpaddq_s64): Likewise.
3223 (vpaddq_u8): Likewise.
3224 (vpaddq_u16): Likewise.
3225 (vpaddq_u32): Likewise.
3226 (vpaddq_u64): Likewise.
3227 (vqdmulh_n_s16): Likewise.
3228 (vqdmulh_n_s32): Likewise.
3229 (vqdmulhq_n_s16): Likewise.
3230 (vqdmulhq_n_s32): Likewise.
3231 (vqmovn_high_s16): Likewise.
3232 (vqmovn_high_s32): Likewise.
3233 (vqmovn_high_s64): Likewise.
3234 (vqmovn_high_u16): Likewise.
3235 (vqmovn_high_u32): Likewise.
3236 (vqmovn_high_u64): Likewise.
3237 (vqmovun_high_s16): Likewise.
3238 (vqmovun_high_s32): Likewise.
3239 (vqmovun_high_s64): Likewise.
3240 (vqrdmulh_n_s16): Likewise.
3241 (vqrdmulh_n_s32): Likewise.
3242 (vqrdmulhq_n_s16): Likewise.
3243 (vqrdmulhq_n_s32): Likewise.
3244 (vrsqrte_u32): Likewise.
3245 (vrsqrteq_u32): Likewise.
3246 (vtst_p8): Likewise.
3247 (vtst_p16): Likewise.
3248 (vtst_p64): Likewise.
3249 (vtstq_p8): Likewise.
3250 (vtstq_p16): Likewise.
3251 (vtstq_p64): Likewise.
3252 (vaddlv_s32): Likewise.
3253 (vaddlv_u32): Likewise.
3254 (vqtbl1_p8): Likewise.
3255 (vqtbl1_s8): Likewise.
3256 (vqtbl1_u8): Likewise.
3257 (vqtbl1q_p8): Likewise.
3258 (vqtbl1q_s8): Likewise.
3259 (vqtbl1q_u8): Likewise.
3260 (vqtbx1_s8): Likewise.
3261 (vqtbx1_u8): Likewise.
3262 (vqtbx1_p8): Likewise.
3263 (vqtbx1q_s8): Likewise.
3264 (vqtbx1q_u8): Likewise.
3265 (vqtbx1q_p8): Likewise.
3266 (vtbl1_s8): Likewise.
3267 (vtbl1_u8): Likewise.
3268 (vtbl1_p8): Likewise.
3269 (vtbl2_s8): Likewise.
3270 (vtbl2_u8): Likewise.
3271 (vtbl2_p8): Likewise.
3272 (vtbl3_s8): Likewise.
3273 (vtbl3_u8): Likewise.
3274 (vtbl3_p8): Likewise.
3275 (vtbl4_s8): Likewise.
3276 (vtbl4_u8): Likewise.
3277 (vtbl4_p8): Likewise.
3278 (vtbx2_s8): Likewise.
3279 (vtbx2_u8): Likewise.
3280 (vtbx2_p8): Likewise.
3281 (vld1_f32): Likewise.
3282 (vld1_f64): Likewise.
3283 (vld1_p8): Likewise.
3284 (vld1_p16): Likewise.
3285 (vld1_p64): Likewise.
3286 (vld1_s8): Likewise.
3287 (vld1_s16): Likewise.
3288 (vld1_s32): Likewise.
3289 (vld1_s64): Likewise.
3290 (vld1_u8): Likewise.
3291 (vld1_u16): Likewise.
3292 (vld1_u32): Likewise.
3293 (vld1_u64): Likewise.
3294 (vld1q_f32): Likewise.
3295 (vld1q_f64): Likewise.
3296 (vld1q_p8): Likewise.
3297 (vld1q_p16): Likewise.
3298 (vld1q_p64): Likewise.
3299 (vld1q_s8): Likewise.
3300 (vld1q_s16): Likewise.
3301 (vld1q_s32): Likewise.
3302 (vld1q_s64): Likewise.
3303 (vld1q_u8): Likewise.
3304 (vld1q_u16): Likewise.
3305 (vld1q_u32): Likewise.
3306 (vld1q_u64): Likewise.
3307 (vpmax_s8): Likewise.
3308 (vpmax_s16): Likewise.
3309 (vpmax_s32): Likewise.
3310 (vpmax_u8): Likewise.
3311 (vpmax_u16): Likewise.
3312 (vpmax_u32): Likewise.
3313 (vpmaxq_s8): Likewise.
3314 (vpmaxq_s16): Likewise.
3315 (vpmaxq_s32): Likewise.
3316 (vpmaxq_u8): Likewise.
3317 (vpmaxq_u16): Likewise.
3318 (vpmaxq_u32): Likewise.
3319 (vpmax_f32): Likewise.
3320 (vpmaxq_f32): Likewise.
3321 (vpmaxq_f64): Likewise.
3322 (vpmaxqd_f64): Likewise.
3323 (vpmaxs_f32): Likewise.
3324 (vpmaxnm_f32): Likewise.
3325 (vpmaxnmq_f32): Likewise.
3326 (vpmaxnmq_f64): Likewise.
3327 (vpmaxnmqd_f64): Likewise.
3328 (vpmaxnms_f32): Likewise.
3329 (vpmin_s8): Likewise.
3330 (vpmin_s16): Likewise.
3331 (vpmin_s32): Likewise.
3332 (vpmin_u8): Likewise.
3333 (vpmin_u16): Likewise.
3334 (vpmin_u32): Likewise.
3335 (vpminq_s8): Likewise.
3336 (vpminq_s16): Likewise.
3337 (vpminq_s32): Likewise.
3338 (vpminq_u8): Likewise.
3339 (vpminq_u16): Likewise.
3340 (vpminq_u32): Likewise.
3341 (vpmin_f32): Likewise.
3342 (vpminq_f32): Likewise.
3343 (vpminq_f64): Likewise.
3344 (vpminqd_f64): Likewise.
3345 (vpmins_f32): Likewise.
3346 (vpminnm_f32): Likewise.
3347 (vpminnmq_f32): Likewise.
3348 (vpminnmq_f64): Likewise.
3349 (vpminnmqd_f64): Likewise.
3350 (vpminnms_f32): Likewise.
3351 (vmla_f32): Likewise.
3352 (vmlaq_f32): Likewise.
3353 (vmlaq_f64): Likewise.
3354 (vmls_f32): Likewise.
3355 (vmlsq_f32): Likewise.
3356 (vmlsq_f64): Likewise.
3357 (vqtbl2_s8): Likewise.
3358 (vqtbl2_u8): Likewise.
3359 (vqtbl2_p8): Likewise.
3360 (vqtbl2q_s8): Likewise.
3361 (vqtbl2q_u8): Likewise.
3362 (vqtbl2q_p8): Likewise.
3363 (vqtbl3_s8): Likewise.
3364 (vqtbl3_u8): Likewise.
3365 (vqtbl3_p8): Likewise.
3366 (vqtbl3q_s8): Likewise.
3367 (vqtbl3q_u8): Likewise.
3368 (vqtbl3q_p8): Likewise.
3369 (vqtbl4_s8): Likewise.
3370 (vqtbl4_u8): Likewise.
3371 (vqtbl4_p8): Likewise.
3372 (vqtbl4q_s8): Likewise.
3373 (vqtbl4q_u8): Likewise.
3374 (vqtbl4q_p8): Likewise.
3375 (vqtbx2_s8): Likewise.
3376 (vqtbx2_u8): Likewise.
3377 (vqtbx2_p8): Likewise.
3378 (vqtbx2q_s8): Likewise.
3379 (vqtbx2q_u8): Likewise.
3380 (vqtbx2q_p8): Likewise.
3381 (vqtbx3_s8): Likewise.
3382 (vqtbx3_u8): Likewise.
3383 (vqtbx3_p8): Likewise.
3384 (vqtbx3q_s8): Likewise.
3385 (vqtbx3q_u8): Likewise.
3386 (vqtbx3q_p8): Likewise.
3387 (vqtbx4_s8): Likewise.
3388 (vqtbx4_u8): Likewise.
3389 (vqtbx4_p8): Likewise.
3390 (vqtbx4q_s8): Likewise.
3391 (vqtbx4q_u8): Likewise.
3392 (vqtbx4q_p8): Likewise.
3393 (vrev16_p8): Likewise.
3394 (vrev16_s8): Likewise.
3395 (vrev16_u8): Likewise.
3396 (vrev16q_p8): Likewise.
3397 (vrev16q_s8): Likewise.
3398 (vrev16q_u8): Likewise.
3399 (vrev32_p8): Likewise.
3400 (vrev32_p16): Likewise.
3401 (vrev32_s8): Likewise.
3402 (vrev32_s16): Likewise.
3403 (vrev32_u8): Likewise.
3404 (vrev32_u16): Likewise.
3405 (vrev32q_p8): Likewise.
3406 (vrev32q_p16): Likewise.
3407 (vrev32q_s8): Likewise.
3408 (vrev32q_s16): Likewise.
3409 (vrev32q_u8): Likewise.
3410 (vrev32q_u16): Likewise.
3411 (vrev64_f32): Likewise.
3412 (vrev64_p8): Likewise.
3413 (vrev64_p16): Likewise.
3414 (vrev64_s8): Likewise.
3415 (vrev64_s16): Likewise.
3416 (vrev64_s32): Likewise.
3417 (vrev64_u8): Likewise.
3418 (vrev64_u16): Likewise.
3419 (vrev64_u32): Likewise.
3420 (vrev64q_f32): Likewise.
3421 (vrev64q_p8): Likewise.
3422 (vrev64q_p16): Likewise.
3423 (vrev64q_s8): Likewise.
3424 (vrev64q_s16): Likewise.
3425 (vrev64q_s32): Likewise.
3426 (vrev64q_u8): Likewise.
3427 (vrev64q_u16): Likewise.
3428 (vrev64q_u32): Likewise.
3429 (vsha1cq_u32): Likewise.
3430 (vsha1mq_u32): Likewise.
3431 (vsha1pq_u32): Likewise.
3432 (vsha1h_u32): Likewise.
3433 (vsha1su0q_u32): Likewise.
3434 (vsha1su1q_u32): Likewise.
3435 (vsha256hq_u32): Likewise.
3436 (vsha256h2q_u32): Likewise.
3437 (vsha256su0q_u32): Likewise.
3438 (vsha256su1q_u32): Likewise.
3439 (vmull_p64): Likewise.
3440 (vmull_high_p64): Likewise.
3441 (vsqrt_f32): Likewise.
3442 (vsqrtq_f32): Likewise.
3443 (vsqrt_f64): Likewise.
3444 (vsqrtq_f64): Likewise.
3445 (vst1_f32): Likewise.
3446 (vst1_f64): Likewise.
3447 (vst1_p8): Likewise.
3448 (vst1_p16): Likewise.
3449 (vst1_p64): Likewise.
3450 (vst1_s8): Likewise.
3451 (vst1_s16): Likewise.
3452 (vst1_s32): Likewise.
3453 (vst1_s64): Likewise.
3454 (vst1_u8): Likewise.
3455 (vst1_u16): Likewise.
3456 (vst1_u32): Likewise.
3457 (vst1_u64): Likewise.
3458 (vst1q_f32): Likewise.
3459 (vst1q_f64): Likewise.
3460 (vst1q_p8): Likewise.
3461 (vst1q_p16): Likewise.
3462 (vst1q_p64): Likewise.
3463 (vst1q_s8): Likewise.
3464 (vst1q_s16): Likewise.
3465 (vst1q_s32): Likewise.
3466 (vst1q_s64): Likewise.
3467 (vst1q_u8): Likewise.
3468 (vst1q_u16): Likewise.
3469 (vst1q_u32): Likewise.
3470 (vst1q_u64): Likewise.
3471 (vst1_s64_x2): Likewise.
3472 (vst1_u64_x2): Likewise.
3473 (vst1_f64_x2): Likewise.
3474 (vst1_s8_x2): Likewise.
3475 (vst1_p8_x2): Likewise.
3476 (vst1_s16_x2): Likewise.
3477 (vst1_p16_x2): Likewise.
3478 (vst1_s32_x2): Likewise.
3479 (vst1_u8_x2): Likewise.
3480 (vst1_u16_x2): Likewise.
3481 (vst1_u32_x2): Likewise.
3482 (vst1_f16_x2): Likewise.
3483 (vst1_f32_x2): Likewise.
3484 (vst1_p64_x2): Likewise.
3485 (vst1q_s8_x2): Likewise.
3486 (vst1q_p8_x2): Likewise.
3487 (vst1q_s16_x2): Likewise.
3488 (vst1q_p16_x2): Likewise.
3489 (vst1q_s32_x2): Likewise.
3490 (vst1q_s64_x2): Likewise.
3491 (vst1q_u8_x2): Likewise.
3492 (vst1q_u16_x2): Likewise.
3493 (vst1q_u32_x2): Likewise.
3494 (vst1q_u64_x2): Likewise.
3495 (vst1q_f16_x2): Likewise.
3496 (vst1q_f32_x2): Likewise.
3497 (vst1q_f64_x2): Likewise.
3498 (vst1q_p64_x2): Likewise.
3499 (vst1_s64_x3): Likewise.
3500 (vst1_u64_x3): Likewise.
3501 (vst1_f64_x3): Likewise.
3502 (vst1_s8_x3): Likewise.
3503 (vst1_p8_x3): Likewise.
3504 (vst1_s16_x3): Likewise.
3505 (vst1_p16_x3): Likewise.
3506 (vst1_s32_x3): Likewise.
3507 (vst1_u8_x3): Likewise.
3508 (vst1_u16_x3): Likewise.
3509 (vst1_u32_x3): Likewise.
3510 (vst1_f16_x3): Likewise.
3511 (vst1_f32_x3): Likewise.
3512 (vst1_p64_x3): Likewise.
3513 (vst1q_s8_x3): Likewise.
3514 (vst1q_p8_x3): Likewise.
3515 (vst1q_s16_x3): Likewise.
3516 (vst1q_p16_x3): Likewise.
3517 (vst1q_s32_x3): Likewise.
3518 (vst1q_s64_x3): Likewise.
3519 (vst1q_u8_x3): Likewise.
3520 (vst1q_u16_x3): Likewise.
3521 (vst1q_u32_x3): Likewise.
3522 (vst1q_u64_x3): Likewise.
3523 (vst1q_f16_x3): Likewise.
3524 (vst1q_f32_x3): Likewise.
3525 (vst1q_f64_x3): Likewise.
3526 (vst1q_p64_x3): Likewise.
3527 (vst2_s64): Likewise.
3528 (vst2_u64): Likewise.
3529 (vst2_f64): Likewise.
3530 (vst2_s8): Likewise.
3531 (vst2_p8): Likewise.
3532 (vst2_s16): Likewise.
3533 (vst2_p16): Likewise.
3534 (vst2_s32): Likewise.
3535 (vst2_u8): Likewise.
3536 (vst2_u16): Likewise.
3537 (vst2_u32): Likewise.
3538 (vst2_f16): Likewise.
3539 (vst2_f32): Likewise.
3540 (vst2_p64): Likewise.
3541 (vst2q_s8): Likewise.
3542 (vst2q_p8): Likewise.
3543 (vst2q_s16): Likewise.
3544 (vst2q_p16): Likewise.
3545 (vst2q_s32): Likewise.
3546 (vst2q_s64): Likewise.
3547 (vst2q_u8): Likewise.
3548 (vst2q_u16): Likewise.
3549 (vst2q_u32): Likewise.
3550 (vst2q_u64): Likewise.
3551 (vst2q_f16): Likewise.
3552 (vst2q_f32): Likewise.
3553 (vst2q_f64): Likewise.
3554 (vst2q_p64): Likewise.
3555 (vst3_s64): Likewise.
3556 (vst3_u64): Likewise.
3557 (vst3_f64): Likewise.
3558 (vst3_s8): Likewise.
3559 (vst3_p8): Likewise.
3560 (vst3_s16): Likewise.
3561 (vst3_p16): Likewise.
3562 (vst3_s32): Likewise.
3563 (vst3_u8): Likewise.
3564 (vst3_u16): Likewise.
3565 (vst3_u32): Likewise.
3566 (vst3_f16): Likewise.
3567 (vst3_f32): Likewise.
3568 (vst3_p64): Likewise.
3569 (vst3q_s8): Likewise.
3570 (vst3q_p8): Likewise.
3571 (vst3q_s16): Likewise.
3572 (vst3q_p16): Likewise.
3573 (vst3q_s32): Likewise.
3574 (vst3q_s64): Likewise.
3575 (vst3q_u8): Likewise.
3576 (vst3q_u16): Likewise.
3577 (vst3q_u32): Likewise.
3578 (vst3q_u64): Likewise.
3579 (vst3q_f16): Likewise.
3580 (vst3q_f32): Likewise.
3581 (vst3q_f64): Likewise.
3582 (vst3q_p64): Likewise.
3583 (vst4_s64): Likewise.
3584 (vst4_u64): Likewise.
3585 (vst4_f64): Likewise.
3586 (vst4_s8): Likewise.
3587 (vst4_p8): Likewise.
3588 (vst4_s16): Likewise.
3589 (vst4_p16): Likewise.
3590 (vst4_s32): Likewise.
3591 (vst4_u8): Likewise.
3592 (vst4_u16): Likewise.
3593 (vst4_u32): Likewise.
3594 (vst4_f16): Likewise.
3595 (vst4_f32): Likewise.
3596 (vst4_p64): Likewise.
3597 (vst4q_s8): Likewise.
3598 (vst4q_p8): Likewise.
3599 (vst4q_s16): Likewise.
3600 (vst4q_p16): Likewise.
3601 (vst4q_s32): Likewise.
3602 (vst4q_s64): Likewise.
3603 (vst4q_u8): Likewise.
3604 (vst4q_u16): Likewise.
3605 (vst4q_u32): Likewise.
3606 (vst4q_u64): Likewise.
3607 (vst4q_f16): Likewise.
3608 (vst4q_f32): Likewise.
3609 (vst4q_f64): Likewise.
3610 (vst4q_p64): Likewise.
3611 (vtbx4_s8): Likewise.
3612 (vtbx4_u8): Likewise.
3613 (vtbx4_p8): Likewise.
3614 (vtrn_f32): Likewise.
3615 (vtrn_p8): Likewise.
3616 (vtrn_p16): Likewise.
3617 (vtrn_s8): Likewise.
3618 (vtrn_s16): Likewise.
3619 (vtrn_s32): Likewise.
3620 (vtrn_u8): Likewise.
3621 (vtrn_u16): Likewise.
3622 (vtrn_u32): Likewise.
3623 (vtrnq_f32): Likewise.
3624 (vtrnq_p8): Likewise.
3625 (vtrnq_p16): Likewise.
3626 (vtrnq_s8): Likewise.
3627 (vtrnq_s16): Likewise.
3628 (vtrnq_s32): Likewise.
3629 (vtrnq_u8): Likewise.
3630 (vtrnq_u16): Likewise.
3631 (vtrnq_u32): Likewise.
3632 (vrsqrte_f16): Likewise.
3633 (vrsqrteq_f16): Likewise.
3634 (vsqrt_f16): Likewise.
3635 (vsqrtq_f16): Likewise.
3636 (vabd_f16): Likewise.
3637 (vabdq_f16): Likewise.
3638 (vpadd_f16): Likewise.
3639 (vpaddq_f16): Likewise.
3640 (vpmax_f16): Likewise.
3641 (vpmaxq_f16): Likewise.
3642 (vpmaxnm_f16): Likewise.
3643 (vpmaxnmq_f16): Likewise.
3644 (vpmin_f16): Likewise.
3645 (vpminq_f16): Likewise.
3646 (vpminnm_f16): Likewise.
3647 (vpminnmq_f16): Likewise.
3648 (vrsqrts_f16): Likewise.
3649 (vrsqrtsq_f16): Likewise.
3651 2019-09-25 Richard Biener <rguenther@suse.de>
3653 PR tree-optimization/91896
3654 * tree-vect-loop.c (vectorizable_reduction): The single
3655 def-use cycle optimization cannot apply when there's more
3656 than one pattern stmt involved.
3658 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3660 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
3661 the 'P' mode iterator, replacing the (removed) SI and DI variants.
3662 (reload_macho_picbase_<mode>): Likewise.
3664 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3666 * config/rs6000/rs6000.md: Move darwin.md include until
3667 after the definition of the mode iterators.
3669 2019-09-23 Martin Sebor <msebor@redhat.com>
3671 PR tree-optimization/91570
3672 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
3673 non-constant minlen, maxlen and maxbound.
3675 2019-09-24 Richard Biener <rguenther@suse.de>
3677 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
3679 (_stmt_vec_info::cond_reduc_code): ... this.
3680 (_stmt_vec_info::induc_cond_initial_val): Add.
3681 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
3682 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
3683 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
3684 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
3685 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
3687 (vect_create_epilog_for_reduction): Drop special
3688 induction condition reduction params, pass in reduction code
3690 (vectorizable_reduction): Perform condition reduction kind
3691 selection only at analysis time. Adjust passing on state.
3693 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3695 * config/aarch64/aarch64.md (mov<mode>): Don't call
3696 aarch64_split_dimode_const_store on volatile MEM.
3698 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
3700 * config/aarch64/aarch64-option-extensions.def (fp16fml):
3701 Update hwcap string for fp16fml.
3703 2019-09-24 Jakub Jelinek <jakub@redhat.com>
3706 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
3707 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
3709 2019-09-24 Martin Liska <mliska@suse.cz>
3711 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
3712 instead of if-elseif-elseif-...
3713 * gimple-expr.c (extract_ops_from_tree): Likewise.
3714 * gimple.c (get_gimple_rhs_num_ops): Likewise.
3715 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
3717 2019-09-24 Martin Jambor <mjambor@suse.cz>
3720 * ipa-param-manipulation.c (carry_over_param): Make a method of
3721 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
3722 in case of a context mismatch.
3723 (ipa_param_body_adjustments::common_initialization): Adjust call to
3725 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
3726 private method carry_over_param.
3728 2019-09-24 Martin Jambor <mjambor@suse.cz>
3731 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
3733 2019-09-24 Richard Biener <rguenther@suse.de>
3735 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
3738 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3740 * config/arm/t-arm (arm-builtins.o): Add dependency on
3741 arm_acle_builtins.def.
3743 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3746 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
3747 canonical CONST_INTs. Use gen_rtvec.
3749 2019-09-23 Richard Biener <rguenther@suse.de>
3751 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
3752 avoid adjusting by + 0 or * 1.
3753 (vect_create_epilog_for_reduction): Get reduction code only
3754 when necessary. Deal with adjustment_def only when necessary.
3756 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3758 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
3761 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3764 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
3767 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
3769 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
3770 code. Merge code blocks with common conditionals. Use declared
3771 macro instead of a magic number for PIC level.
3773 2019-09-21 Martin Sebor <msebor@redhat.com>
3776 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
3777 Simplify computation of the offset of the referenced subobject.
3779 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
3781 * config/darwin.c (machopic_legitimize_pic_address): Check
3784 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3786 * ira-conflicts.c (can_use_same_reg_p): New function.
3787 (process_reg_shuffles): Take an insn parameter. Ignore cases
3788 in which input operand op_num could seemingly never be allocated
3789 to the same register as the destination.
3790 (add_insn_allocno_copies): Update call to process_reg_shuffles.
3792 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3794 * simplify-rtx.c (neg_const_int): Replace with...
3795 (neg_poly_int_rtx): ...this new function.
3796 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
3797 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
3798 (simplify_plus_minus): Likewise for constant terms here.
3800 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
3802 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
3803 HOST_WIDE_PRINT_UNSIGNED.
3805 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
3807 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
3810 2019-09-20 Maya Rashish <coypu@sdf.org>
3813 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
3814 Define to speculation_safe_value_not_needed.
3816 2019-09-20 Richard Biener <rguenther@suse.de>
3817 Uros Bizjak <ubizjak@gmail.com>
3820 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
3822 (general_scalar_chain::convert_op): Force not suitable memory
3823 operands to a register.
3825 2019-09-20 Richard Biener <rguenther@suse.de>
3827 PR tree-optimization/91821
3828 * tree-vect-loop.c (check_reduction_path): Check we can compute
3830 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
3831 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
3832 operands in canonical order.
3833 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
3834 STMT_VINFO_REDUC_IDX.
3835 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
3836 (STMT_VINFO_REDUC_IDX): Likewise.
3838 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
3841 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3843 2019-09-20 Richard Biener <rguenther@suse.de>
3845 PR tree-optimization/91822
3846 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
3848 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
3849 for reduc_index in nested cycles, adjust vectorizable_condition
3851 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
3853 (vect_analyze_stmt): Adjust.
3854 (vect_transform_stmt): Likewise.
3856 2019-09-20 Richard Biener <rguenther@suse.de>
3859 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
3860 Ensure there's a sequence point between allocating the new register
3861 and passing a reference to a reg via regno_reg_rtx.
3863 2019-09-20 Martin Jambor <mjambor@suse.cz>
3865 * coretypes.h (cgraph_edge): Declare.
3866 * ipa-param-manipulation.c: Rewrite.
3867 * ipa-param-manipulation.h: Likewise.
3868 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
3869 (OBJS): Added ipa-sra.o.
3870 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
3871 and ref_p, added fields param_adjustments and performed_splits.
3872 (struct cgraph_clone_info): Remove ags_to_skip and
3873 combined_args_to_skip, new field param_adjustments.
3874 (cgraph_node::create_clone): Changed parameters to use
3875 ipa_param_adjustments.
3876 (cgraph_node::create_virtual_clone): Likewise.
3877 (cgraph_node::create_virtual_clone_with_body): Likewise.
3878 (tree_function_versioning): Likewise.
3879 (cgraph_build_function_type_skip_args): Removed.
3880 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
3881 using ipa_param_adjustments.
3882 (clone_of_p): Likewise.
3883 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
3884 (build_function_decl_skip_args): Likewise.
3885 (duplicate_thunk_for_node): Adjust parameters using
3886 ipa_param_body_adjustments, copy param_adjustments instead of
3888 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
3889 (cgraph_node::create_virtual_clone): Likewise.
3890 (cgraph_node::create_version_clone_with_body): Likewise.
3891 (cgraph_materialize_clone): Likewise.
3892 (symbol_table::materialize_all_clones): Likewise.
3893 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
3894 ipa_replace_map check.
3895 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
3896 (initialize_node_lattices): Make aware that some parameters might have
3897 already been removed.
3898 (want_remove_some_param_p): New function.
3899 (create_specialized_node): Convert to using ipa_param_adjustments and
3900 deal with possibly pre-existing adjustments.
3901 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
3902 (output_node_opt_summary): Do not stream removed fields. Stream
3903 parameter adjustments instead of argumetns to skip.
3904 (input_node_opt_summary): Likewise.
3905 (input_node_opt_summary): Likewise.
3906 * lto-section-in.c (lto_section_name): Added ipa-sra section.
3907 * lto-streamer.h (lto_section_type): Likewise.
3908 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
3910 (copy_decl_to_var): Declare.
3911 * tree-inline.c (update_clone_info): Do not remap old_tree.
3912 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
3913 statements, walk all extra generated statements and remap their
3915 (redirect_all_calls): Add killed SSA names to a hash set.
3916 (remap_ssa_name): Do not remap killed SSA names.
3917 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
3918 half of functionality moved to ipa_param_body_adjustments.
3919 (copy_decl_to_var): Make exported.
3920 (copy_body): Destroy killed_new_ssa_names hash set.
3921 (expand_call_inline): Remap performed splits.
3922 (update_clone_info): Likewise.
3923 (tree_function_versioning): Simplify tree_map processing. Updated to
3924 accept ipa_param_adjustments and use ipa_param_body_adjustments.
3925 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
3926 for the new interface.
3927 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
3928 (simd_clone_compute_base_data_type): Likewise.
3929 (simd_clone_init_simd_arrays): Adjust for the new interface.
3930 (simd_clone_adjust_argument_types): Likewise.
3931 (struct modify_stmt_info): Likewise.
3932 (ipa_simd_modify_stmt_ops): Likewise.
3933 (ipa_simd_modify_function_body): Likewise.
3934 (simd_clone_adjust): Likewise.
3935 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
3936 (type_internals_preclude_sra_p): Make public.
3937 * tree-sra.h: New file.
3938 * ipa-inline-transform.c (save_inline_function_body): Update to
3939 refelct new tree_function_versioning signature.
3940 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
3941 ipa_param_adjustments to get current parameter indices.
3942 (ipcp_modif_dom_walker::before_dom_children): Likewise.
3943 (ipcp_update_bits): Likewise.
3944 (ipcp_update_vr): Likewise.
3945 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
3946 * ipa-sra.c: New file.
3947 * multiple_target.c (create_target_clone): Update to reflet new type
3948 of create_version_clone_with_body.
3949 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
3950 tree_function_versioning.
3951 (modify_function): Update to reflect new type of
3952 tree_function_versioning.
3953 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
3954 * passes.def: Remove old IPA-SRA and add new one.
3955 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
3956 (make_pass_ipa_sra): Declare.
3957 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
3959 * doc/invoke.texi (ipa-sra-max-replacements): New.
3961 2019-09-19 Martin Sebor <msebor@redhat.com>
3964 * builtins.c (component_size): Correct trailing array computation,
3965 rename to component_ref_size and move...
3966 (compute_objsize): Adjust.
3967 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
3968 (builtin_access::strict): Do not consider memmove.
3969 (builtin_access::write_off): New function.
3970 (builtin_memref::builtin_memref): Initialize refsize.
3971 (builtin_memref::set_base_and_offset): Adjust refoff and compute
3973 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
3975 (builtin_access::builtin_access): Initialize dstoff to destination
3976 refeence offset here instead of in maybe_diag_overlap. Adjust
3977 referencess even to unrelated objects. Adjust sizrange of bounded
3978 string functions to reflect bound. For strcat, adjust destination
3979 sizrange by that of source.
3980 (builtin_access::strcat_overlap): Adjust offsets and sizes
3981 to reflect the increase in destination sizrange above.
3982 (builtin_access::overlap): Do not set dstoff here but instead
3983 in builtin_access::builtin_access.
3984 (check_bounds_or_overlap): Use builtin_access::write_off.
3985 (maybe_diag_access_bounds): Add argument. Add informational notes.
3986 (dump_builtin_memref, dump_builtin_access): New functions.
3987 * tree.c (component_ref_size): ...to here.
3988 * tree.h (component_ref_size): Declare.
3989 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
3990 nul in the size of the source string.
3992 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
3995 * doc/cpp.texi: Document support for extended characters in
3997 * doc/cppopts.texi: Likewise.
3999 2019-09-19 Richard Biener <rguenther@suse.de>
4001 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
4002 (check_reduction_path): New overload having the path as result.
4003 (vect_is_simple_reduction): From the detected reduction
4004 path build a SLP reduction chain if possible.
4006 2019-09-19 Richard Biener <rguenther@suse.de>
4009 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
4010 Force operand to a register if it isn't nonimmediate_operand.
4012 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
4014 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
4015 * config/arm/iterators.md (optab): Add and, ior, xor entries.
4016 (logical_op): Remove code attribute.
4017 (logical_OP): Likewise.
4019 2019-09-19 Martin Liska <mliska@suse.cz>
4021 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
4024 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
4026 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
4029 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
4030 for NE comparison of TImode values.
4031 (aarch64_emit_load_exclusive): Add support for TImode.
4032 (aarch64_emit_store_exclusive): Likewise.
4033 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
4034 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
4035 Change iterator from ALLI to ALLI_TI.
4036 (@atomic_compare_and_swap<JUST_TI>): New.
4037 (@atomic_compare_and_swap<JUST_TI>_lse): New.
4038 (aarch64_load_exclusive_pair): New.
4039 (aarch64_store_exclusive_pair): New.
4040 * config/aarch64/iterators.md (JUST_TI): New.
4042 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
4043 strong_zero_p for aarch64_track_speculation; unify some code paths;
4044 use aarch64_gen_compare_reg instead of open-coding.
4046 * config/aarch64/aarch64.opt (-moutline-atomics): New.
4047 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
4048 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
4049 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
4050 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
4051 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
4052 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
4053 (atomic_<atomic_op><ALLI>): Likewise.
4054 (atomic_fetch_<atomic_op><ALLI>): Likewise.
4055 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
4056 * doc/invoke.texi: Document -moutline-atomics.
4058 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
4060 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
4061 trivial predicate for condition branch.
4062 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
4064 (compute_bb_predicates): Update predicate based on post-dominating
4066 (analyze_function_body): Calculate post-dominating information.
4068 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
4070 * tree-vectorizer.h (vectorizable_condition): Take an int
4071 reduction index instead of a boolean flag.
4072 * tree-vect-stmts.c (vectorizable_condition): Likewise.
4073 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
4074 reductions if the reduction accumulator is the "then" rather
4075 than the "else" value.
4076 (vect_analyze_stmt): Update call accordingly.
4077 (vect_transform_stmt): Likewise.
4078 * tree-vect-loop.c (vectorizable_reduction): Likewise,
4079 asserting that the index is > 0.
4081 2019-09-19 Martin Liska <mliska@suse.cz>
4083 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
4084 (sort_congruence_classes_by_decl_uid): Likewise.
4085 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
4087 (sem_item_optimizer::merge_classes): Likewise.
4089 2019-09-19 Richard Biener <rguenther@suse.de>
4091 PR tree-optimization/91812
4092 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
4095 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
4097 * defaults.h (TARGET_UNIT): New macro.
4098 (target_unit): New type.
4099 * rtl.h (native_encode_rtx, native_decode_rtx)
4100 (native_decode_vector_rtx, subreg_size_lsb): Declare.
4101 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
4102 * rtlanal.c (subreg_lsb_1): Delete.
4103 (subreg_size_lsb): New function.
4104 * simplify-rtx.c: Include rtx-vector-builder.h
4105 (simplify_immed_subreg): Delete.
4106 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
4107 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
4109 (simplify_subreg): Use them.
4110 (test_vector_subregs_modes, test_vector_subregs_repeating)
4111 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
4112 (test_vector_subregs): New functions.
4113 (test_vector_ops): Call test_vector_subregs for integer vector
4114 modes with at least 2 elements.
4116 2019-09-19 Richard Biener <rguenther@suse.de>
4118 * tree-parloops.c (parloops_is_slp_reduction): Do not set
4119 LOOP_VINFO_OPERANDS_SWAPPED.
4120 (parloops_is_simple_reduction): Likewise.
4121 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
4122 initialize operands_swapped.
4123 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
4124 (vect_is_slp_reduction): Do not swap operands.
4125 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
4126 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
4128 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
4131 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
4132 Add avx_partial_xmm_update.
4134 2019-09-18 Jim Wilson <jimw@sifive.com>
4137 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
4138 (riscv_move_integer): Likewise.
4139 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
4140 riscv_move_integer arg.
4141 (riscv_legitimize_move): Likewise.
4142 (riscv_force_temporary): New parameter in_splitter. Don't call
4144 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
4146 (riscv_add_offset): Likewise.
4147 (riscv_split_symbol): New parameter in_splitter. Pass to
4148 riscv_force_temporary.
4149 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
4151 (riscv_move_integer): New parameter in_splitter. New local
4152 can_create_psuedo. Don't call riscv_split_integer or force_reg when
4154 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
4155 riscv_split_symbol, and riscv_force_temporary args.
4156 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
4157 riscv_move_integer arg.
4158 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
4160 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4163 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
4164 hard register store cost to 6.
4166 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
4169 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
4170 pseudo register store cost from 3 to 6 to make it the same as
4173 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4176 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
4177 (one_cmpldi2): Likewise.
4178 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
4179 of the constant parts is simple.
4180 * config/arm/iterators.md (LOGICAL): Add new code iterator.
4181 (logical_op): Add new code attribute.
4182 (logical_OP): Likewise.
4183 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
4184 (arm_iordi_operand): Add predicate.
4185 (arm_xordi_operand): Add predicate.
4187 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4189 * config/arm/arm.md (maddsidi4): Remove expander.
4190 (mulsidi3adddi): Remove pattern.
4191 (mulsidi3adddi_v6): Likewise.
4192 (mulsidi3_nov6): Likewise.
4193 (mulsidi3_v6): Likewise.
4194 (umulsidi3): Remove expander.
4195 (umulsidi3_nov6): Remove pattern.
4196 (umulsidi3_v6): Likewise.
4197 (umulsidi3adddi): Likewise.
4198 (umulsidi3adddi_v6): Likewise.
4199 (<Us>mulsidi3): Add combined expander.
4200 (<Us>maddsidi4): Likewise.
4201 (<US>mull): Add combined umull and smull pattern.
4202 (<US>mlal): Likewise.
4203 * config/arm/iterators.md (Us): Add new iterator.
4205 2019-09-18 Richard Biener <rguenther@suse.de>
4207 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
4209 (vectorize_fold_left_reduction): Remove assert.
4210 (vectorizable_reduction): Also expect COND_EXPR non-reduction
4211 operand in position 2. Remove assert.
4213 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4215 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
4216 (smulsi3_highpart_nov6): Remove pattern.
4217 (smulsi3_highpart_v6): Likewise.
4218 (umulsi3_highpart): Likewise.
4219 (umulsi3_highpart_nov6): Likewise.
4220 (umulsi3_highpart_v6): Likewise.
4221 (<US>mull_high): Add new combined multiply pattern.
4223 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4225 * config/arm/arm.md (arm_mulsi3): Remove pattern.
4226 (arm_mulsi3_v6): Likewise.
4227 (mulsi3addsi_v6): Likewise.
4228 (mulsi3subsi): Likewise.
4229 (mul): Add new multiply pattern.
4233 2019-09-18 Richard Biener <rguenther@suse.de>
4235 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
4236 (parloops_valid_reduction_input_p): Copy from
4237 valid_reduction_input_p.
4238 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
4239 (parloops_needs_fold_left_reduction_p): Copy from
4240 needs_fold_left_reduction_p.
4241 (parloops_is_simple_reduction): Copy from
4242 vect_is_simple_reduction.
4243 (parloops_force_simple_reduction): Copy from
4244 vect_force_simple_reduction.
4245 (gather_scalar_reductions): Adjust.
4246 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
4247 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
4249 2019-09-18 Richard Biener <rguenther@suse.de>
4251 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
4252 * tree-vect-loop.c (get_initial_def_for_reduction): Make
4254 (vect_create_epilog_for_reduction): Remove dead code.
4256 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4258 * varasm.c (assemble_real): Generate canonical const_ints.
4260 2019-09-18 Richard Biener <rguenther@suse.de>
4263 * lto-streamer-in.c (input_eh_regions): Move EH init to
4264 lto_materialize_function.
4265 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4268 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4270 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
4273 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4275 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
4276 of checking specifically for INTEGER_CST.
4278 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4280 * stor-layout.c (compute_record_mode): Operate on poly_uint64
4281 sizes instead of uhwi sizes.
4283 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4285 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
4286 (add_const_value_attribute): Handle CONST_POLY_INT.
4288 2019-09-18 Martin Liska <mliska@suse.cz>
4290 * dbgcnt.def (store_merging): New counter.
4291 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
4292 Use it in store merging.
4294 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4296 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
4298 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4299 * config/arm/arm.c (arm_sched_variable_issue): New function.
4300 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4302 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4304 * config/arm/types.md (no_reservation): New reservation.
4305 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
4307 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
4308 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
4309 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
4310 * config/arm/arm1020e.md (1020alu_op): Likewise.
4311 * config/arm/arm1026ejs.md (alu_op): Likewise.
4312 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4313 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4314 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4315 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
4316 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4317 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4318 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
4319 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
4320 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4321 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4322 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4323 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
4324 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
4325 * config/arm/fa526.md (526_alu_op): Likewise.
4326 * config/arm/fa606te.md (606te_alu_op): Likewise.
4327 * config/arm/fa626te.md (626te_alu_op): Likewise.
4328 * config/arm/fa726te.md (726te_alu_op): Likewise.
4329 * config/arm/xgene1.md (xgene1_nop): Likewise.
4331 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4333 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
4334 "no_insn" to "branch".
4336 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4338 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
4340 2019-09-17 Richard Biener <rguenther@suse.de>
4343 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
4344 was missing generate locations only once.
4346 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
4349 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
4351 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
4352 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
4353 for switch default case using range analysis information.
4355 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
4358 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
4359 mode attributed is supported by FDPIC.
4361 2019-09-17 Richard Biener <rguenther@suse.de>
4363 PR tree-optimization/91790
4364 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
4365 use the correct DR for setting up realignment.
4367 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
4370 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
4371 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
4372 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
4373 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
4375 2019-09-16 Jason Merrill <jason@redhat.com>
4377 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
4379 2019-09-16 Martin Liska <mliska@suse.cz>
4381 * gimple-fold.c (or_comparisons_1): Remove rules moved
4383 * match.pd: ... here.
4385 2019-09-16 Martin Liska <mliska@suse.cz>
4387 * gimple-fold.c (or_comparisons_1): Remove rules
4389 * match.pd: ... here.
4391 2019-09-16 Martin Liska <mliska@suse.cz>
4393 * genmatch.c (dt_node::append_simplify): Do not print
4394 warning when we have duplicate patterns belonging
4395 to a same simplify rule.
4396 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
4397 (maybe_fold_comparisons_from_match_pd): Handle
4398 tcc_comparison as a results.
4399 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
4401 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4402 Qi Feng <ffengqi@linux.ibm.com>
4405 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
4406 (x > y && x == XXX_MIN): Optimize into 'false'.
4407 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
4408 (x < y && x != XXX_MAX): Optimize into 'x < y'.
4409 (x < y && x == XXX_MAX): Optimize into 'false'.
4410 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
4411 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
4412 (x <= y || x != XXX_MIN): Optimize into 'true'.
4413 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
4414 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
4415 (x >= y || x != XXX_MAX): Optimize into 'true'.
4416 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
4418 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4419 Martin Liska <mliska@suse.cz>
4421 * gimple-fold.c (and_comparisons_1): Add type as first
4423 (and_var_with_comparison): Likewise.
4424 (and_var_with_comparison_1): Likewise.
4425 (or_comparisons_1): Likewise.
4426 (or_var_with_comparison): Likewise.
4427 (or_var_with_comparison_1): Likewise.
4428 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
4429 (maybe_fold_or_comparisons): Likewise.
4430 (maybe_fold_comparisons_from_match_pd): New.
4431 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
4432 (maybe_fold_or_comparisons): Likewise.
4433 * gimple.c (gimple_size): Make it public and add num_ops argument.
4434 (gimple_init): New function.
4435 (gimple_alloc): Call gimple_init.
4436 * gimple.h (gimple_size): New.
4437 (gimple_init): Likewise.
4438 * tree-if-conv.c (fold_or_predicates): Pass type.
4439 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4440 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
4441 (optimize_vec_cond_expr): Likewise.
4442 (ovce_extract_ops): Return type of conditional expression.
4443 * tree-ssanames.c (init_ssa_name_imm_use): New.
4444 (make_ssa_name_fn): Use init_ssa_name_imm_use.
4445 * tree-ssanames.h (init_ssa_name_imm_use): New.
4447 2019-09-16 Richard Biener <rguenther@suse.de>
4449 PR tree-optimization/91756
4450 PR tree-optimization/87132
4451 * tree-ssa-alias.h (enum translate_flags): New.
4452 (get_continuation_for_phi): Use it instead of simple bool flag.
4453 (walk_non_aliased_vuses): Likewise.
4454 * tree-ssa-alias.c (maybe_skip_until): Adjust.
4455 (get_continuation_for_phi): When looking across backedges only
4456 disallow valueization.
4457 (walk_non_aliased_vuses): Adjust.
4458 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
4461 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
4464 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
4465 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4466 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4467 * target.def (have_count_reg_decr_p): New hook.
4468 (doloop_cost_for_generic): Likewise.
4469 (doloop_cost_for_address): Likewise.
4470 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
4471 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4472 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4473 * doc/tm.texi: Regenerate.
4474 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
4476 (record_group): Init doloop_p.
4477 (add_candidate_1): Add optional argument doloop, change the handlings
4479 (add_candidate): Likewise.
4480 (generic_predict_doloop_p): Update attribute.
4481 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
4482 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
4483 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
4485 (get_computation_cost): Update for doloop IV cand extra cost.
4486 (determine_group_iv_cost_cond): Update for doloop IV cand.
4487 (determine_iv_cost): Likewise.
4488 (ivopts_estimate_reg_pressure): Likewise.
4489 (may_eliminate_iv): Update handlings for doloop IV cand.
4490 (add_iv_candidate_for_doloop): New function.
4491 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
4492 (iv_ca_set_no_cp): Update for doloop IV cand.
4493 (iv_ca_set_cp): Likewise.
4494 (iv_ca_dump): Dump register cost.
4495 (find_doloop_use): New function.
4496 (analyze_and_mark_doloop_use): Likewise.
4497 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
4499 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
4502 * cse.c (cse_insn): Do not replace anything with a
4505 2019-09-13 Ian Lance Taylor <iant@golang.org>
4507 * doc/invoke.texi (Optimize Options): Fix typo.
4509 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
4511 PR tree-optimization/89386
4512 * config/i386/sse.md (smulhrs<mode>3): New expander.
4513 (smulhrsv4hi3): Ditto.
4515 2019-09-12 Richard Biener <rguenther@suse.de>
4517 PR tree-optimization/91750
4518 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
4519 in the type of the evolution.
4521 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
4523 PR tree-optimization/89386
4524 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
4525 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
4526 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
4527 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
4528 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
4529 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
4530 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
4531 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
4532 (su, r): Handle the unspecs above.
4533 (bt): New int attribute.
4534 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
4535 * internal-fn.c (first_commutative_argument): Commutativity info for
4537 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
4538 (umulhrs_optab): New optabs.
4539 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
4540 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
4541 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
4543 (vect_vect_recog_func_ptrs): Add it.
4545 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
4547 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
4550 2019-09-11 Nathan Sidwell <nathan@acm.org>
4552 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
4553 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
4555 2019-09-11 Richard Biener <rguenther@suse.de>
4557 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
4558 * lto-wrapper.c (merge_and_complain): Pick up -g.
4559 (append_compiler_options): Likewise.
4560 (run_gcc): Re-instantiate handling -g0 at link-time.
4561 * doc/invoke.texi (flto): Document debug info generation.
4563 2019-09-11 Richard Biener <rguenther@suse.de>
4565 PR tree-optimization/90387
4566 * vr-values.c (vr_values::extract_range_basic): After inlining
4567 simplify non-constant __builtin_constant_p to false.
4569 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
4571 PR rtl-optimization/89795
4572 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
4573 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
4575 2019-09-11 Jakub Jelinek <jakub@redhat.com>
4577 PR tree-optimization/91723
4578 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
4579 instead of pointer equality when checking if argument vectypes are
4583 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
4584 of get_nonzero_bits, only call it for integral types.
4586 2019-09-11 Richard Biener <rguenther@suse.de>
4589 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
4591 * match.pd: Add flag_unsafe_math_optimizations check
4592 before deciding on the widest type in a binary math operation.
4594 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4596 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
4597 and CALL_REALLY_USED_REGISTERS must be defined, and that
4598 CALL_REALLY_USED_REGISTERS is preferred.
4599 * doc/tm.texi: Regenerate.
4600 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
4601 (call_really_used_regs): Likewise.
4602 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
4603 CALL_REALLY_USED_REGISTERS are defined.
4604 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
4605 initial value if defined.
4606 (initial_call_really_used_regs): Delete.
4607 (saved_call_really_used_regs): Likewise.
4608 (CALL_REALLY_USED_REGNO_P): Likewise.
4609 (init_reg_sets): Remove handling of call_really_used_regs.
4610 (save_register_info, restore_register_info, globalize_reg): Likewise.
4611 (init_reg_sets_1): Likewise. Use call_used_regs instead of
4612 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
4613 outside operand_reg_set.
4614 (fix_register): Don't change call_used_regs if
4615 CALL_REALLY_USED_REGISTERS is defined.
4616 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
4617 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
4618 instead of call_really_used_regs.
4619 (csky_conditional_register_usage): Remove the old handling of
4620 call_used_regs and change the handling of call_really_used_regs
4621 to use call_used_regs instead.
4622 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
4623 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
4624 making a register fixed.
4625 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
4626 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
4627 instead of call_really_used_regs.
4628 (m32r_conditional_register_usage): Don't set call_used_regs when
4629 making a register fixed.
4630 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
4631 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
4632 instead of call_really_used_regs.
4633 (mips_interrupt_extra_call_saved_reg_p): Likewise.
4634 (mips_cfun_call_saved_reg_p): Likewise.
4635 (mips_swap_registers): Remove the old handling of call_used_regs
4636 and change the handling of call_really_used_regs to use call_used_regs
4638 (mips_conditional_register_usage): Likewise.
4639 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
4640 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
4641 instead of call_really_used_regs.
4642 (mn10300_get_live_callee_saved_regs): Likewise.
4643 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
4644 (mn10300_conditional_register_usage): Don't set call_used_regs when
4645 making a register fixed.
4646 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
4647 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
4648 Remove the old handling of call_used_regs and change the handling
4649 of call_really_used_regs to use call_used_regs instead.
4650 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
4651 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
4652 instead of call_really_used_regs.
4653 (s390_register_info_gprtofpr, s390_register_info): Likewise.
4654 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
4655 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
4656 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
4657 (s390_conditional_register_usage): Remove the old handling of
4658 call_used_regs and change the handling of call_really_used_regs
4659 to use call_used_regs instead.
4660 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
4661 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
4662 (sh_fix_range, reg_unused_after): Likewise.
4663 (sh_conditional_register_usage): Remove the old handling of
4664 call_used_regs and change the handling of call_really_used_regs
4665 to use call_used_regs instead.
4666 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
4667 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
4668 call_used_regs when making a register fixed.
4669 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
4670 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
4671 call_used_regs when making a register fixed.
4672 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
4673 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
4674 set call_used_regs when making a register fixed.
4675 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
4676 * config/visium/visium.c (visium_conditional_register_usage): Remove
4677 the old handling of call_used_regs and change the handling of
4678 call_really_used_regs to use call_used_regs instead.
4680 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4682 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
4683 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
4684 * reginfo.c (call_used_regs): New macro.
4686 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4688 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
4690 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4691 (bpf_expand_epilogue): Likewise.
4692 * config/c6x/c6x.c (c6x_save_reg): Likewise.
4693 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
4694 (ft32_expand_epilogue): Likewise.
4695 * config/i386/i386.c (ix86_save_reg): Likewise.
4696 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
4697 (moxie_expand_epilogue): Likewise.
4698 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4699 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4700 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4702 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4704 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
4705 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
4706 instead of testing call_used_regs directly.
4707 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
4708 (aarch64_components_for_bb): Likewise.
4709 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
4710 * config/arc/arc.c (arc_must_save_register): Likewise.
4711 (arc_epilogue_uses): Likewise.
4712 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
4713 (legitimize_pic_address, callee_saved_reg_p): Likewise.
4714 (arm_compute_save_reg0_reg12_mask): Likewise.
4715 (arm_compute_save_core_reg_mask): Likewise.
4716 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
4717 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
4718 (cmse_nonsecure_entry_clear_before_return): Likewise.
4719 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
4720 (arm_expand_epilogue): Likewise.
4721 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
4722 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
4723 (_reg_unused_after): Likewise.
4724 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
4725 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
4726 (add_to_reg, hwloop_optimize): Likewise.
4727 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4728 (bpf_expand_epilogue): Likewise.
4729 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
4730 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
4731 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
4732 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
4733 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
4734 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
4735 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
4736 * config/frv/frv.c (frv_stack_info): Likewise.
4737 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
4738 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
4739 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
4740 (move_callee_saved_registers): Likewise.
4741 * config/h8300/h8300.c (byte_reg): Likewise.
4742 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
4743 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
4744 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
4745 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
4746 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
4747 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
4748 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
4749 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
4750 * config/m32c/m32c.c (need_to_save): Likewise.
4751 * config/m68k/m68k.c (m68k_save_reg): Likewise.
4752 * config/mcore/mcore.c (calc_live_regs): Likewise.
4753 * config/microblaze/microblaze.c (microblaze_must_save_register):
4755 * config/mmix/mmix.c (mmix_local_regno): Likewise.
4756 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
4757 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
4758 (mmix_expand_epilogue): Likewise.
4759 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
4760 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
4761 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
4762 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
4763 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
4764 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
4765 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
4766 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
4767 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
4768 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
4769 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
4770 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
4771 * config/rl78/rl78.c (need_to_save): Likewise.
4772 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
4773 (rs6000_stack_info, generate_set_vrsave): Likewise.
4774 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
4775 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
4776 * config/rx/rx.c (rx_get_stack_layout): Likewise.
4777 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4778 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
4779 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
4780 (save_local_or_in_reg_p): Likewise.
4781 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
4782 (xstormy16_epilogue_uses): Likewise.
4783 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4784 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4785 * config/v850/v850.c (compute_register_save_size): Likewise.
4786 * config/vax/vax.c (vax_expand_prologue): Likewise.
4787 * config/visium/visium.c (visium_save_reg_p): Likewise.
4788 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4789 * cselib.c (cselib_process_insn): Likewise.
4790 * df-scan.c (df_get_entry_block_def_set): Likewise.
4791 * function.c (aggregate_value_p): Likewise.
4792 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
4793 * ira-lives.c (process_bb_node_lives): Likewise.
4794 * ira.c (do_reload): Likewise.
4795 * lra-lives.c (process_bb_lives): Likewise.
4796 * lra-remat.c (lra_remat): Likewise.
4797 * lra.c (lra): Likewise.
4798 * postreload.c (reload_combine_recognize_pattern): Likewise.
4799 (reload_cse_move2add): Likewise.
4800 * recog.c (peep2_find_free_register): Likewise.
4801 * regrename.c (check_new_reg_p): Likewise.
4802 * reload.c (find_equiv_reg): Likewise.
4803 * reload1.c (reload, find_reg): Likewise.
4804 * sel-sched.c (init_hard_regs_data): Likewise.
4806 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4808 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
4809 regs_invalidated_by_call & ~fixed_reg_set instead of
4810 call_used_or_fixed_regs & ~fixed_reg_set.
4811 * config/sh/sh.c (output_stack_adjust): Likewise.
4813 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4815 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
4816 (call_used_reg_set): Delete.
4817 (call_used_or_fixed_regs): New macro.
4818 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
4819 of call_used_reg_set.
4820 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
4821 instead of call_used_regs.
4822 (save_call_clobbered_regs): Likewise.
4823 * cfgcleanup.c (old_insns_match_p): Likewise.
4824 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
4825 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4827 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4828 * config/sh/sh.c (output_stack_adjust): Likewise.
4829 * final.c (collect_fn_hard_reg_usage): Likewise.
4830 * ira-build.c (ira_build): Likewise.
4831 * ira-color.c (calculate_saved_nregs): Likewise.
4832 (allocno_reload_assign, calculate_spill_cost): Likewise.
4833 * ira-conflicts.c (ira_build_conflicts): Likewise.
4834 * ira-costs.c (ira_tune_allocno_costs): Likewise.
4835 * ira-lives.c (process_bb_node_lives): Likewise.
4836 * ira.c (setup_reg_renumber): Likewise.
4837 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
4838 * lra-constraints.c (need_for_call_save_p): Likewise.
4839 (need_for_split_p, inherit_in_ebb): Likewise.
4840 * lra-lives.c (process_bb_lives): Likewise.
4841 * lra-remat.c (call_used_input_regno_present_p): Likewise.
4842 * postreload.c (reload_combine): Likewise.
4843 * regrename.c (find_rename_reg): Likewise.
4844 * reload1.c (reload_as_needed): Likewise.
4845 * rtlanal.c (find_all_hard_reg_sets): Likewise.
4846 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4847 * shrink-wrap.c (requires_stack_frame_p): Likewise.
4849 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4851 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
4852 (no_caller_save_reg_set): Delete.
4853 * caller-save.c (init_caller_save): Don't initialize it.
4854 * ira-conflicts.c (ira_build_conflicts): Calculate
4855 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
4857 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4859 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
4860 (target_hard_regs::x_savable_regs): New field.
4861 (call_fixed_reg_set): Delete.
4862 (savable_regs): New macro,
4863 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
4864 (init_reg_sets_1): Likewise. Initialize savable_regs.
4865 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
4866 for all registers. Set savable_regs instead of call_fixed_reg_set.
4867 (setup_save_areas, save_call_clobbered_regs): Replace uses of
4868 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
4869 * config/sh/sh.c (output_stack_adjust): Likewise.
4871 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4873 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
4874 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
4875 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
4877 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4879 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
4880 * rtlanal.c (get_call_rtx_from): Likewise.
4881 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
4882 than the pattern to get_call_rtx_from.
4883 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
4884 an rtx_insn * instead of an rtx.
4885 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
4887 2019-09-10 Martin Liska <mliska@suse.cz>
4889 * common.opt: Use newly added WarnRemoved.
4890 * config/aarch64/aarch64.opt: Likewise.
4891 * config/arm/arm.opt: Likewise.
4892 * config/i386/i386.opt: Likewise.
4893 * config/ia64/ia64.opt: Likewise.
4894 * config/rs6000/rs6000.opt: Likewise.
4895 * doc/options.texi: Document WarnRemoved properly.
4896 * dwarf2out.c (gen_producer_string): Handle renamed
4897 OPT_SPECIAL_warn_removed.
4898 * lto-opts.c (lto_write_options): Likewise.
4899 * lto-wrapper.c (merge_and_complain): Likewise.
4900 * opts-common.c (decode_cmdline_option): Likewise.
4901 (prune_options): Likewise.
4902 (read_cmdline_option): Likewise.
4903 (control_warning_option): Likewise.
4904 * opts.c (print_filtered_help): Likewise.
4905 * optc-gen.awk: Parse for WarnRemoved and make usage
4906 of Deprecated an error.
4907 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
4909 2019-09-10 Arnaud Charlet <charlet@adacore.com>
4911 * doc/install.texi: Fix syntax for html generation.
4913 2019-09-10 Jakub Jelinek <jakub@redhat.com>
4916 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
4917 the shift type to type.
4919 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4921 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
4923 (stack_protect_combined_test_insn): Likewise.
4925 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4926 Mickaël Guêné <mickael.guene@st.com>
4928 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
4929 * config/arm/arm.md (FDPIC_REGNUM): New constant.
4930 (load_tp_soft_fdpic): New pattern.
4931 (load_tp_soft): Disable in FDPIC mode.
4933 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4934 Mickaël Guêné <mickael.guene@st.com>
4936 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
4937 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
4938 (arm_call_tls_get_addr): Add FDPIC support.
4939 (legitimize_tls_address): Likewise.
4940 (arm_emit_tls_decoration): Likewise.
4942 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4943 Mickaël Guêné <mickael.guene@st.com>
4945 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
4947 (arm_trampoline_init): Likewise.
4948 (arm_trampoline_adjust_address): Likewise.
4949 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
4951 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4952 Mickaël Guêné <mickael.guene@st.com>
4954 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
4955 (legitimize_pic_address): Enforce binding rules on function
4956 pointers in FDPIC mode.
4957 (arm_assemble_integer): Likewise.
4959 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4960 Mickaël Guêné <mickael.guene@st.com>
4962 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
4963 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
4966 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4967 Mickaël Guêné <mickael.guene@st.com>
4969 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
4972 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4973 Mickaël Guêné <mickael.guene@st.com>
4975 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
4977 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
4979 * config/arm/arm.c (arm_option_override): Define pic register to
4981 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
4982 have no decl or go through PLT.
4983 (calculate_pic_address_constant): New function.
4984 (legitimize_pic_address): Call calculate_pic_address_constant.
4985 (arm_load_pic_register): Handle TARGET_FDPIC.
4986 (arm_is_segment_info_known): New function.
4987 (arm_pic_static_addr): Add support for FDPIC.
4988 (arm_load_function_descriptor): New function.
4989 (arm_emit_call_insn): Add support for FDPIC.
4990 (arm_assemble_integer): Add support for FDPIC.
4991 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
4992 Define. (FDPIC_REGNUM): New define.
4993 * config/arm/arm.md (call): Add support for FDPIC.
4994 (call_value): Likewise.
4995 (restore_pic_register_after_call): New pattern.
4996 (untyped_call): Disable if FDPIC.
4997 (untyped_return): Likewise.
4998 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
5000 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5001 Mickaël Guêné <mickael.guene@st.com>
5003 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
5004 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
5005 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
5006 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
5007 (CC1_SPEC): Use FDPIC_CC1_SPEC.
5008 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
5009 * config/arm/uclinuxfdpiceabi.h: New file.
5011 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5013 * config.gcc: Handle *-*-uclinuxfdpiceabi.
5015 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
5016 Mickaël Guêné <mickael.guene@st.com>
5018 * config/arm/arm.opt: Add -mfdpic option.
5019 * doc/invoke.texi: Add documentation for -mfdpic.
5021 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5023 * expmed.c (extract_bit_field): Update function comment
5025 * expr.c (expand_expr_real): Update function comment
5027 (expand_misaligned_mem_ref): New helper function.
5028 (expand_expr_real_2): Use expand_misaligned_mem_ref.
5029 Remove duplicate assignment to "base" at case MEM_REF.
5030 Remove a shadowed variable "unsignedp" at case VCE.
5032 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5034 * regset.h (regs_invalidated_by_call_regset): Delete.
5035 (fixed_reg_set_regset): Likewise.
5036 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
5037 (fixed_reg_set_regset, persistent_obstack): Likewise.
5038 (init_reg_sets_1, globalize_reg): Update accordingly.
5039 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
5040 instead of a bitmap.
5041 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
5042 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
5043 instead of regs_invalidated_by_call_regset.
5044 (df_lr_confluence_n, df_md_confluence_n): Likewise.
5045 * df-scan.c (df_scan_start_dump): Likewise.
5046 * dse.c (copy_fixed_regs): Likewise.
5047 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
5049 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5051 * array-traits.h: New file.
5052 * coretypes.h (array_traits, bitmap_view): New types.
5053 * bitmap.h: Include "array-traits.h"
5054 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
5055 (base_bitmap_view, bitmap_view): New classes.
5056 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
5057 * hard-reg-set.h: Include array-traits.h.
5058 (array_traits<HARD_REG_SET>): New struct.
5059 * regset.h (IOR_REG_SET_HRS): New macro.
5060 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
5061 rather than iterating over each hard register.
5062 * sched-deps.c (sched_analyze_insn): Likewise.
5063 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
5065 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5067 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
5068 instead of a HARD_REG_SET *.
5069 * ira-build.c (ior_hard_reg_conflicts): Likewise.
5070 (ira_build): Update call accordingly.
5071 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
5073 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5075 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
5076 (HARD_REG_SET::operator!=): Likewise.
5077 (hard_reg_set_equal_p): Delete.
5078 * cfgcleanup.c (old_insns_match_p): Use == instead of
5079 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
5080 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
5081 (add_allocno_hard_regs_to_forest): Likewise.
5082 (setup_allocno_available_regs_num): Likewise.
5083 * ira.c (setup_pressure_classes): Likewise.
5084 (setup_allocno_and_important_classes): Likewise.
5085 (setup_reg_class_relations): Likewise.
5086 * lra-lives.c (process_bb_lives): Likewise.
5087 * reg-stack.c (change_stack, convert_regs_1): Likewise.
5089 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5091 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
5092 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
5093 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
5094 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
5096 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
5097 * ira.c (setup_reg_renumber): Likewise.
5098 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5099 * regrename.c (regrename_find_superclass): Likewise.
5100 * reload1.c (find_reg): Likewise.
5102 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5104 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
5105 * caller-save.c (setup_save_areas): Use "&~" instead of
5106 AND_COMPL_HARD_REG_SET.
5107 (save_call_clobbered_regs): Likewise.
5108 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
5110 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5111 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5112 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
5113 * config/mips/mips.c (mips_class_max_nregs): Likewise.
5114 (mips_conditional_register_usage): Likewise.
5115 * config/sh/sh.c (output_stack_adjust): Likewise.
5116 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
5117 (setup_profitable_hard_regs): Likewise.
5118 (get_conflict_and_start_profitable_regs): Likewise.
5119 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5120 (ira_build_conflicts): Likewise.
5121 * ira-costs.c (restrict_cost_classes): Likewise.
5122 (setup_regno_cost_classes_by_aclass): Likewise.
5123 * ira-lives.c (process_bb_node_lives): Likewise.
5124 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
5125 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
5126 (setup_allocno_and_important_classes, setup_class_translate_array)
5127 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
5129 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5130 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5131 (process_alt_operands, inherit_in_ebb): Likewise.
5132 * lra-eliminations.c (update_reg_eliminate): Likewise.
5133 * lra-lives.c (process_bb_lives): Likewise.
5134 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
5135 * resource.c (find_dead_or_set_registers): Likewise.
5136 (mark_target_live_regs): Likewise.
5137 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
5138 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5139 (implicit_clobber_conflict_p): Likewise.
5140 * shrink-wrap.c (requires_stack_frame_p): Likewise.
5141 (try_shrink_wrapping): Likewise.
5143 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5145 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
5146 (HARD_REG_SET::operator|=): Likewise.
5147 (IOR_HARD_REG_SET): Delete.
5148 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
5150 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5151 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
5152 * final.c (collect_fn_hard_reg_usage): Likewise.
5153 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
5154 * ira-build.c (merge_hard_reg_conflicts): Likewise.
5155 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
5156 (propagate_some_info_from_allocno): Likewise.
5157 (copy_info_to_removed_store_destinations): Likewise.
5158 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
5159 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
5160 (fast_allocation): Likewise.
5161 * ira-conflicts.c (ira_build_conflicts): Likewise.
5162 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
5163 (process_bb_node_lives): Likewise.
5164 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
5165 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5166 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5167 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
5168 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
5169 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
5170 (process_bb_lives): Likewise.
5171 * lra-spills.c (assign_spill_hard_regs): Likewise.
5172 * postreload.c (reload_combine): Likewise.
5173 * reginfo.c (init_reg_sets_1): Likewise.
5174 * regrename.c (merge_overlapping_regs, find_rename_reg)
5175 (merge_chains): Likewise.
5176 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
5177 (find_reload_regs, finish_spills, choose_reload_regs_init)
5178 (emit_reload_insns): Likewise.
5179 * reorg.c (redundant_insn): Likewise.
5180 * resource.c (find_dead_or_set_registers, mark_set_resources)
5181 (mark_target_live_regs): Likewise.
5182 * rtlanal.c (find_all_hard_reg_sets): Likewise.
5183 * sched-deps.c (sched_analyze_insn): Likewise.
5184 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5185 (find_best_reg_for_expr): Likewise.
5186 * shrink-wrap.c (try_shrink_wrapping): Likewise.
5188 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5190 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
5191 (HARD_REG_SET::operator&): Likewise.
5192 (AND_HARD_REG_SET): Delete.
5193 * caller-save.c (setup_save_areas): Use "&" instead of
5195 (save_call_clobbered_regs): Likewise.
5196 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5197 * config/m32c/m32c.c (reduce_class): Likewise.
5198 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5199 * final.c (get_call_reg_set_usage): Likewise.
5200 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
5201 (setup_left_conflict_sizes_p): Likewise.
5202 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5203 (ira_build_conflicts): Likewise.
5204 * ira-costs.c (restrict_cost_classes): Likewise.
5205 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
5206 (setup_reg_class_relations): Likewise.
5207 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
5208 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
5209 * resource.c (find_dead_or_set_registers): Likewise.
5210 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5212 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5214 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
5215 (COMPL_HARD_REG_SET): Delete.
5216 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
5217 of COMPL_HARD_REG_SET.
5218 (try_rename_operands): Likewise.
5219 * config/sh/sh.c (push_regs): Likewise.
5220 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5221 * lra-constraints.c (contains_reg_p): Likewise.
5222 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
5224 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5226 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
5227 * caller-save.c (save_call_clobbered_regs): Use assignment instead
5228 of COPY_HARD_REG_SET.
5229 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
5230 (epiphany_conditional_register_usage): Likewise.
5231 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5232 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5233 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
5234 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5235 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
5236 * config/mips/mips.c (mips_class_max_nregs): Likewise.
5237 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
5238 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5239 * config/sh/sh.c (output_stack_adjust): Likewise.
5240 * final.c (collect_fn_hard_reg_usage): Likewise.
5241 (get_call_reg_set_usage): Likewise.
5242 * ira-build.c (ira_create_object, remove_low_level_allocnos)
5243 (ira_flattening): Likewise.
5244 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
5245 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
5246 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
5247 (ira_reassign_pseudos): Likewise.
5248 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5249 (ira_build_conflicts): Likewise.
5250 * ira-costs.c (restrict_cost_classes): Likewise.
5251 (setup_regno_cost_classes_by_aclass): Likewise.
5252 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
5253 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
5254 (setup_stack_reg_pressure_class, setup_pressure_classes)
5255 (setup_allocno_and_important_classes, setup_class_translate_array)
5256 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
5257 (ira_setup_eliminable_regset): Likewise.
5258 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5259 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5260 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5261 (process_alt_operands, inherit_in_ebb): Likewise.
5262 * lra-lives.c (process_bb_lives): Likewise.
5263 * lra-spills.c (assign_spill_hard_regs): Likewise.
5264 * lra.c (lra): Likewise.
5265 * mode-switching.c (new_seginfo): Likewise.
5266 * postreload.c (reload_combine): Likewise.
5267 * reg-stack.c (straighten_stack): Likewise.
5268 * reginfo.c (save_register_info, restore_register_info): Likewise.
5269 (init_reg_sets_1, record_subregs_of_mode): Likewise
5270 * regrename.c (create_new_chain, rename_chains): Likewise.
5271 * reload1.c (order_regs_for_reload, find_reg): Likewise.
5272 (find_reload_regs): Likewise.
5273 * resource.c (find_dead_or_set_registers): Likewise.
5274 (mark_target_live_regs): Likewise.
5275 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5277 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5279 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
5280 (note_pattern_stores): Declare.
5281 (note_stores): Take an rtx_insn *.
5282 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
5283 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
5284 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
5285 (note_stores): Take an rtx_insn * as argument and process
5286 CALL_INSN_FUNCTION_USAGE. Rename old function to...
5287 (note_pattern_stores): ...this.
5288 (find_first_parameter_load): Pass the insn rather than
5289 its pattern to note_stores.
5290 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
5291 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
5292 (insert_one_insn): Likewise.
5293 * combine.c (combine_instructions): Likewise.
5294 (likely_spilled_retval_p): Likewise.
5295 (try_combine): Use note_pattern_stores instead of note_stores.
5296 (record_dead_and_set_regs): Pass the insn rather than its pattern
5298 (reg_dead_at_p): Likewise.
5299 * config/bfin/bfin.c (workaround_speculation): Likewise.
5300 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
5302 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
5303 instead of note_stores.
5304 (frv_optimize_membar_local): Pass the insn rather than its pattern
5306 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5307 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
5308 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
5309 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
5310 (mips_reorg_process_insns): Likewise.
5311 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
5312 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
5314 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
5315 its pattern to note_stores.
5316 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
5318 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
5319 the insn to note_stores.
5320 (prescan_insns_for_dce): Update call accordingly.
5321 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
5323 * df-problems.c (can_move_insns_across): Likewise.
5324 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
5325 * function.c (assign_parm_setup_reg): Likewise.
5326 * gcse-common.c (record_last_mem_set_info_common): Likewise.
5327 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
5328 (single_set_gcse): Likewise.
5329 * ira.c (validate_equiv_mem): Likewise.
5330 (update_equiv_regs): Use note_pattern_stores rather than note_stores
5332 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
5333 pattern to note_stores.
5334 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
5335 * loop-iv.c (simplify_using_initial_values): Likewise.
5336 * mode-switching.c (optimize_mode_switching): Likewise.
5337 * optabs.c (emit_libcall_block_1): Likewise.
5338 (expand_atomic_compare_and_swap): Likewise.
5339 * postreload-gcse.c (load_killed_in_block_p): Likewise.
5340 (record_opr_changes): Likewise. Remove explicit handling of
5341 CALL_INSN_FUNCTION_USAGE.
5342 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
5343 * regcprop.c (kill_clobbered_values): Likewise.
5344 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
5346 * regrename.c (build_def_use): Likewise.
5347 * reload1.c (reload): Use note_pattern_stores instead of note_stores
5348 for mark_not_eliminable.
5349 (reload_as_needed): Pass the insn rather than its pattern
5351 (emit_output_reload_insns): Likewise.
5352 * resource.c (mark_target_live_regs): Likewise.
5353 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
5354 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
5355 instead of note_stores.
5356 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
5357 its pattern to note_stores.
5358 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
5359 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
5361 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5363 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
5364 than a #define. Use a structure rather than an array as the
5365 fallback definition. Remove special cases for low array sizes.
5366 (const_hard_reg_set): New typedef.
5367 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
5368 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
5369 (hard_reg_set_empty_p): Likewise.
5370 (SET_HARD_REG_BIT): Use a function rather than a macro to
5371 handle the case in which HARD_REG_SET is a structure.
5372 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
5373 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
5374 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
5375 (IOR_COMPL_HARD_REG_SET): Likewise.
5376 (hard_reg_set_iterator::pset): Constify the pointer target.
5377 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
5378 of a "const HARD_REG_SET". Update the handling of non-integer
5380 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
5381 * reload.h: Likewise.
5382 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
5383 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
5384 of a "const HARD_REG_SET".
5385 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
5386 (range_in_hard_reg_set_p): Likewise.
5387 * ira-costs.c (restrict_cost_classes): Likewise.
5388 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
5389 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5390 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
5391 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
5392 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
5393 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
5394 take an unsigned int and open-code the HARD_REG_SET operations.
5396 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5398 * Makefile.in (OBJS): Remove bt-load.o.
5399 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
5400 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5401 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
5402 document that the option no longer does anything.
5403 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5404 * target.def (branch_target_register_class): Delete.
5405 (branch_target_register_callee_saved): Likewise.
5406 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
5407 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
5408 * doc/tm.texi: Regenerate.
5409 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
5410 (make_pass_branch_target_load_optimize2): Likewise.
5411 * passes.def (pass_branch_target_load_optimize1): Likewise.
5412 (pass_branch_target_load_optimize2): Likewise.
5413 * targhooks.h (default_branch_target_register_class): Likewise.
5414 * targhooks.c (default_branch_target_register_class): Likewise.
5415 * opt-suggestions.c (test_completion_valid_options): Remove
5416 -fbtr-bb-exclusive from the list of test options.
5417 * bt-load.c: Remove.
5419 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
5421 * match.pd: Add flag_unsafe_math_optimizations check
5422 before deciding on the widest type in a binary math operation.
5424 2019-09-09 Martin Liska <mliska@suse.cz>
5426 * config/i386/i386.opt: Update comment of removed
5427 options that are preserved only for backward
5430 2019-09-09 Jakub Jelinek <jakub@redhat.com>
5433 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
5437 * config/i386/avxintrin.h (__v32qs): New typedef.
5438 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
5441 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5443 * doc/invoke.texi (Option Summary): Cover eBPF.
5444 (eBPF Options): New section.
5445 * doc/extend.texi (BPF Built-in Functions): Likewise.
5446 (BPF Kernel Helpers): Likewise.
5448 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5450 * config.gcc: Support for bpf-*-* targets.
5451 * common/config/bpf/bpf-common.c: New file.
5452 * config/bpf/t-bpf: Likewise.
5453 * config/bpf/predicates.md: Likewise.
5454 * config/bpf/constraints.md: Likewise.
5455 * config/bpf/bpf.opt: Likewise.
5456 * config/bpf/bpf.md: Likewise.
5457 * config/bpf/bpf.h: Likewise.
5458 * config/bpf/bpf.c: Likewise.
5459 * config/bpf/bpf-protos.h: Likewise.
5460 * config/bpf/bpf-opts.h: Likewise.
5461 * config/bpf/bpf-helpers.h: Likewise.
5462 * config/bpf/bpf-helpers.def: Likewise.
5464 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5466 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5469 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5471 * opt-functions.awk (integer_range_info): Make sure values are in
5472 numeric context before operating with them.
5474 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
5476 * genemit.c (gen_split): Print the filename and line number where the
5477 splitter (or peephole2) was defined, to the dump file.
5479 2019-09-07 Jakub Jelinek <jakub@redhat.com>
5481 PR tree-optimization/91665
5482 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
5483 incompatible with the type of PHI result.
5485 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
5488 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
5489 gen_unaligned_storedi for 4-byte aligned addresses.
5491 2019-09-06 Jim Wilson <jimw@sifive.com>
5493 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
5496 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5498 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
5500 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5502 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
5503 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
5505 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
5508 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
5509 cost of SSE->integer and integer->SSE moves from 2 to 6.
5512 2019-09-06 Jakub Jelinek <jakub@redhat.com>
5514 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
5515 before testing TYPE_TRANSPARENT_AGGR.
5516 * calls.c (initialize_argument_information, load_register_parameters):
5519 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
5521 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
5523 (cmp_ior): Likewise.
5525 2019-09-06 Martin Liska <mliska@suse.cz>
5527 * doc/match-and-simplify.texi: Separate tuples with ;.
5529 2019-09-06 Martin Liska <mliska@suse.cz>
5532 * Makefile.in: Remove tlink.o.
5533 * collect2.c (do_link): New function isolated
5536 * collect2.h (do_tlink): Remove declaration of do_tlink.
5537 * doc/extend.texi: Remove documentation of -frepo.
5538 * doc/invoke.texi: Likewise.
5539 * doc/sourcebuild.texi: Remove cleanup-repo-files.
5542 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5543 Jim Wilson <jimw@sifive.com>
5546 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
5547 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
5548 paradoxical_subreg_p (operands[0]).
5549 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
5550 use as intermediate value.
5552 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
5554 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
5555 (sync_compare_and_swap<mode>_insn): Likewise.
5557 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5560 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
5561 without movmisalign optab.
5563 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5568 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
5569 types, use type of their first field instead of type of
5572 2019-09-05 Richard Biener <rguenther@suse.de>
5574 PR rtl-optimization/91656
5575 * postreload-gcse.c (record_last_mem_set_info): Revert addition
5578 2019-09-05 Richard Biener <rguenther@suse.de>
5581 * tree-inline.c (declare_return_variable): Mark the return
5582 slot as addressable after building an address of it.
5584 2019-09-05 Arnaud Charlet <charlet@adacore.com>
5586 * doc/install.texi: Update and clarify requirements to build GNAT.
5588 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
5591 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
5592 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
5593 call to be in memory.
5594 (pass_expand::execute): Call discover_nonconstant_array_refs before
5595 setting currently_expanding_to_rtl.
5597 2019-09-04 Caroline Tice <cmtice@google.com>
5599 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
5602 2019-09-04 Marek Polacek <polacek@redhat.com>
5604 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
5606 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
5609 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5610 for QI and HImode moves between SSE and general registers.
5612 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5615 * doc/invoke.texi: Document -Wenum-conversion.
5617 2019-09-04 Richard Biener <rguenther@suse.de>
5619 PR rtl-optimization/36262
5620 * postreload-gcse.c: Include intl.h and gcse.h.
5621 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
5622 to avoid linear list walk.
5623 (record_last_mem_set_info): Gate off if not computing transparentness.
5624 (get_bb_avail_insn): If transparentness isn't computed give up
5626 (gcse_after_reload_main): Skip compute_transp and extended PRE
5627 if gcse_or_cprop_is_too_expensive says so.
5629 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5631 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
5633 (msp430_select_section): Handle decls with the "noinit" attribute with
5634 default_elf_select_section.
5635 Handle SECCAT_RODATA_MERGE_* section types with
5636 default_elf_select_section.
5637 Add comments about handling of unsupported section types.
5638 (msp430_section_type_flags): Remove handling of the noinit section.
5640 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5642 * config/msp430/msp430.c (msp430_attr): Remove warnings about
5643 conflicting msp430-specific attributes.
5644 (msp430_section_attr): Likewise.
5645 Add warnings about conflicts with generic "noinit" and "section"
5647 Fix grammar in -mlarge error message.
5648 (msp430_data_attr): Rename to msp430_persist_attr.
5649 Add warnings about conflicts with generic "noinit" and "section"
5651 Add warning for when variable is not initialized.
5652 Chain conditionals which prevent the attribute being added.
5653 (ATTR_EXCL): New helper.
5654 (attr_reent_exclusions): New exclusion table.
5655 (attr_naked_exclusions): Likewise.
5656 (attr_crit_exclusions): Likewise.
5657 (attr_lower_exclusions): Likewise.
5658 (attr_upper_exclusions): Likewise.
5659 (attr_either_exclusions): Likewise.
5660 (attr_persist_exclusions): Likewise.
5661 (msp430_attribute_table): Update with exclusion rules.
5662 (msp430_output_aligned_decl_common): Don't output common symbol if decl
5665 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5667 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
5668 (msp430_handle_generic_attribute): New function.
5669 * doc/tm.texi: Regenerate.
5670 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
5671 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5672 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5673 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
5675 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
5677 PR tree-optimization/91504
5678 * match.pd: Add ((~a & b) ^a) --> (a | b).
5680 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5683 * config/i386/i386-expand.c (split_double_mode): If there is more than
5684 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
5685 already split matching MEM operand instead of calling adjust_address
5688 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
5690 * config.gcc: Obsolete spu target. Remove references to spu.
5691 * configure.ac: Remove references to spu.
5692 * configure: Regenerate.
5693 * config/spu/: Remove directory.
5694 * common/config/spu/: Remove directory.
5696 * doc/extend.texi: Remove references to spu.
5697 * doc/invoke.texi: Likewise.
5698 * doc/md.texi: Likewise.
5699 * doc/sourcebuild.texi: Likewise.
5701 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5706 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
5707 and SSA_NAME referring to CONSTANT_P correctly.
5709 2019-09-03 Richard Biener <rguenther@suse.de>
5711 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
5712 (vn_nary_op_insert): Likewise.
5713 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
5714 (vn_nary_op_lookup): Likewise.
5715 (vn_nary_op_insert): Likewise.
5717 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
5719 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
5720 (*op0, 1) instead of XEXP (*op1, 0).
5722 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5724 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
5725 (aarch64_fjcvtzs): New define_insn.
5726 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
5727 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
5729 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
5730 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
5731 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5732 __ARM_FEATURE_JCVT where appropriate.
5733 * config/aarch64/arm_acle.h (__jcvt): Define.
5735 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5737 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
5738 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
5739 (aarch64_<frintnzs_op><mode>): New define_insn.
5740 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
5741 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5742 __ARM_FEATURE_FRINT when appropriate.
5743 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
5744 frint32x, frint64z, frint64x.
5745 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
5746 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
5747 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
5748 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
5749 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
5750 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
5751 * config/aarch64/iterators.md (VSFDF): Define.
5752 (FRINTNZX): Likewise.
5753 (frintnzs_op): Likewise.
5755 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
5757 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
5758 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
5760 * config/aarch64/aarch64-tune.md: Regenerated.
5761 * doc/invoke.texi: Document the new processors.
5763 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5765 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
5769 (sve2-sm4): Likewise.
5771 (svesha3): Likewise.
5772 (svebitperm): Likewise.
5774 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5775 Richard Biener <rguenther@suse.de>
5777 PR tree-optimization/91597
5778 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
5779 BIT_AND_EXPR optimization for pointers, even if both operand
5780 ranges don't include NULL, the result can be NULL.
5782 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5785 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
5786 (non_mem_decl_p): ...this.
5787 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
5788 (expand_assignment): Call mem_ref_referes_to_non_mem_p
5789 unconditionally as before.
5791 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5794 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
5795 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
5796 * tree.def (LTGT_EXPR): Likewise.
5797 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
5799 2019-09-02 Jakub Jelinek <jakub@redhat.com>
5802 * fold-const.c (range_check_type): For enumeral and boolean
5803 type, pass 1 to type_for_size langhook instead of
5804 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
5805 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
5806 (build_range_check): Don't call unsigned_type_for for pointer types.
5807 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
5808 range_check_type result.
5810 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5812 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
5813 (replace_ref): Do not replace a chain of only two candidates which are
5814 valid memory references.
5816 2019-09-02 Martin Liska <mliska@suse.cz>
5818 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
5819 Bail out when we'll end up with the same number of clusters as
5821 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
5822 (jump_table_cluster::can_be_handled): Remove the guard
5823 as it's already handled in ::is_enabled. Allocate output
5824 after early bail out.
5826 2019-09-02 Martin Liska <mliska@suse.cz>
5828 PR gcov-profile/91601
5829 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
5830 (path_contains_zero_or_negative_cycle_arc): ... this and handle
5831 also negative edges.
5832 (circuit): Handle also negative edges as they can happen
5835 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
5838 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
5839 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
5840 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
5842 2019-09-01 Jakub Jelinek <jakub@redhat.com>
5845 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
5846 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
5847 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
5851 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
5852 GIMPLE_ASM TREE_LIST operands.
5854 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
5856 * doc/generic.texi (Unary and Binary Expressions): Mark up
5857 an instance of TYPE_MIN.
5859 2019-08-31 Stafford Horne <shorne@gmail.com>
5861 * config/or1k/constraints.md (t): New constraint.
5862 * config/or1k/or1k.h (GOT_REGS): New register class.
5863 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
5865 2019-08-30 Jim Wilson <jimw@sifive.com>
5867 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
5868 and -fpic and -mplt then disable -msave-restore and warn.
5870 2019-08-30 Martin Sebor <msebor@redhat.com>
5873 * tree-ssa-strlen.c (handle_store): Use a fallback location if
5874 the statement doesn't have one.
5875 * gimple-pretty-print.c (percent_G_format): Same.
5878 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
5879 before using them to validate MEM_REF offset.
5881 2019-08-30 Marek Polacek <polacek@redhat.com>
5883 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
5885 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5887 * config/arm/arm.md (unaligned_loaddi,
5888 unaligned_storedi): New unspec insn patterns.
5889 * config/arm/neon.md (unaligned_storev8qi): Likewise.
5890 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
5891 and unaligned_storedi for 4-byte aligned memory.
5892 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
5893 4-byte aligned memory.
5895 2019-08-30 Martin Jambor <mjambor@suse.cz>
5897 tree-optimization/91579
5898 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
5899 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
5901 (arg_needs_copy_p): Removed.
5902 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
5904 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
5906 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5908 * config/i386/i386-features.c
5909 (general_scalar_chain::compute_convert_gain):
5910 Correct cost for double-word shifts.
5911 (general_scalar_to_vector_candidate_p): Reject count operands
5912 greater or equal to mode bitsize.
5914 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5916 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5917 for moves between SSE and non-general registers and between
5918 mask and non-general registers.
5919 (ix86_register_move_cost): Remove stalled comment.
5921 2019-08-29 Richard Biener <rguenther@suse.de>
5923 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5924 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
5926 2019-08-29 Richard Biener <rguenther@suse.de>
5929 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5930 Do not emit scalar copies for debug-insns, instead replace
5931 their uses with the reg copy used in the chain or reset them
5932 if there is a reaching definition outside of the chain as well.
5934 2019-08-29 Jakub Jelinek <jakub@redhat.com>
5937 * config/i386/i386-expand.c (expand_vec_perm_movs,
5938 expand_vec_perm_blend, expand_vec_perm_vpermil,
5939 expand_vec_perm_pshufb, expand_vec_perm_1,
5940 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
5941 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
5942 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
5943 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
5944 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
5945 comments - replace ix86_expand_vec_perm_builtin_1 with
5946 ix86_expand_vec_perm_const_1.
5947 (expand_vec_perm2_vperm2f128_vblend): New function.
5948 (ix86_expand_vec_perm_const_1): New forward declaration. Call
5949 expand_vec_perm2_vperm2f128_vblend as last resort.
5950 (canonicalize_perm): Formatting fix.
5952 PR tree-optimization/91351
5953 * tree-cfg.c (generate_range_test): Use range_check_type instead of
5955 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
5956 range_check_type returns NULL.
5957 * tree-switch-conversion.c (switch_conversion::build_one_array):
5958 Use range_check_type instead of unsigned_type_for, don't perform
5959 linear opt if it returns NULL.
5960 (bit_test_cluster::find_bit_tests): Formatting fix.
5961 (bit_test_cluster::emit): Use range_check_type instead of
5963 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
5966 2019-08-29 Richard Biener <rguenther@suse.de>
5968 PR tree-optimization/91568
5969 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
5970 (vect_update_max_nunits): Add overload for poly_uint64.
5971 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
5972 (vect_build_slp_tree): Record max_nunits into the subtree
5973 and merge it upwards.
5974 (vect_print_slp_tree): Print max_nunits.
5976 2019-08-28 Marek Polacek <polacek@redhat.com>
5978 Implement P1152R4: Deprecating some uses of volatile.
5980 * doc/invoke.texi: Document -Wvolatile.
5982 2019-08-28 Marek Polacek <polacek@redhat.com>
5984 PR c++/91360 - Implement C++20 P1143R2: constinit.
5985 * doc/invoke.texi: Document -Wc++20-compat.
5987 2019-08-28 Martin Sebor <msebor@redhat.com>
5989 PR tree-optimization/91457
5990 * builtins.c (component_size): New function.
5991 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
5992 * builtins.h (compute_objsize): Add argument.
5993 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
5994 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
5995 (vrp_prop::check_mem_ref): Same.
5996 (vrp_prop::search_for_addr_array): Set no-warning bit.
5997 (check_array_bounds): Same.
5999 2019-08-28 Martin Sebor <msebor@redhat.com>
6002 * opts-common.c (option_enabled): Correct checking for language
6005 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
6007 * config/i386/i386.c (ix86_register_move_cost): Do not
6008 limit the cost of moves to/from XMM register to minimum 8.
6010 2019-08-28 Martin Jambor <mjambor@suse.cz>
6013 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
6014 checking assert a normal assert to test it really is redundant.
6015 * ipa-prop.c (compute_complex_assign_jump_func): Removed
6017 (update_jump_functions_after_inlining): Removed combining unary
6018 arithmetic operations with an ancestor jump function.
6019 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
6022 2019-08-28 Richard Biener <rguenther@suse.de>
6024 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
6027 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
6028 Richard Biener <rguenther@suse.de>
6030 * expr.c (expand_assignment): Handle misaligned DECLs.
6031 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
6032 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
6034 (assign_parm_setup_stack): Allocate properly aligned stack slots.
6035 * varasm.c (build_constant_desc): Align constants of misaligned types.
6036 * config/arm/predicates.md (aligned_operand): New predicate.
6037 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
6038 aligned_operand to check restrictions on memory addresses.
6039 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
6040 * config/arm/vec-common.md (mov<VALL>): Likewise.
6042 2019-08-28 Jakub Jelinek <jakub@redhat.com>
6045 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
6046 V_128 iterator instead of VI_128.
6048 2019-08-28 Martin Liska <mliska@suse.cz>
6050 PR tree-optimization/90970
6051 * builtins.c (check_access): Remove assignment to maxread
6052 as it hasn't been used since when it was introduced in r255755.
6054 2019-08-27 Martin Sebor <msebor@redhat.com>
6056 PR tree-optimization/91567
6057 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
6059 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
6062 2019-08-27 Jeff Law <law@redhat.com>
6064 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
6065 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
6067 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
6070 * config/i386/i386-features.c (convert_scalars_to_vector):
6071 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
6072 crtl->stack_realign_processed. Update crtl->drap_reg by calling
6073 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
6074 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
6076 2019-08-27 Richard Biener <rguenther@suse.de>
6078 * config/i386/i386-features.h
6079 (general_scalar_chain::~general_scalar_chain): Add.
6080 (general_scalar_chain::insns_conv): New bitmap.
6081 (general_scalar_chain::n_sse_to_integer): New.
6082 (general_scalar_chain::n_integer_to_sse): Likewise.
6083 (general_scalar_chain::make_vector_copies): Adjust signature.
6084 * config/i386/i386-features.c
6085 (general_scalar_chain::general_scalar_chain): Outline,
6086 initialize new members.
6087 (general_scalar_chain::~general_scalar_chain): New.
6088 (general_scalar_chain::mark_dual_mode_def): Record insns
6089 we need to insert conversions at and count them.
6090 (general_scalar_chain::compute_convert_gain): Account
6091 for conversion instructions at chain boundary.
6092 (general_scalar_chain::make_vector_copies): Generate a single
6093 copy for a def by a specific insn.
6094 (general_scalar_chain::convert_registers): First populate
6095 defs_map, then make copies at out-of chain insns.
6097 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
6099 * config/arm/arm.md (stack_protect_set_insn): Add security-related
6101 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
6103 2019-08-27 Martin Liska <mliska@suse.cz>
6105 * cgraph.c (cgraph_node::remove): Remove dead assignment before
6107 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
6108 Enclose in anonymous namespace.
6109 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
6110 hard_register initialization in braces.
6111 * tree-vrp.h (value_range_base::supports_type_p): Return false
6112 for function with boolean return type.
6114 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
6116 * config/i386/i386.c (emit_i387_cw_initialization)
6117 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
6119 2019-08-26 Martin Sebor <msebor@redhat.com>
6122 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
6123 (sprintf_dom_walker): Remove class.
6124 (get_int_range): Make argument const.
6125 (directive::fmtfunc, directive::set_precision): Same.
6126 (format_none): Same.
6127 (build_intmax_type_nodes): Same.
6128 (adjust_range_for_overflow): Same.
6129 (format_floating): Same.
6130 (format_character): Same.
6131 (format_string): Same.
6132 (format_plain): Same.
6133 (get_int_range): Cast away constness.
6134 (format_integer): Same.
6135 (get_string_length): Call get_range_strlen_dynamic. Handle
6136 null lendata.maxbound.
6137 (should_warn_p): Adjust argument scope qualifier.
6139 (format_directive): Same.
6140 (parse_directive): Same.
6141 (is_call_safe): Same.
6142 (try_substitute_return_value): Same.
6143 (sprintf_dom_walker::handle_printf_call): Rename...
6144 (handle_printf_call): ...to this. Initialize target to host charmap
6145 here instead of in pass_sprintf_length::execute.
6146 (struct call_info): Make global.
6147 (sprintf_dom_walker::compute_format_length): Make global.
6148 (sprintf_dom_walker::handle_gimple_call): Same.
6149 * passes.def (pass_sprintf_length): Replace with pass_strlen.
6150 * print-rtl.c (print_pattern): Reduce the number of spaces to
6151 avoid -Wformat-truncation.
6152 * tree-pass.h (make_pass_warn_printf): New function.
6153 * tree-ssa-strlen.c (strlen_optimize): New variable.
6154 (get_string_length): Add comments.
6155 (get_range_strlen_dynamic): New function.
6156 (check_and_optimize_call): New function.
6157 (handle_integral_assign): New function.
6158 (strlen_check_and_optimize_stmt): Factor code out into
6159 strlen_check_and_optimize_call and handle_integral_assign.
6160 (strlen_dom_walker::evrp): New member.
6161 (strlen_dom_walker::before_dom_children): Use evrp member.
6162 (strlen_dom_walker::after_dom_children): Use evrp member.
6163 (printf_strlen_execute): New function.
6164 (pass_strlen::gate): Update to handle printf calls.
6165 (dump_strlen_info): New function.
6166 (pass_data_warn_printf): New variable.
6167 (pass_warn_printf): New class.
6168 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
6169 (handle_printf_call): Same.
6170 * tree-vrp.c (value_range_base::type): Adjust assertion.
6171 * vr-values.c (vr_values::update_value_range): Use type of the first
6172 argument rather than the second.
6174 2019-08-26 Richard Biener <rguenther@suse.de>
6176 * config/i386/i386-features.c (general_remove_non_convertible_regs):
6178 (convert_scalars_to_vector): Do not call it.
6180 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6181 Uros Bizjak <ubizjak@gmail.com>
6183 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
6184 CASE_MATHFN_FLOATN for roundeven.
6185 * config/i386/i386.c (ix86_i387_mode_needed): Add case
6187 (ix86_mode_needed): Likewise.
6188 (ix86_mode_after): Likewise.
6189 (ix86_mode_entry): Likewise.
6190 (ix86_mode_exit): Likewise.
6191 (ix86_emit_mode_set): Likewise.
6192 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
6193 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
6194 (ix86_entity): Add I387_ROUNDEVEN.
6195 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
6196 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
6197 (define_int_iterator): Likewise.
6198 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
6199 (define_constant): Define ROUND_ROUNDEVEN mode.
6200 (define_attr): Add roundeven mode for i387_cw.
6201 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
6202 * internal-fn.def (ROUNDEVEN): New builtin function.
6203 * optabs.def (roundeven_optab): New optab.
6205 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6207 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
6209 * builtins.def: Added function definitions for roundeven function
6211 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
6212 function call. Adjust condition for floor, ceil, trunc and round.
6213 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
6214 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
6215 (integer_valued_real_call_p): Added case for roundeven function.
6216 * real.c (is_even): New function. Returns true if real number is even,
6217 otherwise returns false.
6218 (is_halfway_below): New function. Returns true if real number is
6219 halfway between two integers, else return false.
6220 (real_roundeven): New function. Round real number to nearest integer,
6221 rounding halfway cases towards even.
6222 * real.h (real_value): Added descriptive comments. Added function
6223 declaration for roundeven function.
6224 * doc/extend.texi (Other Builtins): List roundeven variants among
6225 functions which can be handled as builtins.
6227 2019-08-26 Richard Biener <rguenther@suse.de>
6231 * config/i386/i386-features.h (general_scalar_chain::defs_map):
6233 (general_scalar_chain::replace_with_subreg): Remove.
6234 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6235 (general_scalar_chain::convert_reg): Adjust signature.
6236 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
6237 iterate over all defs of a reg.
6238 (general_scalar_chain::replace_with_subreg): Remove.
6239 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6240 (general_scalar_chain::make_vector_copies): Populate defs_map,
6241 place copy only after defs that are used as vectors in the chain.
6242 (general_scalar_chain::convert_reg): Emit a copy for a specific
6243 def in a specific instruction.
6244 (general_scalar_chain::convert_op): All reg uses are converted here.
6245 (general_scalar_chain::convert_insn): Emit copies for scalar
6246 uses of defs here. Replace uses with the copies we created.
6247 Replace and convert the def. Adjust REG_DEAD notes, remove
6248 REG_EQUIV/EQUAL notes.
6249 (general_scalar_chain::convert_registers): Only handle copies
6250 into the chain here.
6252 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6254 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
6256 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6258 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
6259 Add nop_convert case.
6260 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
6261 Fold all statements if requested.
6262 * tree-ssa-propagate.h (class substitute_and_fold_engine):
6263 Allow to fold all statements.
6264 * tree-vrp.c (class vrp_folder):
6265 Let substitute_and_fold_engine fold all statements.
6267 2019-08-26 Richard Biener <rguenther@suse.de>
6269 PR tree-optimization/91526
6270 * passes.def: Note that after late FRE we do TODO_update_address_taken.
6271 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
6272 TODO_update_address_taken.
6274 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
6276 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
6279 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6281 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
6282 machine mode for unspec_volatile operand.
6284 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
6286 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
6287 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
6288 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
6289 (prefer_neon_for_64bits): Remove.
6290 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
6291 (tune_params): Remove PREF_NEON_64_FALSE uses.
6292 (arm_option_override): Remove prefer_neon selection code.
6293 (arm_print_tune_info): Remove prefer_neon_for_64bits.
6294 * gcc/config/arm/arm-protos.h (tune_params): Remove
6295 prefer_neon_for_64bits.
6296 (prefer_neon_for_64bits): Remove.
6298 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
6301 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
6302 and issue any diagnostics needed before collecting the pre-PCH
6305 2019-08-23 Jakub Jelinek <jakub@redhat.com>
6308 * common.opt (fexcess-precision=): Add Optimization flag. Use
6309 flag_excess_precision variable instead of
6310 flag_excess_precision_cmdline.
6311 * flags.h (class target_flag_state): Remove x_flag_excess_precision
6313 (flag_excess_precision): Don't define.
6314 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
6315 flag_excess_precision_cmdline. Remove comment.
6316 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
6317 and x_flag_excess_precision instead of
6318 frontend_set_flag_excess_precision_cmdline and
6319 x_flag_excess_precision_cmdline.
6320 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
6321 x_flag_excess_precision_cmdline.
6322 * toplev.c (init_excess_precision): Remove.
6323 (lang_dependent_init_target): Don't call it.
6325 2019-08-23 Martin Liska <mliska@suse.cz>
6327 * lto-wrapper.c (run_gcc): When setting jobserver
6328 set also parallel to 1. This was done so before r273908.
6330 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
6332 * config/arm/arm-cpus.in (cortex-m35p): New entry.
6333 (cortex-a76ae): Likewise.
6334 (cortex-a77): Likewise
6335 * config/arm/arm-tables.opt: Regenerate.
6336 * config/arm/arm-tune.md: Likewise.
6337 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
6338 cortex-a77 CPU options.
6340 2019-08-23 Martin Liska <mliska@suse.cz>
6342 * profile.c (instrument_values): Do not set
6344 * tree-profile.c (gimple_gen_interval_profiler): Remove
6346 (gimple_gen_pow2_profiler): Likewise.
6347 (gimple_gen_topn_values_profiler): Likewise.
6348 (gimple_gen_ic_profiler): Likewise.
6349 (gimple_gen_time_profiler): Likewise.
6350 (gimple_gen_average_profiler): Likewise.
6351 (gimple_gen_ior_profiler): Likewise.
6352 * value-prof.c (dump_histogram_value): Use default
6353 in switch statement instead of HIST_TYPE_MAX.
6354 (stream_in_histogram_value): Likewise.
6355 (gimple_duplicate_stmt_histograms): Do not
6356 use NULL for implicitly set arguments.
6357 (gimple_divmod_values_to_profile): Do not use
6359 (gimple_indirect_call_to_profile): Likewise.
6360 (gimple_find_values_to_profile): Use implicit
6361 function call arguments.
6362 * value-prof.h (gimple_alloc_histogram_value):
6364 (gimple_gen_interval_profiler): Remove last argument.
6365 (gimple_gen_pow2_profiler): Likewise.
6366 (gimple_gen_topn_values_profiler): Likewise.
6367 (gimple_gen_ic_profiler): Likewise.
6368 (gimple_gen_time_profiler): Likewise.
6369 (gimple_gen_average_profiler): Likewise.
6370 (gimple_gen_ior_profiler): Likewise.
6372 2019-08-22 Martin Sebor <msebor@redhat.com>
6375 * builtins.c (c_strlen): Rename argument and introduce new local.
6376 Set no-warning bit on original argument.
6377 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
6378 Fold empty and zero constructors into empty strings.
6379 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
6380 for missing initializers.
6381 * tree.c (build_string_literal): Handle optional argument.
6382 * tree.h (build_string_literal): Add defaulted argument.
6383 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
6384 no-warning bit on original expression.
6386 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6389 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6390 and UNSPEC_DARN_RAW.
6391 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
6393 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
6394 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
6395 (darn): Use an unspec_volatile, and UNSPECV_DARN.
6397 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6399 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6400 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
6401 * config/rs6000/rs6000.md (unspec): ... here.
6402 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
6403 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6404 cmpeqb, *cmpeqb_internal): Delete, move to...
6405 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
6406 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6407 cmpeqb, *cmpeqb_internal): ... here.
6409 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6411 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
6412 intrinsics if __ARM_FP.
6413 Use __ARM_FEATURE_CRC32 ifdef guard.
6415 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6417 * config/arm/arm.md (neon_for_64bits): Remove.
6418 (avoid_neon_for_64bits): Remove.
6419 (arm_adddi3): Always split early.
6420 (arm_subdi3): Always split early.
6421 (negdi2): Remove Neon expansion.
6422 (split zero_extend): Split before reload.
6423 (split sign_extend): Split before reload.
6425 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6427 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
6428 (qhs_extenddi_cstr): Likewise.
6429 * config/arm/arm.md (ashldi3): Always expand early.
6430 (ashlsi3): Likewise.
6431 (ashrsi3): Likewise.
6432 (zero_extend<mode>di2): Remove Neon variants.
6433 (extend<mode>di2): Likewise.
6434 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
6435 (signed_shift_di3_neon): Likewise.
6436 (unsigned_shift_di3_neon): Likewise.
6437 (ashrdi3_neon_imm_noclobber): Likewise.
6438 (lshrdi3_neon_imm_noclobber): Likewise.
6439 (<shift>di3_neon): Likewise.
6440 (split extend): Remove DI extend split patterns.
6442 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6444 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
6445 (split not): Add DImode not splitter.
6446 (anddi3): Remove pattern.
6447 (anddi3_insn): Likewise.
6448 (anddi_zesidi_di): Likewise.
6449 (anddi_sesdi_di): Likewise.
6450 (anddi_notdi_di): Likewise.
6451 (anddi_notzesidi_di): Likewise.
6452 (anddi_notsesidi_di): Likewise.
6454 (iordi3_insn): Likewise.
6455 (iordi_zesidi_di): Likewise.
6456 (iordi_sesidi_di): Likewise.
6458 (xordi3_insn): Likewise.
6459 (xordi_sesidi_di): Likewise.
6460 (xordi_zesidi_di): Likewise.
6461 (one_cmpldi2): Likewise.
6462 (one_cmpldi2_insn): Likewise.
6463 * config/arm/constraints.md: Remove De, Df, Dg constraints.
6464 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
6466 (iwmmxt_xordi3): Likewise.
6467 (iwmmxt_anddi3): Likewise.
6468 * config/arm/neon.md (orndi3_neon): Remove pattern.
6469 (anddi_notdi_di): Likewise.
6470 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
6471 (arm_iordi_operand_neon): Likewise.
6472 (arm_xordi_operand_neon): Likewise.
6473 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
6474 (iordi_notzesidi_di): Likewise.
6475 (iordi_notdi_zesidi): Likewise.
6476 (iordi_notsesidi_di): Likewise.
6478 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
6480 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
6482 (iorsi3_compare0_scratch): Likewise.
6484 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
6486 * config/aarch64/aarch64-simd-builtins.def:
6489 * config/aarch64/aarch64-simd.md:
6490 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
6491 (aarch64_st1x4<VALLDIF:mode>): Likewise.
6492 (aarch64_ld1_x4_<mode>): Likewise.
6493 (aarch64_st1_x4_<mode>): Likewise.
6494 * config/aarch64/arm_neon.h:
6495 (vld1_s8_x4): New function.
6496 (vld1q_s8_x4): Likewise.
6497 (vld1_s16_x4): Likewise.
6498 (vld1q_s16_x4): Likewise.
6499 (vld1_s32_x4): Likewise.
6500 (vld1q_s32_x4): Likewise.
6501 (vld1_u8_x4): Likewise.
6502 (vld1q_u8_x4): Likewise.
6503 (vld1_u16_x4): Likewise.
6504 (vld1q_u16_x4): Likewise.
6505 (vld1_u32_x4): Likewise.
6506 (vld1q_u32_x4): Likewise.
6507 (vld1_f16_x4): Likewise.
6508 (vld1q_f16_x4): Likewise.
6509 (vld1_f32_x4): Likewise.
6510 (vld1q_f32_x4): Likewise.
6511 (vld1_p8_x4): Likewise.
6512 (vld1q_p8_x4): Likewise.
6513 (vld1_p16_x4): Likewise.
6514 (vld1q_p16_x4): Likewise.
6515 (vld1_s64_x4): Likewise.
6516 (vld1_u64_x4): Likewise.
6517 (vld1_p64_x4): Likewise.
6518 (vld1q_s64_x4): Likewise.
6519 (vld1q_u64_x4): Likewise.
6520 (vld1q_p64_x4): Likewise.
6521 (vld1_f64_x4): Likewise.
6522 (vld1q_f64_x4): Likewise.
6523 (vst1_s8_x4): Likewise.
6524 (vst1q_s8_x4): Likewise.
6525 (vst1_s16_x4): Likewise.
6526 (vst1q_s16_x4): Likewise.
6527 (vst1_s32_x4): Likewise.
6528 (vst1q_s32_x4): Likewise.
6529 (vst1_u8_x4): Likewise.
6530 (vst1q_u8_x4): Likewise.
6531 (vst1_u16_x4): Likewise.
6532 (vst1q_u16_x4): Likewise.
6533 (vst1_u32_x4): Likewise.
6534 (vst1q_u32_x4): Likewise.
6535 (vst1_f16_x4): Likewise.
6536 (vst1q_f16_x4): Likewise.
6537 (vst1_f32_x4): Likewise.
6538 (vst1q_f32_x4): Likewise.
6539 (vst1_p8_x4): Likewise.
6540 (vst1q_p8_x4): Likewise.
6541 (vst1_p16_x4): Likewise.
6542 (vst1q_p16_x4): Likewise.
6543 (vst1_s64_x4): Likewise.
6544 (vst1_u64_x4): Likewise.
6545 (vst1_p64_x4): Likewise.
6546 (vst1q_s64_x4): Likewise.
6547 (vst1q_u64_x4): Likewise.
6548 (vst1q_p64_x4): Likewise.
6549 (vst1_f64_x4): Likewise.
6550 (vst1q_f64_x4): Likewise.
6552 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6554 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
6556 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6557 Richard Sandiford <richard.sandiford@arm.com>
6560 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
6561 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
6563 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6566 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
6567 in reg if it fails aarch64_plus_operand predicate.
6569 2019-08-21 Richard Biener <rguenther@suse.de>
6571 PR tree-optimization/91482
6572 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
6573 BUILT_IN_ASSUME_ALIGNED calls.
6575 2019-08-21 Richard Biener <rguenther@suse.de>
6579 * config/i386/i386-features.c
6580 (general_scalar_chain::make_vector_copies): Copy stack temporary
6581 rtx when using it multiple times.
6582 (general_scalar_chain::convert_reg): Likewise.
6584 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6586 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
6588 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
6590 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
6591 catch more redundant zero initialization cases.
6592 (dse_dom_walker::dse_optimize_stmt): Likewise.
6594 2019-08-20 Richard Biener <rguenther@suse.de>
6597 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
6598 by collect2 when targetm.have_ctors_dtors which avoids dragging
6599 in temporary filenames from LTO input objects.
6601 2019-08-20 Richard Biener <rguenther@suse.de>
6603 PR tree-optimization/37242
6604 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
6605 to (T)a + (T)b if we know that a + b does not overflow.
6607 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
6609 PR rtl-optimization/91347
6610 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
6611 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
6613 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6615 * calls.h (function_arg_info): Add a pass_by_reference field,
6616 defaulting to false.
6617 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
6618 when applying pass-by-reference semantics.
6619 (initialize_argument_information): Likewise.
6620 (emit_library_call_value_1): Likewise.
6621 * function.c (assign_parm_data_one): Remove passed_pointer field.
6622 (assign_parm_find_data_types): Don't set it.
6623 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
6624 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
6625 arg.pass_by_reference instead of passed_pointer.
6627 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6629 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
6630 into a single function_arg_info, updating its fields when we
6631 apply pass-by-reference and promotion semantics. Use the
6632 function_arg_info to track the mode rather than keeping it in
6633 a separate local variable.
6634 (initialize_argument_information): Likewise. Base the final
6635 arg_to_skip on this new function_arg_info rather than creating
6636 a new one from scratch.
6638 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6640 * function.c (assign_parm_data_one): Replace passed_type,
6641 promoted_mode and named_arg with a function_arg_info field.
6642 (assign_parm_find_data_types): Remove local variables and
6643 assign directly to "data". Make data->passed_mode shadow
6644 data->arg.mode until promotion, then assign the promoted
6645 mode to data->arg.mode.
6646 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
6647 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
6648 (assign_parm_remove_parallels, assign_parm_setup_block_p)
6649 (assign_parm_setup_block, assign_parm_setup_reg)
6650 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
6651 arg.mode instead of promoted_mode, arg.type instead of passed_type
6652 and arg.named instead of named_arg. Use data->arg for
6653 function_arg_info structures that had the field values passed_type,
6654 promoted_mode and named_arg. Base other function_arg_infos on
6655 data->arg, changing the necessary properties.
6657 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6659 * calls.h (apply_pass_by_reference_rules): Declare.
6660 * calls.c (apply_pass_by_reference_rules): New function.
6661 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
6662 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
6663 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
6664 * function.c (assign_parm_find_data_types): Likewise.
6665 * var-tracking.c (prepare_call_arguments): Likewise.
6667 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6669 * target.def (must_pass_in_stack): Take a function_arg_info instead
6670 of a mode and a type.
6671 * doc/tm.texi: Regenerate.
6672 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
6673 instead of a mode and a type.
6674 (must_pass_in_stack_var_size_or_pad): Likewise.
6675 * calls.c (must_pass_in_stack_var_size): Likewise.
6676 (must_pass_in_stack_var_size_or_pad): Likewise.
6677 (initialize_argument_information): Update call to
6678 targetm.calls.must_pass_in_stack.
6679 (must_pass_va_arg_on_stack): Likewise.
6680 * function.c (assign_parm_find_entry_rtl): Likewise.
6681 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
6682 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6683 (alpha_function_arg_advance): Likewise.
6684 * config/cr16/cr16.c (cr16_function_arg): Likewise.
6685 (cr16_function_arg_advance): Likewise.
6686 * config/cris/cris.c (cris_pass_by_reference): Likewise.
6687 (cris_arg_partial_bytes): Likewise.
6688 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6689 * config/lm32/lm32.c (lm32_function_arg): Likewise.
6690 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
6691 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
6692 * config/mips/mips.c (mips_pass_by_reference): Likewise.
6693 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
6694 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
6695 * config/sh/sh.c (sh_pass_by_reference): Likewise.
6696 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6697 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
6698 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
6699 instead of a mode and a type.
6700 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
6701 (fr30_num_arg_regs): Likewise.
6702 (fr30_setup_incoming_varargs): Update calls accordingly.
6703 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
6704 (fr30_function_arg_advance): Likewise.
6705 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
6706 instead of a mode and a type.
6707 * config/gcn/gcn.c (num_arg_regs): Likewise.
6708 (gcn_function_arg, gcn_function_arg_advance): Update calls to
6709 num_arg_regs and targetm.calls.must_pass_in_stack.
6710 (gcn_arg_partial_bytes): Likewise.
6711 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
6712 function_arg_info instead of a mode and a type.
6713 (classify_argument): Update call accordingly.
6714 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
6715 function_arg_info instead of a mode and a type.
6716 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
6718 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
6719 (rs6000_parm_needs_stack): Update call accordingly.
6720 (setup_incoming_varargs): Likewise.
6722 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6724 * target.def (callee_copies): Take a function_arg_info instead
6725 of a mode, type and named flag.
6726 * doc/tm.texi: Regenerate.
6727 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
6728 instead of a mode, type and named flag.
6729 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6730 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6731 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6732 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
6733 instead of a mode, type and named flag.
6734 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6735 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6736 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6737 * calls.h (reference_callee_copied): Take a function_arg_info
6738 instead of a mode, type and named flag.
6739 * calls.c (reference_callee_copied): Likewise.
6740 (initialize_argument_information): Update call accordingly.
6741 (emit_library_call_value_1): Likewise.
6742 * function.c (gimplify_parameters): Likewise.
6743 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
6744 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
6745 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
6746 * config/c6x/c6x.c (c6x_callee_copies): Delete.
6747 (TARGET_CALLEE_COPIES): Define to
6748 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6749 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
6750 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6751 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6752 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
6753 instead of a mode, type and named flag.
6754 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
6755 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6756 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6757 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
6758 * config/msp430/msp430.c (msp430_callee_copies): Delete.
6759 (TARGET_CALLEE_COPIES): Define to
6760 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6761 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
6762 instead of a mode, type and named flag.
6763 * config/sh/sh.c (sh_callee_copies): Likewise.
6764 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
6765 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6766 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6768 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6770 * target.def (function_arg_advance): Take a function_arg_info instead
6771 of a mode, type and named flag.
6772 * doc/tm.texi: Regenerate.
6773 * targhooks.h (default_function_arg_advance): Take a function_arg_info
6774 instead of a mode, type and named flag.
6775 * targhooks.c (default_function_arg_advance): Likewise.
6776 * calls.c (initialize_argument_information): Update call to
6777 targetm.calls.function_arg_advance.
6778 (emit_library_call_value_1): Likewise.
6779 * dse.c (get_call_args): Likewise.
6780 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6781 * function.c (assign_parms, gimplify_parameters): Likewise.
6782 * var-tracking.c (prepare_call_arguments): Likewise.
6783 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
6784 function_arg_info instead of a mode, type and named flag.
6785 (aarch64_setup_incoming_varargs): Update call accordingly.
6786 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
6787 function_arg_info instead of a mode, type and named flag.
6788 (alpha_setup_incoming_varargs): Update call accordingly.
6789 * config/arc/arc.c (arc_function_arg_advance): Take a
6790 function_arg_info instead of a mode, type and named flag.
6791 (arc_setup_incoming_varargs): Update call accordingly.
6792 * config/arm/arm.c (arm_function_arg_advance): Take a
6793 function_arg_info instead of a mode, type and named flag.
6794 (cmse_func_args_or_return_in_stack): Update call accordingly.
6795 (arm_function_ok_for_sibcall): Likewise.
6796 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6797 * config/avr/avr.c (avr_function_arg_advance): Take a
6798 function_arg_info instead of a mode, type and named flag.
6799 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
6800 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
6801 (c6x_call_saved_register_used): Update call accordingly.
6802 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
6803 function_arg_info instead of a mode, type and named flag.
6804 * config/cris/cris.c (cris_function_arg_advance): Likewise.
6805 * config/csky/csky.c (csky_function_arg_advance): Likewise.
6806 (csky_setup_incoming_varargs): Update call accordingly.
6807 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
6808 function_arg_info instead of a mode, type and named flag.
6809 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
6810 * config/frv/frv.c (frv_function_arg_advance): Likewise.
6811 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
6812 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
6813 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
6814 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
6815 (ix86_setup_incoming_varargs): Update call accordingly.
6816 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
6817 function_arg_info instead of a mode, type and named flag.
6818 (ia64_setup_incoming_varargs): Update call accordingly.
6819 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
6820 function_arg_info instead of a mode, type and named flag.
6821 (iq2000_expand_prologue): Update call accordingly.
6822 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
6823 function_arg_info instead of a mode, type and named flag.
6824 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
6825 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
6826 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
6827 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
6828 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
6830 (microblaze_expand_prologue): Update call accordingly.
6831 * config/mips/mips.c (mips_function_arg_advance): Take a
6832 function_arg_info instead of a mode, type and named flag.
6833 (mips_setup_incoming_varargs): Update call accordingly.
6834 (mips_output_args_xfer): Likewise.
6835 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
6836 function_arg_info instead of a mode, type and named flag.
6837 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
6838 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
6839 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
6840 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
6841 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
6842 (nios2_setup_incoming_varargs): Update call accordingly.
6843 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
6844 function_arg_info instead of a mode, type and named flag.
6845 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
6846 * config/pa/pa.c (pa_function_arg_advance): Likewise.
6847 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
6848 * config/pru/pru.c (pru_function_arg_advance): Likewise.
6849 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
6850 (riscv_setup_incoming_varargs): Update call accordingly.
6851 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
6852 function_arg_info instead of a mode, type and named flag.
6853 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
6855 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
6856 (rs6000_parm_needs_stack): Update call accordingly.
6857 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
6858 instead of a mode, type and named flag.
6859 * config/s390/s390.c (s390_function_arg_advance): Likewise.
6860 (s390_call_saved_register_used): Update call accordingly.
6861 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
6862 instead of a mode, type and named flag.
6863 (sh_output_mi_thunk): Update call accordingly.
6864 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
6865 function_arg_info instead of a mode, type and named flag.
6866 * config/spu/spu.c (spu_function_arg_advance): Likewise.
6867 (spu_setup_incoming_varargs): Update call accordingly.
6868 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
6869 function_arg_info instead of a mode, type and named flag.
6870 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
6871 (tilegx_setup_incoming_varargs): Update call accordingly.
6872 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
6873 function_arg_info instead of a mode, type and named flag.
6874 (tilegx_setup_incoming_varargs): Update call accordingly.
6875 * config/v850/v850.c (v850_function_arg_advance): Take a
6876 function_arg_info instead of a mode, type and named flag.
6877 * config/vax/vax.c (vax_function_arg_advance): Likewise.
6878 * config/visium/visium.c (visium_function_arg_advance): Likewise.
6879 (visium_setup_incoming_varargs): Update call accordingly.
6880 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
6881 function_arg_info instead of a mode, type and named flag.
6883 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6885 * target.def (function_arg, function_incoming_arg): Take a
6886 function_arg_info instead of a mode, tree and named flag.
6887 * doc/tm.texi: Regenerate.
6888 * targhooks.h (default_function_arg): Take a function_arg_info
6889 instead of a mode, tree and named flag.
6890 (default_function_incoming_arg): Likewise.
6891 * targhooks.c (default_function_arg): Likewise.
6892 (default_function_incoming_arg): Likewise.
6893 * calls.h (function_arg_info::end_marker_p): New function.
6894 (function_arg_info::end_marker): Likewise.
6895 * calls.c (prepare_call_address, initialize_argument_information)
6896 (expand_call, emit_library_call_value_1): Update calls to
6897 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
6898 * dse.c: Include calls.h.
6899 (get_call_args): Update call to targetm.calls.function_arg.
6900 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6901 * var-tracking.c (prepare_call_arguments): Likewise.
6902 * function.c (assign_parm_find_entry_rtl): Update call to
6903 targetm.calls.function_incoming_arg.
6904 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
6905 function_arg_info instead of a mode, tree and named flag.
6906 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6907 * config/arc/arc.c (arc_function_arg): Likewise.
6908 * config/arm/arm.c (arm_function_arg): Likewise.
6909 (cmse_func_args_or_return_in_stack): Update call accordingly.
6910 (arm_function_ok_for_sibcall): Likewise.
6911 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6912 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
6913 instead of a mode, tree and named flag.
6914 * config/bfin/bfin.c (bfin_function_arg): Likewise.
6915 * config/c6x/c6x.c (c6x_function_arg): Likewise.
6916 (c6x_call_saved_register_used): Update call accordingly.
6917 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
6918 instead of a mode, tree and named flag.
6919 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
6920 (cris_function_arg_1): Likewise.
6921 * config/csky/csky.c (csky_function_arg): Likewise.
6922 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
6923 * config/fr30/fr30.c (fr30_function_arg): Likewise.
6924 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
6925 (frv_function_arg_1): Likewise.
6926 * config/ft32/ft32.c (ft32_function_arg): Likewise.
6927 * config/gcn/gcn.c (gcn_function_arg): Likewise.
6928 * config/h8300/h8300.c (h8300_function_arg): Likewise.
6929 * config/i386/i386.c (ix86_function_arg): Likewise.
6930 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
6931 (ia64_function_arg_1): Likewise.
6932 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
6933 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
6935 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
6936 instead of a mode, tree and named flag.
6937 * config/m32c/m32c.c (m32c_function_arg): Likewise.
6938 * config/m32r/m32r.c (m32r_function_arg): Likewise.
6939 * config/m68k/m68k.c (m68k_function_arg): Likewise.
6940 * config/mcore/mcore.c (mcore_function_arg): Likewise.
6941 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
6942 (microblaze_expand_prologue): Update call accordingly.
6943 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
6944 instead of a mode, tree and named flag.
6945 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
6946 (mmix_function_arg_1): Likewise.
6947 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
6948 * config/moxie/moxie.c (moxie_function_arg): Likewise.
6949 * config/msp430/msp430.c (msp430_function_arg): Likewise.
6950 * config/nds32/nds32.c (nds32_function_arg): Likewise.
6951 * config/nios2/nios2.c (nios2_function_arg): Likewise.
6952 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
6953 (nvptx_function_incoming_arg): Likewise.
6954 * config/or1k/or1k.c (or1k_function_arg): Likewise.
6955 * config/pa/pa.c (pa_function_arg): Likewise.
6956 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
6957 * config/pru/pru.c (pru_function_arg): Likewise.
6958 * config/riscv/riscv.c (riscv_function_arg): Likewise.
6959 * config/rl78/rl78.c (rl78_function_arg): Likewise.
6960 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
6961 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
6962 (rs6000_parm_needs_stack): Update call accordingly.
6963 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
6964 instead of a mode, tree and named flag.
6965 * config/s390/s390.c (s390_function_arg): Likewise.
6966 (s390_call_saved_register_used): Update call accordingly.
6967 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
6968 instead of a mode, tree and named flag.
6969 (sh_output_mi_thunk): Update call accordingly.
6970 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
6971 (sparc_function_incoming_arg): Take a function_arg_info instead of
6972 a mode, tree and named flag.
6973 * config/spu/spu.c (spu_function_arg): Likewise.
6974 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6975 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
6976 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
6977 * config/v850/v850.c (v850_function_arg): Likewise.
6978 * config/vax/vax.c (vax_function_arg): Likewise.
6979 * config/visium/visium.c (visium_function_arg): Likewise.
6980 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
6981 (xtensa_function_incoming_arg): Likewise.
6983 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6985 * target.def (setup_incoming_varargs): Take a function_arg_info
6986 instead of a mode and tree.
6987 * doc/tm.texi: Regenerate.
6988 * targhooks.h (default_setup_incoming_varargs): Take a
6989 function_arg_info instead of a mode and tree.
6990 * targhooks.c (default_setup_incoming_varargs): Likewise.
6991 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
6992 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
6993 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
6994 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
6995 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
6996 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
6997 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
6998 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
7000 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
7001 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
7002 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
7003 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
7004 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
7005 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
7006 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
7007 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
7008 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
7009 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
7010 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
7011 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
7012 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
7013 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
7014 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
7015 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
7016 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
7017 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
7018 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
7019 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
7020 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
7021 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
7022 * function.c (assign_parms_setup_varargs): Update call to
7023 targetm.calls.setup_incoming_varargs.
7025 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7027 * target.def (pass_by_reference): Take a function_arg_info instead
7028 of a mode, type and named flag.
7029 * doc/tm.texi: Regenerate.
7030 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
7032 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
7033 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
7034 function_arg_info instead of a mode, type and named flag.
7035 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
7036 * calls.h (pass_by_reference): Take a function_arg_info instead of a
7037 mode, type and named flag.
7038 * calls.c (pass_by_reference): Likewise.
7039 (pass_va_arg_by_reference): Update call accordingly.
7040 (initialize_argument_information): Likewise.
7041 (emit_library_call_value_1): Likewise.
7042 * function.c (assign_parm_find_data_types): Likewise.
7043 * var-tracking.c (prepare_call_arguments): Likewise.
7044 * stor-layout.c: Include calls.h.
7045 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
7046 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
7047 function_arg_info instead of a mode, type and named flag.
7048 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
7049 * config/arc/arc.c (arc_pass_by_reference): Likewise.
7050 * config/arm/arm.c (arm_pass_by_reference): Likewise.
7051 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
7052 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
7053 (c6x_call_saved_register_used): Update call to pass_by_reference.
7054 * config/cris/cris.c (cris_pass_by_reference): Take a
7055 function_arg_info instead of a mode, type and named flag.
7056 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
7057 function_arg_info instead of a mode, type and named flag.
7058 (epiphany_arg_partial_bytes): Update call accordingly.
7059 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
7060 function_arg_info instead of a mode, type and named flag.
7061 (ft32_arg_partial_bytes): Update call accordingly.
7062 * config/i386/i386.c (ix86_pass_by_reference): Take a
7063 function_arg_info instead of a mode, type and named flag.
7064 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
7065 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
7066 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
7067 (m32r_return_in_memory): Update call accordingly.
7068 * config/mips/mips.c (mips_pass_by_reference): Take a
7069 function_arg_info instead of a mode, type and named flag.
7070 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
7071 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
7072 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
7073 (moxie_arg_partial_bytes): Update call accordingly.
7074 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
7075 function_arg_info instead of a mode, type and named flag.
7076 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
7077 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
7078 * config/pa/pa.c (pa_pass_by_reference): Likewise.
7079 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
7080 (riscv_return_in_memory): Update call accordingly.
7081 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
7082 function_arg_info instead of a mode, type and named flag.
7083 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
7084 (rs6000_parm_needs_stack): Update call to pass_by_reference.
7085 * config/s390/s390.c (s390_pass_by_reference): Take a
7086 function_arg_info instead of a mode, type and named flag.
7087 (s390_call_saved_register_used): Update call accordingly.
7088 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
7089 instead of a mode, type and named flag.
7090 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
7091 * config/spu/spu.c (spu_pass_by_reference): Likewise.
7092 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
7093 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
7094 * config/v850/v850.c (v850_pass_by_reference): Likewise.
7095 * config/visium/visium.c (visium_pass_by_reference): Likewise.
7097 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7099 * target.def (arg_partial_bytes): Take a function_arg_info instead
7100 of a mode, type and named flag.
7101 * doc/tm.texi: Regenerate.
7102 * target.h (function_arg_info): Declare.
7103 * calls.h (function_arg_info): New class.
7104 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
7105 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
7106 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
7107 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
7108 * calls.c (initialize_argument_information): Update call to
7109 targetm.calls.partial_bytes.
7110 (emit_library_call_value_1): Likewise.
7111 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7112 * function.c (assign_parm_find_entry_rtl): Likewise.
7113 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
7114 function_arg_info instead of a mode, type and named flag.
7115 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
7116 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
7117 (cmse_func_args_or_return_in_stack): Update accordingly.
7118 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
7119 function_arg_info instead of a mode, type and named flag.
7120 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
7121 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
7122 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
7123 * config/fr30/fr30.c: Include calls.h.
7124 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
7125 type and named flag.
7126 * config/frv/frv.c: Include calls.h.
7127 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
7128 type and named flag.
7129 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
7130 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
7131 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
7132 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
7133 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
7134 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
7135 * config/microblaze/microblaze.c (function_arg_partial_bytes):
7137 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
7138 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
7139 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
7140 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
7141 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
7142 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
7143 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
7144 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
7145 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
7146 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
7147 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
7148 (rs6000_parm_needs_stack): Update call accordingly.
7149 * config/sh/sh.c (sh_arg_partial_bytes): Take a
7150 function_arg_info instead of a mode, type and named flag.
7151 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
7152 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
7154 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7156 * calls.h (must_pass_va_arg_in_stack): Declare.
7157 * calls.c (must_pass_va_arg_in_stack): New function.
7158 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
7159 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
7160 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
7162 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7164 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
7166 * calls.h (pass_va_arg_by_reference): Declare.
7167 * calls.c (pass_va_arg_by_reference): New function.
7168 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
7169 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
7170 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
7171 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
7172 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
7173 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
7174 (mips_gimplify_va_arg_expr): Likewise.
7175 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
7176 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
7177 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
7178 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
7179 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
7180 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
7181 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
7182 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
7183 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
7184 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7185 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
7187 2019-08-20 Richard Biener <rguenther@suse.de>
7190 * config/i386/i386-features.c (general_scalar_chain::convert_op):
7191 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
7192 (convert_scalars_to_vector): Add timode_p parameter and use it
7193 to guard TImode-only operation.
7194 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
7195 (pass_stv::execute): Pass down timode_p.
7197 2019-08-20 Lili Cui <lili.cui@intel.com>
7199 * common/config/i386/i386-common.c
7200 (processor_names): Add tigerlake and cooperlake.
7201 (processor_alias_table): Add tigerlake and cooperlake.
7202 * config.gcc: Add -march=tigerlake and cooperlake.
7203 * config/i386/driver-i386.c
7204 (host_detect_local_cpu): Detect tigerlake and cooperlake.
7205 Add "has_avx" to classify processor.
7206 * config/i386/i386-builtins.c (processor_model) :
7207 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
7208 (arch_names_table): Add tigerlake and cooperlake.
7209 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
7210 and PROCESSOR_COOPERLAKE.
7211 * config/i386/i386-c.c
7212 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
7213 * config/i386/i386-options.c
7214 (m_TIGERLAKE) : Define.
7215 (m_COOPERLAKE) : Ditto.
7216 (m_CORE_AVX512): Ditto.
7217 (processor_cost_table): Add cascadelake.
7218 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
7219 * config/i386/i386.h
7220 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
7221 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7222 (PTA_MOVDIRI): Ditto.
7223 (PTA_MOVDIR64B): Ditto.
7224 (PTA_COOPERLAKE) : Ditto.
7225 (PTA_TIGERLAKE) : Ditto.
7226 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7227 * doc/extend.texi: Add tigerlake and cooperlake.
7228 * doc/invoke.texi: Add tigerlake and cooperlake.
7230 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
7232 * doc/install.texi (Specific, alpha): Remove note to use
7233 binutils 2.11.2 or later.
7235 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7238 * function.c (assign_parm_find_stack_rtl): Use larger alignment
7241 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
7243 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
7244 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
7245 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
7246 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
7247 * config/aarch64/constraints.md (Dt): New constraint
7248 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
7250 2019-08-19 Richard Biener <rguenther@suse.de>
7252 PR tree-optimization/91403
7253 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
7254 cases we can handle with tail-recursion...
7255 (follow_ssa_edge_expr): ... here. Do so.
7257 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
7260 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
7261 implemented for -fsanitize=kernel-address, and merge check logic
7262 with -fsanitize=address.
7264 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
7266 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
7267 for cpu and machine. Factor 64/32b builtins.
7269 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
7271 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
7272 gone, point to sourceforge.net.
7274 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7276 * doc/ux.texi (User Experience Guidelines): Update reference.
7278 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7280 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
7283 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
7285 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
7286 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
7288 2019-08-16 Martin Sebor <msebor@redhat.com>
7290 * tree.def (TYPE_SIZE): Clarify.
7291 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
7293 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
7295 PR tree-optimization/91109
7296 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
7297 * lra.c (lra): Use lra_need_for_scratch_reg_p.
7298 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
7300 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
7302 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
7303 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
7304 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
7305 (uavg<mode>3_ceil): New expander.
7306 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
7307 mode iterator when creating CONST1_RTX.
7308 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
7309 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
7310 mode iterator for const1_operand predicate.
7312 2019-08-16 Richard Biener <rguenther@suse.de>
7314 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
7315 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
7317 (follow_ssa_edge_in_condition_phi_branch): Likewise.
7318 (analyze_evolution_in_loop): Likewise.
7319 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
7320 (follow_ssa_edge_expr): ... here. Refactor code.
7322 2019-08-16 Richard Biener <rguenther@suse.de>
7325 * config/i386/i386-features.c
7326 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
7328 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7331 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
7332 only if subst_name matches curr_attr string.
7334 2019-08-16 Richard Biener <rguenther@suse.de>
7336 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
7337 stmt at gsi_p, instead replace it with a NOP removed later.
7338 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
7339 that became dead because of that.
7341 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
7343 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
7344 for which we can't represent a range.
7345 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
7347 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
7348 Set VR_UNDEFINED if type is not supported.
7349 * tree-ssanames.c (get_range_info): Pass type to set_varying.
7350 * tree-vrp.c (value_range_base::check): Assert that a varying has
7352 (value_range_base::equal_p): Early bail for undefines.
7353 (value_range_base::set_varying): Accept a type.
7354 (value_range::set_varying): Same.
7355 (value_range_base::type): VARYING can have a type, while UNDEFINE
7357 (value_range_base::dump): Print type for VARYING nodes.
7358 (value_range_base::set): Add type to VARYING.
7359 (extract_range_from_multiplicative_op): Pass type to set_varying.
7360 (extract_range_from_binary_expr): Same.
7361 (value_range_base::intersect_helper): Same.
7362 (value_range_base::union_helper): Same.
7363 (value_range_base::normalize_symbolics): Same.
7364 (determine_value_range_1): Same.
7365 * tree-vrp.h (class value_range_base): Add type to set_varying.
7366 Add prototype for dump(void).
7367 Add prototype for supports_type_p.
7368 (class value_range): Add type to set_varying.
7369 Add prototype for dump(void).
7370 * vr-values.c (set_value_range_to_truthvalue): Pass type to
7372 (vr_values::get_lattice_entry): Set varying even if propagation
7374 Pass type to set_varying.
7375 (vr_values::get_value_range): Remove vr_const_varying.
7376 Reallocate the lattice if needed.
7377 (vr_values::update_value_range): Pass type to set_varying.
7378 (vr_values::extract_range_for_var_from_comparison_expr): Same.
7379 (vr_values::extract_range_from_binary_expr): Same.
7380 (vr_values::extract_range_from_unary_expr): Same.
7381 (vr_values::extract_range_from_cond_expr): Same.
7382 (vr_values::check_for_binary_op_overflow): Same.
7383 (vr_values::extract_range_basic): Same.
7384 (vr_values::extract_range_from_assignment): Same.
7385 (vr_values::vr_values): Increase size of num_vr_values.
7386 (vr_values::extract_range_from_phi_node): Pass type to
7389 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
7392 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
7393 for costs of hard register moves.
7394 (ix86_register_move_cost): Likewise.
7395 * config/i386/i386.h (processor_costs): Move costs of hard
7396 register moves to hard_register. Add int_load, int_store,
7397 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7398 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
7399 for costs of RTL expressions.
7400 * config/i386/x86-tune-costs.h: Move costs of hard register
7401 moves to hard_register. Duplicate int_load, int_store,
7402 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7403 sse_load, sse_store for costs of RTL expressions.
7405 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7407 * target.def (setup_incoming_vararg_bounds): Remove.
7408 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
7409 * doc/tm.texi: Regenerate.
7410 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
7411 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
7412 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
7413 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
7415 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7417 MSP430: Fix lines over 80 characters long in
7418 config/msp430/*.{c,h} files
7420 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
7421 specifier in string.
7422 (msp430_select_hwmult_lib): Split line more than 80 characters long.
7423 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
7424 redundant old comment.
7425 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
7426 Split line more than 80 characters long.
7427 * config/msp430/msp430.c (msp430_option_override): Likewise.
7428 (msp430_return_in_memory): Likewise.
7429 (msp430_gimplify_va_arg_expr): Likewise.
7430 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
7431 (msp430_legitimate_constant): Likewise.
7432 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
7433 (msp430_attr): Likewise.
7434 (msp430_data_attr): Likewise.
7435 (msp430_start_function): Likewise.
7436 (gen_prefix): Likewise.
7437 (msp430_init_sections): Likewise.
7438 (msp430_select_section): Likewise.
7439 (msp430_function_section): Likewise.
7440 (msp430_unique_section): Likewise.
7441 (msp430_output_aligned_decl_common): Likewise.
7442 (msp430_do_not_relax_short_jumps): Likewise.
7443 (msp430_init_builtins): Likewise.
7444 (msp430_expand_delay_cycles): Likewise.
7445 (msp430_expand_prologue): Likewise.
7446 (msp430_expand_epilogue): Likewise.
7447 (msp430_expand_helper): Likewise.
7448 (msp430_split_movsi): Likewise.
7449 (msp430_print_operand): Likewise.
7450 (msp430_return_addr_rtx): Likewise.
7451 (msp430x_extendhisi): Likewise.
7452 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
7453 (ASM_SPEC): Likewise.
7454 Remove very obvious comments.
7455 (LIB_SPEC): Split line more than 80 characters long.
7456 (EH_RETURN_HANDLER_RTX): Likewise.
7457 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7459 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7461 MSP430: Fix whitespace errors and incorrect indentation in
7462 config/msp430/*.{c,h} files
7464 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
7465 (msp430_select_hwmult_lib): Likewise.
7466 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
7467 (msp430_extract_mcu_data): Likewise.
7468 (struct t_msp430_mcu_data): Likewise.
7469 * config/msp430/msp430.c (struct machine_function): Remove whitespace
7470 before left square bracket.
7471 (msp430_option_override): Fix indentation.
7472 (msp430_hard_regno_nregs_with_padding): Likewise.
7473 (msp430_initial_elimination_offset): Likewise.
7474 (msp430_special_register_convention_p): Remove whitespace before left
7475 square bracket and after exclamation mark.
7476 (msp430_evaluate_arg): Likewise.
7477 (msp430_callee_copies): Fix indentation.
7478 (msp430_gimplify_va_arg_expr): Likewise.
7479 (msp430_function_arg_advance): Remove whitespace before left square
7481 (reg_ok_for_addr): Likewise.
7482 (msp430_preserve_reg_p): Likewise.
7483 (msp430_compute_frame_info): Likewise.
7484 (msp430_asm_output_addr_const_extra): Add space between function name
7485 and open parenthesis.
7486 (has_section_name): Fix indentation.
7487 (msp430_attr): Remove trailing whitespace.
7488 (msp430_section_attr): Likewise.
7489 (msp430_data_attr): Likewise.
7490 (struct msp430_attribute_table): Fix comment and whitespace.
7491 (msp430_start_function): Remove whitespace before left square bracket.
7492 Add space between function name and open parenthesis.
7493 (msp430_select_section): Remove trailing whitespace.
7494 (msp430_section_type_flags): Remove trailing whitespace.
7495 (msp430_unique_section): Remove space before closing parenthesis.
7496 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
7497 (msp430_builtins): Remove whitespace before left square bracket.
7498 (msp430_init_builtins): Fix indentation.
7499 (msp430_expand_prologue): Remove whitespace before left square bracket.
7500 Remove space before closing parenthesis.
7501 (msp430_expand_epilogue): Remove whitespace before left square bracket.
7502 (msp430_split_movsi): Remove space before closing parenthesis.
7503 (helper_function_name_mappings): Fix indentation.
7504 (msp430_use_f5_series_hwmult): Fix whitespace.
7505 (use_32bit_hwmult): Likewise.
7506 (msp430_no_hwmult): Likewise.
7507 (msp430_output_labelref): Remove whitespace before left square bracket.
7508 (msp430_print_operand_raw): Likewise.
7509 (msp430_print_operand_addr): Likewise.
7510 (msp430_print_operand): Add two spaces after '.' in comment.
7511 Fix trailing whitespace.
7512 (msp430x_extendhisi): Fix indentation.
7513 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
7515 (PC_REGNUM): Likewise.
7516 (STACK_POINTER_REGNUM): Likewise.
7517 (CC_REGNUM): Likewise.
7519 2019-08-15 Richard Biener <rguenther@suse.de>
7522 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
7524 (general_scalar_chain::make_vector_copies): Use it.
7526 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
7528 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
7530 2019-08-15 Martin Liska <mliska@suse.cz>
7532 * tree-ssa-dce.c (propagate_necessity): We can't reach now
7533 operators with no arguments.
7534 (eliminate_unnecessary_stmts): Likewise here.
7536 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
7538 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
7539 <case COMPARE>: Revert 2019-08-14 change.
7540 (convertible_comparison_p): Revert 2019-08-14 change. Return false
7541 for (TARGET_64BIT || mode != DImode).
7543 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
7545 * tree-vrp.c (value_range_base::set): Merge in code from
7546 value_range_base::set_and_canonicalize.
7547 Enforce canonicalization at set time.
7548 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
7549 (value_range_base::set_undefined): Inline call to set().
7550 (value_range_base::set_varying): Same.
7551 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
7552 (vrp_val_max): New argument handle_pointers.
7553 (vrp_val_min): Same.
7554 (ranges_from_anti_range): Same.
7555 (extract_range_into_wide_ints): Use tree argument instead of sign
7557 (extract_range_from_multiplicative_op): Take in tree type instead
7558 of precision and sign. Adapt function for canonicalized ranges.
7559 (extract_range_from_binary_expr): Pass type to
7560 extract_range_from_multiplicative_op.
7561 Adapt for canonicalized ranges.
7562 (extract_range_from_unary_expr): Same.
7563 (value_range_base::intersect_helper): Adjust for canonicalized
7565 (value_range_base::union_helper): Same.
7566 (value_range_base::normalize_symbolics): New.
7567 * tree-vrp.h (class value_range_base): Remove
7568 set_and_canonicalize.
7569 New prototype for normalize_symbolics.
7570 (class value_range): Remove set_and_canonicalize.
7571 (vrp_val_min): Adjust prototype.
7572 (vrp_val_max): Same.
7574 (vr_values::extract_range_for_var_from_comparison_expr): Call set
7575 instead of set_and_canonicalize.
7577 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7580 * tree-vect-stmts.c (vectorizable_call): Check that the function
7581 is a BUILT_IN_MD function before passing it to
7582 targetm.vectorize.builtin_md_vectorized_function.
7584 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7586 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
7587 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
7588 (aarch64_select_early_remat_modes): Use it.
7590 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7592 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
7593 16 for SVE predicates even if they are fixed-length.
7595 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7597 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
7598 operand order match the MOV /Z alias.
7600 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7602 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
7603 the vector pattern as an aarch64_svpattern argument. Update the
7604 overloaded caller accordingly.
7605 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
7606 (aarch64_output_sve_vector_inc_dec): Likewise.
7608 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7610 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
7611 multiplication case, try to compute VG * (lowest set bit) directly
7612 rather than always basing the multiplication on VG. Use
7613 expand_mult for the multiplication if we can.
7615 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7617 * config/aarch64/aarch64-protos.h
7618 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
7619 (aarch64_sve_inc_dec_immediate_p): Rename to...
7620 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7621 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
7622 (aarch64_output_sve_scalar_inc_dec): Declare.
7623 (aarch64_output_sve_inc_dec_immediate): Rename to...
7624 (aarch64_output_sve_vector_inc_dec): ...this.
7625 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
7626 (aarch64_output_sve_scalar_inc_dec): New functions.
7627 (aarch64_output_sve_addvl_addpl): Remove the base and offset
7628 arguments. Only handle true ADDVL and ADDPL instructions;
7629 don't emit an INC or DEC.
7630 (aarch64_sve_inc_dec_immediate_p): Rename to...
7631 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7632 (aarch64_output_sve_inc_dec_immediate): Rename to...
7633 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
7634 aarch64_sve_vector_inc_dec_immediate_p.
7635 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
7636 (aarch64_sve_plus_immediate): New predicates.
7637 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
7638 rather than aarch64_sve_addvl_addpl_immediate.
7639 (aarch64_sve_inc_dec_immediate): Rename to...
7640 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
7641 aarch64_sve_vector_inc_dec_immediate_p.
7642 (aarch64_sve_add_operand): Update accordingly.
7643 * config/aarch64/constraints.md (Uai): New constraint.
7644 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
7645 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
7646 operand into a register if it satisfies aarch64_sve_plus_immediate.
7647 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
7648 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
7649 * config/aarch64/aarch64-sve.md (add<mode>3): Call
7650 aarch64_output_sve_vector_inc_dec instead of
7651 aarch64_output_sve_inc_dec_immediate.
7653 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7655 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
7656 (UNSPEC_REVW): New constants.
7657 (elem_bits): New mode attribute.
7658 (SVE_INT_UNARY): New int iterator.
7659 (optab): Handle UNSPEC_REV[BHW].
7660 (sve_int_op): New int attribute.
7661 (min_elem_bits): Handle VNx16QI and the predicate modes.
7662 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
7663 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
7664 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
7665 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
7666 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
7667 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
7668 unspecs based on the total width of the reversed data.
7669 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
7670 reinterpret followed by a subreg on big-endian targets.
7672 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7673 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7675 * config/aarch64/aarch64-sve.md
7676 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
7677 alternatives in which one of the inputs is in the same register
7680 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7682 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
7683 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
7685 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7687 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
7688 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
7690 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7691 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7693 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
7694 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
7695 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
7697 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7698 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7700 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
7701 Add an alternative that uses reversed shifts.
7703 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7705 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
7708 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7710 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
7711 a commutativity marker.
7713 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7714 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7716 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
7717 (aarch64_prepare_sve_cond_int_fma): Declare.
7718 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
7719 (aarch64_prepare_sve_int_fma): New functions.
7720 (aarch64_prepare_sve_cond_int_fma): Likewise.
7721 * config/aarch64/aarch64-sve.md
7722 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
7723 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
7724 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
7725 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
7726 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
7727 (*madd<mode>): Rename to...
7728 (*fma<mode>4): ...this.
7729 (*msub<mode>): Rename to...
7730 (*fnma<mode>4): ...this.
7732 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7733 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7735 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
7736 Print 2.0 naturally.
7737 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
7738 * config/aarch64/predicates.md
7739 (aarch64_sve_float_negated_arith_immediate): New predicate,
7740 renamed from aarch64_sve_float_arith_with_sub_immediate.
7741 (aarch64_sve_float_arith_with_sub_immediate): Test for both
7742 positive and negative constants.
7743 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
7744 or an aarch64_sve_float_arith_with_sub_immediate.
7745 * config/aarch64/constraints.md (vsN): Use
7746 aarch64_sve_float_negated_arith_immediate.
7747 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
7749 (sve_pred_fp_rhs2_immediate): New int attribute.
7750 * config/aarch64/aarch64-sve.md
7751 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
7752 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
7753 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
7754 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
7755 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
7756 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
7758 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7759 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7761 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
7762 (*aarch64_cond_abd<SVE_F:mode>_3)
7763 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
7765 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7766 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7768 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
7769 (*aarch64_cond_<su>abd<mode>_any): New patterns.
7771 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7772 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7774 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
7775 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
7776 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
7777 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
7779 * optabs.h (create_convert_operand_from): Expand comment.
7780 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
7781 when mapping scalar rtxes to vector operands.
7782 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
7783 ashiftrt and lshiftrt.
7784 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
7785 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
7786 (*cond_<optab><mode>_any_const): New patterns.
7788 2019-08-15 Martin Liska <mliska@suse.cz>
7791 * cgraph.c (cgraph_node::remove): When setting
7792 n->origin = NULL for all nested functions, reset
7795 2019-08-15 Martin Liska <mliska@suse.cz>
7797 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
7800 2019-08-15 Martin Liska <mliska@suse.cz>
7803 * passes.c (order): Remove.
7804 (uid_hash_t): Likewise).
7805 (remove_cgraph_node_from_order): Remove from set
7806 of pointers (cgraph_node *).
7807 (insert_cgraph_node_to_order): New.
7808 (duplicate_cgraph_node_to_order): New.
7809 (do_per_function_toporder): Register all 3 cgraph hooks.
7810 Skip removed_nodes now as we know about all of them.
7812 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
7814 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
7815 <case E_V8QImode>: Use vector_set path for
7816 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7817 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
7818 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7820 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7822 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
7824 2019-08-14 Martin Sebor <msebor@redhat.com>
7826 PR tree-optimization/91294
7827 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
7828 source length as exact.
7830 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
7832 * doc/extend.texi: Add "noinit" attribute documentation.
7833 * doc/sourcebuild.texi: Add noinit effective target documentation.
7834 * varasm.c (default_section_type_flags): Add support for "noinit"
7836 (default_elf_select_section): Add support for "noinit" attribute.
7837 * config/msp430/msp430.c (msp430_attribute_table): Remove
7840 2019-08-14 Richard Biener <rguenther@suse.de>
7841 Uroš Bizjak <ubizjak@gmail.com>
7844 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
7846 (scalar_chain::smode): New member.
7847 (scalar_chain::vmode): Likewise.
7848 (dimode_scalar_chain): Rename to...
7849 (general_scalar_chain): ... this.
7850 (general_scalar_chain::general_scalar_chain): Take mode arguments.
7851 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
7852 base with TImode and V1TImode.
7853 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
7854 (general_scalar_chain::vector_const_cost): Adjust for SImode
7856 (general_scalar_chain::compute_convert_gain): Likewise. Add
7857 {S,U}{MIN,MAX} support.
7858 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
7859 (general_scalar_chain::make_vector_copies): Likewise. Handle
7860 non-DImode chains appropriately.
7861 (general_scalar_chain::convert_reg): Likewise.
7862 (general_scalar_chain::convert_op): Likewise.
7863 (general_scalar_chain::convert_insn): Likewise. Add
7864 fatal_insn_not_found if the result is not recognized.
7865 (convertible_comparison_p): Pass in the scalar mode and use that.
7866 (general_scalar_to_vector_candidate_p): Likewise. Rename from
7867 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
7868 (scalar_to_vector_candidate_p): Remove by inlining into single
7870 (general_remove_non_convertible_regs): Rename from
7871 dimode_remove_non_convertible_regs.
7872 (remove_non_convertible_regs): Remove by inlining into single caller.
7873 (convert_scalars_to_vector): Handle SImode and DImode chains
7874 in addition to TImode chains.
7875 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
7876 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
7877 (*<maxmin>di3_doubleword): Likewise.
7879 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7880 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7882 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
7883 (*cond_bic<mode>_any): New patterns.
7885 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7887 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
7888 take the equivalent mask, as well as a bit count.
7889 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
7890 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
7891 (aarch64_sve_pred_and_operand): New predicates.
7892 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
7894 * config/aarch64/aarch64-sve.md
7895 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
7896 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
7898 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7900 * config/aarch64/aarch64-sve.md
7901 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7902 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
7905 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7906 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7908 * config/aarch64/aarch64-sve.md
7909 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
7910 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
7912 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7913 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7915 * config/aarch64/aarch64-sve.md
7916 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
7917 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
7919 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7921 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
7922 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
7925 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7926 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7928 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
7930 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7931 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7933 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
7934 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
7935 (aarch64_print_operand): Add support for %I.
7936 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
7937 Bitcast floating-point constants to the corresponding integer constant.
7938 (aarch64_float_const_representable_p): Handle vectors as well
7940 (aarch64_expand_sve_vcond): Make sure that the operands are valid
7941 for the new vcond_mask_<mode><vpred> expander.
7942 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
7943 test aarch64_float_const_representable_p.
7944 (aarch64_sve_reg_or_dup_imm): New predicate.
7945 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
7946 gen_vcond_mask_<mode><vpred> instead of
7947 gen_aarch64_sve_dup<mode>_const.
7948 (vcond_mask_<mode><vpred>): Turn into a define_expand that
7949 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
7950 for operands 1 and 2 respectively. Force operand 2 into a
7951 register if operand 1 is a register. Fold old define_insn...
7952 (aarch64_sve_dup<mode>_const): ...and this define_insn...
7953 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
7954 floating-point constants that can be moved as integers. Add
7955 alternatives for MOV /M and FMOV /M.
7956 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
7957 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
7958 1 and 2 respectively.
7959 * config/aarch64/constraints.md (Ufc): Handle vectors as well
7961 (vss): New constraint.
7963 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7965 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
7966 (aarch64_sve_float_maxmin_operand): New predicates.
7967 * config/aarch64/constraints.md (vsB): New constraint.
7969 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
7970 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
7972 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
7973 Use aarch64_sve_float_maxmin_operand for operand 2.
7974 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
7975 Add alternatives for the constant forms.
7977 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7979 * config/aarch64/constraints.md (vsb): New constraint.
7980 (vsm): Generalize description.
7981 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
7983 (sve_imm_con): Handle smax, smin, umax and umin.
7984 (sve_imm_prefix): New code attribute.
7985 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
7986 (aarch64_sve_vsb_operand): New predicates.
7987 (aarch64_sve_mul_immediate): Rename to...
7988 (aarch64_sve_vsm_immediate): ...this.
7989 (aarch64_sve_mul_operand): Rename to...
7990 (aarch64_sve_vsm_operand): ...this.
7991 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
7992 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
7993 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
7994 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
7995 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
7996 add movprfx support for the immediate alternatives.
7997 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
7999 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
8002 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8004 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
8005 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
8006 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
8008 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8010 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
8011 (optab, sve_int_op): Handle them.
8012 * config/aarch64/aarch64-sve.md: Expand comment.
8014 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8016 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
8017 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
8018 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
8020 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8022 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
8023 (aarch64_expand_sve_const_pred_trn): New functions.
8024 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
8025 use the above functions when the parameter is true.
8026 (aarch64_expand_sve_const_pred): Update call accordingly.
8027 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
8029 (@aarch64_sve_<perm_insn><mode>): ...this.
8031 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8033 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
8035 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
8036 (aarch64_sve_emit_int_cmp): New functions.
8037 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
8038 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
8039 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
8040 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
8041 (UNSPEC_PRED_Z): New unspec.
8042 (set_clobber_cc_nzc): Delete.
8043 * config/aarch64/aarch64-sve.md: Add a block comment about
8045 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
8046 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
8047 the old pattern with that name. Use UNSPEC_PRED_Z instead of
8049 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
8050 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
8051 check for compatible predicates.
8052 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
8053 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
8054 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
8057 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8059 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
8060 * config/aarch64/aarch64-sve.md: Add a section describing it.
8061 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
8062 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
8063 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
8064 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
8065 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
8066 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
8067 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
8068 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
8069 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
8070 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
8071 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
8072 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
8073 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
8074 (aarch64_evpc_rev_local): Update accordingly.
8076 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8078 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
8080 (SVE_BHSI, SVE_SDI): Tweak comment.
8081 (SVE_HSDI): Likewise. Fix definition.
8082 (SVE_SDF): New mode iterator.
8083 (elem_bits): New mode attribute.
8084 (SVE_COND_FCVT): New int iterator.
8085 * config/aarch64/aarch64-sve.md
8086 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
8087 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
8088 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
8089 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
8090 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
8091 ...these new patterns.
8092 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
8093 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
8094 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
8096 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
8097 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
8098 ...these new patterns.
8099 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
8100 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
8101 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
8102 ...this new pattern.
8103 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
8104 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
8105 ...this new pattern.
8106 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
8108 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8110 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
8111 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
8112 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
8114 (optab, su): Handle them.
8115 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
8116 * config/aarch64/aarch64-sve.md
8117 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
8118 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
8119 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
8120 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
8121 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
8122 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
8123 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
8124 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
8125 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
8127 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
8128 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
8129 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
8130 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
8131 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
8132 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
8133 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
8134 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
8135 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
8136 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
8137 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
8138 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
8139 of UNSPEC_FLOAT_CONVERT.
8140 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
8141 aarch64_sve_extend<mode><Vwide>2.
8143 2019-08-14 Richard Biener <rguenther@suse.de>
8146 * config/i386/i386-features.c
8147 (dimode_scalar_chain::compute_convert_gain): Compute and dump
8148 individual instruction gain. Fix reg-reg copy GRP cost. Use
8149 ix86_cost->sse_op for vector instruction costs.
8151 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8153 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
8154 (cmp_op): Handle it.
8155 (SVE_COND_FP_CMP): Rename to...
8156 (SVE_COND_FP_CMP_I0): ...this.
8157 (SVE_FP_CMP): Remove.
8158 * config/aarch64/aarch64-sve.md
8159 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
8160 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
8161 using unspecs to represent the comparison.
8162 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
8163 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
8165 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
8166 (aarch64_unspec_cond_code): Move after integer code. Handle
8168 (aarch64_emit_sve_predicated_cond): Replace with...
8169 (aarch64_emit_sve_fp_cond): ...this new function.
8170 (aarch64_emit_sve_or_conds): Replace with...
8171 (aarch64_emit_sve_or_fp_conds): ...this new function.
8172 (aarch64_emit_sve_inverted_cond): Replace with...
8173 (aarch64_emit_sve_invert_fp_cond): ...this new function.
8174 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
8176 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8178 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
8179 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
8180 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
8181 SVE_HSD instead of SVE_SD.
8183 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8184 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8186 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
8188 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
8190 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
8191 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
8192 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
8193 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
8194 (*div<SVE_F:mode>3): Generalize to...
8195 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
8197 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8198 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8200 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
8202 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
8204 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
8206 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
8208 * config/aarch64/aarch64-sve.md: Add a block comment about the
8209 handling of predicated FP operations.
8210 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
8211 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
8212 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8213 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
8214 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
8216 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
8217 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
8219 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
8220 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
8221 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
8222 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
8223 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
8224 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8225 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8226 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
8227 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
8228 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
8229 strictness operands. Use aarch64_sve_pred_dominates_p to check
8230 whether the predicate on the conditional operation is suitable
8231 for merging. Split patterns into the canonical equal-predicate form.
8232 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
8233 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
8235 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8236 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8238 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
8239 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
8240 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
8242 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
8243 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
8246 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8247 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8249 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
8250 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
8251 actually has, rather than relying on REG_EQUAL notes.
8252 Make the insn operand order match the SVE operand order.
8253 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
8254 the SVE operand order.
8256 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8258 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
8259 (aarch64_emit_set_immediate): Likewise.
8260 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
8261 (aarch64_pfalse_reg): Likewise.
8262 (aarch64_convert_sve_data_to_pred): New function.
8263 (aarch64_sve_move_pred_via_while): Take an optional target register
8264 and the required register mode.
8265 (aarch64_expand_sve_const_pred_1): New function.
8266 (aarch64_expand_sve_const_pred): Likewise.
8267 (aarch64_expand_mov_immediate): Build an all-true predicate
8268 if the significant bits of the immediate are all true. Use
8269 aarch64_expand_sve_const_pred for all compile-time predicate constants.
8270 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
8271 before register allocation.
8272 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
8273 a VNx16BI PTRUE when splitting the memory alternative.
8274 (vec_duplicate<mode>): Update accordingly.
8275 (*pred_cmp<cmp_op><mode>): Rename to...
8276 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
8278 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8280 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
8281 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
8282 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
8283 (UNSPEC_PTEST): New unspec.
8284 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
8285 * config/aarch64/iterators.md (data_bytes): New mode attribute.
8286 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
8287 * config/aarch64/aarch64-sve.md: Add a new section describing the
8288 handling of UNSPEC_PTEST.
8289 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
8290 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
8291 (ptest_ptrue<mode>): Replace with...
8292 (aarch64_ptest<mode>): ...this new pattern.
8293 (cbranch<mode>4): Update after above changes.
8294 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
8296 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
8297 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
8298 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
8300 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8303 * builtins.c (builtin_with_linkage_p): New function.
8304 * builtins.h (builtin_with_linkage_p): New function.
8305 * symtab.c (write_symbol): Remove redundant assert.
8306 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
8307 Remove FIXME and use builtin_with_linkage_p.
8309 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8312 * tree-core.h (function_decl::function_code): Change type to
8314 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
8315 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
8316 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
8317 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
8319 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
8320 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
8321 (fndecl_built_in_p): Change the type of the "name" argument to
8323 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
8324 after check for DECL_BUILT_IN_CLASS.
8325 * cgraphclones.c (build_function_decl_skip_args): Use
8326 set_decl_built_in_function.
8327 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
8328 * ipa-split.c (split_function): Likewise.
8329 * langhooks.c (add_builtin_function_common): Likewise.
8330 * omp-simd-clone.c (simd_clone_create): Likewise.
8331 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
8332 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
8333 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
8335 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
8336 instead of DECL_FUNCTION_CODE.
8337 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
8338 instead of DECL_FUNCTION_CODE.
8339 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
8340 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
8341 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
8342 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
8343 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
8344 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
8345 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
8346 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
8347 (alpha_gimple_fold_builtin): Likewise.
8348 * config/arc/arc.c (arc_expand_builtin): Likewise.
8349 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
8350 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
8351 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
8352 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
8353 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
8354 * config/frv/frv.c (frv_expand_builtin): Likewise.
8355 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
8356 (gcn_expand_builtin): Likewise.
8357 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
8358 (fold_builtin_cpu): Likewise.
8359 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
8360 * config/i386/i386.c (ix86_fold_builtin): Likewise.
8361 (ix86_gimple_fold_builtin): Likewise.
8362 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
8363 (ia64_expand_builtin): Likewise.
8364 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
8365 * config/mips/mips.c (mips_expand_builtin): Likewise.
8366 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
8367 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
8368 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
8369 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
8370 * config/pa/pa.c (pa_expand_builtin): Likewise.
8371 * config/pru/pru.c (pru_expand_builtin): Likewise.
8372 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
8373 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8375 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
8376 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
8377 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
8378 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
8379 (rs6000_builtin_reciprocal): Likewise.
8380 * config/rx/rx.c (rx_expand_builtin): Likewise.
8381 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
8382 * config/s390/s390.c (s390_expand_builtin): Likewise.
8383 * config/sh/sh.c (sh_expand_builtin): Likewise.
8384 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
8385 (sparc_fold_builtin): Likewise.
8386 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
8387 * config/spu/spu.c (spu_expand_builtin): Likewise.
8388 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
8389 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
8390 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
8391 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8392 (xtensa_expand_builtin): Likewise.
8394 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8397 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
8398 before the DECL_FUNCTION_CODE.
8399 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
8400 to check for a BUILT_IN_ALLOCA call.
8401 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
8402 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
8403 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
8404 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8405 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
8406 for BUILT_IN_NORMAL functions.
8407 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
8408 test for BUILT_IN_TM_ABORT.
8409 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
8410 to check for a BUILT_IN_STACK_RESTORE call.
8411 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
8412 * tree-ssa-threadedge.c
8413 (record_temporary_equivalences_from_stmts_at_dest): Check for a
8414 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
8415 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
8416 test for a BUILT_IN_NORMAL call instead of a negative test for
8417 an internal function call.
8419 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8421 * tree.h (build_vector_a_then_b): Declare.
8422 * tree.c (build_vector_a_then_b): New function.
8423 * fold-const-call.c (fold_while_ult): Likewise.
8424 (fold_const_call): Use it to handle IFN_WHILE_ULT.
8425 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
8426 (aarch64_svpattern): New enum.
8427 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
8428 constants through aarch64_expand_mov_immediate.
8429 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
8430 than general_operand as the predicate for operand 1.
8431 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
8432 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
8434 (simd_immediate_info::simd_immediate_info): New overload that
8435 takes a scalar_int_mode and an svpattern.
8436 (simd_immediate_info::u): Add a "pattern" field.
8437 (svpattern_token): New function.
8438 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
8439 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
8440 (aarch64_sve_move_pred_via_while): New functions.
8441 (aarch64_expand_mov_immediate): Try using
8442 aarch64_sve_move_pred_via_while for predicates that contain N ones
8443 followed by M zeros but that do not correspond to a VLnnn pattern.
8444 (aarch64_sve_pred_valid_immediate): New function.
8445 (aarch64_simd_valid_immediate): Use it instead of dealing directly
8446 with PTRUE and PFALSE.
8447 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
8450 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
8452 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
8454 (darwin_override_options): Likewise.
8455 * config/darwin.h: Likewise.
8456 * config/darwin.opt: Likewise.
8457 * config/i386/i386.c (output_pic_addr_const): Likewise.
8458 * config/rs6000/darwin.h: Likewise.
8459 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
8460 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
8461 ... this TARGET_MACHO_SYMBOL_STUBS.
8462 (FUNCTION_PROFILER):Likewise.
8463 * config/i386/i386.h: Likewise.
8465 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8467 * config/i386/i386-expand.c (ix86_expand_vector_extract)
8468 <case E_V2SImode>: Use vec_extr path for
8469 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8470 <case E_V8QImode>: Ditto.
8471 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
8472 Use SWI48 mode iterator. Use %k to output operand 0.
8473 (*mmx_pextrw): New insn pattern.
8474 (*mmx_pextrb): Ditto.
8475 (*mmx_pextrb_zext): Ditto.
8477 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
8479 * target.def (libc_has_function, libc_has_fast_function): Improve
8480 documentation strings.
8481 * doc/tm.texi: Regenerate.
8483 2019-08-13 Caroline Tice <cmtice@google.com>
8486 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
8487 vtv_end.o or vtv_end_preinit.o files if !static.
8489 2019-08-13 Olivier Hainque <hainque@adacore.com>
8491 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
8493 2019-08-13 Olivier Hainque <hainque@adacore.com>
8495 * rtlanal.c (tablejump_casesi_pattern): New function, to
8496 determine if a tablejump insn is a casesi dispatcher. Extracted
8497 from patch_jump_insn.
8498 * rtl.h (tablejump_casesi_pattern): Declare.
8499 * cfgrtl.c (patch_jump_insn): Use it.
8500 * dwarf2cfi.c (create_trace_edges): Use it.
8502 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8505 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
8506 operand is larger than a long int.
8508 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8510 * machmode.h (opt_mode::else_mode): New function.
8511 (opt_mode::else_blk): Use it.
8512 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
8513 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
8514 (aarch64_gen_stepped_int_parallel): Likewise.
8515 (aarch64_stepped_int_parallel_p): Likewise.
8516 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8518 * config/aarch64/aarch64.c
8519 (aarch64_expand_sve_widened_duplicate): Delete.
8520 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
8521 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
8522 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8523 argument. Use early returns in the !CONST_INT_P handling.
8524 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
8525 than handling some inline.
8526 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
8528 (aarch64_simd_container_mode): ...here.
8529 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
8530 (aarch64_sve_ld1rq_operand_p): New functions.
8531 * config/aarch64/predicates.md (descending_int_parallel)
8532 (aarch64_sve_ld1rq_operand): New predicates.
8533 * config/aarch64/constraints.md (UtQ): New constraint.
8534 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
8535 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
8536 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
8537 (@aarch64_sve_reinterpret<mode>): New expander.
8538 (*aarch64_sve_reinterpret<mode>): New pattern.
8539 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
8540 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
8541 (*sve_ld1rq<Vesize>): Replace with...
8542 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
8544 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8546 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
8549 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8551 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
8552 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
8553 (msp430_check_path_for_devices): New.
8554 (parse_devices_csv_1): New.
8555 (parse_devices_csv): New.
8556 (msp430_extract_mcu_data): Try to find devices.csv and search for the
8557 MCU data in devices.csv before using the hard-coded data.
8558 Warn if devices.csv isn't found and the MCU wasn't found in the
8559 hard-coded data either.
8560 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
8561 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
8562 Search for devices.csv on -I and -L paths.
8563 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
8564 msp430_set_driver_var.
8565 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
8567 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
8568 searched for devices.csv.
8569 (mwarn-devices-csv): Document option.
8571 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8573 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
8574 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
8575 Use a single Dn alternative instead of separate Dz and Dm
8576 alternatives. Use aarch64_output_sve_move_immediate.
8577 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
8579 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
8581 (aarch64_output_sve_mov_immediate): Handle predicate modes.
8582 (aarch64_output_ptrue): Delete.
8584 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8586 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
8588 (simd_immediate_info::value, simd_immediate_info::step)
8589 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
8591 (simd_immediate_info::u): ...this new union.
8592 (simd_immediate_info::simd_immediate_info): Update accordingly.
8593 (aarch64_output_simd_mov_immediate): Likewise.
8594 (aarch64_output_sve_mov_immediate): Likewise.
8596 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8598 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
8600 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
8601 (msp430_select_cpu): New spec function.
8602 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
8604 * config/msp430/msp430-devices.c: New file.
8605 * config/msp430/msp430-devices.h: New file.
8606 * config/msp430/msp430.c: Remove msp430_mcu_data.
8607 (msp430_option_override): Use msp430_extract_mcu_data to extract
8609 (msp430_use_f5_series_hwmult): Likewise.
8610 (use_32bit_hwmult): Likewise.
8611 (msp430_no_hwmult): Likewise.
8612 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
8614 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
8616 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
8617 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
8618 Remove hard-coded MCU multilib data.
8620 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8622 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
8623 based on the mode instead of testing properties of it.
8625 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8627 * doc/md.texi: Document the x and y constraints for AArch64.
8628 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
8629 (FP_LO8_REGS): New reg_class.
8630 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
8631 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
8632 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
8633 * config/aarch64/predicates.md (aarch64_simd_register): Use
8634 FP_REGNUM_P instead of checking the classes manually.
8635 * config/aarch64/constraints.md (y): New constraint.
8637 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8639 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
8640 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
8641 * config/aarch64/aarch64-simd.md
8642 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
8643 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
8644 from the asm template.
8645 * config/aarch64/aarch64-sve.md
8646 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
8647 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
8648 from the asm template.
8649 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
8650 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
8651 from the asm template.
8652 * config/aarch64/aarch64-simd-builtins.def: Update comment.
8654 2019-08-13 Martin Liska <mliska@suse.cz>
8656 * value-prof.c (gimple_ic_transform): Add new line.
8657 Print details with MSG_NOTE.
8659 2019-08-13 Martin Liska <mliska@suse.cz>
8661 * doc/invoke.texi: Document automatic detection of jobserver.
8662 * lto-wrapper.c (run_gcc): Detect jobserver always.
8664 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8666 * config/i386/i386-expand.c (ix86_expand_vector_set)
8667 <case E_V2SImode>: Use vec_merge path for
8668 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8669 <case E_V8QImode>: Ditto.
8670 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
8671 (*mmx_pinsrb): Ditto.
8673 2019-08-12 Jakub Jelinek <jakub@redhat.com>
8677 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
8678 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
8679 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
8680 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
8681 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
8683 2019-08-12 Richard Biener <rguenther@suse.de>
8686 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
8689 2019-08-12 Richard Biener <rguenther@suse.de>
8692 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
8693 lang_mask option, always use CL_DRIVER.
8694 (get_options_from_collect_gcc_options): Adjust.
8695 (find_and_merge_options): Likewise.
8696 (run_gcc): Likewise.
8698 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8700 * ipa-predicate.c (add_condition): Restore inverted test.
8702 2019-08-10 Jakub Jelinek <jakub@redhat.com>
8704 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
8705 (enum omp_clause_device_type_kind): New enum.
8706 (struct tree_omp_clause): Add subcode.device_type_kind.
8707 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
8708 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8709 for device_type clause.
8710 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
8711 * tree-pretty-print.c (dump_omp_clause): Likewise.
8714 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
8717 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
8719 * reload1.c (finish_spills): Do not check ira_conflicts_p when
8720 handling spilled pseudos.
8722 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8725 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
8726 to preserve the contents of the original insns.
8728 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8730 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
8731 (addsi3_compare_op2): Likewise.
8733 2019-08-09 Martin Liska <mliska@suse.cz>
8735 * alias.c (alias_ptr_types_compatible_p): Strengten
8736 type comparison in LTO mode.
8738 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
8741 * tree-tailcall.c (find_tail_calls): Reject calls that might
8742 read from an escaped RESULT_DECL.
8744 2019-08-09 Martin Liska <mliska@suse.cz>
8746 * doc/invoke.texi: Document the option value.
8747 * lto-wrapper.c (run_gcc): Set auto_parallel
8748 only with -flto=auto.
8750 2019-08-09 Martin Liska <mliska@suse.cz>
8752 * opts.c (common_handle_option): Error for an invalid argument
8755 2019-08-09 Martin Liska <mliska@suse.cz>
8757 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
8758 use dump_printf to report optimization.
8759 (sem_variable::merge): Likwise.
8760 (sem_item_optimizer::merge_classes): Use dump_printf to report
8763 2019-08-09 Martin Liska <mliska@suse.cz>
8765 * value-prof.c (gimple_divmod_fixed_value_transform):
8766 Use dump_printf_loc.
8767 (gimple_mod_pow2_value_transform): Likewise.
8768 (gimple_mod_subtract_transform): Likewise.
8769 (init_node_map): Likewise.
8770 (gimple_ic_transform): Likewise.
8771 (gimple_stringops_transform): Likewise.
8773 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8775 * doc/extend.texi: Add const qualifier to ld intrinsics.
8777 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8779 * config/rs6000/dfp.md (D64_D128): Rename to ...
8780 (DDTD): ... this, throughout.
8781 (dfp_suffix): Rename to ...
8782 (q): ... this, throughout.
8784 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8786 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
8787 (dfp_suffix): Ditto.
8788 (adddd3, addtd3): Merge to ...
8789 (add<mode>3 for D64_D128): ... this.
8790 (subdd3, subtd3): Merge to ...
8791 (sub<mode>3 for D64_D128): ... this.
8792 (muldd3, multd3): Merge to ...
8793 (mul<mode>3 for D64_D128): ... this.
8794 (divdd3, divtd3): Merge to ...
8795 (div<mode>3 for D64_D128): ... this.
8796 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
8797 (*cmp<mode>_internal1 for D64_D128): ... this.
8798 (ftruncdd2, ftrunctd2): Merge to ...
8799 (ftrunc<mode>2 for D64_D128): ... this.
8800 (fixdddi2, fixtddi2): Merge to ...
8801 (fix<mode>di2 for D64_D128): ... this.
8803 2019-08-08 Jim Wilson <jimw@sifive.com>
8806 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
8807 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
8808 Pass into recursive call.
8809 (riscv_flatten_aggregate_argument): New arg. Pass to
8810 riscv_flatten_aggregate_field.
8811 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
8812 riscv_flatten_aggregate_argument twice, with false and true as last
8813 arg. Process result twice. Compare results and warn if different.
8814 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
8816 2019-08-08 Martin Liska <mliska@suse.cz>
8819 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
8820 * lto-wrapper.c (jobserver_active_p): Likewise.
8822 2019-08-08 Martin Liska <mliska@suse.cz>
8824 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
8825 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
8826 (create_version_clone_with_body): Likewise.
8828 2019-08-08 Jakub Jelinek <jakub@redhat.com>
8830 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
8831 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
8832 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
8833 GOVD_EXPLICIT flags.
8834 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
8835 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
8836 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
8837 call install_var_field with mask 11 instead of 3.
8838 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
8839 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
8841 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8843 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
8844 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
8846 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8848 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
8849 MOVPRFX alternatives. Make the GPR alternatives more expensive
8852 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8854 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
8855 Disparage the GPR alternative relative to the FPR one.
8856 Fix handling of 8-bit and 16-bit FPR values.
8858 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8860 * config/aarch64/iterators.md (BITWISEV): Delete.
8861 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
8862 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
8863 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8864 UNSPEC_FMINNMV, UNSPEC_FMINV.
8865 (bit_reduc_op): Delete.
8866 (sve_int_op): New int attribute.
8867 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8868 UNSPEC_FMINNMV, UNSPEC_FMINV.
8869 * config/aarch64/aarch64-sve.md
8870 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8871 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8872 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
8873 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
8874 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
8875 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
8877 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
8878 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
8879 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
8880 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
8881 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
8884 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8886 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
8887 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
8888 (fms<mode>4, *fms<mode>4): Replace with...
8889 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8890 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
8891 Use unspecs instead of rtx codes.
8892 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
8893 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
8895 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8897 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
8899 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
8900 * config/aarch64/aarch64-sve.md
8901 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
8902 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
8903 use a single unspec for the rhs.
8904 (*<su><maxmin><mode>3): Delete.
8905 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
8907 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8909 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
8910 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
8911 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
8912 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
8913 (optab, sve_fp_op): Handle them.
8914 (SVE_FP_UNARY): Delete.
8915 (optab): Remove sqrt entry.
8916 (sve_fp_op): Remove neg, abs and sqrt entries.
8917 (SVE_COND_FP_UNARY): New int iterator.
8918 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
8919 (*<frint_pattern><mode>2): Delete.
8920 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8921 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8922 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8923 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8925 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8927 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
8929 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8931 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
8932 (UNSPEC_COND_FADD): ...this.
8933 (UNSPEC_COND_SUB): Rename to...
8934 (UNSPEC_COND_FSUB): ...this.
8935 (UNSPEC_COND_MUL): Rename to...
8936 (UNSPEC_COND_FMUL): ...this.
8937 (UNSPEC_COND_DIV): Rename to...
8938 (UNSPEC_COND_FDIV): ...this.
8939 (UNSPEC_COND_MAX): Rename to...
8940 (UNSPEC_COND_FMAXNM): ...this.
8941 (UNSPEC_COND_MIN): Rename to...
8942 (UNSPEC_COND_FMINNM): ...this.
8943 (UNSPEC_COND_LT): Rename to...
8944 (UNSPEC_COND_FCMLT): ...this.
8945 (UNSPEC_COND_LE): Rename to...
8946 (UNSPEC_COND_FCMLE): ...this.
8947 (UNSPEC_COND_EQ): Rename to...
8948 (UNSPEC_COND_FCMEQ): ...this.
8949 (UNSPEC_COND_NE): Rename to...
8950 (UNSPEC_COND_FCMNE): ...this.
8951 (UNSPEC_COND_GE): Rename to...
8952 (UNSPEC_COND_FCMGE): ...this.
8953 (UNSPEC_COND_GT): Rename to...
8954 (UNSPEC_COND_FCMGT): ...this.
8955 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
8956 (sve_fp_op_rev): Update accordingly.
8957 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
8959 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8961 * config/aarch64/aarch64-sve.md: Reorganize contents and add
8963 * config/aarch64/check-sve-md.awk: New file.
8964 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
8965 (insn-conditions.md): Depend on it.
8967 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
8970 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
8971 (*negsi2_cmpz_zext): Ditto.
8973 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8975 * config/aarch64/iterators.md (commutative): Remove.
8977 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
8980 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
8981 processing COLLECT_GCC_OPTIONS.
8982 (run_gcc): Likewise.
8984 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
8986 PR tree-optimization/91109
8987 * lra-remat.c (update_scratch_ops): Remove assignment of the
8990 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8992 * data-streamer.h (streamer_write_poly_uint64): Declare.
8993 (streamer_read_poly_uint64): Likewise.
8994 * data-streamer-in.c (streamer_read_poly_uint64): New function.
8995 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
8996 * ipa-predicate.h (condition::size): Turn into a poly_int64.
8997 (add_condition): Take a poly_int64 size.
8998 * ipa-predicate.c (add_condition): Likewise.
8999 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
9000 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
9001 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
9002 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
9003 condition::size as a poly_int64.
9004 (unmodified_parm_1): Take a poly_int64 size pointer.
9005 (unmodified_parm): Likewise.
9006 (unmodified_parm_or_parm_agg_item): Likewise.
9007 (set_cond_stmt_execution_predicate): Update accordingly.
9008 (set_switch_stmt_execution_predicate): Likewise.
9009 (will_be_nonconstant_expr_predicate): Likewise.
9010 (will_be_nonconstant_predicate): Likewise.
9011 (inline_read_section): Stream condition::size as a poly_int.
9012 (ipa_fn_summary_write): Likewise.
9014 2019-08-07 Martin Liska <mliska@suse.cz>
9016 * fold-const.c (twoval_comparison_p): Replace int
9017 with bool as a return type.
9018 (simple_operand_p): Likewise.
9019 (operand_equal_p): Replace int with bool as a return type.
9020 * fold-const.h (operand_equal_p): Likewise.
9022 2019-08-07 Jakub Jelinek <jakub@redhat.com>
9024 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
9025 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
9026 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
9027 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
9028 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
9029 * tree-pretty-print.c (dump_omp_clause): Likewise.
9030 * tree-nested.c (convert_nonlocal_omp_clauses,
9031 convert_local_omp_clauses): Likewise.
9032 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
9034 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
9035 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
9036 clause with array or reference to array types, no matter what type
9037 except for reference it has.
9039 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
9041 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
9043 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
9045 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
9046 (arch_canonicalize): Support rv32g and rv64g and fix error
9049 2019-08-06 Martin Liska <mliska@suse.cz>
9051 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
9052 and DECL_IS_OPERATOR_DELETE_P.
9054 2019-08-06 Jakub Jelinek <jakub@redhat.com>
9056 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
9057 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
9058 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
9059 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
9060 (gimplify_omp_for): Don't do C++ random access iterator clause
9061 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
9062 don't predetermine the artificial iterator in case of C++ random
9063 access iterators as lastprivate, but private. For OMP_LOOP, force
9064 bind expr around simd body and force for_pre_body before the
9065 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
9066 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
9067 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
9068 diff var of C++ random access iterators. Handle
9069 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
9070 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
9071 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
9072 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
9073 * omp-low.c (lower_rec_input_clauses): For
9074 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
9075 variables instead of default constructing them.
9076 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
9077 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
9078 is_taskloop_ctx check from the assert to the guarding condition.
9080 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
9082 * config/riscv/multilib-generator: (canonical_order): New.
9083 (arch_canonicalize): Dito.
9084 Apply arch_canonicalize for alts.
9086 2019-08-05 Martin Sebor <msebor@redhat.com>
9088 * doc/extend.texi (Common Variable Attributes): Document alias
9091 2019-08-05 Marek Polacek <polacek@redhat.com>
9093 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
9094 * doc/invoke.texi: Document -Wcomma-subscript.
9096 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9098 * tree-core.h (tree_function_decl): Make function_code an
9099 independent field. Group the remaining bitfields into bytes
9100 and move decl_type so that it contines to be at a byte boundary.
9101 Leave 12 bits for future expansion.
9103 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9105 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
9106 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
9107 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
9110 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
9112 * gimple.h (gimple_move_vops): Declare.
9113 * gimple.c (gimple_move_vops): New function
9114 * gimple-fold.c (replace_call_with_call_and_fold)
9115 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
9116 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
9117 (gimple_fold_call): Use it.
9118 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
9119 * tree-call-cdce.c (use_internal_fn): Likewise.
9120 * tree-if-conv.c (predicate_load_or_store): Likewise.
9121 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
9122 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
9123 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
9124 (update_call_from_tree): Likewise.
9125 * tree-vect-stmts.c (vectorizable_load): Likewise.
9126 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
9128 2019-08-05 Martin Liska <mliska@suse.cz>
9131 * tree-ssa-dce.c (propagate_necessity): Handle new operators
9133 (eliminate_unnecessary_stmts): Likewise.
9135 2019-08-05 Richard Biener <rguenther@suse.de>
9138 * fold-const.c (get_array_ctor_element_at_index): Create
9139 offset_ints according to the sign of the index type and treat
9140 that as signed if it is obviously so.
9142 2019-08-05 Jakub Jelinek <jakub@redhat.com>
9145 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
9146 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
9147 _mm256_storeu2_m128i): New function.
9149 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
9151 * config/riscv/riscv.c (riscv_promote_function_mode): New.
9152 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
9154 2019-08-05 Alan Modra <amodra@gmail.com>
9157 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
9158 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
9160 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
9162 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
9163 bug that was fixed in Tcl 8.6.1.
9165 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
9167 * config/rs6000/future.md: New file.
9168 * config/rs6000/rs6000.md: Include future.md.
9169 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
9171 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
9173 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
9174 check to use targetm.slow_unaligned_access instead.
9176 * function.c (assign_param_data_one): Remove unused data members.
9178 2019-08-02 Steve Ellcey <sellcey@marvell.com>
9180 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
9181 build_distinct_type_copy.
9182 (simd_clone_adjust_argument_types): Ditto.
9183 (simd_clone_adjust): Call build_distinct_type_copy here.
9184 (expand_simd_clones): Ditto.
9186 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9189 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
9191 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
9193 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
9194 from 'const void *'.
9195 (sort_locs_in_loop_postorder_cmp): Likewise.
9197 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
9199 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
9200 (hot-bb-count-ws-permille): Likewise.
9201 (hot-bb-frequency-fraction): Likewise.
9202 (unlikely-bb-count-fraction): Likewise.
9203 * params.def (hot-bb-count-fraction): Rework description.
9204 (hot-bb-count-ws-permille): Likewise.
9205 (hot-bb-frequency-fraction): Likewise.
9206 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
9207 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
9209 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9212 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
9215 2019-08-02 Richard Biener <rguenther@suse.de>
9217 * vec.h (vec::sort): Add gcc_qsort_r support.
9218 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
9219 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
9220 to gcc_qsort_r style callback.
9221 (sort_locs_in_loop_postorder_cmp): Likewise.
9222 (analyze_memory_references): Use gcc_sort_r interfaces.
9223 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
9225 2019-08-02 Martin Liska <mliska@suse.cz>
9228 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
9229 to detect working job server.
9230 (driver::detect_jobserver): Test whether jobserver
9231 is active from GCC driver. That will prevent situation where
9232 GCC is invoked from a LD plugin and the linker already uses
9233 file descriptors suggested by make. That leads to a wrong
9235 * gcc.h (driver): Add detect_jobserver.
9236 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
9237 not scanning for --jobserver-auth prefix.
9239 2019-08-02 Jakub Jelinek <jakub@redhat.com>
9241 PR tree-optimization/91201
9242 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
9243 V16QImode extraction without sse4.1 try to use V4SImode lowpart
9246 2019-08-01 Martin Sebor <msebor@redhat.com>
9249 * tree.c (type_initializer_zero_p): Define.
9250 * tree.h (type_initializer_zero_p): New function.
9252 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9254 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
9256 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9258 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
9259 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
9260 * predict.c (maybe_hot_count_p): Likewise.
9261 (maybe_hot_bb_p): Tweak comment.
9262 (maybe_hot_edge_p): Likewise.
9263 (probably_never_executed): Likewise. Minor tweak.
9264 (probably_never_executed_bb_p): Likewise.
9265 (unlikely_executed_edge_p): Likewise.
9266 (probably_never_executed_edge_p): Likewise.
9267 (optimize_function_for_size_p): Likewise.
9268 (optimize_function_for_speed_p): Likewise.
9269 (function_optimization_type): Likewise.
9270 (optimize_bb_for_size_p): Likewise.
9271 (optimize_bb_for_speed_p): Likewise.
9272 (bb_optimization_type): Likewise.
9273 (optimize_edge_for_size_p): Likewise.
9274 (optimize_edge_for_speed_p): Likewise.
9275 (optimize_insn_for_size_p): Likewise.
9276 (optimize_insn_for_speed_p): Likewise.
9277 (optimize_loop_for_size_p): Likewise.
9278 (optimize_loop_for_speed_p): Likewise.
9279 (optimize_loop_nest_for_speed_p): Likewise.
9280 (optimize_loop_nest_for_size_p): Likewise.
9281 (predictable_edge_p): Likewise.
9282 (handle_missing_profiles): Minor tweak.
9284 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
9286 * config/rs6000/predicates.md (pcrel_external_address): Update
9289 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9292 * config/i386/mmx.md (usadv8qi): New expander.
9294 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
9297 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
9298 with reserved names that are in a system header.
9300 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9302 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
9303 (*vec_extractv2si_0_zext_sse4): New insn pattern.
9304 (*vec_extractv2si_0_zext): Ditto.
9305 (*vec_extractv2si_1): Add (rm,x) alternative.
9306 (*vec_extractv2si_1_zext): New insn pattern.
9307 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
9310 2019-08-01 Richard Biener <rguenther@suse.de>
9312 * domwalk.c (bb_postorder): Remove static variable.
9313 (cmp_bb_postorder): Adjust.
9314 (sort_bbs_postorder): Adjust and use gcc_sort_r.
9315 (dom_walker::walk): Adjust.
9317 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
9319 * sort.cc (sort_r_ctx): New struct.
9320 (reorder23): Make templated on context type.
9322 (cmp1): Ditto. Adjust signature.
9325 [CHECKING_P] (cmp2to3): New static function. Use it...
9326 (gcc_qsort) [CHECKING_P]: ...here.
9327 (gcc_sort_r): New function.
9328 * system.h (sort_r_cmp_fn): New function typedef.
9329 (qsort_chk): Adjust signature.
9330 (gcc_sort_r): Declare.
9331 * vec.c (qsort_chk_error): Adjust.
9332 (qsort_chk): Adjust.
9334 2019-08-01 Richard Biener <rguenther@suse.de>
9336 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
9337 (compute_antic): Localize it here.
9339 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
9341 * common/config/riscv/riscv-common.c: Check -march string ends
9344 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
9346 * ipa-devirt.c (type_warning_cmp): Make static.
9347 (decl_warning_cmp): Ditto.
9349 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
9352 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
9353 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
9354 use of deleted rs6000_dejagnu_cpu_index variable.
9355 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
9356 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9357 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
9358 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
9359 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
9360 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9362 2019-07-31 Richard Biener <rguenther@suse.de>
9364 PR tree-optimization/91280
9365 * tree-ssa-structalias.c (get_constraint_for_component_ref):
9366 Decompose MEM_REF manually for offset handling.
9368 2019-07-31 Richard Biener <rguenther@suse.de>
9370 PR tree-optimization/91293
9371 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
9374 2019-07-31 Matt Thomas <matt@3am-software.com>
9375 Nick Hudson <nick@nthcliff.demon.co.uk>
9376 Matthew Green <mrg@eterna.com.au>
9377 Maya Rashish <coypu@sdf.org>
9379 * config.gcc (hppa*-*-netbsd*): New target.
9380 * config/pa/pa-netbsd.h: New file.
9381 * config/pa/pa32-netbsd.h: New file.
9383 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9385 PR tree-optimization/91201
9386 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
9388 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
9390 * config/gcn/gcn-valu.md
9391 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
9392 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
9393 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
9394 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
9395 struct ilist. Add nops for delayeduse insns.
9396 * config/gcn/gcn.md (delayeduse): New attribute.
9397 (*movbi): Remove s_waitcnt from stores.
9398 (*mov<mode>_insn): Likewise.
9399 (*movti_insn): Likewise. Add delayeduse attribute.
9400 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
9401 (atomic_store<mode>): Remove or adjust s_waitcnt.
9403 2019-07-31 Richard Biener <rguenther@suse.de>
9405 * vr-values.h (vr_values::swap_vr_value): New.
9406 (vr_values::free_value_range): likewise.
9407 * vr-values.c (vr_values::swap_vr_value): Implement.
9408 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
9409 Do not return a range or take a var.
9410 (evrp_range_analyzer::stack): Change back to recording a non-const
9412 * gimple-ssa-evrp-analyze.c
9413 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
9415 (evrp_range_analyzer::pop_to_marker): Adjust.
9416 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
9417 (evrp_range_analyzer::pop_value_range): Likewise. Free the
9418 no longer needed value-range.
9420 2019-07-31 Martin Liska <mliska@suse.cz>
9422 * tree-ssa-dce.c (propagate_necessity): Delete operator can
9423 have size and (or) alignment as 2nd and later arguments.
9424 Mark all of them as necessary.
9426 2019-07-31 Richard Biener <rguenther@suse.de>
9428 PR tree-optimization/91178
9429 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
9432 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9434 PR tree-optimization/91201
9435 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
9436 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
9438 (reduc_plus_scal_<mode>): Improve formatting by introducing
9441 2019-07-31 Sudakshina Das <sudi.das@arm.com>
9443 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
9444 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
9445 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
9446 (aarch64_init_tme_builtins): New.
9447 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
9448 (aarch64_expand_builtin_tme): New.
9449 (aarch64_expand_builtin): Handle TME builtins.
9450 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
9451 __ARM_FEATURE_TME when enabled.
9452 * config/aarch64/aarch64-option-extensions.def: Add "tme".
9453 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
9455 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
9456 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
9458 (tstart, ttest, tcommit, tcancel): New instructions.
9459 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
9460 (__tcancel, __ttest): New.
9461 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
9462 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
9463 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
9464 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
9465 * config/arm/types.md: Add new tme type attr.
9466 * doc/invoke.texi: Document "tme".
9468 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
9470 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
9471 warn_unused_result attribute.
9472 (cmse_check_address_range): Add warn_unused_result attribute.
9474 2019-07-31 Richard Biener <rguenther@suse.de>
9476 PR tree-optimization/91257
9477 * tree-vrp.c (union_ranges): Unify equality and less tests
9478 by using compare_values. Re-order cheap tests first.
9480 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9483 * gimplify.c (gimplify_omp_for): If for class iterator on
9484 distribute parallel for there is no data sharing clause
9485 on inner_for_stmt, look for private clause on combined
9486 parallel too and if found, move it to inner_for_stmt.
9488 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
9490 * lra-int.h (lra_operand_data): Remove early_clobber field.
9491 (lra_insn_reg): Likewise.
9492 * lra.c (debug_operand_data): Update accordingly.
9493 (setup_operand_alternative): Likewise.
9494 (new_insn_reg): Likewise. Remove early_clobber parameter.
9495 (collect_non_operand_hard_regs): Update call accordingly.
9496 Don't assign to lra_insn_reg::early_clobber.
9497 (add_regs_to_insn_regno_info): Remove early_clobber parameter
9498 and update calls to new_insn_reg.
9499 (lra_update_insn_regno_info): Update calls accordingly.
9500 * lra-constraints.c (update_and_check_small_class_inputs): Take the
9501 alternative number as a parameter and test whether the operand
9502 is earlyclobbered in that particular alternative.
9503 (process_alt_operands): Update call accordingly. Use per-alternative
9504 checks for earyclobber here too.
9505 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
9506 against zero for IRA_UNKNOWN_ALT.
9508 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9510 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
9512 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
9514 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
9515 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9517 2019-07-30 Martin Liska <mliska@suse.cz>
9520 * cgraph.c (cgraph_edge::make_direct): Use
9521 edge->indirect_unknown_callee as edge->resolve_speculation can
9522 deallocate edge which is this pointer.
9524 2019-07-30 Richard Biener <rguenther@suse.de>
9526 PR tree-optimization/91257
9527 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
9529 2019-07-30 Martin Liska <mliska@suse.cz>
9531 * doc/invoke.texi: Document new behavior.
9532 * lto-wrapper.c (cpuset_popcount): New function
9533 is a copy of libgomp/config/linux/proc.c.
9534 (init_num_threads): Likewise.
9535 (run_gcc): Automatically detect core count for -flto.
9536 (jobserver_active_p): New function.
9538 2019-07-30 Richard Biener <rguenther@suse.de>
9540 PR tree-optimization/91257
9541 * bitmap.h (bitmap_ior_into_and_free): Declare.
9542 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
9543 whether to add the unliked element to the freelist.
9544 (bitmap_list_insert_element_after): Add defaulted param for
9545 an already allocated element.
9546 (bitmap_ior_into_and_free): New function.
9547 * tree-ssa-structalias.c (condense_visit): Reduce the
9548 ponts-to and edge bitmaps of the SCC members in a
9549 logarithmic fashion rather than all to one.
9551 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
9553 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
9554 parameter. When nonnull, make sure that the addition or subtraction
9555 has the same condition.
9556 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
9557 for CFN_COND_MUL too.
9559 2019-07-30 Richard Biener <rguenther@suse.de>
9561 PR tree-optimization/91291
9562 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
9565 2019-07-30 Jakub Jelinek <jakub@redhat.com>
9568 * omp-low.c (global_nonaddressable_vars): New variable.
9569 (use_pointer_for_field): For global decls, if they are non-addressable,
9570 remember it in the global_nonaddressable_vars bitmap, if they are
9571 addressable and in the global_nonaddressable_vars bitmap, ignore their
9572 TREE_ADDRESSABLE bit.
9573 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
9574 vars in global_nonaddressable_vars bitmap.
9575 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
9578 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
9579 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
9580 comparison to unsigned HOST_WIDE_INT before shifting it left.
9582 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9584 * config/i386/i386.md (movstrict<mode>): Use register_operand
9585 predicate for operand 0. Add expander condition. Assert that
9586 operand 0 is a SUBREG RTX.
9587 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
9588 Update operand constraints and insn condition.
9589 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
9590 (zero_extendqihi2_and): Do not call gen_movstrictqi.
9591 (*setcc_qi_slp): Use register_operand predicate for operand 0.
9592 Update operand 0 constraints.
9593 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
9595 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9597 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
9598 when -m{code,data}-region are used without -mlarge.
9599 * config/msp430/msp430.c (msp430_option_override): Error when a
9600 non-default code or data region is used without -mlarge.
9601 (msp430_section_attr): Emit a warning and do not add upper/lower/either
9602 attributes when they are used without -mlarge.
9604 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9607 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
9609 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9612 * wide-int.h (generic_wide_int::sext_elt): New function.
9613 * inchash.h (hash::add_wide_int): Use it instead of elt.
9615 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9617 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
9619 * config/arm/arm.md (<crc_variant>): Rename to...
9620 (arm_<crc_variant>): ... This.
9621 (<cdp>): Rename to...
9622 (arm_<cdp>): ... This.
9623 (<ldc>): Rename to...
9624 (arm_<ldc>): ... This.
9625 (<stc>): Rename to...
9626 (arm_<stc>): ... This.
9627 (<mcr>): Rename to...
9628 (arm_<mcr>): ... This.
9629 (<mrc>): Rename to...
9630 (arm_<mrc>): ... This.
9631 (<mcrr>): Rename to...
9632 (arm_<mcrr>): ... This.
9633 (<mrrc>): Rename to...
9634 (arm_<mrrc>): ... This.
9636 2019-07-29 Richard Biener <rguenther@suse.de>
9638 PR tree-optimization/91257
9639 * tree-ssa-sccvn.h (struct vn_avail): New.
9640 (struct vn_ssa_aux): Add avail member.
9641 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
9642 member, add m_avail_freelist one.
9643 (rpo_elim::~rpo_elim): Remove.
9644 (rpo_elim::eliminate_avail): Adjust to new avail tracking
9646 (rpo_elim::eliminate_push_avail): Likewise.
9647 (do_unwind): Likewise.
9648 (do_rpo_vn): Likewise.
9650 2019-07-29 Richard Biener <rguenther@suse.de>
9652 PR tree-optimization/91257
9653 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
9654 most cases, instead call compare_values which handles the
9655 symbolic ranges we handle specially.
9656 (compare_values_warnv): Do not call operand_less_p but open-code
9657 the effective fold calls. Avoid converting so much.
9659 2019-07-29 Martin Liska <mliska@suse.cz>
9661 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
9662 remove LHS of operator new call. It's handled latter.
9664 2019-07-29 Richard Biener <rguenther@suse.de>
9666 PR tree-optimization/91267
9667 * vr-values.c (vr_values::update_value_range): Add early return
9668 for effectively VARYING lattice entry.
9670 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9673 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
9674 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
9675 necessary if keep_all_vdefs_p is true.
9676 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
9677 that keep_all_vdefs_p is false.
9678 (mark_all_reaching_defs_necessary): Likewise.
9679 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
9681 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9683 * common.opt (Og): Change the initial value of flag_dse to 0.
9684 * opts.c (default_options_table): Move OPT_ftree_dse from
9685 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
9686 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
9687 entry before the OPT_ftree_sra entry.
9688 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
9689 of flags disabled by Og.
9691 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9693 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
9696 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9698 * doc/sourcebuild.texi (check-function-bodies): Document.
9700 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9702 * simplify-rtx.c (simplify_const_unary_operation): Fold a
9703 VEC_DUPLICATE of a fixed-length vector even if the result
9704 is variable-length. Likewise fold a duplicate of a
9705 variable-length vector if the variable-length vector is
9706 itself a duplicate of a fixed-length sequence.
9707 (test_vector_ops_duplicate): Test more cases.
9709 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9711 * vector-builder.h (vector_builder): Add a shape template parameter.
9712 (vector_builder::new_unary_operation): New function, generalizing
9713 the old tree_vector_builder function.
9714 (vector_builder::new_binary_operation): Likewise.
9715 (vector_builder::binary_encoded_nelts): Likewise.
9716 * int-vector-builder.h (int_vector_builder): Update template
9717 parameters to vector_builder.
9718 (int_vector_builder::shape_nelts): New function.
9719 * rtx-vector-builder.h (rtx_vector_builder): Update template
9720 parameters to vector_builder.
9721 (rtx_vector_builder::shape_nelts): New function.
9722 (rtx_vector_builder::nelts_of): Likewise.
9723 (rtx_vector_builder::npatterns_of): Likewise.
9724 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
9725 * tree-vector-builder.h (tree_vector_builder): Update template
9726 parameters to vector_builder.
9727 (tree_vector_builder::shape_nelts): New function.
9728 (tree_vector_builder::nelts_of): Likewise.
9729 (tree_vector_builder::npatterns_of): Likewise.
9730 (tree_vector_builder::nelts_per_pattern_of): Likewise.
9731 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
9732 (tree_vector_builder::new_binary_operation): Delete.
9733 (tree_vector_builder::binary_encoded_nelts): Likewise.
9734 * simplify-rtx.c: Include rtx-vector-builder.h.
9735 (distributes_over_addition_p): New function.
9736 (simplify_const_unary_operation)
9737 (simplify_const_binary_operation): Generalize handling of vector
9738 constants to include variable-length vectors.
9739 (test_vector_ops_series): Add more tests.
9741 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
9744 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
9745 than INDENTIFIER_POINTER.
9747 2019-07-28 Martin Liska <mliska@suse.cz>
9750 * cgraph.c (symbol_table::create_edge): Always allocate
9752 (symbol_table::free_edge): Store summary_id to
9753 edge_released_summary_ids if != -1;
9754 * cgraph.h (NEXT_FREE_NODE): Remove.
9755 (SET_NEXT_FREE_NODE): Likewise.
9756 (NEXT_FREE_EDGE): Likewise.
9757 (symbol_table::release_symbol): Store summary_id to
9758 cgraph_released_summary_ids if != -1;
9759 (symbol_table::allocate_cgraph_symbol): Always allocate
9762 2019-07-28 Alan Modra <amodra@gmail.com>
9764 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
9767 2019-07-28 Alan Modra <amodra@gmail.com>
9770 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
9772 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
9773 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
9774 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
9776 2019-07-28 Alan Modra <amodra@gmail.com>
9779 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
9780 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
9781 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
9782 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
9783 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
9784 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
9785 in asm_default spec.
9786 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
9787 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
9789 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
9791 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
9793 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9796 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
9797 * config/aarch64/aarch64-option-extensions.def: Add new comments
9798 and restore easier to read options.
9800 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9802 * convert.c (convert_to_real_1): Move part of conversion code...
9803 * match.pd: ...To here.
9805 2019-07-26 Martin Jambor <mjambor@suse.cz>
9808 * ipa-inline-transform.c (check_speculations_1): New function.
9809 (push_all_edges_in_set_to_vec): Likewise.
9810 (check_speculations): Use check_speculations_1, new parameter
9812 (inline_call): Pass new_edges to check_speculations.
9813 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
9815 (speculation_useful_p): Early return true if edge is inlined, remove
9816 later checks for inline_failed.
9818 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
9820 PR rtl-optimization/91223
9821 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
9822 matching with INOUT operand.
9824 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9826 * stmt.c (expand_case): Try to narrow the index type if it's larger
9827 than a word. Tidy up.
9829 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9831 * cif-code.def (NEVER_CALL): New code.
9832 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
9833 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
9835 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
9837 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
9838 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9840 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9842 * ipa-devirt.c (add_type_duplicate): Fix return value.
9844 2019-07-25 Richard Biener <rguenther@suse.de>
9846 * tree-vrp.c (extract_range_from_multiplicative_op): Add
9847 type parameter and use it instead of guessing expression
9848 type from the first operand.
9849 (extract_range_from_binary_expr): Pass expr_type down.
9851 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9853 * config/arm/arm.md (SATrev): Change to code attribute.
9854 (*satsi_<SAT:code>): Adjust for the above.
9855 (*satsi_<SAT:code>_shift): Likewise.
9857 2019-07-25 Richard Biener <rguenther@suse.de>
9859 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
9860 Make value_range * temporary const.
9861 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
9863 (evrp_range_analyzer::record_ranges_from_): Likewise.
9864 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
9865 deal with having recorded a const one.
9866 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
9867 Return a const value_range *.
9868 (evrp_range_analyzer::pop_value_range): Likewise.
9869 (evrp_range_analyzer::stack): Record const value_range *s.
9870 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
9872 * gimple-ssa-sprintf.c (get_int_range): Likewise.
9873 (format_integer): Likewise.
9874 (sprintf_dom_walker::handle_gimple_call): Likewise.
9875 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
9876 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
9877 (vrp_prop::get_value_range): Adjust.
9878 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
9879 modifying the lattice in-place.
9880 (vrp_prop::visit_stmt): Likewise.
9881 * vr-values.c (vr_values::get_lattice_entry): New private method.
9882 (vr_values::get_value_range): Wrap it and return a const
9884 (vr_values::set_def_to_varying): New.
9885 (vr_values::set_defs_to_varying): Use it.
9886 (vr_values::update_value_range): Likewise.
9887 (vr_values::vrp_stmt_computes_nonzero): Adjust.
9888 (values::op_with_constant_singleton_va): Likewise.
9889 (vr_values::extract_range_for_var_from_co): Likewise.
9890 (vr_values::extract_range_from_ssa_name): Likewise.
9891 (vr_values::extract_range_from_cond_expr): Likewise.
9892 (vr_values::extract_range_basic): Likewise.
9893 (compare_ranges): Take const value_range *, adjust.
9894 (compare_range_with_value): Likewise.
9895 (vrp_valueize): Adjust.
9896 (vrp_valueize_1): Likewise.
9897 (vr_values::get_vr_for_comparison): Return a const value_range *.
9898 (vr_values::compare_name_with_value): Adjust.
9899 (vr_values::compare_names): Likewise.
9900 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9902 (vr_values::vrp_evaluate_conditional): Likewise.
9903 (find_case_label_ranges): Take a const value_range *.
9904 (vr_values::vrp_visit_switch_stmt): Adjust.
9905 (vr_values::extract_range_from_phi_node): Likewise.
9906 (vr_values::simplify_div_or_mod_using_ran): Likewise.
9907 (vr_values::simplify_abs_using_ranges): Likewise.
9908 (test_for_singularity): Take a const value_range *.
9909 (range_fits_type_p): Likewise.
9910 (vr_values::simplify_cond_using_ranges_1): Adjust.
9911 (vr_values::simplify_cond_using_ranges_2): Likewise.
9912 (vr_values::simplify_switch_using_ranges): Likewise.
9913 (vr_values::simplify_float_conversion_usi): Likewise.
9914 (vr_values::two_valued_val_range_p): Likewise.
9915 * vr-values.h (vr_values::get_value_range): Return a const
9917 (vr_values::set_def_to_varying): New.
9918 (vr_values::get_lattice_entry): New private method.
9919 (vr_values::get_vr_for_comparison): Return a const value_range *.
9921 2019-07-25 Martin Liska <mliska@suse.cz>
9922 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
9925 * common.opt: Add -fallocation-dce
9926 * gimple.c (gimple_call_operator_delete_p): New.
9927 * gimple.h (gimple_call_operator_delete_p): Likewise.
9928 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
9929 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
9930 DECL_IS_OPERATOR_DELETE_P.
9931 (mark_all_reaching_defs_necessary_1): Likewise.
9932 (propagate_necessity): Likewise.
9933 (eliminate_unnecessary_stmts): Handle
9934 gimple_call_operator_delete_p.
9935 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
9936 Add packing of OPERATOR_DELETE.
9937 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
9939 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
9940 (DECL_SET_IS_OPERATOR_DELETE): New.
9941 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
9943 2019-07-25 Martin Liska <mliska@suse.cz>
9945 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
9946 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
9947 * coverage.c (coverage_begin_function): Likewise.
9948 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
9949 * gimple.c (gimple_call_nonnull_result_p): Likewise.
9950 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
9951 (sem_item::hash_referenced_symbol_properties): Likewise.
9952 * lto-streamer-out.c (hash_tree): Likewise.
9953 * predict.c (expr_expected_value_1): Likewise.
9954 * tree-inline.c (expand_call_inline): Likewise.
9955 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
9956 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
9957 * tree-core.h (enum function_decl_type): New enum.
9958 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
9959 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
9960 (set_function_decl_type): Likewise.
9961 (DECL_IS_OPERATOR_NEW_P): New.
9962 (DECL_SET_IS_OPERATOR_NEW): Likewise.
9963 (DECL_LAMBDA_FUNCTION): Likewise.
9964 (DECL_LAMBDA_FUNCTION_P): Likewise.
9965 (DECL_IS_OPERATOR_NEW): Remove.
9966 (DECL_SET_LAMBDA_FUNCTION): Likewise.
9968 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
9970 * ipa-profile.c (get_most_common_single_value): Use
9971 get_nth_most_common_value.
9972 * profile.c (sort_hist_value): New function.
9973 (compute_value_histograms): Call sort_hist_value to sort the
9974 values after loading from disk.
9975 * value-prof.c (get_most_common_single_value): Rename to ...
9976 get_nth_most_common_value. Add input params n, return
9977 the n_th value and count.
9978 (gimple_divmod_fixed_value_transform): Use
9979 get_nth_most_common_value.
9980 (gimple_ic_transform): Likewise.
9981 (gimple_stringops_transform): Likewise.
9982 * value-prof.h (get_most_common_single_value): Add input params
9985 2019-07-25 Richard Biener <rguenther@suse.de>
9987 PR tree-optimization/91236
9988 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
9989 size of CONSTRUCTOR write. Fix buffer size we pass to
9992 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9994 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
9995 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
9998 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10000 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
10001 explicitly disabled with --disable-initfini-array.
10003 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10005 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
10008 2019-07-24 Martin Sebor <msebor@redhat.com>
10010 PR tree-optimization/91183
10011 PR tree-optimization/86688
10012 * builtins.c (compute_objsize): Handle MEM_REF.
10013 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
10014 (get_min_string_length): Remove.
10015 (count_nonzero_bytes): New function.
10016 (handle_char_store): Rename...
10017 (handle_store): to this. Handle multibyte stores via integer types.
10018 (strlen_check_and_optimize_stmt): Adjust conditional and the called
10021 2019-07-24 Martin Sebor <msebor@redhat.com>
10024 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
10025 (diagnostic_report_diagnostic): Same.
10026 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
10027 (diagnostic_context::lang_mask): New data member.
10028 * ipa-pure-const.c (suggest_attribute): Use
10029 lang_hooks.option_lang_mask ().
10030 * opts-common.c (option_enabled): Handle new argument.
10031 (get_option_state): Pass an additional argument.
10032 * opts.c (print_filtered_help): Print supported languages for
10033 unsupported options. Adjust printing of current state.
10034 * opts.h (option_enabled): Add argument.
10035 * toplev.c (print_switch_values): Use lang_mask.
10036 (general_init): Set global_dc->lang_mask.
10038 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
10041 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
10043 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
10045 * cgraphunit.c (symbol_table::compile): Start and stop
10046 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
10047 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
10049 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
10051 * gimplify.c (flag_instrument_functions_exclude_p): Include
10052 namespace/class information in the printable name.
10053 * opts.c (add_comma_separated_to_vector): Add NUL terminator
10054 to tokens entered into the vector.
10056 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
10058 * tree-nested.c (build_simple_mem_ref_notrap): New function.
10059 (get_static_chain): Call it instead of build_simple_mem_ref.
10060 (get_frame_field): Likewise.
10061 (get_nonlocal_debug_decl): Likewise.
10062 (convert_nonlocal_reference_op): Likewise.
10064 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
10066 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
10068 (arc_compute_frame_size): Millicode is disabled when compiling
10070 (arc_return_address_register): Likewise.
10071 (arc_compute_function_type): Likewise.
10072 (arc_compute_frame_size): Likewise.
10073 (secondary_reload_info): Likewise.
10074 (arc_get_unalign): Likewise.
10075 (arc_can_use_return_insn): Declare.
10076 * config/arc/arc.c (AUX_LP_START): Define
10077 (AUX_LP_END): Likewise.
10078 (arc_frame_info): Update gmask member to 64-bit datum.
10079 (GMASK_LEN): Update.
10080 (arc_compute_function_type): Make it static, move it forward.
10081 (arc_must_save_register): Update, consider the extra regs.
10082 (arc_compute_millicode_save_restore_regs): Update to use the 64
10084 (arc_compute_frame_size): Likewise.
10085 (arc_enter_leave_p): Likewise.
10086 (arc_save_callee_saves): Likewise.
10087 (arc_restore_callee_saves): Likewise.
10088 (arc_save_callee_enter): Likewise.
10089 (arc_restore_callee_leave): Likewise.
10090 (arc_save_callee_milli): Likewise.
10091 (arc_restore_callee_milli): Likewise.
10092 (arc_expand_prologue): Add new interrupt handling.
10093 (arc_return_address_register): Make it static, move it forward.
10094 (arc_expand_epilogue): Add new interrupt handling.
10095 (arc_get_unalign): Delete.
10096 (arc_epilogue_uses): Make sure we do not remove the extra
10097 saved/restored registers when interrupt.
10098 (arc_can_use_return_insn): New function.
10099 (push_reg): Likewise.
10100 (pop_reg): Likewise.
10101 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
10103 (arc_restore_callee_saves): Likewise, but restoring.
10104 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
10105 (R33_REG): Likewise.
10106 (R34_REG): Likewise.
10107 (R35_REG): Likewise.
10108 (R36_REG): Likewise.
10109 (R37_REG): Likewise.
10110 (R38_REG): Likewise.
10111 (R39_REG): Likewise.
10112 (R45_REG): Likewise.
10113 (R46_REG): Likewise.
10114 (R47_REG): Likewise.
10115 (R48_REG): Likewise.
10116 (R49_REG): Likewise.
10117 (R50_REG): Likewise.
10118 (R51_REG): Likewise.
10119 (R52_REG): Likewise.
10120 (R53_REG): Likewise.
10121 (R54_REG): Likewise.
10122 (R55_REG): Likewise.
10123 (R56_REG): Likewise.
10124 (R58_REG): Likewise.
10125 (type): Add rtie attribute.
10126 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
10127 (movsi_insn): Accept moves to lp_count.
10128 (rtie): Update pattern.
10129 (simple_return): Simplify it, don't use this pattern as a return
10131 (arc600_rtie): New pattern.
10132 (p_return_i): Clean up.
10133 (return): Likewise.
10134 * config/arc/builtins.def (rtie): Only available for non ARC6xx
10136 * config/arc/predicates.md (move_src_operand): Consider lp_count
10139 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
10141 * config/s390/predicates.md (addv_const_operand): New predicate.
10142 * config/s390/s390-modes.def (CCO): New condition code mode.
10143 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
10144 (s390_branch_condition_mask): Likewise.
10145 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
10146 ("mulv<mode>4"): New expanders.
10147 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
10148 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
10149 pattern definitions.
10151 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10153 PR middle-end/91166
10154 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
10155 (define_predicates): Add entry for uniform_vector_p.
10156 (vec_same_elem_p): New match pattern.
10158 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
10161 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
10162 * config/i386/darwin32-biarch.h .. to here.
10163 * config/i386/darwin64-biarch.h: Adjust comments.
10164 * config/rs6000/darwin32-biarch.h: Likewise.
10165 * config/rs6000/darwin64-biarch.h: Likewise.
10166 * config.gcc: Missed commit from r273746
10167 (*-*-darwin*): Don't include CPU t-darwin here.
10168 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10169 an error message if i686-darwin configuration is attempted for
10172 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
10175 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
10176 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
10177 an error message if i686-darwin configuration is attempted for
10179 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
10180 (powerpc-*-darwin*): Use biarch files where needed.
10181 (powerpc64-*-darwin*): Likewise.
10182 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
10183 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10185 * config/i386/darwin32-biarch.h: New.
10186 * config/i386/darwin64.h: Rename.
10187 * config/i386/darwin64-biarch.h: To this.
10188 * config/i386/t-darwin: Rename.
10189 * config/i386/t-darwin32-biarch: To this.
10190 * config/i386/t-darwin64: Rename.
10191 * config/i386/t-darwin64-biarch: To this.
10192 * config/rs6000/darwin32-biarch.h: New.
10193 * config/rs6000/darwin64.h: Rename.
10194 * config/rs6000/darwin64-biarch.h: To this.
10195 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10197 * config/rs6000/t-darwin8: Rename.
10198 * config/rs6000/t-darwin32-biarch: To this.
10199 * config/rs6000/t-darwin64 Rename.
10200 * config/rs6000/t-darwin64-biarch: To this.
10202 2019-07-23 Martin Sebor <msebor@redhat.com>
10204 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
10206 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10208 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
10209 (rh): New alias for it.
10211 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10213 * gdbhooks.py: Pass replace=True to
10214 gdb.printing.register_pretty_printer.
10216 2019-07-23 Richard Biener <rguenther@suse.de>
10219 * lto-streamer-in.c (input_function): Drop inline-entry markers
10220 that ended up with an unknown location block.
10222 2019-07-23 Richard Biener <rguenther@suse.de>
10224 PR tree-optimization/83518
10225 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
10226 init from a constant even when partial defs are already recorded.
10228 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10230 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
10231 * config/i386/znver1.md: Enable patterns for znver2 and add store
10232 variants which use extra AGU unit.
10234 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10236 * config/i386/i386-options.c (ix86_option_override_internal): Default
10237 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
10238 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
10241 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10243 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
10244 (znver2_costs): Update 256 bit SSE costs and multiplication.
10246 2019-07-23 Jan Beulich <jbeulich@suse.com>
10248 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
10249 Require only AVX512F.
10250 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
10251 alternative expanding to vpternlog.
10253 2019-07-23 Martin Liska <mliska@suse.cz>
10255 * dwarf2out.c (gen_producer_string): Canonize -flto=N
10256 to -flto in dwarf producer string.
10258 2019-07-23 Richard Biener <rguenther@suse.de>
10260 * tree-cfg.c (label_for_bb): Remove global var.
10261 (main_block_label): Take label_for_bb as argument.
10262 (cleanup_dead_labels_eh): Likewise, adjust.
10263 (cleanup_dead_labels): Adjust.
10265 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10267 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
10268 Configurations): Add documentation for __builtin_mtfsf.
10270 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
10272 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
10273 * config/riscv/riscv.c (riscv_constant_alignment): Use
10274 riscv_align_data_type.
10275 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
10276 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10277 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10278 * config/riscv/riscv.opt (malign-data): New.
10279 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
10281 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
10283 * cgraph.c (dump_graphviz): New function.
10284 * cgraph.h (dump_graphviz): New function.
10285 * symtab.c (dump_graphviz): New function.
10287 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
10289 * config/aarch64/aarch64-simd.md
10290 (*aarch64_simd_sra<mode>): New.
10291 * config/aarch64/iterators.md
10292 (SHIFTRT): New iterator.
10293 (sra_op): New attribute.
10295 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10297 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
10298 callee-saved regs R4->R10 in an interrupt function that calls another
10301 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10303 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
10304 (_mm_blendv_epi8): New.
10306 2019-07-22 Richard Biener <rguenther@suse.de>
10308 PR tree-optimization/91221
10309 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
10310 restrict partial-def handling of empty constructors and
10311 memset to refs with known offset.
10313 2019-07-22 Jan Beulich <jbeulich@suse.com>
10315 * config/i386/sse.md (ternlogsuffix): New.
10316 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
10318 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
10320 2019-07-22 Martin Liska <mliska@suse.cz>
10322 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
10324 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
10326 2019-07-22 Martin Liska <mliska@suse.cz>
10328 * lto-section-in.c (lto_get_section_data):
10329 Use new function get_compression.
10330 * lto-streamer-out.c (produce_lto_section): Use
10331 set_compression to encode compression algorithm.
10332 * lto-streamer.h (struct lto_section): Do not
10333 use bitfields in the format.
10335 2019-07-22 Martin Liska <mliska@suse.cz>
10338 * opts-common.c (decode_cmdline_option): Decode
10339 argument of -Werror and check it for a wrong language.
10340 * opts-global.c (complain_wrong_lang): Remove such case.
10342 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
10344 * config/arc/arc.c (prepare_move_operands): Always use an
10345 intermediate register when storing a TLS symbols.
10347 2019-07-22 Stafford Horne <shorne@gmail.com>
10349 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
10352 2019-07-22 Stafford Horne <shorne@gmail.com>
10354 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
10355 and munordered-float validations.
10356 * config/or1k/constraints.md (d): New register constraint.
10357 * config/or1k/predicates.md (fp_comparison_operator): New.
10358 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
10360 (or1k_expand_compare): Normalize unordered comparisons.
10361 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
10362 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
10363 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
10364 * config/or1k/or1k.md (type): Add fpu.
10365 (fpu): New instruction reservation.
10366 (F, f, fr, fi, FI, FOP, fop): New.
10367 (<fop><F:mode>3): New ALU instruction definition.
10368 (float<fi><F:mode>2): New conversion instruction definition.
10369 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
10370 (fpcmpcc): New code iterator.
10371 (*sf_fp_insn): New instruction definition.
10372 (cstore<F:mode>4): New expand definition.
10373 (cbranch<F:mode>4): New expand definition.
10374 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
10375 munordered-float): New options.
10376 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
10379 2019-07-22 Stafford Horne <shorne@gmail.com>
10381 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
10382 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
10383 documenation to be more clear.
10384 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
10386 * config/or1k/or1k.opt (mrori): New option.
10387 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
10388 msfimm, mshftimm): Rewrite documentation to be more clear.
10389 * config/or1k/or1k.md (insn_support): Add ror and rori.
10390 (enabled): Add conditions for ror and rori.
10391 (rotrsi3): Replace condition for shftimm with ror and rori.
10393 2019-07-22 Stafford Horne <shorne@gmail.com>
10396 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
10397 (extend<mode>si2): Update predicate.
10398 * config/or1k/predicates.md (volatile_mem_operand): New.
10399 (reg_or_mem_operand): New.
10401 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
10403 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
10404 * config/rs6000/rs6000-call.c: ... to here.
10406 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10408 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
10411 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10413 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
10415 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10417 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
10419 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10421 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
10422 (any_memory_operand): New predicate.
10423 (reg_or_mem_operand): Use it.
10425 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10428 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
10430 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
10432 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
10433 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
10435 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10437 * tree.def (OMP_LOOP): New tree code.
10438 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
10439 (enum omp_clause_bind_kind): New enum.
10440 (struct tree_omp_clause): Add subcode.bind_kind.
10441 * tree.h (OMP_LOOP_CHECK): Rename to ...
10442 (OMP_LOOPING_CHECK): ... this.
10443 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
10444 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
10445 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
10446 (OMP_CLAUSE_BIND_KIND): Define.
10447 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10448 bind clause entries.
10449 (walk_tree_1): Handle OMP_CLAUSE_BIND.
10450 * tree-pretty-print.c (dump_omp_clause): Likewise.
10451 (dump_generic_node): Handle OMP_LOOP.
10452 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
10453 (in_omp_construct): New variable.
10454 (is_gimple_stmt): Handle OMP_LOOP.
10455 (gimplify_scan_omp_clauses): For lastprivate don't set
10456 check_non_private if code == OMP_LOOP. For reduction clause
10457 on OMP_LOOP combined with parallel or teams propagate as shared
10458 on the combined construct. Handle OMP_CLAUSE_BIND.
10459 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
10460 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
10461 for constructs from a loop construct to gimplify_scan_omp_clauses.
10462 Don't predetermine iterator linear on OMP_SIMD from loop construct.
10463 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
10464 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
10465 to match the implicit ORT_TARGET construct around whole body.
10466 Temporarily clear in_omp_construct when processing body.
10467 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
10468 etc. temporarily set in_omp_construct when processing body.
10469 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
10470 * omp-low.c (struct omp_context): Add loop_p.
10471 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
10472 in that the original var might be private.
10473 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
10474 (check_omp_nesting_restrictions): Adjust nesting restrictions for
10475 addition of loop construct.
10476 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
10478 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
10479 lastprivate non-addressable iterator of a collapse(1) simd.
10481 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
10483 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
10486 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
10488 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
10489 refer to default conditions. Warn for the 'y' spec which is ignored
10490 by current linkers.
10492 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
10494 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
10495 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10496 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10497 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10498 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10499 init_cumulative_args, rs6000_promote_function_mode,
10500 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10501 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10502 rs6000_function_arg_boundary, rs6000_parm_offset,
10503 rs6000_parm_start, rs6000_arg_size,
10504 rs6000_darwin64_record_arg_advance_flush,
10505 rs6000_darwin64_record_arg_advance_recurse,
10506 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10507 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10508 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10509 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10510 rs6000_finish_function_arg, rs6000_function_arg,
10511 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10512 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10513 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10514 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10515 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10516 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10517 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10518 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10519 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10520 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10521 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10522 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10523 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10524 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10525 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10526 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10527 get_element_number, altivec_expand_vec_set_builtin,
10528 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10529 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10530 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10531 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10532 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10533 rs6000_expand_builtin, rs6000_vector_type,
10534 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10535 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10536 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
10538 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
10539 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10540 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10541 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10542 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10543 init_cumulative_args, rs6000_promote_function_mode,
10544 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10545 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10546 rs6000_function_arg_boundary, rs6000_parm_offset,
10547 rs6000_parm_start, rs6000_arg_size,
10548 rs6000_darwin64_record_arg_advance_flush,
10549 rs6000_darwin64_record_arg_advance_recurse,
10550 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10551 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10552 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10553 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10554 rs6000_finish_function_arg, rs6000_function_arg,
10555 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10556 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10557 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10558 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10559 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10560 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10561 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10562 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10563 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10564 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10565 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10566 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10567 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10568 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10569 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10570 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10571 get_element_number, altivec_expand_vec_set_builtin,
10572 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10573 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10574 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10575 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10576 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10577 rs6000_expand_builtin, rs6000_vector_type,
10578 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10579 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10580 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
10581 to here from rs6000.c.
10582 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
10583 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
10584 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
10585 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
10586 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
10587 rs6000_return_in_memory, rs6000_return_in_msb,
10588 rs6000_pass_by_reference, setup_incoming_varargs,
10589 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
10590 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
10591 rs6000_function_arg_padding, rs6000_function_arg,
10592 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
10593 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
10594 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
10595 rs6000_passes_long_double, rs6000_passes_vector,
10596 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
10597 altivec_builtin_mask_for_load) Add declarations.
10598 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
10599 * config/config.gcc: Add new source file rs6000-call.c to garbage
10600 collector and extra_objs.
10602 2019-07-19 Jeff Law <law@redhat.com>
10604 PR tree-optimization/86061
10605 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
10606 strncpy. Drop some trivial dead code.
10607 (maybe_trim_memstar_call): Handle strncpy.
10609 2019-07-19 Richard Biener <rguenther@suse.de>
10611 PR tree-optimization/91211
10612 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10613 memset encoding size.
10615 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
10618 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
10620 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
10623 * ipa-inline.c (recursive_inlining): Fix limits check.
10625 2019-07-19 Richard Biener <rguenther@suse.de>
10627 PR tree-optimization/91200
10628 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
10629 no PHI nodes in middle-bb.
10631 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
10633 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
10635 * config/aarch64/aarch64-option-extensions.def: Likewise.
10637 2019-07-19 Jakub Jelinek <jakub@redhat.com>
10639 PR middle-end/91190
10640 * function.c (insert_temp_slot_address): Store into the hash table
10641 a copy of address to avoid RTL sharing issues.
10643 2019-07-19 Richard Biener <rguenther@suse.de>
10645 PR tree-optimization/91207
10647 2019-07-17 Richard Biener <rguenther@suse.de>
10649 PR tree-optimization/91178
10650 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10651 loads with a gap larger than the vector size always use
10653 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10654 avoid loading vectors that are only contained in the gap
10655 and thus are not needed.
10657 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10659 * config/i386/i386.md (*addqi_2_slp): Remove.
10660 (*<code>qi_2_slp): Ditto.
10662 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
10664 * config/rs6000/predicates.md (prefixed_mem_operand): Call
10665 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
10666 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
10667 Rename function from rs6000_prefixed_address.
10668 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10670 (TARGET_TOC): Likewise.
10671 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10673 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10675 (TARGET_TOC): Likewise.
10676 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10678 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10680 (TARGET_TOC): Likewise.
10681 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10682 check to require -mcmodel=medium for pc-relative addressing.
10683 (create_TOC_reference): Add assertion for TARGET_TOC.
10684 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
10686 (rs6000_emit_move): Likewise.
10687 (TOC_alias_set): Rename TOC alias set static variable from 'set'
10688 to 'TOC_alias_set'.
10689 (get_TOC_alias_set): Likewise.
10690 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
10692 (rs6000_can_eliminate): Likewise.
10693 (rs6000_prefixed_address_mode_p): Rename function from
10694 rs6000_prefixed_address.
10695 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
10696 TARGET_HAS_TOC and not pc-relative.
10697 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
10698 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10700 (TARGET_TOC): Likewise.
10701 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10704 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10707 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
10708 for operand 0. Do not use (match_dup) to match operand 1 with
10709 operand 0. Add check in insn constraint that either input operand
10710 matches operand 0. Use SWI12 mode iterator to also handle
10712 (*and<mode>_1_slp): Ditto.
10713 (*<code>qi_1_slp): Ditto.
10714 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
10715 Do not use (match_dup) to match operand 1 with operand 0. Add
10716 check in insn constraint that operand 1 matches operand 0.
10717 Use SWI12 mode iterator to also handle HImode operands.
10718 (*ashl<mode>3_1_slp): Ditto.
10719 (*<shift_insn><mode>3_1_slp): Ditto.
10720 (*<rotate_insn><mode>3_1_slp): Ditto.
10722 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10724 * config/arm/arm-builtins.c
10725 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
10726 (arm_expand_unop_builtin): Likewise.
10727 * config/arm/crypto.md
10728 (crypto_sha1h): Convert from define_insn to define_expand.
10729 (crypto_<crypto_pattern>): Likewise.
10730 (crypto_sha1h_lb): New define_insn.
10731 (crypto_<crypto_pattern>_lb): Likewise.
10733 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10736 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
10737 (vsha1cq_u32): Likewise.
10738 (vsha1pq_u32): Likewise.
10739 (vsha1mq_u32): Likewise.
10740 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
10742 (crypto_sha1c): Correct vec select.
10743 (crypto_sha1m): Likewise.
10744 (crypto_sha1p): Likewise.
10746 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
10748 * config/arm/predicates.md (arm_borrow_operation): New predicate.
10749 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
10750 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
10751 (subdi_zesidi_zesidi): Likewise.
10752 (negdi2_compare, negdi2_insn): Likewise.
10753 (negdi_extensidi): Likewise.
10754 (negdi_zero_extendsidi): Likewise.
10755 (arm_cmpdi_insn): Likewise.
10756 (subsi3_carryin): Use arm_borrow_operation.
10757 (subsi3_carryin_const): Likewise.
10758 (subsi3_carryin_const0): Likewise.
10759 (subsi3_carryin_compare): Likewise.
10760 (subsi3_carryin_compare_const): Likewise.
10761 (subsi3_carryin_compare_const0): Likewise.
10762 (subsi3_carryin_shift): Likewise.
10763 (rsbsi3_carryin_shift): Likewise.
10764 (negsi2_carryin_compare): Likewise.
10766 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
10768 PR tree-optimization/91137
10769 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
10770 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
10771 Init, use and fini the above new field.
10772 (determine_base_object_1): New function.
10773 (determine_base_object): Reimplement using walk_tree.
10775 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
10777 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
10778 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
10779 CLEANUP_FORCE_FAST_DCE is set.
10780 * ifcvt.c (rest_of_handle_if_conversion): Pass
10781 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
10782 if-conversion succeeded.
10784 2019-07-18 Richard Biener <rguenther@suse.de>
10786 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
10787 branches to make code less indented.
10789 2019-07-17 Alexandre Oliva <oliva@adacore.com>
10791 PR middle-end/81824
10792 * attribs.c (decls_mismatched_attributes): Simplify the logic
10793 that avoids duplicates and false positives.
10795 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
10797 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
10798 data into data section when generating PIC code.
10799 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
10800 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
10801 generating code for SOM targets earlier than HP-UX 11. Otherwise,
10802 return 2 for SOM and 0 for other targets.
10804 2019-07-17 Jeff Law <law@redhat.com>
10806 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
10807 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
10808 avoid unexpected switch statement fallthru.
10810 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10812 * config/i386/i386.md (*add<dwi>3_doubleword):
10813 Remove redundant constraints.
10814 (*add<mode>_1): Ditto.
10817 (*addqi_1_slp): Ditto.
10818 (*add<mode>_2): Ditto.
10819 (*addv<mode>4): Ditto.
10820 (*sub<dwi>3_doubleword): Ditto.
10821 (*sub<mode>_1): Ditto.
10822 (*subqi_1_slp): Ditto.
10823 (*sub<mode>_2): Ditto.
10824 (*subv<mode>4): Ditto.
10825 (*sub<mode>_3): Ditto.
10826 (@add<mode>3_carry): Ditto.
10827 (@sub<mode>3_carry): Ditto.
10828 (*add<mode>3_cc_overflow_1): Ditto.
10829 (*add<mode>3_zext_cc_overflow_2): Ditto.
10831 (*and<mode>_1): Ditto.
10833 (*andqi_1_slp): Ditto.
10835 (*andqi_2_maybe_si): Ditto.
10836 (*and<mode>_2): Ditto.
10837 (*andqi_2_slp): Ditto.
10838 (*<code><mode>_1): Ditto.
10839 (*<code>qi_1): Ditto.
10840 (*<code>qi_1_slp): Ditto.
10841 (*<code><mode>_2): Ditto.
10842 (*<code>qi_2_slp): Ditto.
10844 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
10846 * alias.c (record_component_aliases): Do not simplify pointed-to
10847 types of ODR types.
10849 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10851 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
10852 partial reg stall on alternative 2.
10854 2019-07-17 Richard Biener <rguenther@suse.de>
10856 PR tree-optimization/91178
10857 * tree-ssa.c (release_defs_bitset): Iterate from higher to
10858 lower SSA names to avoid quadratic behavior in the common case.
10859 * tree-data-ref.c (split_constant_offset): Add limit argument
10860 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10861 (split_constant_offset_1): Add limit argument and use it to
10862 limit SSA def walking. Optimize the common plus/minus case.
10864 2019-07-17 Richard Biener <rguenther@suse.de>
10866 PR tree-optimization/91178
10867 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10868 loads with a gap larger than the vector size always use
10870 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10871 avoid loading vectors that are only contained in the gap
10872 and thus are not needed.
10874 2019-07-17 Richard Biener <rguenther@suse.de>
10876 PR tree-optimization/91180
10877 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
10878 computation for memset partial defs.
10880 2019-07-17 Jakub Jelinek <jakub@redhat.com>
10882 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
10883 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
10884 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
10885 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
10886 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
10887 * omp-grid.c (grid_process_grid_body,
10888 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
10889 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
10890 == GF_OMP_FOR_KIND_SIMD.
10891 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
10892 check_omp_nesting_restrictions, scan_omp_1_stmt,
10893 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
10894 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
10895 omp_find_scan): Likewise.
10896 * omp-expand.c (expand_omp_for): Likewise.
10897 * omp-general.c (omp_extract_for_data): Likewise.
10899 PR tree-optimization/91157
10900 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
10901 a vector boolean with scalar mode.
10902 (expand_vector_condition): Handle first operand being a vector boolean
10904 (expand_vector_operations_1): For comparisons, don't bail out early
10905 if the return type is vector boolean with scalar mode, but comparison
10906 operand type is not.
10908 2019-07-17 Richard Biener <rguenther@suse.de>
10910 PR tree-optimization/91181
10911 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
10912 IFN_LOADs as calls.
10914 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
10916 * config/i386/i386.md (*testdi_1): Match CCZmode for
10917 constants that might have the SImode sign bit set.
10918 (*testqi_1_maybe_si): Remove "!" constraint modifier.
10919 Use correct constraints for pentium pairing.
10920 (*test<mode>_1): Ditto.
10922 2019-07-16 Jeff Law <law@redhat.com>
10924 PR rtl-optimization/91173
10925 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
10926 SSA_NAME with a constant value, fold its value into the offset
10927 and clear the base before calling gen_addr_rtx.
10929 2019-07-16 Jakub Jelinek <jakub@redhat.com>
10931 PR rtl-optimization/91164
10932 * dse.c (rest_of_handle_dse): If dead edges have been purged,
10933 invalidate dominance info.
10935 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10937 * read-md.h (md_reader::record_potential_iterator_use): Add a
10938 file_location parameter.
10939 * read-rtl.c (attribute_use::loc): New field.
10940 (map_attr_string): Take a file_location parameter. Report cases
10941 in which attributes map to multiple distinct values.
10942 (apply_attribute_uses): Update call accordingly.
10943 (md_reader::handle_overloaded_name): Likewise.
10944 (md_reader::apply_iterator_to_string): Likewise. Skip empty
10946 (record_attribute_use): Take a file_location parameter.
10947 Initialize attribute_use::loc.
10948 (md_reader::record_potential_iterator_use): Take a file_location
10949 parameter. Update call to record_attribute_use.
10950 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
10951 (rtx_reader::read_rtx_code): Likewise.
10952 (rtx_reader::read_rtx_operand): Likewise. Record a location
10953 for implicitly-expanded empty strings.
10955 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10957 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
10958 Use file_location instead of separate fields.
10959 (md_reader::set_md_ptr_loc): Take a file_location instead of a
10960 separate filename and line number.
10961 * read-md.c (ptr_loc): As above.
10962 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
10963 (md_reader::fprint_md_ptr_loc): Likewise.
10964 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
10965 instead of a separate filename and line number.
10966 (md_reader::read_string): Update call accordingly.
10968 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10970 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
10971 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
10972 leaving the choice between SFDF and P implicit.
10973 (*mov<mode>_update2): Likewise.
10974 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
10975 rather than leaving the choice betweem IBM128 and GPR implicit.
10976 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
10977 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
10979 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
10980 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
10981 * config/rs6000/vsx.md
10982 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
10983 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
10984 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
10985 and VSX_EXTRACT_I implicit.
10987 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10989 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
10990 Explicitly use <MOVEP1:MODE> for the mode attribute.
10992 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
10995 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
10997 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
11000 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
11001 .machine directive.
11003 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
11005 * config/i386/i386.md (@test<mode>_ccno_1):
11006 Rename from test<mode>_ccno_1.
11007 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
11008 (*testqi_1_maybe_si): Remove modrm attribute.
11009 (*test<mode>_1): Ditto.
11010 * config/i386/i386-expand.c (ix86_split_idivmod): Use
11011 gen_test_ccno_1 and gen_extend_insn.
11013 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
11015 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
11018 2019-07-15 Richard Biener <rguenther@suse.de>
11020 PR middle-end/91162
11021 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
11022 node make sure to replace all uses with something valid.
11024 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
11026 PR tree-optimization/88497
11027 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
11028 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
11029 function undistribute_bitref_for_vector.
11030 (undistribute_bitref_for_vector): New function.
11031 (cleanup_vinfo_map): Likewise.
11032 (sort_by_mach_mode): Likewise.
11034 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
11036 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
11037 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
11038 and testdi_ccno_1 using SWI48 mode attribute.
11039 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
11040 x86_64_szext_general_operand.
11041 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
11042 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
11043 instead of genera_operand mode attribute.
11045 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
11047 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
11048 fopen and fclose to their respective types.
11049 (DotFn.invoke): Ditto.
11051 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
11053 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
11054 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
11055 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
11056 (array_index_predicate): Remove.
11057 (analyze_function_body): Account cost for variable ofsetted array
11059 (estimate_node_size_and_time): Do not compute array index hint.
11060 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
11061 (inline_read_section): Do not read array index hint.
11062 (ipa_fn_summary_write): Do not write array index hint.
11063 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
11064 * ipa-cp.c (hint_time_bonus): Remove.
11065 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
11066 (ipa_fnsummary): Remove array_index.
11067 * ipa-inline.c (want_inline_small_function_p): Do not use
11069 (edge_badness): Likewise.
11070 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
11072 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
11075 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
11076 superfluous "builtin function" phrasing.
11078 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
11080 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
11082 (aliasing_component_refs_walk): Break out from ...
11083 (aliasing_component_refs_p): ... here.
11085 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
11088 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
11089 "builtin function" phrasing.
11091 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11094 * recog.h (temporary_volatile_ok): New class.
11095 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
11096 volatile_ok temporarily to true using temporary_volatile_ok.
11097 * expr.c (emit_block_move_via_cpymem): Likewise.
11098 * optabs.c (maybe_legitimize_operand): Likewise.
11100 2019-07-13 Jakub Jelinek <jakub@redhat.com>
11102 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
11103 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
11104 uses inside of order(concurrent) constructs.
11105 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
11106 OMP_CLAUSE_ORDER is seen.
11107 * omp-low.c (struct omp_context): Add order_concurrent member.
11108 (scan_sharing_clauses): Set ctx->order_concurrent if
11109 OMP_CLAUSE_ORDER is seen.
11110 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
11111 of simd order(concurrent). Diagnose constructs not allowed inside of
11112 for order(concurrent).
11113 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
11114 complaining about static double setjmp (double); or class static
11115 methods or non-global namespace setjmps.
11116 (omp_runtime_api_call): New function.
11117 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
11118 order(concurrent) loops.
11120 2019-07-12 Martin Sebor <msebor@redhat.com>
11122 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
11123 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
11124 * tree-vrp.c (vrp_prop::check_mem_ref): Use
11125 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
11127 2019-07-12 Jan Hubicka <jh@suse.cz>
11129 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
11130 (indirect_refs_may_alias_p): ... here.
11131 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
11132 mem refs in the access paths.
11134 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
11136 PR tree-optimization/89430
11137 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
11138 store elimination for local variable without address escape.
11140 2019-07-12 Jeff Law <law@redhat.com>
11142 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
11143 for the ".far" section.
11145 2019-07-12 Richard Biener <rguenther@suse.de>
11147 PR tree-optimization/91145
11148 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
11151 2019-07-12 Alexandre Oliva <oliva@adacore.com>
11153 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
11154 rather than this_state as the lowering context for the ELSE
11155 seq in a GIMPLE_EH_ELSE.
11157 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11159 * vector-builder.h (vector_builder::elt): Allow already-supplied
11160 elements to be read back before building is complete.
11162 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11164 PR rtl-optimization/91136
11165 * df-core.c (ACCESSING REFS): Fix typos in comment.
11166 * resource.c (mark_target_live_reg): Add artificial defs that occur at
11167 the beginning of the block to the initial set of live registers.
11169 2019-07-12 Richard Biener <rguenther@suse.de>
11171 * fold-const.h (get_array_ctor_element_at_index): Adjust.
11172 * fold-const.c (get_array_ctor_element_at_index): Add
11173 ctor_idx output parameter informing the caller where in
11174 the constructor the element was (not) found. Add early exit
11175 for when the ctor is sorted.
11176 * gimple-fold.c (fold_array_ctor_reference): Support constant
11177 folding across multiple array elements.
11179 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
11181 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
11182 doesn't have location, set the current location to the function's end.
11184 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11186 * config/aarch64/aarch64.md (*compare_condjump<mode>)
11187 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
11188 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
11189 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
11190 * config/aarch64/aarch64-simd.md
11191 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
11192 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
11193 * config/aarch64/aarch64-sve.md
11194 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
11195 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
11197 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11199 * doc/md.texi: Document that @ patterns can have different
11200 numbers of operands.
11201 * genemit.c (handle_overloaded_gen): Handle this case.
11202 * genopinit.c (handle_overloaded_gen): Likewise.
11203 * gensupport.c (replace_operands_with_dups): Iterate over
11204 the new rtx's format rather than the old one's.
11206 2019-07-12 Jakub Jelinek <jakub@redhat.com>
11208 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
11209 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11210 order clause entries.
11211 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
11212 * tree-pretty-print.c (dump_omp_clause): Likewise.
11213 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
11215 * omp-low.c (scan_sharing_clauses): Likewise.
11216 * tree-nested.c (convert_nonlocal_omp_clauses,
11217 convert_local_omp_clauses): Likewise.
11219 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
11221 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
11222 fallthrough target of current basic block isn't the placed
11225 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
11228 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
11229 (_mm512_storeu_epi64): Likewise.
11230 (_mm512_loadu_epi32): Likewise.
11231 (_mm512_storeu_epi32): Likewise.
11232 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
11233 (_mm_storeu_epi64): Likewise.
11234 (_mm256_storeu_epi32): Likewise.
11235 (_mm_storeu_epi32): Likewise.
11237 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11239 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
11241 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11243 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
11246 2019-07-11 Jakub Jelinek <jakub@redhat.com>
11249 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
11250 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11251 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
11252 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
11253 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
11254 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
11256 (ufix_truncv2dfv2si2<mask_name>): Change into ...
11257 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
11258 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
11260 (sse2_cvttpd2dq<mask_name>): Change into ...
11261 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
11262 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
11263 (*sse2_cvtpd2dq<mask_name>): Change into ...
11264 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11265 Add "C" constraint to const0_operand.
11266 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
11267 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
11271 * config/i386/i386-builtin-types.def
11272 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
11273 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
11274 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
11275 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
11276 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
11277 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
11278 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
11279 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
11280 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
11281 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
11282 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
11283 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
11284 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
11285 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
11286 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
11287 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
11288 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
11289 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
11290 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
11291 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
11292 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
11293 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
11294 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
11295 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
11296 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
11297 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
11298 __builtin_ia32_vpdpbusd_v4si_maskz,
11299 __builtin_ia32_vpdpbusds_v16si_mask,
11300 __builtin_ia32_vpdpbusds_v16si_maskz,
11301 __builtin_ia32_vpdpbusds_v8si_mask,
11302 __builtin_ia32_vpdpbusds_v8si_maskz,
11303 __builtin_ia32_vpdpbusds_v4si_mask,
11304 __builtin_ia32_vpdpbusds_v4si_maskz,
11305 __builtin_ia32_vpdpwssd_v16si_mask,
11306 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
11307 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
11308 __builtin_ia32_vpdpwssd_v4si_maskz,
11309 __builtin_ia32_vpdpwssds_v16si_mask,
11310 __builtin_ia32_vpdpwssds_v16si_maskz,
11311 __builtin_ia32_vpdpwssds_v8si_mask,
11312 __builtin_ia32_vpdpwssds_v8si_maskz,
11313 __builtin_ia32_vpdpwssds_v4si_mask,
11314 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
11315 suffixed types rather than *_INT.
11316 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
11317 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
11318 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
11319 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
11320 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
11321 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
11323 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
11325 * tree-vrp.c (intersect_ranges): If we know the intersection is
11326 empty, there is no need to conservatively add anything else to
11329 2019-07-11 Richard Biener <rguenther@suse.de>
11331 PR middle-end/91131
11332 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
11333 when the object is volatile and we have not cleared it even though
11334 there are no nonzero elements.
11336 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
11338 * config/rs6000/predicates.md (cint34_operand): Update
11339 SIGNED_34BIT_OFFSET_P call.
11340 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
11341 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
11342 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
11343 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
11344 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
11346 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
11347 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
11348 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
11349 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
11350 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
11352 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
11354 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
11355 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
11356 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
11357 (DEF_MIN_OSX_VERSION): New.
11359 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11361 * fold-const.c (fold_relational_const): Fix folding of
11362 vector-to-scalar NE_EXPRs.
11363 (test_vector_folding): Add more tests.
11365 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11368 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
11369 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
11370 (vec_setv2di_internal): Reexpress as...
11371 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
11372 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
11373 rather than gen_neon_vset_lane<mode>.
11375 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
11378 * lra-constraints.c (process_alt_operands): Don't match user
11379 defined regs only if they are early clobbers.
11381 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
11383 * wide-int.h (wi::lshift): Reject negative values for the fast path.
11385 2019-07-10 Richard Biener <rguenther@suse.de>
11387 PR tree-optimization/91126
11388 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
11389 native encoding offset for BYTES_BIG_ENDIAN.
11390 (vn_reference_lookup_3): Likewise.
11392 2019-07-10 Richard Biener <rguenther@suse.de>
11394 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
11395 LHS whenever possible.
11397 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
11399 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
11400 from ...; work also on duplicated types.
11401 (nonoverlapping_component_refs_since_match): ... here
11402 (ncr_type_uid): Break out from ...
11403 (ncr_compar): ... here; look for TYPE_UID of canonical type if
11405 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
11406 the types and nonoverlapping_component_refs_p_1 to disambiguate.
11408 2019-07-09 Martin Sebor <msebor@redhat.com>
11410 PR tree-optimization/90989
11411 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
11412 optimization to just single character stores.
11414 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
11416 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
11417 Swap operands only once.
11419 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
11421 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
11422 for both call instructions.
11424 2019-07-09 John Darrington <john@darrington.wattle.id.au>
11426 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
11427 rather than GET_MODE_BITSIZE to better handle partial integer modes.
11429 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
11431 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
11432 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
11433 function from rs6000-logue.c back to rs6000.c.
11434 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
11436 2019-07-09 Martin Sebor <msebor@redhat.com>
11439 * auto-profile.c: Change class-key of PODs to struct and others
11441 * basic-block.h: Same.
11442 * bitmap.c (bitmap_alloc): Same.
11444 * builtins.c (expand_builtin_prefetch): Same.
11445 (expand_builtin_interclass_mathfn): Same.
11446 (expand_builtin_strlen): Same.
11447 (expand_builtin_mempcpy_args): Same.
11448 (expand_cmpstr): Same.
11449 (expand_builtin___clear_cache): Same.
11450 (expand_ifn_atomic_bit_test_and): Same.
11451 (expand_builtin_thread_pointer): Same.
11452 (expand_builtin_set_thread_pointer): Same.
11453 * caller-save.c (setup_save_areas): Same.
11454 (replace_reg_with_saved_mem): Same.
11455 (insert_restore): Same.
11456 (insert_save): Same.
11457 (add_used_regs): Same.
11458 * cfg.c (get_bb_copy): Same.
11459 (set_loop_copy): Same.
11462 * cfgexpand.c (alloc_stack_frame_space): Same.
11463 (add_stack_var): Same.
11464 (add_stack_var_conflict): Same.
11465 (add_scope_conflicts_1): Same.
11466 (update_alias_info_with_stack_vars): Same.
11467 (expand_used_vars): Same.
11468 * cfghooks.c (redirect_edge_and_branch_force): Same.
11469 (delete_basic_block): Same.
11470 (split_edge): Same.
11471 (make_forwarder_block): Same.
11472 (force_nonfallthru): Same.
11473 (duplicate_block): Same.
11474 (lv_flush_pending_stmts): Same.
11475 * cfghooks.h: Same.
11476 * cfgloop.c (flow_loops_cfg_dump): Same.
11477 (flow_loop_nested_p): Same.
11478 (superloop_at_depth): Same.
11479 (get_loop_latch_edges): Same.
11480 (flow_loop_dump): Same.
11481 (flow_loops_dump): Same.
11482 (flow_loops_free): Same.
11483 (flow_loop_nodes_find): Same.
11484 (establish_preds): Same.
11485 (flow_loop_tree_node_add): Same.
11486 (flow_loop_tree_node_remove): Same.
11487 (flow_loops_find): Same.
11488 (find_subloop_latch_edge_by_profile): Same.
11489 (find_subloop_latch_edge_by_ivs): Same.
11490 (mfb_redirect_edges_in_set): Same.
11491 (form_subloop): Same.
11492 (merge_latch_edges): Same.
11493 (disambiguate_multiple_latches): Same.
11494 (disambiguate_loops_with_multiple_latches): Same.
11495 (flow_bb_inside_loop_p): Same.
11496 (glb_enum_p): Same.
11497 (get_loop_body_with_size): Same.
11498 (get_loop_body): Same.
11499 (fill_sons_in_loop): Same.
11500 (get_loop_body_in_dom_order): Same.
11501 (get_loop_body_in_custom_order): Same.
11502 (release_recorded_exits): Same.
11503 (get_loop_exit_edges): Same.
11504 (num_loop_branches): Same.
11505 (remove_bb_from_loops): Same.
11506 (find_common_loop): Same.
11507 (delete_loop): Same.
11508 (cancel_loop): Same.
11509 (verify_loop_structure): Same.
11510 (loop_preheader_edge): Same.
11511 (loop_exit_edge_p): Same.
11512 (single_exit): Same.
11513 (loop_exits_to_bb_p): Same.
11514 (loop_exits_from_bb_p): Same.
11515 (get_loop_location): Same.
11516 (record_niter_bound): Same.
11517 (get_estimated_loop_iterations_int): Same.
11518 (max_stmt_executions_int): Same.
11519 (likely_max_stmt_executions_int): Same.
11520 (get_estimated_loop_iterations): Same.
11521 (get_max_loop_iterations): Same.
11522 (get_max_loop_iterations_int): Same.
11523 (get_likely_max_loop_iterations): Same.
11524 * cfgloop.h (simple_loop_desc): Same.
11526 (loop_depth): Same.
11527 (loop_outer): Same.
11528 (loop_iterator::next): Same.
11529 (loop_outermost): Same.
11530 * cfgloopanal.c (mark_irreducible_loops): Same.
11531 (num_loop_insns): Same.
11532 (average_num_loop_insns): Same.
11533 (expected_loop_iterations_unbounded): Same.
11534 (expected_loop_iterations): Same.
11535 (mark_loop_exit_edges): Same.
11536 (single_likely_exit): Same.
11537 * cfgloopmanip.c (fix_bb_placement): Same.
11538 (fix_bb_placements): Same.
11539 (remove_path): Same.
11540 (place_new_loop): Same.
11542 (scale_loop_frequencies): Same.
11543 (scale_loop_profile): Same.
11544 (create_empty_if_region_on_edge): Same.
11545 (create_empty_loop_on_edge): Same.
11548 (fix_loop_placements): Same.
11549 (copy_loop_info): Same.
11550 (duplicate_loop): Same.
11551 (duplicate_subloops): Same.
11552 (loop_redirect_edge): Same.
11553 (can_duplicate_loop_p): Same.
11554 (duplicate_loop_to_header_edge): Same.
11555 (mfb_keep_just): Same.
11556 (has_preds_from_loop): Same.
11557 (create_preheader): Same.
11558 (create_preheaders): Same.
11559 (lv_adjust_loop_entry_edge): Same.
11560 (loop_version): Same.
11561 * cfgloopmanip.h: Same.
11563 * cgraphbuild.c: Same.
11564 * combine.c (make_extraction): Same.
11565 * config/i386/i386-features.c: Same.
11566 * config/i386/i386-features.h: Same.
11567 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
11568 (ix86_emit_outlined_ms2sysv_restore): Same.
11569 (ix86_noce_conversion_profitable_p): Same.
11570 (ix86_init_cost): Same.
11571 (ix86_simd_clone_usable): Same.
11572 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
11574 * coretypes.h: Same.
11575 * data-streamer-in.c (string_for_index): Change class-key of PODs
11576 to struct and others to class.
11577 (streamer_read_indexed_string): Same.
11578 (streamer_read_string): Same.
11579 (bp_unpack_indexed_string): Same.
11580 (bp_unpack_string): Same.
11581 (streamer_read_uhwi): Same.
11582 (streamer_read_hwi): Same.
11583 (streamer_read_gcov_count): Same.
11584 (streamer_read_wide_int): Same.
11585 * data-streamer.h (streamer_write_bitpack): Same.
11586 (bp_unpack_value): Same.
11587 (streamer_write_char_stream): Same.
11588 (streamer_write_hwi_in_range): Same.
11589 (streamer_write_record_start): Same.
11590 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
11591 (add_cross_iteration_register_deps): Same.
11592 (build_intra_loop_deps): Same.
11593 * df-core.c (df_analyze): Same.
11594 (loop_post_order_compute): Same.
11595 (loop_inverted_post_order_compute): Same.
11596 * df-problems.c (df_rd_alloc): Same.
11597 (df_rd_simulate_one_insn): Same.
11598 (df_rd_local_compute): Same.
11599 (df_rd_init_solution): Same.
11600 (df_rd_confluence_n): Same.
11601 (df_rd_transfer_function): Same.
11602 (df_rd_free): Same.
11603 (df_rd_dump_defs_set): Same.
11604 (df_rd_top_dump): Same.
11605 (df_lr_alloc): Same.
11606 (df_lr_reset): Same.
11607 (df_lr_local_compute): Same.
11608 (df_lr_init): Same.
11609 (df_lr_confluence_n): Same.
11610 (df_lr_free): Same.
11611 (df_lr_top_dump): Same.
11612 (df_lr_verify_transfer_functions): Same.
11613 (df_live_alloc): Same.
11614 (df_live_reset): Same.
11615 (df_live_init): Same.
11616 (df_live_confluence_n): Same.
11617 (df_live_finalize): Same.
11618 (df_live_free): Same.
11619 (df_live_top_dump): Same.
11620 (df_live_verify_transfer_functions): Same.
11621 (df_mir_alloc): Same.
11622 (df_mir_reset): Same.
11623 (df_mir_init): Same.
11624 (df_mir_confluence_n): Same.
11625 (df_mir_free): Same.
11626 (df_mir_top_dump): Same.
11627 (df_word_lr_alloc): Same.
11628 (df_word_lr_reset): Same.
11629 (df_word_lr_init): Same.
11630 (df_word_lr_confluence_n): Same.
11631 (df_word_lr_free): Same.
11632 (df_word_lr_top_dump): Same.
11633 (df_md_alloc): Same.
11634 (df_md_simulate_one_insn): Same.
11635 (df_md_reset): Same.
11636 (df_md_init): Same.
11637 (df_md_free): Same.
11638 (df_md_top_dump): Same.
11639 * df-scan.c (df_insn_delete): Same.
11640 (df_insn_rescan): Same.
11641 (df_notes_rescan): Same.
11642 (df_sort_and_compress_mws): Same.
11643 (df_install_mws): Same.
11644 (df_refs_add_to_chains): Same.
11645 (df_ref_create_structure): Same.
11646 (df_ref_record): Same.
11647 (df_def_record_1): Same.
11648 (df_find_hard_reg_defs): Same.
11649 (df_uses_record): Same.
11650 (df_get_conditional_uses): Same.
11651 (df_get_call_refs): Same.
11652 (df_recompute_luids): Same.
11653 (df_get_entry_block_def_set): Same.
11654 (df_entry_block_defs_collect): Same.
11655 (df_get_exit_block_use_set): Same.
11656 (df_exit_block_uses_collect): Same.
11657 (df_mws_verify): Same.
11658 (df_bb_verify): Same.
11659 * df.h (df_scan_get_bb_info): Same.
11660 * doc/tm.texi: Same.
11661 * dse.c (record_store): Same.
11662 * dumpfile.h: Same.
11663 * emit-rtl.c (const_fixed_hasher::equal): Same.
11664 (set_mem_attributes_minus_bitpos): Same.
11665 (change_address): Same.
11666 (adjust_address_1): Same.
11667 (offset_address): Same.
11668 * emit-rtl.h: Same.
11669 * except.c (dw2_build_landing_pads): Same.
11670 (sjlj_emit_dispatch_table): Same.
11671 * explow.c (allocate_dynamic_stack_space): Same.
11672 (emit_stack_probe): Same.
11673 (probe_stack_range): Same.
11674 * expmed.c (store_bit_field_using_insv): Same.
11675 (store_bit_field_1): Same.
11676 (store_integral_bit_field): Same.
11677 (extract_bit_field_using_extv): Same.
11678 (extract_bit_field_1): Same.
11679 (emit_cstore): Same.
11680 * expr.c (emit_block_move_via_cpymem): Same.
11681 (expand_cmpstrn_or_cmpmem): Same.
11682 (set_storage_via_setmem): Same.
11683 (emit_single_push_insn_1): Same.
11684 (expand_assignment): Same.
11685 (store_constructor): Same.
11686 (expand_expr_real_2): Same.
11687 (expand_expr_real_1): Same.
11688 (try_casesi): Same.
11690 * function.c (try_fit_stack_local): Same.
11691 (assign_stack_local_1): Same.
11692 (assign_stack_local): Same.
11693 (cut_slot_from_list): Same.
11694 (insert_slot_to_list): Same.
11695 (max_slot_level): Same.
11696 (move_slot_to_level): Same.
11697 (temp_address_hasher::equal): Same.
11698 (remove_unused_temp_slot_addresses): Same.
11699 (assign_temp): Same.
11700 (combine_temp_slots): Same.
11701 (update_temp_slot_address): Same.
11702 (preserve_temp_slots): Same.
11703 * function.h: Same.
11705 * gcc-rich-location.h: Same.
11707 * genattrtab.c (check_attr_test): Same.
11708 (check_attr_value): Same.
11709 (convert_set_attr_alternative): Same.
11710 (convert_set_attr): Same.
11711 (check_defs): Same.
11712 (copy_boolean): Same.
11713 (get_attr_value): Same.
11714 (expand_delays): Same.
11715 (make_length_attrs): Same.
11717 (make_alternative_compare): Same.
11718 (simplify_test_exp): Same.
11719 (tests_attr_p): Same.
11720 (get_attr_order): Same.
11721 (clear_struct_flag): Same.
11723 (compares_alternatives_p): Same.
11726 (find_attrs_to_cache): Same.
11727 (write_test_expr): Same.
11728 (walk_attr_value): Same.
11729 (write_attr_get): Same.
11730 (eliminate_known_true): Same.
11731 (write_insn_cases): Same.
11732 (write_attr_case): Same.
11733 (write_attr_valueq): Same.
11734 (write_attr_value): Same.
11735 (write_dummy_eligible_delay): Same.
11736 (next_comma_elt): Same.
11738 (make_internal_attr): Same.
11739 (copy_rtx_unchanging): Same.
11740 (gen_insn_reserv): Same.
11741 (check_tune_attr): Same.
11742 (make_automaton_attrs): Same.
11743 (handle_arg): Same.
11744 * genextract.c (gen_insn): Same.
11745 (VEC_char_to_string): Same.
11746 * genmatch.c (print_operand): Same.
11748 (parser::parse_operation): Same.
11749 (parser::parse_capture): Same.
11750 (parser::parse_c_expr): Same.
11751 (parser::parse_simplify): Same.
11753 * genoutput.c (output_operand_data): Same.
11754 (output_get_insn_name): Same.
11755 (compare_operands): Same.
11756 (place_operands): Same.
11757 (process_template): Same.
11758 (validate_insn_alternatives): Same.
11759 (validate_insn_operands): Same.
11760 (gen_expand): Same.
11761 (note_constraint): Same.
11762 * genpreds.c (write_one_predicate_function): Same.
11763 (add_constraint): Same.
11764 (process_define_register_constraint): Same.
11765 (write_lookup_constraint_1): Same.
11766 (write_lookup_constraint_array): Same.
11767 (write_insn_constraint_len): Same.
11768 (write_reg_class_for_constraint_1): Same.
11769 (write_constraint_satisfied_p_array): Same.
11770 * genrecog.c (optimize_subroutine_group): Same.
11771 * gensupport.c (process_define_predicate): Same.
11772 (queue_pattern): Same.
11773 (remove_from_queue): Same.
11774 (process_rtx): Same.
11775 (is_predicable): Same.
11776 (change_subst_attribute): Same.
11777 (subst_pattern_match): Same.
11778 (alter_constraints): Same.
11779 (alter_attrs_for_insn): Same.
11780 (shift_output_template): Same.
11781 (alter_output_for_subst_insn): Same.
11782 (process_one_cond_exec): Same.
11784 (process_define_cond_exec): Same.
11785 (mnemonic_htab_callback): Same.
11786 (gen_mnemonic_attr): Same.
11787 (read_md_rtx): Same.
11788 * ggc-page.c: Same.
11789 * gimple-loop-interchange.cc (dump_reduction): Same.
11790 (dump_induction): Same.
11791 (loop_cand::~loop_cand): Same.
11792 (free_data_refs_with_aux): Same.
11793 (tree_loop_interchange::interchange_loops): Same.
11794 (tree_loop_interchange::map_inductions_to_loop): Same.
11795 (tree_loop_interchange::move_code_to_inner_loop): Same.
11796 (compute_access_stride): Same.
11797 (compute_access_strides): Same.
11798 (proper_loop_form_for_interchange): Same.
11799 (tree_loop_interchange_compute_ddrs): Same.
11800 (prune_datarefs_not_in_loop): Same.
11801 (prepare_data_references): Same.
11802 (pass_linterchange::execute): Same.
11803 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
11804 (unroll_jam_possible_p): Same.
11805 (fuse_loops): Same.
11806 (adjust_unroll_factor): Same.
11807 (tree_loop_unroll_and_jam): Same.
11808 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
11809 (loop_versioning::expensive_stmt_p): Same.
11810 (loop_versioning::version_for_unity): Same.
11811 (loop_versioning::dump_inner_likelihood): Same.
11812 (loop_versioning::find_per_loop_multiplication): Same.
11813 (loop_versioning::analyze_term_using_scevs): Same.
11814 (loop_versioning::record_address_fragment): Same.
11815 (loop_versioning::analyze_expr): Same.
11816 (loop_versioning::analyze_blocks): Same.
11817 (loop_versioning::prune_conditions): Same.
11818 (loop_versioning::merge_loop_info): Same.
11819 (loop_versioning::add_loop_to_queue): Same.
11820 (loop_versioning::decide_whether_loop_is_versionable): Same.
11821 (loop_versioning::make_versioning_decisions): Same.
11822 (loop_versioning::implement_versioning_decisions): Same.
11823 * gimple-ssa-evrp-analyze.c
11824 (evrp_range_analyzer::record_ranges_from_phis): Same.
11825 * gimple-ssa-store-merging.c (split_store::split_store): Same.
11826 (count_multiple_uses): Same.
11827 (split_group): Same.
11828 (imm_store_chain_info::output_merged_store): Same.
11829 (pass_store_merging::process_store): Same.
11830 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
11831 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
11833 (alloca_call_type): Same.
11834 (pass_walloca::execute): Same.
11835 * gimple-streamer-in.c (input_phi): Same.
11836 (input_gimple_stmt): Same.
11837 * gimple-streamer.h: Same.
11838 * godump.c (go_force_record_alignment): Same.
11839 (go_format_type): Same.
11840 (go_output_type): Same.
11841 (go_output_fndecl): Same.
11842 (go_output_typedef): Same.
11843 (keyword_hash_init): Same.
11844 (find_dummy_types): Same.
11845 * graph.c (draw_cfg_nodes_no_loops): Same.
11846 (draw_cfg_nodes_for_loop): Same.
11847 * hard-reg-set.h (hard_reg_set_iter_next): Same.
11848 * hsa-brig.c: Same.
11849 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
11850 * hsa-dump.c (dump_hsa_cfun): Same.
11851 * hsa-gen.c (gen_function_def_parameters): Same.
11852 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
11853 * input.c (dump_line_table_statistics): Same.
11854 (test_lexer): Same.
11856 * internal-fn.c (get_multi_vector_move): Same.
11857 (expand_load_lanes_optab_fn): Same.
11858 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
11859 (expand_GOMP_SIMT_EXIT): Same.
11860 (expand_GOMP_SIMT_LAST_LANE): Same.
11861 (expand_GOMP_SIMT_ORDERED_PRED): Same.
11862 (expand_GOMP_SIMT_VOTE_ANY): Same.
11863 (expand_GOMP_SIMT_XCHG_BFLY): Same.
11864 (expand_GOMP_SIMT_XCHG_IDX): Same.
11865 (expand_addsub_overflow): Same.
11866 (expand_neg_overflow): Same.
11867 (expand_mul_overflow): Same.
11868 (expand_call_mem_ref): Same.
11869 (expand_mask_load_optab_fn): Same.
11870 (expand_scatter_store_optab_fn): Same.
11871 (expand_gather_load_optab_fn): Same.
11872 * ipa-cp.c (ipa_get_parm_lattices): Same.
11873 (print_all_lattices): Same.
11874 (ignore_edge_p): Same.
11875 (build_toporder_info): Same.
11876 (free_toporder_info): Same.
11877 (push_node_to_stack): Same.
11878 (ipcp_lattice<valtype>::set_contains_variable): Same.
11879 (set_agg_lats_to_bottom): Same.
11880 (ipcp_bits_lattice::meet_with): Same.
11881 (set_single_call_flag): Same.
11882 (initialize_node_lattices): Same.
11883 (ipa_get_jf_ancestor_result): Same.
11884 (ipcp_verify_propagated_values): Same.
11885 (propagate_scalar_across_jump_function): Same.
11886 (propagate_context_across_jump_function): Same.
11887 (propagate_bits_across_jump_function): Same.
11888 (ipa_vr_operation_and_type_effects): Same.
11889 (propagate_vr_across_jump_function): Same.
11890 (set_check_aggs_by_ref): Same.
11891 (set_chain_of_aglats_contains_variable): Same.
11892 (merge_aggregate_lattices): Same.
11893 (agg_pass_through_permissible_p): Same.
11894 (propagate_aggs_across_jump_function): Same.
11895 (call_passes_through_thunk_p): Same.
11896 (propagate_constants_across_call): Same.
11897 (devirtualization_time_bonus): Same.
11898 (good_cloning_opportunity_p): Same.
11899 (context_independent_aggregate_values): Same.
11900 (gather_context_independent_values): Same.
11901 (perform_estimation_of_a_value): Same.
11902 (estimate_local_effects): Same.
11903 (value_topo_info<valtype>::add_val): Same.
11904 (add_all_node_vals_to_toposort): Same.
11905 (value_topo_info<valtype>::propagate_effects): Same.
11906 (ipcp_propagate_stage): Same.
11907 (ipcp_discover_new_direct_edges): Same.
11908 (same_node_or_its_all_contexts_clone_p): Same.
11909 (cgraph_edge_brings_value_p): Same.
11910 (gather_edges_for_value): Same.
11911 (create_specialized_node): Same.
11912 (find_more_scalar_values_for_callers_subset): Same.
11913 (find_more_contexts_for_caller_subset): Same.
11914 (copy_plats_to_inter): Same.
11915 (intersect_aggregates_with_edge): Same.
11916 (find_aggregate_values_for_callers_subset): Same.
11917 (cgraph_edge_brings_all_agg_vals_for_node): Same.
11918 (decide_about_value): Same.
11919 (decide_whether_version_node): Same.
11920 (spread_undeadness): Same.
11921 (identify_dead_nodes): Same.
11922 (ipcp_store_vr_results): Same.
11923 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
11924 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
11925 (redirect_to_unreachable): Same.
11926 (edge_set_predicate): Same.
11927 (evaluate_conditions_for_known_args): Same.
11928 (evaluate_properties_for_edge): Same.
11929 (ipa_fn_summary_t::duplicate): Same.
11930 (ipa_call_summary_t::duplicate): Same.
11931 (dump_ipa_call_summary): Same.
11932 (ipa_dump_fn_summary): Same.
11933 (eliminated_by_inlining_prob): Same.
11934 (set_cond_stmt_execution_predicate): Same.
11935 (set_switch_stmt_execution_predicate): Same.
11936 (compute_bb_predicates): Same.
11937 (will_be_nonconstant_expr_predicate): Same.
11938 (phi_result_unknown_predicate): Same.
11939 (analyze_function_body): Same.
11940 (compute_fn_summary): Same.
11941 (estimate_edge_devirt_benefit): Same.
11942 (estimate_edge_size_and_time): Same.
11943 (estimate_calls_size_and_time): Same.
11944 (estimate_node_size_and_time): Same.
11945 (remap_edge_change_prob): Same.
11946 (remap_edge_summaries): Same.
11947 (ipa_merge_fn_summary_after_inlining): Same.
11948 (ipa_fn_summary_generate): Same.
11949 (inline_read_section): Same.
11950 (ipa_fn_summary_read): Same.
11951 (ipa_fn_summary_write): Same.
11952 * ipa-fnsummary.h: Same.
11953 * ipa-hsa.c (ipa_hsa_read_section): Same.
11954 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
11955 * ipa-icf.c (sem_function::param_used_p): Same.
11956 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
11957 * ipa-inline.c (edge_badness): Same.
11958 (inline_small_functions): Same.
11959 * ipa-polymorphic-call.c
11960 (ipa_polymorphic_call_context::stream_out): Same.
11961 * ipa-predicate.c (predicate::remap_after_duplication): Same.
11962 (predicate::remap_after_inlining): Same.
11963 (predicate::stream_out): Same.
11964 * ipa-predicate.h: Same.
11965 * ipa-profile.c (ipa_profile_read_summary): Same.
11966 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
11967 (count_formal_params): Same.
11968 (ipa_dump_param): Same.
11969 (ipa_alloc_node_params): Same.
11970 (ipa_print_node_jump_functions_for_edge): Same.
11971 (ipa_print_node_jump_functions): Same.
11972 (ipa_load_from_parm_agg): Same.
11973 (get_ancestor_addr_info): Same.
11974 (ipa_compute_jump_functions_for_edge): Same.
11975 (ipa_analyze_virtual_call_uses): Same.
11976 (ipa_analyze_stmt_uses): Same.
11977 (ipa_analyze_params_uses_in_bb): Same.
11978 (update_jump_functions_after_inlining): Same.
11979 (try_decrement_rdesc_refcount): Same.
11980 (ipa_impossible_devirt_target): Same.
11981 (update_indirect_edges_after_inlining): Same.
11982 (combine_controlled_uses_counters): Same.
11983 (ipa_edge_args_sum_t::duplicate): Same.
11984 (ipa_write_jump_function): Same.
11985 (ipa_write_indirect_edge_info): Same.
11986 (ipa_write_node_info): Same.
11987 (ipa_read_edge_info): Same.
11988 (ipa_prop_read_section): Same.
11989 (read_replacements_section): Same.
11990 * ipa-prop.h (ipa_get_param_count): Same.
11991 (ipa_get_param): Same.
11992 (ipa_get_type): Same.
11993 (ipa_get_param_move_cost): Same.
11994 (ipa_set_param_used): Same.
11995 (ipa_get_controlled_uses): Same.
11996 (ipa_set_controlled_uses): Same.
11997 (ipa_get_cs_argument_count): Same.
11998 * ipa-pure-const.c (analyze_function): Same.
11999 (pure_const_read_summary): Same.
12001 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
12002 * ipa-split.c (test_nonssa_use): Same.
12003 (dump_split_point): Same.
12004 (dominated_by_forbidden): Same.
12005 (split_part_set_ssa_name_p): Same.
12006 (find_split_points): Same.
12007 * ira-build.c (finish_loop_tree_nodes): Same.
12008 (low_pressure_loop_node_p): Same.
12009 * ira-color.c (ira_reuse_stack_slot): Same.
12011 * ira.c (setup_reg_equiv): Same.
12012 (print_insn_chain): Same.
12014 * loop-doloop.c (doloop_condition_get): Same.
12016 (record_reg_sets): Same.
12017 (doloop_optimize): Same.
12018 * loop-init.c (loop_optimizer_init): Same.
12019 (fix_loop_structure): Same.
12020 * loop-invariant.c (merge_identical_invariants): Same.
12021 (compute_always_reached): Same.
12022 (find_exits): Same.
12023 (may_assign_reg_p): Same.
12024 (find_invariants_bb): Same.
12025 (find_invariants_body): Same.
12026 (replace_uses): Same.
12027 (can_move_invariant_reg): Same.
12028 (free_inv_motion_data): Same.
12029 (move_single_loop_invariants): Same.
12030 (change_pressure): Same.
12031 (mark_ref_regs): Same.
12032 (calculate_loop_reg_pressure): Same.
12033 * loop-iv.c (biv_entry_hasher::equal): Same.
12034 (iv_extend_to_rtx_code): Same.
12035 (check_iv_ref_table_size): Same.
12036 (clear_iv_info): Same.
12037 (latch_dominating_def): Same.
12038 (iv_get_reaching_def): Same.
12039 (iv_constant): Same.
12045 (get_biv_step): Same.
12047 (analyzed_for_bivness_p): Same.
12048 (record_biv): Same.
12049 (iv_analyze_biv): Same.
12050 (iv_analyze_expr): Same.
12051 (iv_analyze_def): Same.
12052 (iv_analyze_op): Same.
12053 (iv_analyze): Same.
12054 (iv_analyze_result): Same.
12056 (eliminate_implied_conditions): Same.
12057 (simplify_using_initial_values): Same.
12058 (shorten_into_mode): Same.
12059 (canonicalize_iv_subregs): Same.
12060 (determine_max_iter): Same.
12061 (check_simple_exit): Same.
12062 (find_simple_exit): Same.
12063 (get_simple_loop_desc): Same.
12064 * loop-unroll.c (report_unroll): Same.
12065 (decide_unrolling): Same.
12066 (unroll_loops): Same.
12067 (loop_exit_at_end_p): Same.
12068 (decide_unroll_constant_iterations): Same.
12069 (unroll_loop_constant_iterations): Same.
12070 (compare_and_jump_seq): Same.
12071 (unroll_loop_runtime_iterations): Same.
12072 (decide_unroll_stupid): Same.
12073 (unroll_loop_stupid): Same.
12074 (referenced_in_one_insn_in_loop_p): Same.
12075 (reset_debug_uses_in_loop): Same.
12076 (analyze_iv_to_split_insn): Same.
12077 * lra-eliminations.c (lra_debug_elim_table): Same.
12078 (setup_can_eliminate): Same.
12080 (lra_get_elimination_hard_regno): Same.
12081 (lra_eliminate_regs_1): Same.
12082 (eliminate_regs_in_insn): Same.
12083 (update_reg_eliminate): Same.
12084 (init_elimination): Same.
12085 (lra_eliminate): Same.
12087 * lra-lives.c (initiate_live_solver): Same.
12088 * lra-remat.c (create_remat_bb_data): Same.
12089 * lra-spills.c (lra_spill): Same.
12090 * lra.c (lra_set_insn_recog_data): Same.
12091 (lra_set_used_insn_alternative_by_uid): Same.
12092 (init_reg_info): Same.
12093 (expand_reg_info): Same.
12094 * lto-cgraph.c (output_symtab): Same.
12095 (read_identifier): Same.
12096 (get_alias_symbol): Same.
12097 (input_node): Same.
12098 (input_varpool_node): Same.
12100 (input_edge): Same.
12101 (input_cgraph_1): Same.
12102 (input_refs): Same.
12103 (input_symtab): Same.
12104 (input_offload_tables): Same.
12105 (output_cgraph_opt_summary): Same.
12106 (input_edge_opt_summary): Same.
12107 (input_cgraph_opt_section): Same.
12108 * lto-section-in.c (lto_free_raw_section_data): Same.
12109 (lto_create_simple_input_block): Same.
12110 (lto_free_function_in_decl_state_for_node): Same.
12111 * lto-streamer-in.c (lto_tag_check_set): Same.
12112 (lto_location_cache::revert_location_cache): Same.
12113 (lto_location_cache::input_location): Same.
12114 (lto_input_location): Same.
12115 (stream_input_location_now): Same.
12116 (lto_input_tree_ref): Same.
12117 (lto_input_eh_catch_list): Same.
12118 (input_eh_region): Same.
12119 (lto_init_eh): Same.
12120 (make_new_block): Same.
12122 (fixup_call_stmt_edges): Same.
12123 (input_struct_function_base): Same.
12124 (input_function): Same.
12125 (lto_read_body_or_constructor): Same.
12126 (lto_read_tree_1): Same.
12127 (lto_read_tree): Same.
12128 (lto_input_scc): Same.
12129 (lto_input_tree_1): Same.
12130 (lto_input_toplevel_asms): Same.
12131 (lto_input_mode_table): Same.
12132 (lto_reader_init): Same.
12133 (lto_data_in_create): Same.
12134 * lto-streamer-out.c (output_cfg): Same.
12135 * lto-streamer.h: Same.
12136 * modulo-sched.c (duplicate_insns_of_cycles): Same.
12137 (generate_prolog_epilog): Same.
12138 (mark_loop_unsched): Same.
12139 (dump_insn_location): Same.
12140 (loop_canon_p): Same.
12141 (sms_schedule): Same.
12142 * omp-expand.c (expand_omp_for_ordered_loops): Same.
12143 (expand_omp_for_generic): Same.
12144 (expand_omp_for_static_nochunk): Same.
12145 (expand_omp_for_static_chunk): Same.
12146 (expand_omp_simd): Same.
12147 (expand_omp_taskloop_for_inner): Same.
12148 (expand_oacc_for): Same.
12149 (expand_omp_atomic_pipeline): Same.
12150 (mark_loops_in_oacc_kernels_region): Same.
12151 * omp-offload.c (oacc_xform_loop): Same.
12152 * omp-simd-clone.c (simd_clone_adjust): Same.
12153 * optabs-query.c (get_traditional_extraction_insn): Same.
12154 * optabs.c (expand_vector_broadcast): Same.
12155 (expand_binop_directly): Same.
12156 (expand_twoval_unop): Same.
12157 (expand_twoval_binop): Same.
12158 (expand_unop_direct): Same.
12159 (emit_indirect_jump): Same.
12160 (emit_conditional_move): Same.
12161 (emit_conditional_neg_or_complement): Same.
12162 (emit_conditional_add): Same.
12163 (vector_compare_rtx): Same.
12164 (expand_vec_perm_1): Same.
12165 (expand_vec_perm_const): Same.
12166 (expand_vec_cond_expr): Same.
12167 (expand_vec_series_expr): Same.
12168 (maybe_emit_atomic_exchange): Same.
12169 (maybe_emit_sync_lock_test_and_set): Same.
12170 (expand_atomic_compare_and_swap): Same.
12171 (expand_atomic_load): Same.
12172 (expand_atomic_store): Same.
12173 (maybe_emit_op): Same.
12174 (valid_multiword_target_p): Same.
12175 (create_integer_operand): Same.
12176 (maybe_legitimize_operand_same_code): Same.
12177 (maybe_legitimize_operand): Same.
12178 (create_convert_operand_from_type): Same.
12179 (can_reuse_operands_p): Same.
12180 (maybe_legitimize_operands): Same.
12181 (maybe_gen_insn): Same.
12182 (maybe_expand_insn): Same.
12183 (maybe_expand_jump_insn): Same.
12184 (expand_insn): Same.
12185 * optabs.h (create_expand_operand): Same.
12186 (create_fixed_operand): Same.
12187 (create_output_operand): Same.
12188 (create_input_operand): Same.
12189 (create_convert_operand_to): Same.
12190 (create_convert_operand_from): Same.
12192 * poly-int.h: Same.
12193 * predict.c (optimize_insn_for_speed_p): Same.
12194 (optimize_loop_for_size_p): Same.
12195 (optimize_loop_for_speed_p): Same.
12196 (optimize_loop_nest_for_speed_p): Same.
12197 (get_base_value): Same.
12198 (predicted_by_loop_heuristics_p): Same.
12199 (predict_extra_loop_exits): Same.
12200 (predict_loops): Same.
12201 (predict_paths_for_bb): Same.
12202 (predict_paths_leading_to): Same.
12203 (propagate_freq): Same.
12204 (pass_profile::execute): Same.
12206 * profile-count.c (profile_count::differs_from_p): Same.
12207 (profile_probability::differs_lot_from_p): Same.
12208 * profile-count.h: Same.
12209 * profile.c (branch_prob): Same.
12210 * regrename.c (free_chain_data): Same.
12211 (mark_conflict): Same.
12212 (create_new_chain): Same.
12213 (merge_overlapping_regs): Same.
12214 (init_rename_info): Same.
12215 (merge_chains): Same.
12216 (regrename_analyze): Same.
12217 (regrename_do_replace): Same.
12218 (scan_rtx_reg): Same.
12219 (record_out_operands): Same.
12220 (build_def_use): Same.
12221 * regrename.h: Same.
12223 * reload1.c (init_reload): Same.
12224 (maybe_fix_stack_asms): Same.
12225 (copy_reloads): Same.
12226 (count_pseudo): Same.
12227 (count_spilled_pseudo): Same.
12229 (find_reload_regs): Same.
12230 (select_reload_regs): Same.
12231 (spill_hard_reg): Same.
12232 (fixup_eh_region_note): Same.
12233 (set_reload_reg): Same.
12234 (allocate_reload_reg): Same.
12235 (compute_reload_subreg_offset): Same.
12236 (reload_adjust_reg_for_icode): Same.
12237 (emit_input_reload_insns): Same.
12238 (emit_output_reload_insns): Same.
12239 (do_input_reload): Same.
12240 (inherit_piecemeal_p): Same.
12242 * sanopt.c (maybe_get_dominating_check): Same.
12243 (maybe_optimize_ubsan_ptr_ifn): Same.
12244 (can_remove_asan_check): Same.
12245 (maybe_optimize_asan_check_ifn): Same.
12246 (sanopt_optimize_walker): Same.
12247 * sched-deps.c (add_dependence_list): Same.
12248 (chain_to_prev_insn): Same.
12249 (add_insn_mem_dependence): Same.
12250 (create_insn_reg_set): Same.
12251 (maybe_extend_reg_info_p): Same.
12252 (sched_analyze_reg): Same.
12253 (sched_analyze_1): Same.
12254 (get_implicit_reg_pending_clobbers): Same.
12255 (chain_to_prev_insn_p): Same.
12256 (deps_analyze_insn): Same.
12257 (deps_start_bb): Same.
12258 (sched_free_deps): Same.
12260 (init_deps_reg_last): Same.
12262 * sched-ebb.c: Same.
12263 * sched-int.h: Same.
12264 * sched-rgn.c (add_branch_dependences): Same.
12265 (concat_insn_mem_list): Same.
12267 (sched_rgn_compute_dependencies): Same.
12268 * sel-sched-ir.c (reset_target_context): Same.
12269 (copy_deps_context): Same.
12270 (init_id_from_df): Same.
12271 (has_dependence_p): Same.
12272 (change_loops_latches): Same.
12273 (bb_top_order_comparator): Same.
12274 (make_region_from_loop_preheader): Same.
12275 (sel_init_pipelining): Same.
12276 (get_loop_nest_for_rgn): Same.
12277 (make_regions_from_the_rest): Same.
12278 (sel_is_loop_preheader_p): Same.
12279 * sel-sched-ir.h (inner_loop_header_p): Same.
12280 (get_all_loop_exits): Same.
12281 * selftest.h: Same.
12282 * sese.c (sese_build_liveouts): Same.
12283 (sese_insert_phis_for_liveouts): Same.
12284 * sese.h (defined_in_sese_p): Same.
12285 * sreal.c (sreal::stream_out): Same.
12287 * streamer-hooks.h: Same.
12288 * target-globals.c (save_target_globals): Same.
12289 * target-globals.h: Same.
12290 * target.def: Same.
12292 * targhooks.c (default_has_ifunc_p): Same.
12293 (default_empty_mask_is_expensive): Same.
12294 (default_init_cost): Same.
12295 * targhooks.h: Same.
12297 * tree-affine.c (aff_combination_mult): Same.
12298 (aff_combination_expand): Same.
12299 (aff_combination_constant_multiple_p): Same.
12300 * tree-affine.h: Same.
12301 * tree-cfg.c (build_gimple_cfg): Same.
12302 (replace_loop_annotate_in_block): Same.
12303 (replace_uses_by): Same.
12305 (dump_cfg_stats): Same.
12306 (gimple_duplicate_sese_region): Same.
12307 (gimple_duplicate_sese_tail): Same.
12308 (move_block_to_fn): Same.
12309 (replace_block_vars_by_duplicates): Same.
12310 (move_sese_region_to_fn): Same.
12311 (print_loops_bb): Same.
12312 (print_loop): Same.
12313 (print_loops): Same.
12315 (debug_loops): Same.
12316 * tree-cfg.h: Same.
12317 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
12318 (chrec_fold_multiply_poly_poly): Same.
12319 (chrec_evaluate): Same.
12320 (chrec_component_in_loop_num): Same.
12321 (reset_evolution_in_loop): Same.
12322 (is_multivariate_chrec): Same.
12323 (chrec_contains_symbols): Same.
12324 (nb_vars_in_chrec): Same.
12325 (chrec_convert_1): Same.
12326 (chrec_convert_aggressive): Same.
12327 * tree-chrec.h: Same.
12328 * tree-core.h: Same.
12329 * tree-data-ref.c (dump_data_dependence_relation): Same.
12330 (canonicalize_base_object_address): Same.
12331 (data_ref_compare_tree): Same.
12332 (prune_runtime_alias_test_list): Same.
12333 (get_segment_min_max): Same.
12334 (create_intersect_range_checks): Same.
12335 (conflict_fn_no_dependence): Same.
12336 (object_address_invariant_in_loop_p): Same.
12337 (analyze_ziv_subscript): Same.
12338 (analyze_siv_subscript_cst_affine): Same.
12339 (analyze_miv_subscript): Same.
12340 (analyze_overlapping_iterations): Same.
12341 (build_classic_dist_vector_1): Same.
12342 (add_other_self_distances): Same.
12343 (same_access_functions): Same.
12344 (build_classic_dir_vector): Same.
12345 (subscript_dependence_tester_1): Same.
12346 (subscript_dependence_tester): Same.
12347 (access_functions_are_affine_or_constant_p): Same.
12348 (get_references_in_stmt): Same.
12349 (loop_nest_has_data_refs): Same.
12350 (graphite_find_data_references_in_stmt): Same.
12351 (find_data_references_in_bb): Same.
12352 (get_base_for_alignment): Same.
12353 (find_loop_nest_1): Same.
12354 (find_loop_nest): Same.
12355 * tree-data-ref.h (dr_alignment): Same.
12356 (ddr_dependence_level): Same.
12357 * tree-if-conv.c (fold_build_cond_expr): Same.
12358 (add_to_predicate_list): Same.
12359 (add_to_dst_predicate_list): Same.
12360 (phi_convertible_by_degenerating_args): Same.
12361 (idx_within_array_bound): Same.
12362 (all_preds_critical_p): Same.
12363 (pred_blocks_visited_p): Same.
12364 (predicate_bbs): Same.
12365 (build_region): Same.
12366 (if_convertible_loop_p_1): Same.
12367 (is_cond_scalar_reduction): Same.
12368 (predicate_scalar_phi): Same.
12369 (remove_conditions_and_labels): Same.
12370 (combine_blocks): Same.
12371 (version_loop_for_if_conversion): Same.
12372 (versionable_outer_loop_p): Same.
12373 (ifcvt_local_dce): Same.
12374 (tree_if_conversion): Same.
12375 (pass_if_conversion::gate): Same.
12376 * tree-if-conv.h: Same.
12377 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
12378 * tree-loop-distribution.c (bb_top_order_cmp): Same.
12380 (stmt_has_scalar_dependences_outside_loop): Same.
12381 (copy_loop_before): Same.
12382 (create_bb_after_loop): Same.
12383 (const_with_all_bytes_same): Same.
12384 (generate_memset_builtin): Same.
12385 (generate_memcpy_builtin): Same.
12386 (destroy_loop): Same.
12387 (build_rdg_partition_for_vertex): Same.
12388 (compute_access_range): Same.
12389 (data_ref_segment_size): Same.
12390 (latch_dominated_by_data_ref): Same.
12391 (compute_alias_check_pairs): Same.
12392 (fuse_memset_builtins): Same.
12393 (finalize_partitions): Same.
12394 (find_seed_stmts_for_distribution): Same.
12395 (prepare_perfect_loop_nest): Same.
12396 * tree-parloops.c (lambda_transform_legal_p): Same.
12397 (loop_parallel_p): Same.
12398 (reduc_stmt_res): Same.
12399 (add_field_for_name): Same.
12400 (create_call_for_reduction_1): Same.
12401 (replace_uses_in_bb_by): Same.
12402 (transform_to_exit_first_loop_alt): Same.
12403 (try_transform_to_exit_first_loop_alt): Same.
12404 (transform_to_exit_first_loop): Same.
12406 (gen_parallel_loop): Same.
12407 (gather_scalar_reductions): Same.
12408 (get_omp_data_i_param): Same.
12409 (try_create_reduction_list): Same.
12410 (oacc_entry_exit_single_gang): Same.
12411 (parallelize_loops): Same.
12412 * tree-pass.h: Same.
12413 * tree-predcom.c (determine_offset): Same.
12414 (last_always_executed_block): Same.
12415 (split_data_refs_to_components): Same.
12416 (suitable_component_p): Same.
12417 (valid_initializer_p): Same.
12418 (find_looparound_phi): Same.
12419 (insert_looparound_copy): Same.
12420 (add_looparound_copies): Same.
12421 (determine_roots_comp): Same.
12422 (predcom_tmp_var): Same.
12423 (initialize_root_vars): Same.
12424 (initialize_root_vars_store_elim_1): Same.
12425 (initialize_root_vars_store_elim_2): Same.
12426 (finalize_eliminated_stores): Same.
12427 (initialize_root_vars_lm): Same.
12428 (remove_stmt): Same.
12429 (determine_unroll_factor): Same.
12430 (execute_pred_commoning_cbck): Same.
12431 (base_names_in_chain_on): Same.
12432 (combine_chains): Same.
12433 (pcom_stmt_dominates_stmt_p): Same.
12434 (try_combine_chains): Same.
12435 (prepare_initializers_chain_store_elim): Same.
12436 (prepare_initializers_chain): Same.
12437 (prepare_initializers): Same.
12438 (prepare_finalizers_chain): Same.
12439 (prepare_finalizers): Same.
12440 (insert_init_seqs): Same.
12441 * tree-scalar-evolution.c (loop_phi_node_p): Same.
12442 (compute_overall_effect_of_inner_loop): Same.
12443 (add_to_evolution_1): Same.
12444 (add_to_evolution): Same.
12445 (follow_ssa_edge_binary): Same.
12446 (follow_ssa_edge_expr): Same.
12447 (backedge_phi_arg_p): Same.
12448 (follow_ssa_edge_in_condition_phi_branch): Same.
12449 (follow_ssa_edge_in_condition_phi): Same.
12450 (follow_ssa_edge_inner_loop_phi): Same.
12451 (follow_ssa_edge): Same.
12452 (analyze_evolution_in_loop): Same.
12453 (analyze_initial_condition): Same.
12454 (interpret_loop_phi): Same.
12455 (interpret_condition_phi): Same.
12456 (interpret_rhs_expr): Same.
12457 (interpret_expr): Same.
12458 (interpret_gimple_assign): Same.
12459 (analyze_scalar_evolution_1): Same.
12460 (analyze_scalar_evolution): Same.
12461 (analyze_scalar_evolution_for_address_of): Same.
12462 (get_instantiated_value_entry): Same.
12463 (loop_closed_phi_def): Same.
12464 (instantiate_scev_name): Same.
12465 (instantiate_scev_poly): Same.
12466 (instantiate_scev_binary): Same.
12467 (instantiate_scev_convert): Same.
12468 (instantiate_scev_not): Same.
12469 (instantiate_scev_r): Same.
12470 (instantiate_scev): Same.
12471 (resolve_mixers): Same.
12472 (initialize_scalar_evolutions_analyzer): Same.
12473 (scev_reset_htab): Same.
12474 (scev_reset): Same.
12475 (derive_simple_iv_with_niters): Same.
12476 (simple_iv_with_niters): Same.
12477 (expression_expensive_p): Same.
12478 (final_value_replacement_loop): Same.
12479 * tree-scalar-evolution.h (block_before_loop): Same.
12480 * tree-ssa-address.h: Same.
12481 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
12482 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
12483 (record_edge_info): Same.
12484 * tree-ssa-live.c (var_map_base_fini): Same.
12485 (remove_unused_locals): Same.
12486 * tree-ssa-live.h: Same.
12487 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
12488 (pass_ch_vect::execute): Same.
12489 (pass_ch::process_loop_p): Same.
12490 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
12491 (movement_possibility): Same.
12492 (outermost_invariant_loop): Same.
12494 (determine_max_movement): Same.
12495 (invariantness_dom_walker::before_dom_children): Same.
12496 (move_computations): Same.
12497 (may_move_till): Same.
12498 (force_move_till_op): Same.
12499 (force_move_till): Same.
12500 (memref_free): Same.
12501 (record_mem_ref_loc): Same.
12502 (set_ref_stored_in_loop): Same.
12503 (mark_ref_stored): Same.
12504 (sort_bbs_in_loop_postorder_cmp): Same.
12505 (sort_locs_in_loop_postorder_cmp): Same.
12506 (analyze_memory_references): Same.
12507 (mem_refs_may_alias_p): Same.
12508 (find_ref_loc_in_loop_cmp): Same.
12509 (rewrite_mem_ref_loc::operator): Same.
12510 (first_mem_ref_loc_1::operator): Same.
12511 (sm_set_flag_if_changed::operator): Same.
12512 (execute_sm_if_changed_flag_set): Same.
12513 (execute_sm): Same.
12514 (hoist_memory_references): Same.
12515 (ref_always_accessed::operator): Same.
12516 (refs_independent_p): Same.
12517 (record_dep_loop): Same.
12518 (ref_indep_loop_p_1): Same.
12519 (ref_indep_loop_p): Same.
12520 (can_sm_ref_p): Same.
12521 (find_refs_for_sm): Same.
12522 (loop_suitable_for_sm): Same.
12523 (store_motion_loop): Same.
12524 (store_motion): Same.
12525 (fill_always_executed_in): Same.
12526 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
12527 (estimated_unrolled_size): Same.
12528 (loop_edge_to_cancel): Same.
12529 (remove_exits_and_undefined_stmts): Same.
12530 (remove_redundant_iv_tests): Same.
12531 (unloop_loops): Same.
12532 (estimated_peeled_sequence_size): Same.
12533 (try_peel_loop): Same.
12534 (canonicalize_loop_induction_variables): Same.
12535 (canonicalize_induction_variables): Same.
12536 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
12538 (stmt_after_inc_pos): Same.
12539 (contains_abnormal_ssa_name_p): Same.
12540 (niter_for_exit): Same.
12543 (find_givs_in_bb): Same.
12544 (find_induction_variables): Same.
12545 (find_interesting_uses_cond): Same.
12546 (outermost_invariant_loop_for_expr): Same.
12547 (idx_find_step): Same.
12548 (add_candidate_1): Same.
12549 (add_iv_candidate_derived_from_uses): Same.
12550 (alloc_use_cost_map): Same.
12551 (prepare_decl_rtl): Same.
12552 (generic_predict_doloop_p): Same.
12553 (computation_cost): Same.
12554 (determine_common_wider_type): Same.
12555 (get_computation_aff_1): Same.
12556 (get_use_type): Same.
12557 (determine_group_iv_cost_address): Same.
12559 (difference_cannot_overflow_p): Same.
12560 (may_eliminate_iv): Same.
12561 (determine_set_costs): Same.
12562 (cheaper_cost_pair): Same.
12563 (compare_cost_pair): Same.
12564 (iv_ca_cand_for_group): Same.
12565 (iv_ca_recount_cost): Same.
12566 (iv_ca_set_remove_invs): Same.
12567 (iv_ca_set_no_cp): Same.
12568 (iv_ca_set_add_invs): Same.
12569 (iv_ca_set_cp): Same.
12570 (iv_ca_add_group): Same.
12571 (iv_ca_cost): Same.
12572 (iv_ca_compare_deps): Same.
12573 (iv_ca_delta_reverse): Same.
12574 (iv_ca_delta_commit): Same.
12575 (iv_ca_cand_used_p): Same.
12576 (iv_ca_delta_free): Same.
12578 (iv_ca_free): Same.
12579 (iv_ca_dump): Same.
12580 (iv_ca_extend): Same.
12581 (iv_ca_narrow): Same.
12582 (iv_ca_prune): Same.
12583 (cheaper_cost_with_cand): Same.
12584 (iv_ca_replace): Same.
12585 (try_add_cand_for): Same.
12586 (get_initial_solution): Same.
12587 (try_improve_iv_set): Same.
12588 (find_optimal_iv_set_1): Same.
12589 (create_new_iv): Same.
12590 (rewrite_use_compare): Same.
12591 (remove_unused_ivs): Same.
12592 (determine_scaling_factor): Same.
12593 * tree-ssa-loop-ivopts.h: Same.
12594 * tree-ssa-loop-manip.c (create_iv): Same.
12595 (compute_live_loop_exits): Same.
12596 (add_exit_phi): Same.
12597 (add_exit_phis): Same.
12598 (find_uses_to_rename_use): Same.
12599 (find_uses_to_rename_def): Same.
12600 (find_uses_to_rename_in_loop): Same.
12601 (rewrite_into_loop_closed_ssa): Same.
12602 (check_loop_closed_ssa_bb): Same.
12603 (split_loop_exit_edge): Same.
12604 (ip_end_pos): Same.
12605 (ip_normal_pos): Same.
12606 (copy_phi_node_args): Same.
12607 (gimple_duplicate_loop_to_header_edge): Same.
12608 (can_unroll_loop_p): Same.
12609 (determine_exit_conditions): Same.
12610 (scale_dominated_blocks_in_loop): Same.
12611 (niter_for_unrolled_loop): Same.
12612 (tree_transform_and_unroll_loop): Same.
12613 (rewrite_all_phi_nodes_with_iv): Same.
12614 * tree-ssa-loop-manip.h: Same.
12615 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
12616 (number_of_iterations_ne): Same.
12617 (assert_no_overflow_lt): Same.
12618 (assert_loop_rolls_lt): Same.
12619 (number_of_iterations_lt): Same.
12620 (adjust_cond_for_loop_until_wrap): Same.
12621 (tree_simplify_using_condition): Same.
12622 (simplify_using_initial_conditions): Same.
12623 (simplify_using_outer_evolutions): Same.
12624 (loop_only_exit_p): Same.
12625 (ssa_defined_by_minus_one_stmt_p): Same.
12626 (number_of_iterations_popcount): Same.
12627 (number_of_iterations_exit): Same.
12628 (find_loop_niter): Same.
12629 (finite_loop_p): Same.
12630 (chain_of_csts_start): Same.
12631 (get_val_for): Same.
12632 (loop_niter_by_eval): Same.
12633 (derive_constant_upper_bound_ops): Same.
12634 (do_warn_aggressive_loop_optimizations): Same.
12635 (record_estimate): Same.
12636 (get_cst_init_from_scev): Same.
12637 (record_nonwrapping_iv): Same.
12638 (idx_infer_loop_bounds): Same.
12639 (infer_loop_bounds_from_ref): Same.
12640 (infer_loop_bounds_from_array): Same.
12641 (infer_loop_bounds_from_pointer_arith): Same.
12642 (infer_loop_bounds_from_signedness): Same.
12643 (bound_index): Same.
12644 (discover_iteration_bound_by_body_walk): Same.
12645 (maybe_lower_iteration_bound): Same.
12646 (estimate_numbers_of_iterations): Same.
12647 (estimated_loop_iterations): Same.
12648 (estimated_loop_iterations_int): Same.
12649 (max_loop_iterations): Same.
12650 (max_loop_iterations_int): Same.
12651 (likely_max_loop_iterations): Same.
12652 (likely_max_loop_iterations_int): Same.
12653 (estimated_stmt_executions_int): Same.
12654 (max_stmt_executions): Same.
12655 (likely_max_stmt_executions): Same.
12656 (estimated_stmt_executions): Same.
12657 (stmt_dominates_stmt_p): Same.
12658 (nowrap_type_p): Same.
12659 (loop_exits_before_overflow): Same.
12660 (scev_var_range_cant_overflow): Same.
12661 (scev_probably_wraps_p): Same.
12662 (free_numbers_of_iterations_estimates): Same.
12663 * tree-ssa-loop-niter.h: Same.
12664 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
12665 (idx_analyze_ref): Same.
12666 (analyze_ref): Same.
12667 (gather_memory_references_ref): Same.
12668 (mark_nontemporal_store): Same.
12669 (emit_mfence_after_loop): Same.
12670 (may_use_storent_in_loop_p): Same.
12671 (mark_nontemporal_stores): Same.
12672 (should_unroll_loop_p): Same.
12673 (volume_of_dist_vector): Same.
12674 (add_subscript_strides): Same.
12675 (self_reuse_distance): Same.
12676 (insn_to_prefetch_ratio_too_small_p): Same.
12677 * tree-ssa-loop-split.c (split_at_bb_p): Same.
12678 (patch_loop_exit): Same.
12679 (find_or_create_guard_phi): Same.
12680 (easy_exit_values): Same.
12681 (connect_loop_phis): Same.
12682 (connect_loops): Same.
12683 (compute_new_first_bound): Same.
12684 (split_loop): Same.
12685 (tree_ssa_split_loops): Same.
12686 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
12687 (is_maybe_undefined): Same.
12688 (tree_may_unswitch_on): Same.
12689 (simplify_using_entry_checks): Same.
12690 (tree_unswitch_single_loop): Same.
12691 (tree_unswitch_loop): Same.
12692 (tree_unswitch_outer_loop): Same.
12693 (empty_bb_without_guard_p): Same.
12694 (used_outside_loop_p): Same.
12695 (get_vop_from_header): Same.
12696 (hoist_guard): Same.
12697 * tree-ssa-loop.c (gate_oacc_kernels): Same.
12698 (get_lsm_tmp_name): Same.
12699 * tree-ssa-loop.h: Same.
12700 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
12701 (build_and_add_sum): Same.
12702 (no_side_effect_bb): Same.
12704 (linearize_expr): Same.
12705 (should_break_up_subtract): Same.
12706 (linearize_expr_tree): Same.
12707 * tree-ssa-scopedtables.c: Same.
12708 * tree-ssa-scopedtables.h: Same.
12709 * tree-ssa-structalias.c (condense_visit): Same.
12710 (label_visit): Same.
12711 (dump_pred_graph): Same.
12712 (perform_var_substitution): Same.
12713 (move_complex_constraints): Same.
12714 (remove_preds_and_fake_succs): Same.
12715 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
12716 (determine_bb_domination_status): Same.
12717 (duplicate_thread_path): Same.
12718 (thread_through_all_blocks): Same.
12719 * tree-ssa-threadupdate.h: Same.
12720 * tree-streamer-in.c (streamer_read_string_cst): Same.
12721 (input_identifier): Same.
12722 (unpack_ts_type_common_value_fields): Same.
12723 (unpack_ts_block_value_fields): Same.
12724 (unpack_ts_translation_unit_decl_value_fields): Same.
12725 (unpack_ts_omp_clause_value_fields): Same.
12726 (streamer_read_tree_bitfields): Same.
12727 (streamer_alloc_tree): Same.
12728 (lto_input_ts_common_tree_pointers): Same.
12729 (lto_input_ts_vector_tree_pointers): Same.
12730 (lto_input_ts_poly_tree_pointers): Same.
12731 (lto_input_ts_complex_tree_pointers): Same.
12732 (lto_input_ts_decl_minimal_tree_pointers): Same.
12733 (lto_input_ts_decl_common_tree_pointers): Same.
12734 (lto_input_ts_decl_non_common_tree_pointers): Same.
12735 (lto_input_ts_decl_with_vis_tree_pointers): Same.
12736 (lto_input_ts_field_decl_tree_pointers): Same.
12737 (lto_input_ts_function_decl_tree_pointers): Same.
12738 (lto_input_ts_type_common_tree_pointers): Same.
12739 (lto_input_ts_type_non_common_tree_pointers): Same.
12740 (lto_input_ts_list_tree_pointers): Same.
12741 (lto_input_ts_vec_tree_pointers): Same.
12742 (lto_input_ts_exp_tree_pointers): Same.
12743 (lto_input_ts_block_tree_pointers): Same.
12744 (lto_input_ts_binfo_tree_pointers): Same.
12745 (lto_input_ts_constructor_tree_pointers): Same.
12746 (lto_input_ts_omp_clause_tree_pointers): Same.
12747 (streamer_read_tree_body): Same.
12748 * tree-streamer.h: Same.
12749 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
12750 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
12751 (vect_analyze_possibly_independent_ddr): Same.
12752 (vect_analyze_data_ref_dependence): Same.
12753 (vect_compute_data_ref_alignment): Same.
12754 (vect_enhance_data_refs_alignment): Same.
12755 (vect_analyze_data_ref_access): Same.
12756 (vect_check_gather_scatter): Same.
12757 (vect_find_stmt_data_reference): Same.
12758 (vect_create_addr_base_for_vector_ref): Same.
12759 (vect_setup_realignment): Same.
12760 (vect_supportable_dr_alignment): Same.
12761 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
12762 (adjust_phi_and_debug_stmts): Same.
12763 (vect_set_loop_mask): Same.
12764 (add_preheader_seq): Same.
12765 (vect_maybe_permute_loop_masks): Same.
12766 (vect_set_loop_masks_directly): Same.
12767 (vect_set_loop_condition_masked): Same.
12768 (vect_set_loop_condition_unmasked): Same.
12769 (slpeel_duplicate_current_defs_from_edges): Same.
12770 (slpeel_add_loop_guard): Same.
12771 (slpeel_can_duplicate_loop_p): Same.
12772 (create_lcssa_for_virtual_phi): Same.
12774 (vect_update_ivs_after_vectorizer): Same.
12775 (vect_gen_vector_loop_niters_mult_vf): Same.
12776 (slpeel_update_phi_nodes_for_loops): Same.
12777 (slpeel_update_phi_nodes_for_guard1): Same.
12778 (find_guard_arg): Same.
12779 (slpeel_update_phi_nodes_for_guard2): Same.
12780 (slpeel_update_phi_nodes_for_lcssa): Same.
12781 (vect_do_peeling): Same.
12782 (vect_create_cond_for_alias_checks): Same.
12783 (vect_loop_versioning): Same.
12784 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
12785 (vect_inner_phi_in_double_reduction_p): Same.
12786 (vect_analyze_scalar_cycles_1): Same.
12787 (vect_fixup_scalar_cycles_with_patterns): Same.
12788 (vect_get_loop_niters): Same.
12789 (bb_in_loop_p): Same.
12790 (vect_get_max_nscalars_per_iter): Same.
12791 (vect_verify_full_masking): Same.
12792 (vect_compute_single_scalar_iteration_cost): Same.
12793 (vect_analyze_loop_form_1): Same.
12794 (vect_analyze_loop_form): Same.
12795 (vect_active_double_reduction_p): Same.
12796 (vect_analyze_loop_operations): Same.
12797 (neutral_op_for_slp_reduction): Same.
12798 (vect_is_simple_reduction): Same.
12799 (vect_model_reduction_cost): Same.
12800 (get_initial_def_for_reduction): Same.
12801 (get_initial_defs_for_reduction): Same.
12802 (vect_create_epilog_for_reduction): Same.
12803 (vectorize_fold_left_reduction): Same.
12804 (vectorizable_reduction): Same.
12805 (vectorizable_induction): Same.
12806 (vectorizable_live_operation): Same.
12807 (loop_niters_no_overflow): Same.
12808 (vect_get_loop_mask): Same.
12809 (vect_transform_loop_stmt): Same.
12810 (vect_transform_loop): Same.
12811 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
12812 (vect_determine_precisions): Same.
12813 (vect_pattern_recog_1): Same.
12814 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
12815 * tree-vect-stmts.c (stmt_vectype): Same.
12816 (process_use): Same.
12817 (vect_init_vector_1): Same.
12818 (vect_truncate_gather_scatter_offset): Same.
12819 (get_group_load_store_type): Same.
12820 (vect_build_gather_load_calls): Same.
12821 (vect_get_strided_load_store_ops): Same.
12822 (vectorizable_simd_clone_call): Same.
12823 (vectorizable_store): Same.
12824 (permute_vec_elements): Same.
12825 (vectorizable_load): Same.
12826 (vect_transform_stmt): Same.
12827 (supportable_widening_operation): Same.
12828 * tree-vectorizer.c (vec_info::replace_stmt): Same.
12829 (vec_info::free_stmt_vec_info): Same.
12830 (vect_free_loop_info_assumptions): Same.
12831 (vect_loop_vectorized_call): Same.
12832 (set_uid_loop_bbs): Same.
12833 (vectorize_loops): Same.
12834 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
12835 * tree.c (add_tree_to_fld_list): Same.
12836 (fld_type_variant_equal_p): Same.
12837 (fld_decl_context): Same.
12838 (fld_incomplete_type_of): Same.
12839 (free_lang_data_in_binfo): Same.
12840 (need_assembler_name_p): Same.
12841 (find_decls_types_r): Same.
12842 (get_eh_types_for_runtime): Same.
12843 (find_decls_types_in_eh_region): Same.
12844 (find_decls_types_in_node): Same.
12845 (assign_assembler_name_if_needed): Same.
12846 * value-prof.c (stream_out_histogram_value): Same.
12847 * value-prof.h: Same.
12848 * var-tracking.c (use_narrower_mode): Same.
12849 (prepare_call_arguments): Same.
12850 (vt_expand_loc_callback): Same.
12851 (resolve_expansions_pending_recursion): Same.
12852 (vt_expand_loc): Same.
12853 * varasm.c (const_hash_1): Same.
12854 (compare_constant): Same.
12855 (tree_output_constant_def): Same.
12856 (simplify_subtraction): Same.
12857 (get_pool_constant): Same.
12858 (output_constant_pool_2): Same.
12859 (output_constant_pool_1): Same.
12860 (mark_constants_in_pattern): Same.
12861 (mark_constant_pool): Same.
12862 (get_section_anchor): Same.
12863 * vr-values.c (compare_range_with_value): Same.
12864 (vr_values::extract_range_from_phi_node): Same.
12865 * vr-values.h: Same.
12866 * web.c (unionfind_union): Same.
12867 * wide-int.h: Same.
12869 2019-07-09 Martin Sebor <msebor@redhat.com>
12872 * align.h: Change class-key from class to struct and vice versa
12873 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
12874 * alloc-pool.h: Same.
12875 * asan.c (shadow_mem_size): Same.
12876 * auto-profile.c: Same.
12877 * basic-block.h: Same.
12879 * cfgexpand.c (set_rtl): Same.
12880 (expand_one_stack_var_at): Same.
12881 * cfghooks.h: Same.
12884 * config/i386/i386.h: Same.
12885 * df-problems.c (df_print_bb_index): Same.
12887 * df.h (df_single_use): Same.
12888 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
12889 (layout::annotation_line_showed_range_p): Same.
12890 (get_printed_columns): Same.
12891 (correction::ensure_terminated): Same.
12892 (line_corrections::~line_corrections): Same.
12895 * dump-context.h: Same.
12896 * dumpfile.h: Same.
12897 * dwarf2out.c: Same.
12898 * edit-context.c: Same.
12899 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
12901 * function.c (assign_stack_local): Same.
12902 * function.h: Same.
12904 * gcov.c (block_info::block_info): Same.
12905 * genattrtab.c: Same.
12906 * genextract.c: Same.
12907 * genmatch.c (comparison_code_p): Same.
12908 (id_base::id_base): Same.
12909 (decision_tree::print): Same.
12910 * genoutput.c: Same.
12911 * genpreds.c (write_one_predicate_function): Same.
12912 * genrecog.c (validate_pattern): Same.
12913 (find_operand_positions): Same.
12914 (optimize_subroutine_group): Same.
12915 (merge_pattern_transition::merge_pattern_transition): Same.
12916 (merge_pattern_info::merge_pattern_info): Same.
12917 (merge_state_result::merge_state_result): Same.
12918 (merge_into_state): Same.
12919 * gensupport.c: Same.
12920 * gensupport.h: Same.
12921 * ggc-common.c (init_ggc_heuristics): Same.
12922 * ggc-tests.c (test_union): Same.
12923 * gimple-loop-interchange.cc (dump_induction): Same.
12924 * gimple-loop-versioning.cc: Same.
12925 * gimple-match.h (gimple_match_cond::any_else): Same.
12926 * gimple-ssa-backprop.c: Same.
12927 * gimple-ssa-sprintf.c: Same.
12928 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
12930 (store_immediate_info::store_immediate_info): Same.
12931 (merged_store_group::apply_stores): Same.
12932 (get_location_for_stmts): Same.
12933 * gimple-ssa-strength-reduction.c: Same.
12934 * gimple-ssa-warn-alloca.c: Same.
12935 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
12936 * godump.c (go_type_decl): Same.
12937 * hash-map-tests.c (test_map_of_strings_to_int): Same.
12938 * hash-map.h: Same.
12939 * hash-set-tests.c (test_set_of_strings): Same.
12940 * hsa-brig.c: Same.
12941 * hsa-common.h: Same.
12942 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
12943 * input.c (assert_loceq): Same.
12946 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
12947 * ipa-fnsummary.h: Same.
12948 * ipa-inline.h: Same.
12949 * ipa-prop.h: Same.
12950 * ipa-split.c (visit_bb): Same.
12951 * ira-int.h (minmax_set_iter_next): Same.
12952 * loop-invariant.c: Same.
12954 * lra-eliminations.c: Same.
12956 * lra-lives.c (mark_regno_dead): Same.
12957 * lra-remat.c: Same.
12958 * lra-spills.c: Same.
12959 * lto-streamer.h: Same.
12960 * mem-stats.h: Same.
12961 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
12962 * omp-low.c (omp_clause_aligned_alignment): Same.
12963 * optabs-query.h (get_vcond_eq_icode): Same.
12965 * opts.c (wrap_help): Same.
12966 * poly-int.h: Same.
12967 * predict.c (predict_paths_leading_to_edge): Same.
12968 * pretty-print.h: Same.
12969 * profile-count.h: Same.
12971 * read-rtl-function.c: Same.
12974 * regrename.c: Same.
12975 * regrename.h: Same.
12977 * rtl-iter.h: Same.
12978 * rtl.h (costs_add_n_insns): Same.
12980 * sched-int.h: Same.
12981 * sel-sched-ir.h: Same.
12982 * selftest.h: Same.
12983 * sese.h (vec_find): Same.
12985 * target-globals.h: Same.
12986 * tree-affine.c (aff_combination_find_elt): Same.
12987 * tree-affine.h: Same.
12988 * tree-data-ref.h: Same.
12989 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
12990 * tree-predcom.c: Same.
12991 * tree-scalar-evolution.c (find_var_scev_info): Same.
12992 * tree-ssa-alias.h: Same.
12993 * tree-ssa-ccp.c: Same.
12994 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
12995 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
12996 (rewrite_mem_refs): Same.
12997 (execute_sm_if_changed): Same.
12998 (hoist_memory_references): Same.
12999 * tree-ssa-loop-ivopts.c (operator<=): Same.
13000 * tree-ssa-loop.h: Same.
13001 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
13002 * tree-ssa-structalias.c: Same.
13003 * tree-switch-conversion.h (cluster::cluster): Same.
13004 (simple_cluster::simple_cluster): Same.
13005 * tree-vect-patterns.c (type_conversion_p): Same.
13006 * tree-vectorizer.c (dump_stmt_cost): Same.
13007 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
13008 * tree.c (protected_set_expr_location): Same.
13009 * tree.h (desired_pro_or_demotion_p): Same.
13010 (fndecl_built_in_p): Same.
13011 * unique-ptr-tests.cc: Same.
13012 * var-tracking.c (delete_variable_part): Same.
13013 * varasm.c (assemble_real): Same.
13014 (tree_output_constant_def): Same.
13016 * wide-int-bitmask.h: Same.
13017 * wide-int.h (decompose): Same.
13019 2019-07-09 Richard Biener <rguenther@suse.de>
13021 PR tree-optimization/91114
13022 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
13023 find a vector type isn't fatal.
13025 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
13027 * config/aarch64/aarch64-simd.md
13028 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
13029 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
13030 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
13031 (*aarch64_crypto_aese_fused,
13032 *aarch64_crypto_aesd_fused): Update to new definition.
13033 * config/aarch64/aarch64.c
13034 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
13036 2019-07-09 Richard Biener <rguenther@suse.de>
13038 * gimple-match.h (gimple_match_op::resimplify): New.
13039 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
13040 gimple_resimplify4, gimple_resimplify5): Remove.
13041 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
13042 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
13044 (gimple_match_op::resimplify): New.
13045 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
13046 according to availability. Use gimple_match_op::resimplify.
13048 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
13050 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
13052 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
13054 * config/arm/crypto.md:
13055 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
13056 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
13057 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
13058 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
13060 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
13061 * config/arm/aarch-common-protos.h
13062 (aarch_crypto_can_dual_issue): Remove.
13063 * config/arm/aarch-common.c
13064 (aarch_crypto_can_dual_issue): Likewise.
13065 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
13066 * config/arm/cortex-a53.md: Likewise.
13067 * config/arm/cortex-a57.md: Likewise.
13068 * config/arm/iterators.md:
13069 (CRYPTO_BINARY): Redefine.
13070 (CRYPTO_UNARY): Removed.
13071 (CRYPTO_AES, CRYPTO_AESMC): New.
13073 2019-07-09 Richard Biener <rguenther@suse.de>
13075 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
13076 (vn_reference_lookup_3): If the main ref has no access path recorded
13077 but orig_ref has use it to do access-path based disambiguation.
13078 (vn_reference_lookup_pieces): Adjust.
13079 (vn_reference_lookup): Pass down original ref if we valueized.
13081 2019-07-09 Martin Liska <mliska@suse.cz>
13083 * doc/extend.texi: Document influence on loop
13086 2019-07-09 Martin Liska <mliska@suse.cz>
13088 * lto-compress.c (lto_normalized_zstd_level): Do not use
13089 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
13090 of libzstd. One can use 0 as a default compression level.
13092 2019-07-09 Martin Liska <mliska@suse.cz>
13094 * doc/invoke.texi: Add link from -fprofile-dir option.
13095 Use better wording for 'gcno filename'.
13097 2019-07-08 Martin Sebor <msebor@redhat.com>
13099 PR middle-end/71924
13100 PR middle-end/90549
13101 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
13103 (args_loc_t): New type.
13104 (args_loc_t, locmap_t): same.
13105 (diag_returned_locals): New function.
13106 (is_addr_local): Same.
13107 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
13108 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
13109 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
13111 2019-07-08 Jakub Jelinek <jakub@redhat.com>
13113 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
13114 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
13115 and casts in offset when different, both through gimple stmts
13116 and through trees. Rewritten using loops to minimize code duplication
13119 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
13121 * emit-rtl.c (set_insn_locations): New function moved from...
13122 * function.c (set_insn_locations): ...here.
13123 * ira-emit.c (emit_moves): Propagate location of the first instruction
13124 to the inserted move instructions.
13125 * reg-stack.c (compensate_edge): Set the location if the sequence is
13126 inserted on the edge.
13127 * rtl.h (set_insn_locations): Declare.
13129 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
13131 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
13132 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
13135 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
13137 PR rtl-optimization/88233
13138 * common.opt (fsplit-wide-types-early): New option.
13139 * common/config/rs6000/rs6000-common.c
13140 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
13142 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
13143 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
13144 flag_split_wide_types_early.
13145 (pass_data_lower_subreg3): New.
13146 (pass_lower_subreg3): New.
13147 (make_pass_lower_subreg3): New.
13148 * passes.def (pass_lower_subreg2): Move after the loop passes.
13149 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
13150 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
13151 the pass pipeline; its previous place is taken by ...
13152 (make_pass_lower_subreg3): ... this.
13154 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13156 * config/s390/s390.c (s390_shift_truncation_mask): Define.
13157 (TARGET_SHIFT_TRUNCATION_MASK): Define.
13159 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
13161 * config/s390/constraints.md: Add new jsc constraint.
13162 * config/s390/predicates.md: New predicates.
13163 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
13164 * config/s390/s390.c (s390_valid_shift_count): New function.
13165 (print_shift_count_operand): Use s390_valid_shift_count.
13166 (print_operand): Likewise.
13167 * config/s390/s390.md: Use new predicate.
13168 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
13169 * config/s390/vector.md: Use new predicate.
13171 2019-07-08 Andrew Waterman <andrew@sifive.com>
13172 Jim Wilson <jimw@sifive.com>
13174 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
13175 bitsize instead of BITS_PER_WORD.
13177 2019-07-08 Martin Liska <mliska@suse.cz>
13179 * collect2.c (defined): Revert to before r254460.
13180 (scan_prog_file): Revert to before r254460.
13182 2019-07-08 Richard Biener <rguenther@suse.de>
13184 PR tree-optimization/83518
13185 * tree-ssa-sccvn.c: Include splay-tree.h.
13186 (struct pd_range, struct pd_data): New.
13187 (struct vn_walk_cb_data): Add data to track partial definitions.
13188 (vn_walk_cb_data::~vn_walk_cb_data): New.
13189 (vn_walk_cb_data::push_partial_def): New.
13190 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
13191 (vn_reference_lookup_2): When partial defs are registered give up.
13192 (vn_reference_lookup_3): Track partial defs for memset and
13193 constructor zeroing and for defs from constants.
13195 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13197 * doc/install.texi (bootstrap-Og): Document.
13199 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13201 * config/riscv/pic.md (*local_pic_load_s<mode>)
13202 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
13203 referenced by <mode>, giving...
13204 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
13205 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
13206 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
13207 use <X:MODE> for the mode attribute.
13209 2019-07-07 Jeff Law <law@redhat.com>
13211 PR tree-optimization/91090
13212 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
13213 in handling of ranges to simplify switch statements.
13215 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13217 * config/darwin.c (darwin_override_options): Make a final check on PIC
13220 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13222 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
13223 on for kernel code.
13225 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13228 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
13229 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
13230 instead of matching them to "l" output operands.
13232 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13234 * config/mips/mips.c (mips_split_move): Zero-initialize addr
13235 and check whether addr.reg is nonnull before using it.
13237 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13239 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
13240 ctx->for_simd_scan_phase simd copy the outer var to the privatized
13241 variable(s). For conditional lastprivate look through outer
13242 GIMPLE_OMP_SCAN context.
13243 (lower_omp_1): For conditional lastprivate look through outer
13244 GIMPLE_OMP_SCAN context.
13246 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
13247 member to combined_into_simd_safelen1.
13248 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
13249 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
13250 clauses if ctx->combined_into_simd_safelen1 put statements after the
13251 predicate conditionalized block rather than into it.
13253 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13255 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
13257 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
13258 Make the choice of <mode> explicit, giving...
13259 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
13261 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13263 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
13264 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
13266 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
13267 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
13268 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
13269 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
13270 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
13271 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
13272 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
13273 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
13274 (*avx512f_scatterdi<mode>): Likewise.
13275 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
13277 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13279 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
13280 specify the mode iterator referenced by <mode>, giving...
13281 (*push1_h8300hs_<QHI:mode>): ...this.
13283 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13285 * config/gcn/gcn-valu.md
13286 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
13287 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
13288 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
13289 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
13290 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
13291 but using the _exec comparison patterns.
13292 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
13293 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
13294 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
13295 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
13296 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
13297 but using the _exec comparison patterns.
13299 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13301 * config/arm/sync.md
13302 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
13303 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
13304 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
13305 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
13306 <SIDI:cas_cmp_str>.
13308 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13310 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
13311 (maybe_lookup_ctx): Add forward declaration.
13312 (omp_find_scan): Likewise. Walk into body of simd if composited
13313 with worksharing loop.
13314 (scan_omp_simd_scan): New function.
13315 (scan_omp_1_stmt): Call it.
13316 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
13317 ctx->for_simd_scan_phase.
13318 (lower_rec_input_clauses): Do much less work for inscan reductions
13319 in ctx->for_simd_scan_phase is_simd regions.
13320 (lower_omp_scan): Set is_simd also on simd constructs composited
13321 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
13322 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
13323 emit their body after in simd constructs composited with worksharing
13325 (lower_omp_for_scan): Handle worksharing loop composited with simd.
13327 * omp-low.c (omp_find_scan): Make static.
13328 (lower_omp_for_scan): Fix order of merge arguments in input phase of
13329 the second loop, var2 represents the first partial sum and so needs
13330 to go before rprivb[ivar].
13332 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
13334 * config/rs6000/rs6000-logue.c: Remove unused code.
13336 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13338 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
13340 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
13343 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
13344 check with a frame laid out check.
13346 2019-07-05 Richard Biener <rguenther@suse.de>
13348 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
13349 when comparing against a store with possibly the same value.
13351 2019-07-05 Richard Biener <rguenther@suse.de>
13353 PR tree-optimization/91091
13354 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
13355 (walk_non_aliased_vuses): Likewise.
13356 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
13357 (get_continuation_for_phi): New tbaa_p parameter and pass
13359 (walk_non_aliased_vuses): Likewise.
13360 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
13361 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
13362 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
13364 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
13365 (adjust_offsets_for_equal_base_address): New function.
13366 (vn_reference_lookup_3): Use it to catch more base equivalences.
13367 Handle and pass down tbaa_p flag.
13368 (vn_reference_lookup_pieces): Adjust.
13369 (vn_reference_lookup): Remove alias-set altering, instead pass
13370 down false as tbaa_p.
13372 2019-07-05 Richard Biener <rguenther@suse.de>
13374 PR tree-optimization/91091
13375 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
13376 accesses can happen with -fno-strict-aliasing.
13378 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
13380 * tree-ssa-alias.c (alias_stats): Add
13381 nonoverlapping_component_refs_since_match_p_must_overlap.
13382 (dump_alias_stats): Print it.
13383 (nonoverlapping_component_refs_since_match_p): Add early exit.
13384 (nonoverlapping_component_refs_p): Do not account early exit.
13386 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13388 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
13389 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
13390 (emit_eh_dispatch): Delete.
13391 (lower_catch): Emit the eh_dispatch manually and set the location of
13392 the first catch statement onto it.
13393 (lower_eh_filter): Emit the eh_dispatch manually and set location.
13394 (lower_eh_dispatch): Propagate location.
13395 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
13396 (eliminate_build): Likewise.
13398 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13400 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
13401 phi nodes if possible.
13402 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
13403 location info on the newly created statement.
13404 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
13405 newly created increment if needed.
13407 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13409 PR middle-end/78884
13410 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
13411 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
13412 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
13413 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
13414 ctx->add_safelen1 is set.
13416 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
13417 GOMP_loop_start at the start of second worksharing loop in a scan.
13418 For nowait, don't emit GOMP_loop_end_nowait at the end of first
13419 worksharing loop in a scan even if there are conditional lastprivates,
13420 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
13422 2019-07-04 Jan Hubicka <jh@suse.cz>
13424 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
13425 Fix check for match in the ref walk.
13427 2019-07-04 Martin Liska <mliska@suse.cz>
13429 * tree-ssa-loop-niter.c
13430 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
13431 (estimate_numbers_of_iterations):
13432 Support __builtin_expect_with_probability for analysis
13433 of # of loop iterations.
13435 2019-07-04 Alexandre Oliva <oliva@adacore.com>
13437 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
13438 * except.c: Likewise.
13439 * expr.c (expand_expr_real_1): Reject it.
13440 * gimplify.c (gimplify_expr): Gimplify it, within
13442 * tree-dump.c (dequeue_and_dump): Dump it.
13443 * tree-pretty-print.c (dump_generic_node): Likewise.
13444 * tree.c (block_may_fallthru): Handle it.
13445 * tree.def (EH_ELSE_EXPR): Introduce it.
13446 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
13447 with GIMPLE_EH_ELSE as try/finally/else.
13449 2019-07-04 Richard Biener <rguenther@suse.de>
13452 * tree-pass.h (execute_all_ipa_transforms): Add a flag
13453 parameter whether to disable GC collection.
13454 * passes.c (execute_one_ipa_transform_pass): Likewise, and
13456 (execute_all_ipa_transforms): Likewise and pass it down.
13457 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
13458 collection from applying IPA transforms.
13459 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
13460 from applying IPA transforms.
13462 2019-07-04 Richard Biener <rguenther@suse.de>
13464 PR tree-optimization/90911
13465 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
13466 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
13467 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
13468 scalar_loop_scaling.
13469 (vect_transform_loop): Scale scalar loop profile if needed.
13470 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
13471 the loop copy from if-conversion adjust edge probabilities
13472 and scale the vectorized loop body profile, queue the scalar
13473 profile for updating after peeling.
13475 2019-07-04 Jan Hubicka <jh@suse.cz>
13477 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
13478 parameters; return early for must-alias.
13479 (indirect_ref_may_alias_decl_p): Likewise; when establishing
13480 outer types match, try nonoverlapping_component_refs
13481 if must-alias is not obvious.
13482 (indirect_refs_may_alias_p): Likewise.
13483 (refs_may_alias_p_2): Likewise.
13485 2019-07-04 Richard Biener <rguenther@suse.de>
13487 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
13489 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
13491 (struct vn_walk_cb_data): New callback data struct.
13492 (vn_reference_lookup_2): Adjust.
13493 (vn_reference_lookup_3): Likewise.
13494 (vn_reference_lookup_pieces): Likewise.
13495 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
13496 (visit_reference_op_load): Adjust.
13498 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13500 PR tree-optimization/91063
13501 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
13502 stmt from stmts sequence before calling vect_init_vector_1.
13505 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13508 * fwprop.c (reg_single_def_p): New function.
13509 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
13510 (forward_propagate_into): New parameter reg_prop_only
13511 with default value false.
13512 Propagate def's src into loop only if SET_SRC and SET_DEST
13513 of def_set have single definitions.
13514 Likewise if reg_prop_only is set to true.
13515 (fwprop): New param fwprop_addr_p.
13516 Integrate fwprop_addr into fwprop.
13517 (fwprop_addr): Remove.
13518 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
13520 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
13521 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
13522 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
13524 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13526 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
13527 in worksharing loop scans.
13529 PR tree-optimization/91074
13530 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
13533 PR rtl-optimization/90756
13534 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
13537 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
13539 * config/aarch64/aarch64.md: Remove redundant constraints from
13540 define_expand but keep some patterns untouched if they are
13541 specially selected by TARGET_SECONDARY_RELOAD hook.
13542 * config/aarch64/aarch64-sve.md: Likewise.
13543 * config/aarch64/atomics.md: Remove redundant constraints from
13545 * config/aarch64/aarch64-simd.md: Likewise.
13547 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13549 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
13550 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
13551 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
13553 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
13556 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13558 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
13559 (STARTFILE_SPEC): Split crt3 into a separate spec.
13560 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
13561 (DARWIN_CRT2_SPEC): New.
13562 (DARWIN_CRT3_SPEC): New.
13563 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
13564 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
13565 (DARWIN_CRT3_SPEC): New.
13567 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
13569 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
13570 Change the RTL attribute "length" from "4" to "*" to allow the
13571 length attribute to be adjusted automatically for prefixed load,
13572 store, and add immediate instructions.
13573 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
13575 (extendsi<mode>2, EXTSI iterator): Likewise.
13576 (movsi_internal1): Likewise.
13577 (movsi_from_sf): Likewise.
13578 (movdi_from_sf_zero_ext): Likewise.
13579 (mov<mode>_internal): Likewise.
13580 (movcc_internal1, QHI iterator): Likewise.
13581 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
13582 (movsf_from_si): Likewise.
13583 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
13584 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
13585 (mov<mode>, FMOVE128 iterator): Likewise.
13586 (movdi_internal64): Likewise.
13587 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
13589 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
13590 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
13591 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
13592 (vsx_splat_v4sf): Likewise.
13594 2019-07-03 Mark Wielaard <mark@klomp.org>
13597 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
13598 DW_AT_addr_base if there is actually a .debug_addr section with
13600 (output_addr_table): Add DWARF5 table header generation here after
13601 checking there are actually any addresses from...
13602 (dwarf2out_finish): ...here.
13604 2019-07-03 Richard Biener <rguenther@suse.de>
13606 PR middle-end/91069
13607 * match.pd (vec_perm -> bit_insert): Fix element read from
13610 2019-07-03 Martin Liska <mliska@suse.cz>
13612 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
13613 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
13615 * generic-match-head.c: Include dbgcnt.h.
13616 * gimple-match-head.c: Likewise.
13618 2019-07-03 Martin Liska <mliska@suse.cz>
13620 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
13621 (GCOV_COUNTER_V_TOPN): New.
13622 (GCOV_COUNTER_V_INDIR): Use _topn.
13623 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
13624 (GCOV_TOPN_VALUES): New.
13625 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
13626 (GCOV_TOPN_VALUES_COUNTERS): New.
13627 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
13629 (gimple_init_gcov_profiler): Rename variables from one_value
13631 (gimple_gen_one_value_profiler): Remove.
13632 (gimple_gen_topn_values_profiler): New function.
13633 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
13634 names instead of SINGLE_VALUE.
13635 (stream_out_histogram_value): Likewise.
13636 (stream_in_histogram_value): Likewise.
13637 (get_most_common_single_value): Likewise.
13638 (gimple_divmod_fixed_value_transform): Likewise.
13639 (gimple_stringops_transform): Likewise.
13640 (gimple_divmod_values_to_profile): Likewise.
13641 (gimple_stringops_values_to_profile): Likewise.
13642 (gimple_find_values_to_profile): Likewise.
13643 * value-prof.h (enum hist_type): Rename to TOPN.
13644 (gimple_gen_one_value_profiler): Remove.
13645 (gimple_gen_topn_values_profiler): New.
13647 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
13649 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
13650 if it has the DW_AT_data_member_location attribute.
13652 2019-07-03 Richard Biener <rguenther@suse.de>
13654 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
13657 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
13659 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
13660 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
13661 (tlsdesc_small_sve_<mode>): Likewise.
13663 2019-07-03 Martin Liska <mliska@suse.cz>
13665 * Makefile.in: Define ZSTD_LIB.
13666 * common.opt: Adjust compression level
13667 to support also zstd levels.
13668 * config.in: Regenerate.
13669 * configure: Likewise.
13670 * configure.ac: Add --with-zstd and --with-zstd-include options
13672 * doc/install.texi: Mention zstd dependency.
13673 * gcc.c: Print supported LTO compression algorithms.
13674 * lto-compress.c (lto_normalized_zstd_level): Likewise.
13675 (lto_compression_zstd): Likewise.
13676 (lto_uncompression_zstd): Likewise.
13677 (lto_end_compression): Dispatch in between zlib and zstd.
13678 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
13679 (lto_uncompression_zlib): Make it static.
13680 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
13681 * lto-section-in.c (lto_get_section_data): Pass info
13682 about used compression.
13683 * lto-streamer-out.c: By default use zstd when possible.
13684 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
13685 (TV_IPA_LTO_COMPRESS): Likewise for compression.
13687 2019-07-03 Martin Liska <mliska@suse.cz>
13689 * lto-section-in.c (lto_get_section_data): Add "lto" section.
13690 * lto-section-out.c (lto_destroy_simple_output_block): Never
13691 compress LTO_section_lto section.
13692 * lto-streamer-out.c (produce_asm): Do not set major_version
13694 (lto_output_toplevel_asms): Likewise.
13695 (produce_lto_section): New function.
13696 (lto_output): Call produce_lto_section.
13697 (lto_write_mode_table): Do not set major_version and
13699 (produce_asm_for_decls): Likewise.
13700 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
13702 (struct lto_header): Remove.
13703 (struct lto_section): New struct.
13704 (struct lto_simple_header): Do not inherit from lto_header.
13705 (struct lto_file_decl_data): Add lto_section_header field.
13707 2019-07-03 Martin Liska <mliska@suse.cz>
13709 * lra-eliminations.c (eliminate_regs_in_insn): Remove
13711 * reg-stack.c (check_asm_stack_operands): Likewise.
13712 * tree-ssa-structalias.c (create_function_info_for): Likewise.
13713 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
13714 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
13715 force_expand_binop.
13717 2019-07-03 Martin Liska <mliska@suse.cz>
13719 PR tree-optimization/90892
13720 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
13721 in string constants.
13723 2019-07-03 Martin Liska <mliska@suse.cz>
13725 PR middle-end/90899
13726 * multiple_target.c (create_dispatcher_calls): Add to comdat
13727 group only if set for ifunc.
13729 2019-07-03 Martin Liska <mliska@suse.cz>
13732 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
13733 Define local_object_name in outer scope in order to handle
13734 use-after-scope issue.
13736 2019-07-03 Martin Liska <mliska@suse.cz>
13738 * common.opt: Add fprofile-note.
13739 * coverage.c (coverage_init): Append the option
13741 * doc/invoke.texi: Document -fprofile-note.
13743 2019-07-03 Jakub Jelinek <jakub@redhat.com>
13745 PR tree-optimization/91033
13746 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
13747 vect_analyze_data_refs): Add bool * arguments.
13748 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
13749 if failure is due to scatter/gather, set *fatal to false if non-NULL.
13750 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
13751 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
13752 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
13753 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
13754 vect_analyze_data_refs caller.
13756 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
13758 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
13759 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
13760 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
13761 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
13762 OMP_CLAUSE__SCANTEMP_ entry.
13763 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
13764 * tree-pretty-print.c (dump_omp_clause): Likewise.
13765 * tree-nested.c (convert_nonlocal_omp_clauses,
13766 convert_local_omp_clauses): Likewise.
13767 * omp-general.h (struct omp_for_data): Add have_scantemp and
13768 have_nonctrl_scantemp members.
13769 * omp-general.c (omp_extract_for_data): Initialize them.
13770 * omp-low.c (struct omp_context): Add scan_exclusive member.
13771 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
13772 result again with GF_OMP_FOR_KIND_MASK. Initialize also
13773 ctx->scan_exclusive.
13774 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
13775 of !ctx->scan_inclusive.
13776 (lower_rec_input_clauses): Simplify gimplification of dtors using
13777 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
13778 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
13779 loops. Don't add barrier for reduction_omp_orig_ref if
13780 ctx->scan_??xclusive.
13781 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
13782 (lower_omp_scan): Use ctx->scan_exclusive instead
13783 of !ctx->scan_inclusive. Handle worksharing loops with inscan
13784 reductions. Use new_vard != new_var instead of repeated
13785 omp_is_reference calls.
13786 (omp_find_scan, lower_omp_for_scan): New functions.
13787 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
13789 * omp-expand.c (expand_omp_scantemp_alloc): New function.
13790 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
13791 and fd->have_scantemp.
13793 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
13794 on worksharing loop propagate it as shared clause to containing
13797 * omp-expand.c (expand_omp_for_static_nochunk,
13798 expand_omp_for_static_chunk): For nowait worksharing loop with
13799 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
13802 2019-07-02 qing zhao <qing.zhao@oracle.com>
13804 PR preprocessor/90581
13805 * doc/cppopts.texi: Add document for -fmax-include-depth.
13806 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
13808 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
13810 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
13811 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
13812 (mmx_packssdw): Ditto.
13813 (mmx_punpckhbw): Ditto.
13814 (mmx_punpcklbw): Ditto.
13815 (mmx_punpckhwd): Ditto.
13816 (mmx_punpcklwd): Ditto.
13817 (mmx_punpckhdq): Ditto.
13818 (mmx_punpckldq): Ditto.
13819 (*vec_dupv4hi): Ditto.
13820 (*vec_dupv2si): Ditto.
13821 (mmx_pmovmskb): Ditto.
13822 * config/i386/sse.md (sse_cvtpi2ps): Use
13823 TARGET_SSE2 && SSE_REG_P in split condition.
13824 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
13825 TARGET_SSSE3 && SSE_REGNO_P in split condition.
13826 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
13827 (ssse3_pshufbv8qi3): Ditto.
13828 (ssse3_palignrdi): Ditto.
13830 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
13832 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
13833 with inlined save and restore.
13835 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
13837 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
13838 to be inserted on single successor edge of the entry block. Then call
13839 commit_edge_insertions instead of inserting the instructions manually.
13840 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
13841 RTL expansion and rebuild jump labels chain.
13843 2019-07-02 Richard Biener <rguenther@suse.de>
13845 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
13847 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13849 * tree.c (build_common_tree_nodes): Initialize them.
13850 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13851 Make declarations comments.
13852 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
13853 chrec_known): Remove definitions.
13854 (initialize_scalar_evolutions_analyzer): Remove.
13855 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
13856 * tree-streamer.c (preload_common_nodes): Do not preload
13857 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
13859 2019-07-02 Jan Hubicka <jh@suse.cz>
13861 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
13864 2019-07-02 Jan Hubicka <jh@suse.cz>
13866 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
13868 (nonoverlapping_component_refs_since_match_p): ... this one;
13869 handle also non-decl bases; return -1 if search gave up.
13870 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
13871 nonoverlapping_component_refs_of_decl_p_no_alias to
13872 nonoverlapping_component_refs_since_match_p_may_alias,
13873 nonoverlapping_component_refs_since_match_p_no_alias.
13874 (dump_alias_stats): Update dumping.
13875 (aliasing_matching_component_refs_p): Break out from ...;
13876 dispatch to nonoverlapping_component_refs_for_decl_p
13877 and nonoverlapping_component_refs_since_match_p.
13878 (aliasing_component_refs_p): ... here; call
13879 nonoverlapping_component_refs_p in scenarios where we can not
13880 precisely determine base match.
13881 (decl_refs_may_alias_p): Use
13882 nonoverlapping_component_refs_since_match_p.
13883 (indirect_ref_may_alias_decl_p): Do not call
13884 nonoverlapping_component_refs_p.
13885 (indirect_refs_may_alias_p): Likewise.
13887 2019-07-02 Jan Hubicka <jh@suse.cz>
13889 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
13890 to clobber of return value.
13892 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13894 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
13895 for is_neon_type instructions that have not already been categorized.
13897 2019-07-02 Richard Biener <rguenther@suse.de>
13899 PR tree-optimization/58483
13900 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
13901 for MEM_REF base hashing.
13902 (equal_mem_array_ref_p): Likewise for base comparison.
13904 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13906 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
13907 parameterized name.
13908 (signbit<mode>2): Use that name. Simplify.
13910 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
13912 PR middle-end/66726
13913 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
13914 Tune heuristic from PR71016 to allow MIN / MAX.
13916 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13918 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
13919 parameterized name.
13920 (abs<mode>2): Use that name. Simplify.
13922 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13924 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
13925 parameterized name.
13926 (neg<mode>2): Use that name. Simplify.
13928 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13930 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
13932 (abs<mode>2): Use that name. Simplify.
13934 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13936 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
13938 (neg<mode>2): Use that name. Simplify.
13940 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
13942 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
13943 ("enabled" attribute): Handle sse_noavx isa attribute.
13944 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
13945 Use TARGET_SSE && SSE_REGNO_P in split condition.
13946 (*vec_dupv2sf): Ditto.
13948 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13950 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
13952 (floatsi<mode>2): Use that name. Simplify.
13954 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13956 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
13957 parameterized name.
13958 (extenddf<mode>2_vsx): Make this a parameterized name.
13959 (extenddf<mode>2): Use those names. Simplify.
13961 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13963 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
13965 (eh_return): Use that name. Simplify.
13967 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13969 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
13970 (doloop_end): Use that name. Simplify.
13972 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13974 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
13975 parameterized name.
13976 (indirect_jump): Use that name. Simplify.
13978 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13980 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
13981 parameterized name.
13982 (abs<mode>2): Use that name. Simplify.
13984 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13986 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
13987 parameterized name.
13988 (fix_trunc<mode>si2): Use that name. Simplify.
13990 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13992 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
13993 (allocate_stack): Use that name. Simplify.
13995 2019-07-01 Martin Sebor <msebor@redhat.com>
13997 PR middle-end/90923
13998 * hash-map.h (hash_map::put): On insertion invoke element ctor.
13999 (hash_map::get_or_insert): Same. Reformat comment.
14000 * hash-set.h (hash_set::add): On insertion invoke element ctor.
14001 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
14002 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
14003 * hash-table.h (hash_table::operator=): Prevent copy assignment.
14004 (hash_table::hash_table (const hash_table&)): Use copy ctor
14005 instead of assignment to copy elements.
14007 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
14008 John David Anglin <danglin@gcc.gnu.org>
14011 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
14012 using saved frame pointer.
14014 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
14016 PR middle-end/64242
14017 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
14018 Add frame clobber and schedule blockage.
14020 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
14022 * doc/invoke.texi (Link Options): Further editorial changes to
14023 -flinker-output docs.
14025 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
14027 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
14028 Load both operands of a PLUS into registers separately.
14030 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
14032 * config/s390/vector.md: Fix shift count operand printing.
14034 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14036 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
14038 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14040 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
14041 Use recog_data to test for an output operand.
14043 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14045 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
14046 exclude any others that are disparaged or that are bound to need
14048 (ira_get_dup_out_num): Expand comment.
14050 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14052 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
14053 constraint string for each operand/alternative combo. Only handle
14054 '%' at the start of constraint strings, and look for it outside
14057 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
14059 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
14060 alternative_mask instead of HARD_REG_SET to represent a
14061 bitmask of alternatives.
14062 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
14063 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
14065 2019-07-01 Martin Liska <mliska@suse.cz>
14067 * edit-context.c (test_applying_fixits_unreadable_file): Do not
14068 use () for a constructor call.
14069 (test_applying_fixits_line_out_of_range): Likewise.
14070 * ggc-page.c (alloc_page): Use (void *) for %p printf format
14072 (free_page): Likewise.
14074 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
14076 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
14077 parameter names to match usage (no functional change).
14078 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
14080 2019-07-01 Richard Biener <rguenther@suse.de>
14082 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
14084 (pass_fre::execute): Honor it.
14085 * passes.def: Adjust pass_fre invocations to allow iterating,
14086 add non-iterating pass_fre before late threading/dom.
14088 2019-07-01 Richard Biener <rguenther@suse.de>
14090 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
14091 TARGET_MEM_REF handling to also handle address-taken ones.
14093 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
14095 * doc/sourcebuild.texi (Effective-Target Keywords, Other
14096 hardware attributes): Document avx512vp2intersect.
14098 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14100 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
14101 (abs<mode>2): New expander.
14102 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
14103 Use CODE_FOR_ssse3_absv8qi2.
14104 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
14105 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
14107 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14109 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
14110 to sse, sse_noavx and avx. Update all uses.
14112 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
14114 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
14115 (*mmx_<plusminus_insn><mode>3): Ditto.
14116 (*mmx_mulv4hi3"): Ditto.
14117 (*mmx_smulv4hi3_highpart): Ditto.
14118 (*mmx_umulv4hi3_highpart): Ditto.
14119 (*mmx_pmaddwd): Ditto.
14120 (*sse2_umulv1siv1di3): Ditto.
14121 (*mmx_<code>v4hi3): Ditto.
14122 (*mmx_<code>v8qi3): Ditto.
14123 (mmx_ashr<mode>3): Ditto.
14124 ("mmx_<shift_insn><mode>3): Ditto.
14125 (*mmx_eq<mode>3): Ditto.
14126 (mmx_gt<mode>3): Ditto.
14127 (mmx_andnot<mode>3): Ditto.
14128 (*mmx_<code><mode>3): Ditto.
14129 (*mmx_pinsrw): Ditto.
14130 (*mmx_pextrw): Ditto.
14131 (mmx_pshufw_1): Ditto.
14132 (*mmx_uavgv8qi3): Ditto.
14133 (*mmx_uavgv4hi3): Ditto.
14134 ("mmx_psadbw): Ditto.
14135 * config/i386/sse.md (sse_cvtps2pi): Ditto.
14136 (sse_cvttps2pi): Ditto.
14137 (ssse3_pmaddubsw): Ditto.
14138 (*ssse3_pmulhrswv4hi3): Ditto.
14139 (ssse3_psign<mode>3): Ditto.
14141 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
14143 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
14144 adjustment for bit-fields to all aggregate types.
14146 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
14148 * config/rs6000/predicates.md (pcrel_address): Use
14149 SYMBOL_REF_LOCAL_P to determine if a label is local.
14150 (pcrel_external_address): New predicate.
14151 (non_prefixed_mem_operand): Delete, predicate not used.
14152 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
14153 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
14155 (SYMBOL_REF_PCREL_P): Likewise.
14158 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
14160 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
14161 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
14162 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
14164 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14166 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
14167 override on extra_headers.
14169 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
14171 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
14172 * config/darwin-driver.c (darwin_default_min_version): Remove newline
14174 (darwin_driver_init): Likewise.
14176 2019-06-28 Jan Beulich <jbeulich@suse.com>
14178 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14179 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
14180 Eliminate redundant alternative.
14182 2019-06-28 Jan Beulich <jbeulich@suse.com>
14184 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14185 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
14186 Use vector_operand.
14188 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
14190 * config/arc/arc.c (arc_rtx_costs): All short instructions are
14191 having a lower cost regardless of the speed option.
14193 2019-06-28 Jan Beulich <jbeulich@suse.com>
14195 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
14196 vector_operand plus, on both alternatives, "Bm" constraint.
14198 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
14200 * config/arm/arm.md: Remove redundant constraints from
14201 define_expand but leave reload_inm and reload_outm patterns
14202 untouched since they need special constraints to work.
14203 * config/arm/arm-fixed.md: Remove redundant constraints from
14205 * config/arm/iwmmxt.md: Likewise.
14206 * config/arm/neon.md: Likewise.
14207 * config/arm/sync.md: Likewise.
14208 * config/arm/thumb1.md: Likewise.
14209 * config/arm/vec-common.md: Likewise.
14211 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
14213 * doc/install.texi: Document --disable-tm-clone-registry.
14215 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14218 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
14221 PR tree-optimization/91010
14222 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
14223 return true. Otherwise, don't call operand_equal_p if offset1 or
14224 offset2 is NULL and just return false.
14226 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14228 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
14229 user-specified float mode choice for kernel mode code.
14231 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14233 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
14236 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14238 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
14239 use longcall for 64b code.
14241 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
14243 * builtins.c (get_memory_rtx): Fix comment.
14244 * optabs.def (movmem_optab): Change to cpymem_optab.
14245 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
14246 (emit_block_move_hints): Change movmem to cpymem.
14247 * defaults.h: Change movmem to cpymem.
14248 * targhooks.c (get_move_ratio): Change movmem to cpymem.
14249 (default_use_by_pieces_infrastructure_p): Ditto.
14250 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
14251 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
14253 * config/aarch64/aarch64.h: Change movmem to cpymem.
14254 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
14255 * config/alpha/alpha.h: Change movmem to cpymem in comment.
14256 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
14258 * config/arc/arc-protos.h: Change movmem to cpymem.
14259 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
14260 * config/arc/arc.h: Change movmem to cpymem in comment.
14261 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
14262 * config/arm/arm-protos.h: Change movmem to cpymem in names.
14263 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
14264 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
14265 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
14266 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
14267 * config/avr/avr-protos.h: Change movmem to cpymem.
14268 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
14269 avr_out_movmem): Change movmem to cpymem.
14270 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
14271 Change movmem to cpymem.
14272 * config/bfin/bfin-protos.h: Change movmem to cpymem.
14273 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
14274 Change movmem to cpymem.
14275 * config/bfin/bfin.h: Change movmem to cpymem in comment.
14276 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
14277 * config/c6x/c6x-protos.h: Change movmem to cpymem.
14278 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
14279 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
14280 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
14281 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
14282 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
14283 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
14284 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
14285 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
14286 expand_small_cpymem_or_setmem,
14287 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
14288 expand_set_or_cpymem_constant_prologue,
14289 ix86_expand_set_or_cpymem): Change movmem to cpymem.
14290 * config/i386/i386-protos.h: Change movmem to cpymem.
14291 * config/i386/i386.h: Change movmem to cpymem in comment.
14292 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
14293 (setmem<mode>): Change expansion function name.
14294 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
14295 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
14296 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
14297 * config/m32c/m32c-protos.h: Change movmem to cpymem.
14298 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
14299 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
14300 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
14302 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
14303 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
14304 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
14305 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
14306 Change movmem to cpymem.
14307 * config/mips/mips.h: Change movmem to cpymem.
14308 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
14309 * config/nds32/nds32-memory-manipulation.c
14310 (nds32_expand_movmemsi_loop_unknown_size,
14311 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
14312 nds32_expand_movmemsi_unroll,
14313 nds32_expand_movmemsi): Change movmem to cpymem.
14314 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
14315 * config/nds32/nds32-protos.h: Change movmem to cpymem.
14316 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
14317 (pa_adjust_insn_length): Change call to compute_movmem_length.
14318 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
14319 movmemdi, movmemdi_prereload,
14320 movmemdi_postreload): Change movmem to cpymem.
14321 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
14322 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
14323 * config/riscv/riscv.c: Change movmem to cpymem in comment.
14324 * config/riscv/riscv.h: Change movmem to cpymem.
14325 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
14326 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
14327 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
14329 * config/s390/s390-protos.h: Change movmem to cpymem.
14330 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
14331 s390_expand_insv): Change movmem to cpymem.
14332 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
14333 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
14334 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
14335 * config/sparc/sparc.h: Change movmem to cpymem in comment.
14336 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
14337 for nonexistent function.
14338 * config/vax/vax.h: Change movmem to cpymem in comment.
14339 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
14340 * config/visium/visium.h: Change movmem to cpymem in comment.
14341 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
14342 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
14343 * doc/md.texi: Change movmem to cpymem and update description to match.
14344 * doc/rtl.texi: Change movmem to cpymem.
14345 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
14346 * doc/tm.texi: Regenerate.
14348 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
14350 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
14351 -fvariable-expansion-in-unroller by default.
14352 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
14355 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
14358 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14359 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14361 * config.gcc(rs6000-*-*): Define target_gtfiles.
14363 2019-06-27 Jan Hubicka <jh@suse.cz>
14365 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
14366 (add_type_duplicate): When odr hash is not allocated, to nothing.
14367 (odr_based_tbaa_p): New function.
14368 (set_type_canonical_for_odr_type): New function.
14369 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
14370 set_type_canonical_for_odr_type): New.
14371 * tree.c (gimple_canonical_types_compatible_p): ODR types with
14372 ODR based TBAA are not equivalent to non-ODR types.
14374 2019-06-27 Martin Liska <mliska@suse.cz>
14376 PR tree-optimization/90974
14377 PR rtl-optimization/90975
14378 PR rtl-optimization/90976
14380 PR tree-optimization/91017
14381 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
14383 * lra.c (lra_set_insn_recog_data): Remove a leftover from
14384 initial commit of IRA.
14385 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
14387 * tree-vect-loop.c (vect_create_epilog_for_reduction):
14388 Remove unused mode1.
14389 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
14392 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14395 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
14396 instead of register_operand for operands[1], add m to its constraints
14397 if operands[2] uses "C" constraint. Ensure in condition that if
14398 operands[2] is not 0, then operands[1] is not a MEM. For last two
14399 alternatives, use unaligned loads instead of aligned if operands[1] is
14400 misaligned_operand.
14402 2019-06-27 Martin Liska <mliska@suse.cz>
14404 * asan.c (asan_emit_allocas_unpoison): Remove obviously
14406 * bt-load.c (move_btr_def): Likewise.
14407 * builtins.c (expand_builtin_apply_args_1): Likewise.
14408 (expand_builtin_apply): Likewise.
14409 * cfgexpand.c (expand_asm_stmt): Likewise.
14410 (construct_init_block): Likewise.
14411 * cfghooks.c (verify_flow_info): Likewise.
14412 * cfgloopmanip.c (remove_path): Likewise.
14413 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
14414 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
14415 * combine.c (simplify_if_then_else): Likewise.
14416 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
14417 (choose_basereg): Likewise.
14418 (ix86_expand_prologue): Likewise.
14419 (ix86_preferred_output_reload_class): Likewise.
14420 * cselib.c (cselib_record_sets): Likewise.
14421 * df-scan.c (df_scan_alloc): Likewise.
14422 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
14423 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
14424 * emit-rtl.c (try_split): Likewise.
14425 * graphite-scop-detection.c (assign_parameter_index_in_region):
14427 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
14428 * ira-color.c (setup_profitable_hard_regs): Likewise.
14429 * ira.c (rtx_moveable_p): Likewise.
14430 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
14431 * read-rtl.c (read_subst_mapping): Likewise.
14432 * regrename.c (scan_rtx): Likewise.
14433 * reorg.c (fill_slots_from_thread): Likewise.
14434 * tree-inline.c (tree_function_versioning): Likewise.
14435 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
14436 * tree-ssa-sink.c (statement_sink_location): Likewise.
14437 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
14438 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
14439 (vect_create_epilog_for_reduction): Likewise.
14440 * tree.c (build_nonstandard_integer_type): Likewise.
14442 2019-06-27 Richard Biener <rguenther@suse.de>
14444 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
14446 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
14448 PR tree-optimization/89772
14449 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
14450 out-of-bound accesses checking.
14452 2019-06-27 Martin Liska <mliska@suse.cz>
14454 PR tree-optimization/91014
14455 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
14456 when LHS is NULL_TREE.
14458 2019-06-27 Martin Liska <mliska@suse.cz>
14460 * symbol-summary.h (traverse): Pass
14461 argument a to the call of callback.
14462 (gt_ggc_mx): Mark arguments as unused.
14463 (gt_pch_nx): Likewise.
14465 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
14468 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
14471 2019-06-26 Jeff Law <law@redhat.com>
14473 PR tree-optimization/90883
14474 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
14475 (delete_dead_or_redundant_assignment): Likewise.
14477 PR tree-optimization/90883
14478 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
14479 * tree-ssa-dse.c: Update various comments to distinguish between
14480 dead and redundant stores.
14481 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
14482 (dse_optimize_redundant_stores): New function.
14483 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
14484 Distinguish between dead and redundant calls in dump output. All
14486 (delete_dead_or_redundant_assignment): Similarly for assignments.
14487 (dse_optimize_stmt): Handle _CHK variants. For statements which
14488 store 0 into multiple memory locations, try to prove a subsequent
14489 store is redundant.
14491 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
14494 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
14495 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
14497 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14499 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
14500 (branch_islands): New extern.
14501 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
14502 * config/rs6000/rs6000.c: .. here.
14504 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14506 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
14507 (powerpc*-*-*) ... to here.
14509 2019-06-26 Jeff Law <law@redhat.com>
14511 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
14512 memcpy, memmove and memset builtins.
14513 (maybe_trim_memstar_call): Likewise.
14515 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14517 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
14519 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14521 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14523 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14525 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
14527 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
14529 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
14532 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14534 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
14536 2019-06-26 Richard Biener <rguenther@suse.de>
14539 * tree-inline.c (remap_ssa_name): Copy SSA range info.
14541 2019-06-26 Richard Biener <rguenther@suse.de>
14543 * lto-streamer.h (lto_bitmap_alloc): Remove.
14544 (lto_bitmap_free): Likewise.
14545 * lto-streamer.c (lto_bitmap_alloc): Remove.
14546 (lto_bitmap_free): Likewise.
14547 (lto_obstack): Likewise.
14548 (lto_obstack_initialized): Likewise.
14549 * lto-streamer-out.c (lto_output): Use own obstack for local
14550 bitmap, free it consistently.
14552 2019-06-26 Jakub Jelinek <jakub@redhat.com>
14555 * config/i386/sse.md
14556 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
14557 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
14558 insns if operands[2] is misaligned_operand.
14560 2019-06-26 Li Jia He <helijia@linux.ibm.com>
14562 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
14564 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
14567 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14569 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
14571 2019-06-26 Martin Liska <mliska@suse.cz>
14573 PR tree-optimization/90973
14574 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
14575 epilogue_cost_vec instead of prologue_cost_vec for
14578 2019-06-26 Martin Liska <mliska@suse.cz>
14580 * bb-reorder.c (connect_better_edge_p): Add missing else
14581 statement in the middle of if-else statements.
14583 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
14584 H.J. Lu <hongjiu.lu@intel.com>
14585 Olga Makhotina <olga.makhotina@intel.com>
14587 * common/config/i386/i386-common.c
14588 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
14589 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
14590 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
14591 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
14592 (ix86_handle_option): Handle -mavx512vp2intersect.
14593 * config/i386/avx512vp2intersectintrin.h: New.
14594 * config/i386/avx512vp2intersectvlintrin.h: New.
14595 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
14596 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14597 AVX512VP2INTERSECT.
14598 * config/i386/i386-builtin-types.def: Add new types.
14599 * config/i386/i386-builtin.def: Add new builtins.
14600 * config/i386/i386-builtins.c: (enum processor_features): Add
14601 F_AVX512VP2INTERSECT.
14602 (static const _isa_names_table isa_names_table): Ditto.
14603 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14604 __AVX512VP2INTERSECT__.
14605 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
14606 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
14607 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
14608 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
14609 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
14610 * config/i386/i386-options.c (ix86_target_string): Add
14611 -mavx512vp2intersect.
14612 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
14613 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
14614 P2HImode and P2QImode.
14615 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
14616 number for P2QImode and P2HImode.
14617 (ix86_regmode_natural_size): New function.
14618 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
14619 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
14620 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
14621 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
14622 * config/i386/i386.opt: Add -mavx512vp2intersect.
14623 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
14624 avx512vp2intersectvlintrin.h.
14625 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
14626 (define_mode_iterator VI48_AVX512VP2VL): New.
14627 (avx512vp2intersect_2intersect<mode>,
14628 avx512vp2intersect_2intersectv16si): New define_insn patterns.
14629 * config.gcc: Add avx512vp2intersectvlintrin.h and
14630 avx512vp2intersectintrin.h to extra_headers.
14631 * doc/invoke.texi: Document -mavx512vp2intersect.
14633 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
14635 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
14637 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
14639 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
14640 savres_routine_syms, savres_routine_name, morestack_ref,
14641 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14642 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14643 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14644 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14645 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14646 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14647 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14648 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14649 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14650 get_stack_clash_protection_probe_interval,
14651 get_stack_clash_protection_guard_size,
14652 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14653 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14654 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14655 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14656 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14657 gen_frame_mem_offset, rs6000_savres_routine_name,
14658 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14659 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14660 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14661 rs6000_global_entry_point_prologue_needed_p,
14662 rs6000_get_separate_components, rs6000_components_for_bb,
14663 rs6000_disqualify_components, rs6000_emit_prologue_components,
14664 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14665 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14666 rs6000_output_savres_externs, rs6000_output_function_prologue,
14667 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14668 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14669 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14670 rs6000_output_function_epilogue, gen_add3_const,
14671 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14672 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14674 (machine_function): Moved to rs6000.h.
14675 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
14677 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
14678 savres_routine_syms, savres_routine_name, morestack_ref,
14679 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14680 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14681 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14682 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14683 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14684 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14685 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14686 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14687 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14688 get_stack_clash_protection_probe_interval,
14689 get_stack_clash_protection_guard_size,
14690 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14691 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14692 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14693 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14694 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14695 gen_frame_mem_offset, rs6000_savres_routine_name,
14696 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14697 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14698 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14699 rs6000_global_entry_point_prologue_needed_p,
14700 rs6000_get_separate_components, rs6000_components_for_bb,
14701 rs6000_disqualify_components, rs6000_emit_prologue_components,
14702 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14703 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14704 rs6000_output_savres_externs, rs6000_output_function_prologue,
14705 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14706 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14707 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14708 rs6000_output_function_epilogue, gen_add3_const,
14709 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14710 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14711 to here from rs6000.c.
14712 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
14713 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
14714 quad_address_offset_p) Moved to here from rs6000.c.
14715 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
14716 * config/config.gcc: Add new source file rs6000-logue.c to garbage
14719 2019-06-25 Martin Liska <mliska@suse.cz>
14721 * hash-table.c (hashtab_chk_error): Move here from ...
14722 * hash-table.h (hashtab_chk_error): ... here.
14724 2019-06-25 Martin Liska <mliska@suse.cz>
14726 PR tree-optimization/90978
14727 * df-scan.c (df_update_entry_block_defs): Remove dead else
14729 (df_update_exit_block_uses): Likewise.
14731 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
14732 Andrew Stubbs <ams@codesourcery.com>
14734 * config.gcc (thread_file): Set to gcn for AMD GCN.
14735 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
14736 (TARGET_EMUTLS_VAR_INIT): New hook.
14738 2019-06-25 Martin Jambor <mjambor@suse.cz>
14741 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
14743 2019-06-25 Richard Biener <rguenther@suse.de>
14745 PR tree-optimization/90930
14746 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
14747 into parallel form in the last pass instance.
14749 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
14751 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
14752 (arc_legitimize_pic_address): Simplify and cleanup the function.
14753 (SYMBOLIC_CONST): Remove.
14754 (prepare_pic_move): Likewise.
14755 (prepare_move_operands): Handle complex mov cases here.
14756 (arc_legitimize_address_0): Remove call to
14757 arc_legitimize_pic_address.
14758 (arc_legitimize_address): Remove call to
14759 arc_legitimize_tls_address.
14760 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
14761 (movhi_insn): Likewise.
14763 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14765 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
14767 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
14768 format of "__intN" types for UINTMAX_TYPE.
14769 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
14770 format of "__intN" types for SIZETYPE.
14771 * tree.c (build_common_tree_nodes): Accept "__intN__"
14772 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
14773 * doc/invoke.texi: Document that __intN__ disables pedantic
14776 2019-06-25 Jan Hubicka <jh@suse.cz>
14778 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
14779 base2_alias_set is non-zero before doing TBAA based disambiguation.
14781 2019-06-25 Martin Liska <mliska@suse.cz>
14783 PR tree-optimization/90973
14784 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
14785 of prologue and epilogue.
14787 2019-06-24 Jan Hubicka <jh@suse.cz>
14789 * ipa-utils.h (type_with_linkage_p): Verify that type is
14791 (odr_type_p): Remove extra return.
14792 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
14793 hash STRING_FLAG only for arrays and integers.
14794 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
14795 Update analogously.
14796 * tree-streamer-out.c (pack_ts_type_common_value_fields):
14798 * print-tree.c (print_node): Print cxx-odr-p
14800 * tree.c (need_assembler_name_p): Also check that type
14802 (verify_type_variant): Update verification of SRING_FLAG;
14803 also check CXX_ODR_P.
14804 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
14805 (TYPE_STRING_FLAG): Use it.
14806 (TYPE_CXX_ODR_P): New macro.
14807 * dwarf2out.c (gen_array_type_die): First check that type
14808 is an array and then test string flag.
14810 2019-06-24 Richard Biener <rguenther@suse.de>
14812 PR tree-optimization/90972
14813 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
14814 in common code, dealing with STRING_CST properly.
14816 2019-06-24 Richard Biener <rguenther@suse.de>
14818 PR tree-optimization/90930
14819 PR tree-optimization/90316
14820 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
14821 decrement of limit.
14823 2019-06-24 Martin Sebor <msebor@redhat.com>
14825 * tree-pretty-print.h: Remove unnecessary punctuation characters
14827 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
14829 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
14831 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
14832 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
14833 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
14835 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14837 * config/rs6000/darwin.h: Handle GCC target pragma.
14839 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14841 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
14843 2019-06-22 Jeff Law <law@redhat.com>
14845 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14847 2019-06-22 Jan Hubicka <jh@suse.cz>
14849 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
14850 give up on bitfields; continue searching for different refs
14853 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14855 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14856 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
14857 containing the offset as possible simd lane access. Look through
14858 widening conversion. Move the
14859 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
14861 2019-06-21 Richard Biener <rguenther@suse.de>
14863 PR tree-optimization/90930
14864 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
14865 flag on new stmts to avoid re-processing them.
14867 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
14869 PR c++/90875 - added -Wswitch-outside-range option
14870 * doc/invoke.texi (Wswitch-outside-range): Document.
14872 2019-06-21 Jeff Law <law@redhat.com>
14874 PR tree-optimization/90949
14875 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
14876 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
14878 2019-06-21 Richard Biener <rguenther@suse.de>
14881 * dwarf2out.c (prune_unused_types_walk): Always consider
14882 function-local extern declarations as used.
14884 2019-06-21 Richard Biener <rguenther@suse.de>
14886 PR tree-optimization/90913
14887 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
14888 the scalar variant of if-conversion versioning.
14890 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14892 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
14893 create another "omp scan inscan exclusive" array if
14894 !ctx->scan_inclusive.
14895 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
14896 (lower_omp_scan): Likewise.
14897 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
14898 2-bit bitfield for simd_lane_access_p member.
14899 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
14900 aux == (void *)-4 as simd lane access.
14901 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
14902 comment with permutations to show the canonical permutation order.
14903 (vectorizable_scan_store): Handle exclusive scan.
14904 (vectorizable_store): Call vectorizable_scan_store even for
14905 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
14907 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14908 "omp simd array" arrays with one byte elements.
14910 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
14912 * config/alpha/alpha.md (@unaligned_store<mode>):
14913 Rename from unaligned_store<mode>.
14914 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
14915 * config/alpha/sync.md (@load_locked_<mode>): Rename
14916 from load_locked_<mode>.
14917 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
14918 (@atomic_compare_and_swap<mode>_1): Rename
14919 from atomic_compare_and_swap<mode>_1.
14920 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
14921 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
14922 Use gen_reload_in_aligned and gen_unaligned_store.
14923 (emit_load_locked): Remove.
14924 (emit_store_conditional): Ditto.
14925 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
14926 (alpha_split_compare_and_swap): Ditto.
14927 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
14928 (alpha_split_compare_and_swap_12): Use gen_load_locked
14929 and gen_store_conditional.
14930 (alpha_split_atomic_exchange): Ditto.
14931 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
14932 (alpha_split_atomic_exchange_12): Use gen_load_locked
14933 and gen_store_conditional.
14935 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
14937 * config/aarch64/aarch64-errata.h: New file.
14938 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
14939 (CA53_ERR_843419_SPEC): Delete.
14940 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
14941 * config/aarch64/aarch64-linux.h: Likewise.
14942 * config/aarch64/aarch64-netbsd.h: Likewise.
14943 * config/aarch64/aarch64-freebsd.h: Likewise.
14945 2019-06-20 Marek Polacek <polacek@redhat.com>
14947 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
14949 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
14951 * config/rs6000/rs6000.md (isa attribute): Add support for
14952 for a future processor.
14954 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
14957 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
14958 standard scalar operation pattern for V2DF.
14959 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
14960 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
14961 (*ieee_<ieee_maxmin><mode>3): Likewise.
14962 (vec_setv2df_0): Likewise.
14964 2019-06-20 Jan Hubicka <jh@suse.cz>
14966 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
14967 parameter; it has no use in gimple memory model.
14968 (indirect_ref_may_alias_decl_p): Update.
14970 2019-06-20 Martin Liska <mliska@suse.cz>
14972 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
14975 2019-06-20 Jakub Jelinek <jakub@redhat.com>
14977 * tree-vect-stmts.c (enum scan_store_kind): New type.
14978 (scan_store_can_perm_p): Change last argument from int * to
14979 vec<enum scan_store_kind> *, record precisely which permutations
14980 need whole vector left shift or that plus VEC_COND_EXPR.
14981 (vectorizable_scan_store): Adjust caller, use whole vector left shift
14982 and additional VEC_COND_EXPR only for those iterations that need it.
14984 2019-06-20 Alexandre Oliva <oliva@adacore.com>
14986 * config.gcc: Fix ARM --with-fpu checking and error message.
14988 2019-06-19 Marek Polacek <polacek@redhat.com>
14990 PR c++/60364 - noreturn after first decl not diagnosed.
14991 * attribs.c (get_attribute_namespace): No longer static.
14992 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
14994 (attr_noreturn_exclusions): Make it extern.
14995 * attribs.h (get_attribute_namespace): Declare.
14996 * tree-inline.c (function_attribute_inlinable_p): Use
14997 get_attribute_name.
14999 2019-06-19 Martin Sebor <msebor@redhat.com>
15001 PR tree-optimization/90626
15002 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
15004 PR tree-optimization/90626
15005 * tree-ssa-strlen.c (strxcmp_unequal): New function.
15006 (handle_builtin_string_cmp): Call it.
15008 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
15010 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
15011 and DARWIN_NOPIE_SPEC.
15012 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
15013 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
15014 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
15015 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
15016 (DARWIN_EXPORT_DYNAMIC): Delete.
15017 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
15018 and pie options processing to darwin.h.
15019 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
15021 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
15023 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
15024 in computing the number of options to be moved.
15026 2019-06-19 Maya Rashish <coypu@sdf.org>
15028 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
15029 (CLEAR_INSN_CACHE) Use it.
15031 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
15033 * config/i386/i386.md (cmpstrnsi): Remove dead code.
15035 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
15037 PR middle-end/84521
15038 * builtins.c (expand_builtin_setjmp_setup): Save
15039 hard_frame_pointer_rtx.
15040 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
15042 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
15044 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
15046 (remove_reg_equal_offset_note): Remove unused function.
15047 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
15049 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15050 (arc_builtin_setjmp_frame_value): Remove function.
15051 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15052 (avr_builtin_setjmp_frame_value): Remove function.
15053 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15054 (ix86_builtin_setjmp_frame_value): Remove function.
15055 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
15056 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15057 (sparc_builtin_setjmp_frame_value): Remove function.
15058 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
15059 (vax_builtin_setjmp_frame_value): Remove function.
15060 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
15061 pointer if has_nonlocal_label.
15063 2019-06-19 Jakub Jelinek <jakub@redhat.com>
15065 * doc/md.texi: Document vec_shl_<mode> pattern.
15066 * optabs.def (vec_shl_optab): New optab.
15067 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
15068 argument, if == vec_shl_optab, check for left whole vector shift
15069 pattern rather than right shift.
15070 (expand_vec_perm_const): Add vec_shl_optab support.
15071 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
15073 * tree-vect-generic.c (lower_vec_perm): Support permutations which
15074 can be handled by vec_shl_optab.
15075 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
15076 (check_scan_store): Use it.
15077 (vectorizable_scan_store): If target can't do normal permutations,
15078 try to use whole vector left shifts and if needed a VEC_COND_EXPR
15080 * config/i386/sse.md (vec_shl_<mode>): New expander.
15082 * omp-low.c (lower_rec_input_clauses): Handle references properly
15084 (lower_omp_scan): Likewise.
15086 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15088 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
15089 mem_mode is BLKmode.
15091 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
15094 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
15095 pointer adjustment for the case of no callee-saved registers and
15096 stack frame bigger than 128 bytes.
15098 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
15100 PR middle-end/90862
15101 * omp-low.c (check_omp_nesting_restrictions): Handle
15102 GF_OMP_TARGET_KIND_OACC_DECLARE.
15104 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
15106 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
15107 (@add<mode>3_carry): Rename from add<mode>3_carry.
15108 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
15109 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
15110 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
15111 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
15112 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
15113 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
15114 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
15115 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
15116 (cmpstrnsi): Use gen_cmp_1.
15117 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
15118 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
15119 (@umonitor_<mode>): Rename from umonitor_<mode>.
15120 * config/i386/i386-expand.c (ix86_expand_copysign):
15121 Use gen_copysign3_const and gen_copysign3_var.
15122 (ix86_expand_xorsign): Use gen_xorsign3_1.
15123 (ix86_expand_branch): Use gen_sub3_carry_ccc,
15124 gen_sub3_carry_ccgz and gen_cmp1.
15125 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
15126 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
15127 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
15128 (ix86_split_lshr): Ditto.
15129 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
15131 2019-06-18 Jason Merrill <jason@redhat.com>
15133 * tree.c (build_constructor): Add MEM_STAT_DECL.
15135 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15137 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
15138 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
15139 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
15140 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
15141 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
15142 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
15143 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
15144 Use CC_NZC instead of CC.
15145 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
15146 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
15147 (aarch64_print_operand): Handle E_CC_NZCmode.
15148 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
15149 of gen_set_clobber_cc.
15151 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15153 * config/aarch64/aarch64-sve.md: Tabify file.
15155 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15157 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
15158 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
15159 * config/aarch64/aarch64-sve.md: Use it.
15161 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15163 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
15164 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
15165 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
15166 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
15167 (aarch64_expand_sve_vec_cmp_int): Use it.
15168 (aarch64_expand_sve_vec_cmp_float): Likewise.
15169 * config/aarch64/aarch64-sve.md: Likewise throughout.
15171 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15172 Kugan Vivekanandarajah <kuganv@linaro.org>
15174 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
15175 (*cond_<optab><mode>_z): Fold into...
15176 (*cond_<optab><mode>_any): ...here. Also handle cases in which
15177 operand 4 can be tied to operand 0 (either inherently or via RA).
15179 2019-06-18 Richard Biener <rguenther@suse.de>
15182 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
15183 as if optimized away.
15185 2019-06-18 Tom de Vries <tdevries@suse.de>
15187 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
15188 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
15189 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
15191 (define_insn "@set_softstack_<mode>"): ... this.
15192 (define_insn "omp_simt_enter_<mode>"): Rename to ...
15193 (define_insn "@omp_simt_enter_<mode>"): ... this.
15194 (define_insn "omp_simt_exit_<mode>"): Rename to ...
15195 (define_insn "@omp_simt_exit_<mode>"): ... this.
15197 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15199 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
15200 vf parameter. Restore the previous iv step of nscalars_step,
15201 but give it iv_type rather than compare_type. Tweak code order
15202 to match the comments.
15203 (vect_set_loop_condition_masked): Update accordingly.
15204 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
15205 for iv_precision. Tweak comment formatting.
15207 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15209 * config/darwin.c: Strip trailing whitespace.
15211 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15213 * config/darwin.c (darwin_emit_unwind_label): New default to false.
15214 (darwin_override_options): Set darwin_emit_unwind_label as needed.
15216 2019-06-18 Martin Jambor <mjambor@suse.cz>
15219 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
15220 caller does not have flag_ipa_cp set.
15222 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
15224 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
15225 from "*fold_left_plus_<mode>", updated operands order.
15226 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
15227 * internal-fn.c (mask_fold_left_direct): New define.
15228 (expand_mask_fold_left_optab_fn): Likewise.
15229 (direct_mask_fold_left_optab_supported_p): Likewise.
15230 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
15231 * optabs.def (mask_fold_left_plus_optab): New optab.
15232 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
15233 masked internal_fn for a reduction ifn.
15234 (vectorize_fold_left_reduction): Add support for masking reductions.
15236 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
15238 PR middle-end/80791
15239 * target.def (predict_doloop_p): New hook.
15240 * targhooks.h (default_predict_doloop_p): New declaration.
15241 * targhooks.c (default_predict_doloop_p): New function.
15242 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
15243 * doc/tm.texi: Regenerate.
15244 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
15245 (TARGET_PREDICT_DOLOOP_P): New macro.
15246 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
15248 2019-06-17 Jakub Jelinek <jakub@redhat.com>
15250 * omp-low.c (struct omp_context): Add scan_inclusive field.
15251 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
15253 (struct omplow_simd_context): Add lastlane member.
15254 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
15255 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
15257 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
15258 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
15259 (lower_omp_scan): New function.
15260 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
15261 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
15262 check 3rd argument if present rather than 2nd.
15263 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
15264 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
15266 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
15267 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
15269 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
15270 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
15271 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
15273 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
15274 IFN_GOMP_SIMD_LANE argument.
15275 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
15276 encoded ->aux value.
15277 * tree-vect-stmts.c: Include attribs.h.
15278 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
15279 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
15281 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
15282 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
15284 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
15287 * config/i386/i386.md (*nabstf2_1): New insn pattern.
15288 (*nabs<mode>2_1): Ditto.
15289 (nabs sse-reg splitter): New splitter.
15290 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
15292 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15294 PR bootstrap/90873.
15295 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
15298 2019-06-17 Tom de Vries <tdevries@suse.de>
15300 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
15301 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
15302 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
15304 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
15306 (define_insn "omp_simt_enter_insn"): Rename to ...
15307 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
15308 match_operand 0, 1 and 2, as well as the unspec_volatile result.
15309 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
15310 gen_omp_simt_enter_si.
15311 (define_expand "omp_simt_exit"): New.
15312 (define_insn "omp_simt_exit"): Rename to ...
15313 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
15316 2019-06-17 Matthew Green <mrg@eterna.com.au>
15317 Maya Rashish <coypu@sdf.org>
15319 * config.gcc (aarch64*-*-netbsd*): New target.
15320 * config/aarch64/aarch64-netbsd.h: New file.
15321 * config/aarch64/t-aarch64-netbsd: Likewise.
15323 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15325 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
15326 the access path from base to first VIEW_CONVERT_EXPR or
15329 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15331 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
15332 access path on BIT_FIELD_REFs.
15334 2019-06-17 Martin Liska <mliska@suse.cz>
15337 * ipa-utils.h (odr_type_p): Remove dead code.
15339 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15341 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
15342 alternative Solaris 11.4 format.
15343 * configure: Regenerate.
15345 2019-06-17 Tom de Vries <tdevries@suse.de>
15347 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
15348 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
15350 (define_insn "call_value_insn"): Rename to ...
15351 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
15353 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
15356 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
15358 PR middle-end/64242
15359 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
15360 frame clobbers and schedule block.
15361 (builtin_longjmp): Likewise.
15363 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15365 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
15366 describe how to perform MSPABI compliant 64-bit shift.
15367 * config/msp430/msp430.md (ashldi3): New define_expand.
15368 (ashrdi3): New define_expand.
15369 (lshrdi3): New define_expand.
15371 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15373 * doc/sourcebuild.texi: Document new effective target keyword
15376 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15378 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
15379 indirect_refs_may_alias_p): Revert accidental commits.
15381 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
15382 at the end of structures.
15384 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15386 * config/darwin.c (machopic_indirect_call_target): Use renamed
15387 darwin_picsymbol_stubs to decide on output.
15388 (darwin_override_options): Handle darwin_picsymbol_stubs.
15389 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
15390 (LD64_VERSION): Revise default.
15391 * config/darwin.opt: (mpic-symbol-stubs): New option.
15392 (darwin_picsymbol_stubs): New variable.
15393 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
15394 rename to TARGET_MACHO_PICSYM_STUBS.
15395 * config/i386/i386.c (output_pic_addr_const): Likewise.
15396 * config/i386/i386.h Likewise.
15397 * config/rs6000/darwin.h: Likewise.
15398 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
15399 darwin_picsymbol_stubs.
15401 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15403 * config/darwin.opt (prebind, noprebind, seglinkedit,
15404 noseglinkedit): Add RejectNegative.
15406 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15408 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
15409 in my previous patch.
15411 2019-06-16 Tom de Vries <tdevries@suse.de>
15413 PR tree-optimization/89376
15414 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
15416 2019-06-15 Maya Rashish <coypu@sdf.org>
15418 * doc/invoke.texi (Spec Files): Update location of the
15421 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
15423 * doc/extend.texi (Common Function Attributes): Clarify
15424 no_sanitize. Fix grammar.
15426 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
15428 * tree-ssa-alias.c (alias_stats): Add
15429 nonoverlapping_component_refs_p_may_alias,
15430 nonoverlapping_component_refs_p_no_alias,
15431 nonoverlapping_component_refs_of_decl_p_may_alias,
15432 nonoverlapping_component_refs_of_decl_p_no_alias.
15433 (dump_alias_stats): Dump them.
15434 (nonoverlapping_component_refs_of_decl_p): Add stats.
15435 (nonoverlapping_component_refs_p): Add stats; do not stop on first
15438 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
15440 * config/i386/i386.md (and<mode>3): Generate zero-extends for
15441 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
15443 (*anddi3_doubleword): Split before reload. Merge with
15444 anddi->zext pre-reload splitter.
15445 (*andndi3_doubleword): Split before reload.
15446 (*<code>di3_doubleword): Ditto.
15447 (*one_cmpldi2_doubleword): Ditto.
15449 2019-06-15 Jakub Jelinek <jakub@redhat.com>
15451 PR middle-end/90779
15452 * gimplify.c: Include omp-offload.h and context.h.
15453 (gimplify_bind_expr): Add "omp declare target" attributes
15454 to static block scope variables inside of target region or target
15457 2019-06-15 Tom de Vries <tdevries@suse.de>
15459 PR tree-optimization/90009
15460 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
15461 Return NULL if bb contains IFN_UNIQUE.
15463 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
15465 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
15466 (un): New define_mode_attr.
15467 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
15468 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
15469 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
15471 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
15473 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
15475 * config/darwin.opt: Add RejectNegative where needed, reorder
15476 and add minimal functional descriptions.
15478 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15480 PR rtl-optimization/90765
15481 * calls.c (update_stack_alignment_for_call): New function.
15482 (expand_call): Call update_stack_alignment_for_call when
15483 outgoing parameter is passed in the stack.
15484 (emit_library_call_value_1): Likewise.
15485 * function.c (locate_and_pad_parm): Don't update
15486 stack_alignment_needed and preferred_stack_boundary.
15488 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15491 * config/i386/i386-features.c
15492 (dimode_scalar_chain::compute_convert_gain): Replace
15493 mmxsse_to_integer with sse_to_integer.
15494 * config/i386/i386.c (ix86_register_move_cost): Verify that
15495 moves between MMX and non-MMX units require secondary memory.
15496 Correct costs of moves between SSE and integer units.
15497 * config/i386/i386.h (processor_costs): Rename cost of moving
15498 SSE register to integer to sse_to_integer. Rename cost of
15500 2019-06-14 Matt Thomas <matt@3am-software.com>
15501 Matthew Green <mrg@eterna.com.au>
15502 Nick Hudson <skrll@netbsd.org>
15503 Maya Rashish <coypu@sdf.org>
15504 Richard Earnshaw <rearnsha@arm.com>
15506 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
15507 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
15508 * config/arm/netbsd-eabi.h: New file.
15509 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
15511 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
15512 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
15513 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
15514 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
15516 2019-06-14 Richard Biener <rguenther@suse.de>
15518 * tree-loop-distribution.c (classify_partition): Return
15519 whether a reduction appeared in all partitions and do not
15520 stop builtin detection because of this.
15521 (distribute_loop): Sort a non-builtin partition last if
15522 there's a reduction in all partitions and make sure the
15523 partition prevailing as last is not a builtin.
15525 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
15528 * ipa-prop.c (add_to_agg_contents_list): New function.
15529 (clobber_by_agg_contents_list_p): Likewise.
15530 (extract_mem_content): Likewise.
15531 (get_place_in_agg_contents_list): Delete.
15532 (determine_known_aggregate_parts): Renamed from
15533 determine_locally_known_aggregate_parts. New parameter
15536 2019-06-13 Martin Sebor <msebor@redhat.com>
15538 PR tree-optimization/90662
15539 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
15542 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15545 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
15546 dbase is not TARGET_MEM_REF.
15548 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15550 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
15552 (and<mode>3): Use gen_extend_insn instead of indirect functions.
15553 Do not generate DImode extends for 32bit targets.
15554 (and->zext post-reload splitter): Use gen_extend_insn
15555 instead of indirect functions.
15556 (anddi->zext pre-reload splitter): New.
15557 (*zext<mode>_doubleword_and): Remove.
15558 (*zext<mode>_doubleword): Ditto.
15559 (*zextsi_doubleword): Dittto.
15561 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15563 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
15564 Use gen_sub3_insn instead of indirect function.
15565 (ix86_expand_ashl_const): Use gen_add2_insn instead of
15567 (ix86_adjust_counter): Ditto.
15569 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
15570 Lijia He <helijia@linux.ibm.com>
15572 PR tree-optimization/77820
15573 * tree-ssa-threadedge.c
15574 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
15576 (thread_across_edge): Add call to
15577 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
15579 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
15581 * config/darwin-driver.c (validate_macosx_version_min): New.
15582 (darwin_default_min_version): Cleanup and validate supplied version.
15583 (darwin_driver_init): Likewise and push cleaned version into opts.
15585 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15587 PR tree-optimization/90869
15588 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
15589 converts in MEM_REF referencing decl rather than view converts
15590 from decl type to MEM_REF type.
15592 2019-06-13 Richard Biener <rguenther@suse.de>
15594 PR tree-optimization/90856
15595 * tree-sra.c (build_ref_for_model): Only use
15596 build_reconstructed_reference when address-spaces are the same.
15598 2019-06-13 Jakub Jelinek <jakub@redhat.com>
15600 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
15601 wrap ei variable name in the declaration in ()s.
15602 (nvptx_single): Actually use mode_label variable. Formatting fix.
15604 2019-06-13 Richard Biener <rguenther@suse.de>
15606 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
15607 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
15608 also return the condition stmt.
15609 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
15610 loop we can version and version that, reusing the loop version
15611 created by if-conversion instead of versioning again.
15613 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
15615 * gimple-loop-versioning.cc (prune_loop_conditions): Use
15617 * tree-vrp (value_range_base::may_contain_p): Call into
15618 value_inside_range.
15619 (value_inside_range): Make private inside value_range_base class.
15620 Take min/max from *this.
15621 (range_includes_p): Remove.
15622 * tree-vrp.h (value_range_base): Add value_inside_range.
15623 (range_includes_p): Remove.
15624 (range_includes_zero_p): Call may_contain_p.
15625 * vr-values.c (compare_range_with_value): Same.
15627 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
15629 * doc/extend.texi (ARC Function Attributes): Update info.
15631 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
15633 PR tree-optimization/89713
15634 * doc/invoke.texi (-ffinite-loops): Document new option.
15635 * common.opt (-ffinite-loops): New option.
15636 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
15637 IFN_GOACC_LOOP calls as necessary.
15638 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
15640 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
15641 IFN_GOACC_LOOP call is not used.
15642 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
15644 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15647 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
15648 compare_type is not with Pmode size, we will create an IV with
15649 Pmode size with truncated use (i.e. converted to the correct type).
15650 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
15651 (vect_iv_limit_for_full_masking): New. Factored out of
15652 vect_set_loop_condition_masked.
15653 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
15654 (vect_iv_limit_for_full_masking): Declare.
15656 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15659 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
15660 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
15661 (get_alias_ptr_type_for_ptr_address): Likewise.
15662 (add_iv_candidate_for_use): Add scaled index candidate if useful.
15663 * tree-ssa-address.c (preferred_mem_scale_factor): New.
15664 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
15667 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15669 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
15671 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
15673 * common/config/pru/pru-common.c: New file.
15674 * config.gcc: Add PRU target.
15675 * config/pru/alu-zext.md: New file.
15676 * config/pru/constraints.md: New file.
15677 * config/pru/predicates.md: New file.
15678 * config/pru/pru-opts.h: New file.
15679 * config/pru/pru-passes.c: New file.
15680 * config/pru/pru-pragma.c: New file.
15681 * config/pru/pru-protos.h: New file.
15682 * config/pru/pru.c: New file.
15683 * config/pru/pru.h: New file.
15684 * config/pru/pru.md: New file.
15685 * config/pru/pru.opt: New file.
15686 * config/pru/t-pru: New file.
15687 * doc/extend.texi: Document PRU pragmas.
15688 * doc/invoke.texi: Document PRU-specific options.
15689 * doc/md.texi: Document PRU asm constraints.
15691 2019-06-12 Martin Sebor <msebor@redhat.com>
15693 PR middle-end/90676
15694 * tree-pretty-print.c (dump_mem_ref): New function. Include
15695 MEM_REF type in output when different size than operand.
15696 (dump_generic_node): Move code to dump_mem_ref and call it.
15698 2019-06-12 Martin Sebor <msebor@redhat.com>
15700 PR tree-optimization/90662
15701 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
15704 2019-06-12 Tom de Vries <tdevries@suse.de>
15706 PR tree-optimization/90009
15707 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
15709 2019-06-12 Martin Liska <mliska@suse.cz>
15711 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
15713 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
15714 * mem-stats.h (mem_alloc_description::mem_alloc_description):
15715 Do not sanitize created maps.
15717 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
15719 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
15720 value_range::singleton_p.
15721 * tree-vrp.c (value_range_constant_singleton): Remove.
15722 * tree-vrp.h (value_range_constant_singleton): Remove.
15723 * vr-values.c (vr_values::singleton): Use
15724 value_range::singleton_p.
15726 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15729 * cfgexpand.c (align_local_variable): Add really_expand argument,
15730 don't SET_DECL_ALIGN if it is false.
15731 (add_stack_var): Add really_expand argument, pass it through to
15732 align_local_variable.
15733 (expand_one_stack_var_1): Pass true as really_expand to
15734 align_local_variable.
15735 (expand_one_ssa_partition): Pass true as really_expand to
15737 (expand_one_var): Pass really_expand through to add_stack_var.
15739 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
15741 * config/arm/iterators.md (VABAL): New int iterator.
15742 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
15743 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
15744 UNSPEC_VABAL_U values.
15746 2019-06-12 Martin Liska <mliska@suse.cz>
15748 * value-prof.c (stream_out_histogram_value): Only first value
15751 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15754 * symtab.c (symtab_node::set_section): Allow being called on aliases
15755 as long as they aren't analyzed yet.
15757 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
15759 * config/mips/mips.c (mips_final_postscan_insn): Modify call
15760 to `mips_set_text_contents_type' to indicate whether a
15761 non-debug insn follows.
15763 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
15765 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
15766 enabling -mpcrel by default.
15767 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
15768 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
15769 that the test against -mcpu=future is done first. Then test if
15770 -mprefixed-addr is on for -mpcrel.
15771 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
15773 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15776 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
15777 instead of and.u%d.
15779 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15781 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
15783 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
15785 PR c++/90449 - add -Winaccessible-base option.
15786 * doc/invoke.texi (Winaccessible-base): Document.
15788 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15790 PR tree-optimization/62041
15791 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
15793 2019-06-11 Jason Merrill <jason@redhat.com>
15795 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
15796 * tree.c (get_tree_code_name): Likewise.
15797 * print-tree.c (print_node): Only briefly print a node with an
15800 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15803 * trans-mem.c (tm_memopt_compute_available): Add assertion
15804 that blocks is not empty. Formatting fix.
15806 2019-06-11 Martin Liska <mliska@suse.cz>
15809 * hash-table.h: Extend create_gcc, add one parameter
15810 that is passed into hash_table::hash_table.
15812 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
15814 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
15816 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
15817 Emit clobber also for non-sse operations.
15818 (ix86_split_fp_absneg_operator): New function.
15819 * config/i386/i386.md (SSEMODEF): New mode iterator.
15820 (ssevecmodef): New mode attribute.
15821 (<code>tf2): Use absneg code iterator.
15822 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
15823 Add three-operand AVX alternatives.
15824 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
15825 Use absneg code iterator and X87MODEF mode iterator.
15826 (absneg fp_reg non-sse splitter): Call absneg code iterator
15827 and X87MODEF mode iterator.
15828 (absneg general_reg non-sse splitter): Use absneg code iterator
15829 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
15830 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
15831 code iterator. Add three-operand AVX alternative.
15832 (absneg sse_reg splitter): Use absneg code iterator
15833 and SSEMODEF mode iterator. Handle AVX operands.
15834 (absneg fp_reg splitter): Use absneg code iterator
15835 and MODEF mode iterator.
15836 (absneg general_reg splitter): Merge splitters using MODEF mode
15837 iterator. Use absneg code iterator. Call
15838 ix86_split_fp_absneg_operator.
15839 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
15840 Do not enable for non-sse modes before reload.
15841 (CSGNMODE): Remove.
15842 (CSGNVMODE): Ditto.
15843 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
15844 ssevecmodef mode attribute instaed of CSGNVMODE.
15845 (copysign<mode>3_const): Ditto.
15846 (copysign<mode>3_var): Ditto.
15847 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
15848 Use absneg code iterator. Simplify code using std::swap.
15849 * config/i386/predicates.md (absneg_operator): Remove.
15851 2019-06-10 Martin Sebor <msebor@redhat.com>
15853 * gimple-fold.c (get_range_strlen): Update comment that didn't
15854 make it into r267503 or related commits.
15856 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
15858 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
15859 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
15861 2019-06-10 Jakub Jelinek <jakub@redhat.com>
15863 * tree.def (OMP_SCAN): New tree code.
15864 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
15865 OMP_CLAUSE_EXCLUSIVE.
15866 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
15867 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
15868 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
15869 OMP_CLAUSE_{IN,EX}CLUSIVE.
15870 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15871 * tree-nested.c (convert_nonlocal_reference_stmt,
15872 convert_local_reference_stmt, convert_gimple_call): Handle
15874 * tree-pretty-print.c (dump_omp_clause): Handle
15875 OMP_CLAUSE_{IN,EX}CLUSIVE.
15876 (dump_generic_node): Handle OMP_SCAN.
15877 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
15878 * gimple.h (gomp_scan): New type.
15879 (is_a_helper <gomp_scan *>::test,
15880 is_a_helper <const gomp_scan *>::test): New templates.
15881 (gimple_build_omp_scan): Declare.
15882 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
15883 gimple_omp_scan_set_clauses): New inline functions.
15884 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
15885 * gimple.c (gimple_build_omp_scan): New function.
15886 (gimple_copy): Handle GIMPLE_OMP_SCAN.
15887 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
15888 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
15889 GIMPLE_OMP_TASKGROUP.
15890 (dump_gimple_omp_scan): New function.
15891 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
15892 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
15893 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
15894 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
15895 (is_gimple_stmt): Handle OMP_SCAN.
15896 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
15897 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15898 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
15899 mentioned in nested #pragma omp scan. Handle
15900 OMP_CLAUSE_{IN,EX}CLUSIVE.
15901 (gimplify_expr): Handle OMP_SCAN.
15902 * omp-low.c (check_omp_nesting_restrictions): For parent context,
15903 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
15905 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
15908 2019-06-10 Martin Liska <mliska@suse.cz>
15910 * ipa-cp.c (ignore_edge_p): New function.
15911 (build_toporder_info): Use it.
15912 * ipa-inline.c (ignore_edge_p): New function.
15913 (inline_small_functions): Use it.
15914 * ipa-pure-const.c (ignore_edge_for_nothrow):
15915 Verify opt_for_fn for caller and callee.
15916 (ignore_edge_for_pure_const): Likewise.
15917 * ipa-reference.c (ignore_edge_p): Extend to check
15919 * ipa-utils.c (searchc): Refactor.
15920 * ipa-utils.h: Fix coding style.
15922 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15924 * config/arc/arc.c (arc_rtx_costs): Update costs.
15926 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15928 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
15929 (arc_split_ior): Likewise.
15930 (arc_check_mov_const): Likewise.
15931 (arc_split_mov_const): Likewise.
15932 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
15933 (arc_rtx_costs): Replace check Crr with Cax constraint.
15934 (prepare_move_operands): Cleanup, remove unused code.
15935 (arc_split_ior): New function.
15936 (arc_check_ior_const): Likewise.
15937 (arc_split_mov_const): Likewise.
15938 (arc_check_mov_const): Likewise.
15939 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
15940 in define_insn_and_split pattern.
15941 (iorsi3): Likewise.
15942 (mulsi3_v2): Add new matching variant.
15943 (andsi3_i): Cleanup pattern.
15944 (rotrsi3_cnt1): Update pattern.
15945 (rotrsi3_cnt8): New pattern.
15946 (ashlsi2_cnt8): Likewise.
15947 (ashlsi2_cnt16): Likewise.
15948 * config/arc/constraints.md (C0p): Update constraint.
15950 (C0x): New pattern.
15951 (Cax): New pattern.
15953 2019-06-10 Martin Liska <mliska@suse.cz>
15955 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
15956 Update coding style.
15957 (sem_item_optimizer::dump_cong_classes):
15958 Print how many items are in a non-singular class. Improve
15961 2019-06-10 Martin Liska <mliska@suse.cz>
15963 * value-prof.c (dump_histogram_value): Change dump format.
15964 (gimple_mod_subtract_transform): Remove legacy comment.
15966 2019-06-10 Martin Liska <mliska@suse.cz>
15968 * value-prof.c (dump_histogram_value): Print histogram values
15971 2019-06-10 Martin Liska <mliska@suse.cz>
15973 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
15974 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
15975 * ipa-profile.c (ipa_profile_generate_summary):
15976 Use get_most_common_single_value.
15977 * tree-profile.c (gimple_init_gcov_profiler):
15978 Instrument with __gcov_one_value_profiler_v2
15979 and __gcov_indirect_call_profiler_v4.
15980 * value-prof.c (dump_histogram_value):
15981 Print all values for HIST_TYPE_SINGLE_VALUE.
15982 (stream_out_histogram_value): Update assert for
15984 (stream_in_histogram_value): Set number of
15985 counters for HIST_TYPE_SINGLE_VALUE.
15986 (get_most_common_single_value): New.
15987 (gimple_divmod_fixed_value_transform):
15988 Use get_most_common_single_value.
15989 (gimple_ic_transform): Likewise.
15990 (gimple_stringops_transform): Likewise.
15991 (gimple_find_values_to_profile): Set number
15992 of counters for HIST_TYPE_SINGLE_VALUE.
15993 * value-prof.h (get_most_common_single_value): New.
15995 2019-06-10 Martin Liska <mliska@suse.cz>
15997 * hash-map.h: Pass default value to hash_table ctor.
15998 * hash-table.h: Add default value to call of a ctor.
16000 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
16002 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
16003 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
16005 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
16008 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
16009 Call pa_output_function_label.
16010 (TARGET_ASM_FUNCTION_PROLOGUE): define.
16011 * config/pa/pa-protos.h (pa_output_function_label): Declare.
16012 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
16014 (pa_linux_output_function_prologue): Declare.
16015 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
16016 (pa_output_function_label): New.
16017 (pa_output_function_prologue): Revise to use pa_output_function_label.
16018 (pa_linux_output_function_prologue): New.
16019 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
16021 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
16023 * tree-vrp.h (value_range_base::intersect): New.
16024 (value_range::intersect_helper): Move from here...
16025 (value_range_base::intersect_helper): ...to here.
16026 * tree-vrp.c (value_range::intersect_helper): Rename to...
16027 (value_range_base::intersect_helper): ...this, and rewrite to
16028 return a value instead of modifying THIS in place.
16029 Also, move equivalence handling...
16030 (value_range::intersect): ...here, while calling intersect_helper.
16031 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
16033 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
16035 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
16037 2019-06-07 Jakub Jelinek <jakub@redhat.com>
16039 * Makefile.in (genprogerr): Add condmd.
16040 (genprog): Remove it here.
16042 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
16044 * doc/invoke.texi (AMD GCN Options): Add gfx906.
16046 2019-06-07 Richard Biener <rguenther@suse.de>
16049 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
16050 that appear after user labels.
16052 2019-06-07 Martin Liska <mliska@suse.cz>
16054 * cselib.c (cselib_init): Disable hash table
16056 * hash-set.h: Pass new default argument to m_table.
16057 * hash-table.c: Add global variable with hash table
16058 sanitization limit.
16059 * hash-table.h (Allocator>::hash_table): Add new argument
16061 (hashtab_chk_error): New.
16062 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
16063 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
16064 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
16066 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
16068 * common.opt (flto-odr-type-merging): Ignore.
16069 * invoke.texi (-flto-odr-type-merging): Remove.
16070 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
16071 (can_be_vtable_hashed_p): Remove.
16072 (hash_odr_vtable): Remove.
16073 (odr_vtable_hasher::hash): Remove.
16074 (types_same_for_odr): Remove.
16075 (types_odr_comparable): Remove.
16076 (odr_vtable_hasher::equal): Remove.
16077 (odr_vtable_hash_type, odr_vtable_hash): Remove.
16078 (add_type_duplicate): Do not synchronize vtable and name hashtables.
16079 (get_odr_type): Do not use vtable hash.
16080 (dump_odr_type): Remove commented out code.
16081 (build_type_inheritance_graph): Do not allocate vtable hash.
16082 (rebuild_type_inheritance_graph): Do not delete vtable hash.
16083 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
16084 (odr_type_p): Likewise.
16085 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
16088 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
16090 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
16091 immediately after same_types_for_tbaa_p returns -1 and continue
16092 looking for possible exact match; if matching types are arrays
16093 watch for partial overlaps.
16094 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
16095 (indirect_refs_may_alias_p): Do type based disambiguation first;
16098 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
16100 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
16102 2019-06-07 Martin Liska <mliska@suse.cz>
16104 * doc/invoke.texi: Remove param.
16105 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
16107 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
16108 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
16109 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
16110 * profile.c (instrument_values): Remove
16111 HIST_TYPE_INDIR_CALL_TOPN.
16112 * tree-profile.c (init_ic_make_global_vars):
16113 Always build __gcov_indirect_call only.
16114 (gimple_init_gcov_profiler): Remove usage
16115 of PARAM_INDIR_CALL_TOPN_PROFILE.
16116 (gimple_gen_ic_profiler): Likewise.
16117 * value-prof.c (dump_histogram_value): Likewise.
16118 (stream_in_histogram_value): Likewise.
16119 (gimple_indirect_call_to_profile): Likewise.
16120 (gimple_find_values_to_profile): Likewise.
16121 * value-prof.h (enum hist_type): Likewise.
16123 2019-06-07 Martin Liska <mliska@suse.cz>
16125 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
16128 2019-06-07 Martin Liska <mliska@suse.cz>
16130 PR tree-optimization/78902
16131 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
16132 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
16133 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
16134 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
16135 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
16136 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
16137 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
16138 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
16139 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16140 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
16141 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
16142 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
16143 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
16145 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
16146 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
16147 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
16148 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16149 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
16150 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
16151 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16152 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
16153 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
16154 warn_unused_result attribute.
16155 (BUILT_IN_STRDUP): Likewise.
16156 (BUILT_IN_STRNDUP): Likewise.
16157 (BUILT_IN_ALLOCA): Likewise.
16158 (BUILT_IN_CALLOC): Likewise.
16159 (BUILT_IN_MALLOC): Likewise.
16160 (BUILT_IN_REALLOC): Likewise.
16162 2019-06-06 Jim Wilson <jimw@sifive.com>
16165 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
16166 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
16167 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
16169 2019-06-06 Martin Sebor <msebor@redhat.com>
16171 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
16172 (handle_builtin_malloc): Remove trailing spaces.
16173 (handle_builtin_memset): Same.
16174 (handle_builtin_memcmp): Same.
16175 (compute_string_length): Same.
16176 (determine_min_objsize): Same.
16177 (handle_builtin_string_cmp): Same.
16178 (handle_char_store): Same. Break up excessively long line.
16180 2019-06-06 Martin Jambor <mjambor@suse.cz>
16182 * tree-sra.c (build_reconstructed_reference): Drop the alignment
16185 2019-06-06 Martin Jambor <mjambor@suse.cz>
16187 * tree-sra.c (struct access): New field grp_same_access_path.
16188 (dump_access): Dump it.
16189 (build_reconstructed_reference): New function.
16190 (build_ref_for_model): Use it if possible.
16191 (path_comparable_for_same_access): New function.
16192 (same_access_path_p): Likewise.
16193 (sort_and_splice_var_accesses): Set the new flag.
16194 (analyze_access_subtree): Likewise.
16195 (propagate_subaccesses_across_link): Propagate zero value of the new
16196 flag down the access tree.
16198 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
16200 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
16201 * config/gcn/gcn.opt (gpu_type): Add gfx906.
16202 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
16203 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
16206 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16208 PR tree-optimization/90332
16209 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
16210 Handle VALS containing two vectors.
16211 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
16213 (@aarch64_combinez<mode>): ... This.
16214 (*aarch64_combinez_be<mode>): Rename to...
16215 (@aarch64_combinez_be<mode>): ... This.
16216 (vec_init<mode><Vhalf>): New define_expand.
16217 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
16219 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16221 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
16222 library functions only when not optimizing for size.
16223 (ashlsi3): Likewise.
16224 (ashrhi3): Likewise.
16225 (ashrsi3): Likewise.
16226 (lshrhi3): Likewise.
16227 (lshrsi3): Likewise.
16229 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
16231 PR rtl-optimization/88751
16232 * ira.c (ira): Use the number of the actually referenced registers
16233 when calculating the threshold.
16235 2019-06-06 Jakub Jelinek <jakub@redhat.com>
16237 * configure: Regenerate.
16239 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16241 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
16242 register if it is in memory, so the shift can be emulated with a rotate
16244 (ashrhi3): Likewise.
16245 (lshrhi3): Likewise.
16247 2019-06-06 Martin Liska <mliska@suse.cz>
16249 PR tree-optimization/87954
16250 * match.pd: Simplify mult where both arguments are 0 or 1.
16252 2019-06-06 Richard Biener <rguenther@suse.de>
16254 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
16255 put equivalences on UNDEFINED ranges.
16256 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
16257 Make sure to drop defs of stmts added during simplification
16260 2019-06-06 Richard Biener <rguenther@suse.de>
16262 * tree-ssa-structalias.c: Include tree-cfg.h.
16263 (make_heapvar): Do not make heap vars artificial.
16264 (find_func_aliases_for_builtin_call): Handle stack allocation
16266 (find_func_aliases): Delay processing of simple enough returns
16268 (set_uids_in_ptset): Adjust.
16269 (find_what_var_points_to): Likewise.
16270 (solve_constraints): Do not dump points-to sets here.
16271 (compute_points_to_sets): Post-process return statements,
16272 amending the escaped solution. Dump points-to sets afterwards.
16273 (ipa_pta_execute): Dump points-to sets.
16275 2019-06-06 Martin Liska <mliska@suse.cz>
16278 * doc/install.texi: Fix HTML headers and
16279 titles for 'Installing GCC' pages.
16281 2019-06-06 Martin Liska <mliska@suse.cz>
16283 * ipa-icf-gimple.h (dump_message_1): Remove.
16284 (dump_message): Likewise.
16285 (return_false_with_message_1): Print also file.
16286 (return_false_with_msg): Likewise.
16287 (return_with_result): Likewise.
16288 (return_with_debug): Likewise.
16289 * ipa-icf.c (sem_function::equals_private): Remove call
16292 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16294 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
16295 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
16296 memory operand for it.
16297 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
16299 2019-06-05 Martin Sebor <msebor@redhat.com>
16301 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
16302 Adjust quoting and hyphenation.
16303 * convert.c (convert_to_real_1): Same.
16304 * gcc.c (driver_wrong_lang_callback): Same.
16305 (driver::handle_unrecognized_options): Same.
16306 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
16307 * opts-common.c (cmdline_handle_error): Same.
16308 (read_cmdline_option): Same.
16309 * opts-global.c (complain_wrong_lang): Same.
16310 (print_ignored_options): Same.
16311 (handle_common_deferred_options): Same.
16312 * pretty-print.h: Same.
16313 * print-rtl.c (debug_bb_n_slim): Same.
16314 * sched-rgn.c (make_pass_sched_fusion): Same.
16315 * tree-cfg.c (verify_gimple_assign_unary): Same.
16316 (verify_gimple_label): Same.
16317 * tree-ssa-operands.c (verify_ssa_operands): Same.
16318 * varasm.c (do_assemble_alias): Same.
16319 (assemble_alias): Same.
16321 2019-06-05 Richard Henderson <rth@twiddle.net>
16323 * config/alpha/alpha.c (direct_return): Move down after
16324 struct machine_function definition; use saved frame_size;
16326 (struct machine_function): Add sa_mask, sa_size, frame_size.
16327 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
16328 (alpha_compute_frame_layout): ... new function.
16329 (TARGET_COMPUTE_FRAME_LAYOUT): New.
16330 (alpha_initial_elimination_offset): Use saved sa_size.
16331 (alpha_vms_initial_elimination_offset): Likewise.
16332 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
16333 (alpha_expand_prologue): Use saved frame data. Merge integer
16334 and fp register save loops.
16335 (alpha_expand_epilogue): Likewise.
16336 (alpha_start_function): Use saved frame data.
16337 * config/alpha/alpha-protos.h (direct_return): Update.
16338 (alpha_sa_size): Remove.
16340 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
16342 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
16343 multiplication by a power-of-two value.
16344 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
16345 and turn the modulo operation into a masking operation.
16347 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16350 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
16351 with VOIDmode inner operands.
16353 2019-06-05 Richard Biener <rguenther@suse.de>
16355 PR middle-end/90726
16356 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
16357 turn an expression graph into a tree.
16359 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16361 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
16363 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
16364 treat it like explicit monotonic schedule modifier.
16365 (expand_omp_for): Initialize has_lastprivate_conditional.
16366 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
16369 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
16370 references, lookup in in hash map MEM_REF operand instead of the
16372 (lower_omp_1): When looking for lastprivate conditional assignments,
16373 handle MEM_REFs with REFERENCE_TYPE operands.
16375 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
16376 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
16377 and references a VLA. Handle references to non-VLAs if is_simd
16378 all privatization clauses like reductions.
16379 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
16380 If omp_is_reference, use always omp simd arrays and set
16381 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
16382 fails, emit reference initialization.
16384 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16387 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
16388 _mm_mask_fpclass_sd_mask): New intrinsics.
16389 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
16390 * config/i386/i386-builtin.def
16391 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
16393 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
16394 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
16395 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
16396 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
16397 case QI_FTYPE_V2SF_INT): Ditto.
16398 * config/i386/sse.md
16399 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
16400 Extended to insnstructions with mask operands.
16402 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16404 * config/rs6000/constraints.md (define_register_constraint "wp"):
16406 (define_register_constraint "wq"): Delete.
16407 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16408 (rs6000_init_hard_regno_mode_ok): Adjust.
16409 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16410 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
16411 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
16412 (define_mode_attr VSa): Delete.
16413 (define_mode_attr VSisa): New.
16414 (rest of file): Adjust.
16415 * doc/md.texi (Machine Constraints): Adjust.
16417 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16419 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
16420 (define_attr "enabled"): Handle those new isa values.
16422 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16424 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
16425 (define_mode_attr VSr5): Delete.
16426 (define_mode_attr VStype_sqrt): Delete.
16427 (define_mode_iterator VSX_SPDP): Delete.
16428 (define_mode_attr VS_spdp_res): Delete.
16429 (define_mode_attr VS_spdp_insn): Delete.
16430 (define_mode_attr VS_spdp_type): Delete.
16431 (*vsx_sqrt<mode>2): Adjust.
16432 (vsx_<VS_spdp_insn>): Delete, split to...
16433 (vsx_xscvdpsp): ... this. New. And...
16434 (vsx_xvcvspdp): ... this. New. And...
16435 (vsx_xvcvdpsp): ... this. New.
16437 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16439 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
16441 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
16442 (rest of file): Adjust.
16444 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16446 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
16447 (vsx_extract_<mode>_var): Ditto.
16449 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16451 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
16454 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16456 * config/rs6000/constraints.md (define_register_constraint "ww"):
16458 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16459 (rs6000_init_hard_regno_mode_ok): Adjust.
16460 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16461 RS6000_CONSTRAINT_ww.
16462 * config/rs6000/rs6000.md: Adjust.
16463 * config/rs6000/vsx.md: Adjust.
16464 * doc/md.texi (Machine Constraints): Adjust.
16466 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16468 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
16469 (define_mode_attr sd): New.
16470 (define_mode_attr s): New.
16471 (define_mode_attr Ftrad): Delete.
16472 (define_mode_attr Fvsx): Delete.
16473 (define_mode_attr Fs): Delete.
16474 (rest of file): Use the new mode attributes.
16475 * config.rs6000/vsx.md: Use the new mode attributes.
16477 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16479 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
16482 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16484 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
16485 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
16486 used with VSX_B, VSX_D, or VSX_F, with just "wa".
16488 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
16491 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
16492 C++ with strict ANSI requirements.
16494 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
16496 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
16497 computations when step is 1.
16499 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16501 * config/rs6000/constraints.md (define_register_constraint "wf"):
16503 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16504 (rs6000_init_hard_regno_mode_ok): Adjust.
16505 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16506 RS6000_CONSTRAINT_wf.
16507 * config/rs6000/rs6000.md: Adjust.
16508 * config/rs6000/vsx.md: Adjust.
16509 * doc/md.texi (Machine Constraints): Adjust.
16511 2019-06-04 Andrew Pinski <apinski@marvell.com>
16513 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
16516 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16518 * config/rs6000/constraints.md (define_register_constraint "wd"):
16520 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16521 (rs6000_init_hard_regno_mode_ok): Adjust.
16522 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16523 RS6000_CONSTRAINT_wd.
16524 * config/rs6000/rs6000.md: Adjust.
16525 * config/rs6000/vsx.md: Adjust.
16526 * doc/md.texi (Machine Constraints): Adjust.
16528 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16530 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
16531 (rest of file): Adjust.
16533 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16535 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
16536 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
16537 (vsx_splat_<mode>_reg): Adjust.
16539 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16541 * config/rs6000/constraints.md (define_register_constraint "ws"):
16543 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16544 (rs6000_init_hard_regno_mode_ok): Adjust.
16545 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16546 RS6000_CONSTRAINT_ws.
16547 * config/rs6000/rs6000.md: Adjust.
16548 * config/rs6000/vsx.md: Adjust.
16549 * doc/md.texi (Machine Constraints): Adjust.
16551 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16553 * config/rs6000/constraints.md (define_register_constraint "wv"):
16555 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16556 (rs6000_init_hard_regno_mode_ok): Adjust.
16557 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16558 RS6000_CONSTRAINT_wv.
16559 * config/rs6000/rs6000.md: Adjust.
16560 * config/rs6000/vsx.md: Adjust.
16561 * doc/md.texi (Machine Constraints): Adjust.
16563 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16565 * config/rs6000/constraints.md (define_register_constraint "wi"):
16567 (define_register_constraint "wt"): Delete.
16568 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16569 (rs6000_init_hard_regno_mode_ok): Adjust.
16570 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16571 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
16572 * config/rs6000/rs6000.md: Adjust.
16573 * config/rs6000/vsx.md: Adjust.
16574 * doc/md.texi (Machine Constraints): Adjust.
16576 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16578 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
16580 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
16581 default_elf_asm_output_external.
16583 2019-06-04 Martin Liska <mliska@suse.cz>
16585 * ipa-icf.c (INCLUDE_LIST): Remove.
16586 (sem_item_optimizer::execute): Remove call to init_wpa.
16587 * ipa-icf.h (init_wpa): Remove.
16589 2019-06-04 Jakub Jelinek <jakub@redhat.com>
16591 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
16592 conditional on combined for simd.
16593 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
16595 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
16596 constructs, don't remove lastprivate_conditional_map, but instead set
16597 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
16598 to parent construct temporaries.
16599 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
16600 like !ctx->lastprivate_conditional_map.
16601 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
16602 use up->outer context instead of up.
16603 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
16604 gimple_omp_for_combined_p.
16605 (expand_omp_for_static_nochunk): Likewise.
16606 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
16607 probably moved over into expand_omp_for_generic rather than being copied
16610 2019-06-04 Martin Liska <mliska@suse.cz>
16612 * value-prof.c (dump_histogram_value): Fix typo.
16613 (gimple_mod_subtract_transform): Likewise.
16615 2019-06-04 Richard Biener <rguenther@suse.de>
16617 PR middle-end/90726
16618 * tree-chrec.c (chrec_contains_symbols): Add to visited.
16619 (tree_contains_chrecs): Likewise.
16620 (chrec_contains_symbols_defined_in_loop): Move here and avoid
16621 exponential behaivor from ...
16622 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
16624 (expression_expensive_p): Avoid exponential behavior and compute
16625 expanded size, rejecting any expansion.
16626 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
16627 (idx_contains_abnormal_ssa_name_p): Likewise.
16628 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
16629 (contains_abnormal_ssa_name_p): Simplify and use
16630 walk_tree_without_duplicates.
16632 2019-06-04 Richard Biener <rguenther@suse.de>
16634 PR tree-optimization/90738
16636 2019-06-03 Richard Biener <rguenther@suse.de>
16638 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16639 full reference tree and record in ref->ref.
16640 (vn_reference_lookup_3): Pass in original ref to
16641 ao_ref_init_from_vn_reference.
16642 (vn_reference_lookup): Likewise.
16643 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16644 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16645 Handle non-decl bases in the original reference.
16647 2019-06-04 Martin Liska <mliska@suse.cz>
16649 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
16650 number of references.
16651 (sem_item_optimizer::do_congruence_step):
16652 (sem_item_optimizer::worklist_push): Dump how references
16654 (sem_item_optimizer::worklist_pop): Use heap.
16655 (sem_item_optimizer::process_cong_reduction): Likewise.
16656 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
16658 2019-06-04 Martin Liska <mliska@suse.cz>
16660 * ipa-icf.h (struct sem_usage_pair_hash): New.
16661 (sem_usage_pair_hash::hash): Likewise.
16662 (sem_usage_pair_hash::equal): Likewise.
16663 (struct sem_usage_hash): Likewise.
16664 * ipa-icf.c (sem_item::sem_item): Initialize
16665 referenced_by_count.
16666 (sem_item::add_reference): Register a reference
16667 in ref_map and not in target->usages.
16668 (sem_item::setup): Remove initialization of
16670 (sem_item::~sem_item): Remove usage of dead vectors.
16671 (sem_item::dump): Remove dump of references.
16672 (sem_item_optimizer::sem_item_optimizer): Initialize
16674 (sem_item_optimizer::read_section): Remove useless
16676 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
16677 (sem_item_optimizer::build_graph): Pass m_references
16678 to ::add_reference.
16679 (sem_item_optimizer::verify_classes): Remove usage of dead
16681 (sem_item_optimizer::traverse_congruence_split): Return true
16682 when a class is split.
16683 (sem_item_optimizer::do_congruence_step_for_index): Use
16684 hash_map for look up of (sem_item *, index). That brings
16685 significant speed up.
16686 (sem_item_optimizer::do_congruence_step): Return true
16687 when a split is done.
16688 (congruence_class::is_class_used): Use referenced_by_count.
16690 2019-06-04 Alan Modra <amodra@gmail.com>
16693 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
16696 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16698 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
16699 * config/rs6000/rs6000.c (direct_move_p): Adjust.
16700 (rs6000_secondary_reload_simple_move): Adjust.
16701 (rs6000_opt_masks): Neuter the "mfpgpr" option.
16702 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
16703 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
16706 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
16707 (floatunssi<mode>2_lfiwzx): Adjust.
16708 (fix_trunc<mode>si2_stfiwx): Adjust.
16709 (fixuns_trunc<mode>si2_stfiwx): Adjust.
16710 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
16711 (mfpgpr): Mark as deprecated.
16712 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
16713 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
16714 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
16716 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16718 * config/rs6000/constraints.md (define_register_constraint "wg"):
16720 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16721 RS6000_CONSTRAINT_wg.
16722 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16723 (rs6000_init_hard_regno_mode_ok): Adjust.
16724 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
16725 Delete "wg" alternatives.
16726 * doc/md.texi (Machine Constraints): Adjust.
16728 2019-06-03 Alan Modra <amodra@gmail.com>
16730 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
16731 (get_uncond_jump_length): Assert length less than INT_MAX and
16734 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16736 PR middle-end/64242
16737 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
16739 (expand_builtin_nonlocal_goto): Likewise.
16741 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16743 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
16744 (aarch64_asm_output_external): Declare.
16745 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
16746 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
16747 (aarch64_asm_output_alias): New.
16748 (aarch64_asm_output_external): New.
16749 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
16750 (ASM_OUTPUT_EXTERNAL): Define.
16752 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
16753 * tree-vrp.h (value_range_base::nonzero_p): New.
16754 (value_range_base::set_nonnull): Rename to...
16755 (value_range_base::set_nonzero): ...this.
16756 (value_range_base::set_null): Rename to...
16757 (value_range_base::set_zero): ...this.
16758 (value_range::set_nonnull): Remove.
16759 (value_range::set_null): Remove.
16760 * tree-vrp.c (range_is_null): Remove.
16761 (range_is_nonnull): Remove.
16762 (extract_range_from_binary_expr): Use value_range_base::*zero_p
16763 instead of range_is_*null.
16764 (extract_range_from_unary_expr): Same.
16765 (value_range_base::set_nonnull): Rename to...
16766 (value_range_base::set_nonzero): ...this.
16767 (value_range::set_nonnull): Remove.
16768 (value_range_base::set_null): Rename to...
16769 (value_range_base::set_zero): ...this.
16770 (value_range::set_null): Remove.
16771 (extract_range_from_binary_expr): Rename set_*null uses to
16773 (extract_range_from_unary_expr): Same.
16774 (union_helper): Same.
16775 * vr-values.c (get_value_range): Use set_*zero instead of
16777 (vr_values::extract_range_from_binary_expr): Same.
16778 (vr_values::extract_range_basic): Same.
16780 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16783 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
16785 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16787 * config/aarch64/iterators.md (MAX_OPP): New code attr.
16788 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
16790 (aarch64_<su>abd<mode>_3): ... This.
16791 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
16793 2019-06-03 Richard Biener <rguenther@suse.de>
16795 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16796 full reference tree and record in ref->ref.
16797 (vn_reference_lookup_3): Pass in original ref to
16798 ao_ref_init_from_vn_reference.
16799 (vn_reference_lookup): Likewise.
16800 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16801 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16802 Handle non-decl bases in the original reference.
16804 2019-06-03 Martin Liska <mliska@suse.cz>
16806 * doc/generic.texi: Remove Java Trees.
16808 2019-06-03 Martin Liska <mliska@suse.cz>
16810 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
16811 returns 0 when operands are equal.
16813 2019-06-03 Richard Biener <rguenther@suse.de>
16815 PR tree-optimization/90716
16816 * tree-loop-distribution.c (destroy_loop): Process blocks in
16819 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16822 * vector-builder.h (vector_builder::count_dups): New method.
16823 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
16825 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
16826 (vec_init<mode><Vel>): New pattern.
16827 * config/aarch64/aarch64.c (emit_insr): New function.
16828 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
16829 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
16830 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
16831 (aarch64_sve_expand_vector_init): Define two overloaded functions.
16833 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16835 PR tree-optimization/90681
16836 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
16837 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
16838 special case for SLP, but fail on non-groupped loads.
16840 2019-06-03 Martin Liska <mliska@suse.cz>
16842 * cfg.c (debug): Use TDF_DETAILS for debug and
16843 print edge info only once.
16845 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
16848 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
16850 2019-06-01 Martin Sebor <msebor@redhat.com>
16852 PR middle-end/90694
16853 * tree-pretty-print.c (dump_generic_node): Add parentheses.
16855 2019-05-31 Jan Hubicka <jh@suse.cz>
16857 * alias.c: Include ipa-utils.h.
16858 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
16859 * ipa-devirt.c (prevailing_odr_type): New.
16860 * ipa-utils.h (previaling_odr_type): Declare.
16862 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
16863 Hongtao Liu <hongtao.liu@intel.com>
16866 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
16867 NOTE_INSN_DELETED_LABEL check.
16869 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
16870 Robert Suchanek <robert.suchanek@mips.com>
16872 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
16873 and 3rd operands of the fmadd/fmsub/maddv builtin.
16875 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16877 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
16878 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
16879 on OMP_SIMD if not nested inside of worksharing loop that also has
16880 lastprivate conditional clause for the same decl.
16881 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
16882 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
16884 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
16886 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
16888 (lower_lastprivate_clauses): Likewise.
16889 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
16890 calling lower_rec_input_clauses.
16891 (lower_omp_for): Likewise.
16892 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
16893 clause on simd construct.
16894 * omp-expand.c (expand_omp_simd): Initialize cond_var if
16895 OMP_CLAUSE__CONDTEMP_ clause is present.
16897 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
16900 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
16903 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
16904 TEX_D32, TEX_D64 or TEX_D128.
16906 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16908 * match.pd (~(vec?cst1:cst2)): New transformation.
16910 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16912 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
16913 ((size_t)(A /[ex] B) CMP C): New transformation.
16915 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
16917 * doc/md.texi: Document define_insn_and_rewrite.
16918 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
16919 * gensupport.c (queue_elem): Update comment.
16920 (replace_operands_with_dups): New function.
16921 (gen_rewrite_sequence): Likewise.
16922 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
16923 * read-rtl.c (apply_subst_iterator): Likewise.
16924 (add_condition_to_rtx, named_rtx_p): Likewise.
16925 (rtx_reader::read_rtx_operand): Likewise.
16926 * config/aarch64/aarch64-sve.md
16927 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
16928 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
16929 define_insn_and_rewrite.
16930 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
16931 Remove separate define_split.
16933 2019-05-31 Jan Hubicka <jh@suse.cz>
16935 * tree-ssa-alias.c (type_has_components_p): New function.
16936 (aliasing_component_refs_p): Use it.
16938 2019-05-31 Martin Liska <mliska@suse.cz>
16940 * gdbhooks.py: Add const_tree to TreePrinter.
16942 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
16945 * common.opt (feliminate-unused-debug-symbols): Enable by default.
16946 * doc/invoke.texi (Debugging Options): Document new default of
16947 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
16949 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16951 PR tree-optimization/90671
16952 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
16953 template_block used to be empty on the first call, don't use
16954 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
16955 seq with bb_seq and set it with set_bb_seq.
16957 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
16959 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
16961 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16962 Michael Meissner <meissner@linux.ibm.com>
16964 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
16965 (prefixed_mem_operand): Likewise.
16966 (non_prefixed_mem_operand): Likewise.
16967 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
16969 * config/rs6000/rs6000.c (print_operand_address): Handle
16970 PC-relative addresses.
16971 (mode_supports_prefixed_address_p): New function.
16972 (rs6000_prefixed_address): New function.
16973 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
16974 (SYMBOL_REF_PCREL_P): Likewise.
16976 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16978 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
16979 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
16980 (gimplify_omp_for): If worksharing loop with lastprivate conditional
16981 is nested inside of parallel region, add _condtemp_ clause to both.
16982 * tree-nested.c (convert_nonlocal_omp_clauses,
16983 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
16985 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
16987 * omp-general.c (omp_extract_for_data): Compute it.
16988 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
16989 (lower_rec_input_clauses): Likewise.
16990 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
16991 clause is already present, just add one further one after it.
16992 (lower_lastprivate_clauses): Handle cond_ptr with array type.
16993 (lower_send_shared_vars): Clear _condtemp_ vars.
16994 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
16995 or section or taskgroup.
16996 * omp-expand.c (determine_parallel_type): Disallow combining only if
16997 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
16998 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
16999 (expand_omp_for_generic, expand_omp_for_static_nochunk,
17000 expand_omp_for_static_chunk, expand_omp_for): Use
17001 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
17002 determine if a special set of API routines are needed and if condtemp
17003 needs to be initialized, while always initialize cond_var if
17004 fd->lastprivate_conditional is non-zero.
17006 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
17007 Michael Meissner <meissner@linux.ibm.com>
17009 * config/rs6000/constraints.md (eI): New constraint.
17010 * config/rs6000/predicates.md (cint34_operand): New predicate.
17011 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
17012 (SIGNED_34BIT_OFFSET_P): Likewise.
17013 * doc/md.texi (eI): Document constraint.
17015 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
17017 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
17019 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
17020 Michael Meissner <meissner@linux.ibm.com>
17022 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
17023 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
17024 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
17025 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
17026 (OTHER_FUTURE_MASKS): Likewise.
17027 (POWERPC_MASKS): Likewise.
17028 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
17029 specified without -mprefixed-addr or -mcpu=future. Error if
17030 -mprefixed-addr is specified without -mcpu=future.
17031 (rs6000_opt_masks): Add entry for prefixed-addr.
17032 * rs6000.opt (mprefixed-addr): New option.
17034 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
17036 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
17037 cfun->is_thunk check.
17039 2019-05-30 Jakub Jelinek <jakub@redhat.com>
17041 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
17044 2019-05-30 Martin Liska <mliska@suse.cz>
17046 * gdbinit.in: Fix 'ptc' command. Add trt
17047 that prints TREE_TYPE($).
17049 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
17050 Alan Modra <amodra@gmail.com>
17052 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
17054 (rs6000_indirect_call_template_1): ...and here.
17055 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
17056 plt16_ha, plt16_lo, mtctr indirect calls. Use
17057 rs6000_pltseq_enum.
17058 (rs6000_decl_ok_for_sibcall): New function.
17059 (rs6000_function_ok_for_sibcall): Refactor.
17060 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
17061 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
17062 when pcrel. Reorganize.
17063 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
17064 * rs6000.h (rs6000_pltseq_enum): New enum.
17065 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
17066 (*pltseq_tocsave): Use rs6000_pltseq_enum.
17067 (*pltseq_plt16_ha): Likewise.
17068 (*pltseq_plt16_lo): Likewise.
17069 (*pltseq_mtctr): Likewise.
17070 (*pltseq_plt_pcrel): New insn.
17071 (*call_local_aix): Handle @notoc calls.
17072 (*call_value_local_aix): Likewise.
17073 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
17074 (*call_value_nonlocal_aix): Likewise.
17075 (*call_indirect_pcrel): New insn.
17076 (*call_value_indirect_pcrel): Likewise.
17078 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
17080 * config/i386/sse.md (*save_multiple<mode>): Rename from
17081 save_multiple<mode>.
17082 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
17083 (*restore_multiple_and_return<mode>): Rename from
17084 restore_multiple_and_return<mode>.
17085 (*restore_multiple_leave_return<mode>): Rename from
17086 restore_multiple_leave_return<mode>.
17088 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
17090 * config.gcc (rx-*-linux*): New target.
17091 * config/rx/elf.opt: New file.
17092 * config/rx/linux.h: Likewise.
17093 * config/rx/t-linux: Likewise.
17094 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
17096 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
17097 (ASM_APP_OFF): Likewise.
17098 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
17101 2019-05-29 Jan Hubicka <jh@suse.cz>
17103 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
17104 variants are pointer equivalent.
17106 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17108 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
17109 * config/aarch64/aarch64-sve2.md: New file.
17110 (<u>avg<mode>3_floor): New pattern.
17111 (<u>avg<mode>3_ceil): Likewise.
17112 (*<sur>h<addsub><mode>): Likewise.
17113 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
17114 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
17116 2019-05-29 Jakub Jelinek <jakub@redhat.com>
17119 * optc-save-gen.awk: In cl_optimization_print, use correct condition
17120 for var_opt_string printing. In cl_optimization_print_diff, print
17121 (null) instead of invoking undefined behavior if one of the
17122 var_opt_string pointers is NULL and use && instead of first || in the
17123 guarding condition. For var_target_other options, handle const char *
17124 target variables similarly to const char * optimize node variables.
17126 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
17128 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
17129 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
17130 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
17131 Add autib1716 and pacib1716 initialisation.
17132 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
17133 for autib1716 and pacib1716.
17134 * config/aarch64/aarch64-protos.h (aarch64_key_type,
17135 aarch64_post_cfi_startproc): Define.
17136 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
17137 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
17138 aarch64_handle_pac_ret_protection): Set default sign key to A.
17139 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
17140 aarch64_expand_prologue): Add check for b-key.
17141 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
17142 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
17143 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
17144 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
17145 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
17146 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
17147 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17148 * config/aarch64/aarch64.md (do_return): Add check for b-key.
17149 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
17150 pauth_hint_num_a with pauth_hint_num.
17151 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
17152 pauth_hint_num_a with pauth_hint_num.
17153 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
17154 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
17155 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17156 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
17157 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
17158 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
17159 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
17160 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
17161 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
17162 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
17163 UNSPEC_AUTIA1716 respectively.
17164 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
17165 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
17166 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
17167 * doc/invoke.texi (-mbranch-protection): Add b-key type.
17168 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
17169 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
17171 2019-05-29 Jakub Jelinek <jakub@redhat.com>
17173 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
17174 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
17175 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
17176 explicit clause on combined parallel into implicit shared clause.
17177 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
17178 and firstprivate if the decl has one too from combined parallel to
17179 the worksharing construct.
17181 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
17182 Michael Meissner <meissner@linux.ibm.com>
17184 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
17186 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
17188 * rtl.h (LABEL_REF_P): New #define.
17190 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
17192 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
17194 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17196 * internal-fn.c: Marked mask_load_direct as vectorizable.
17197 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
17198 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
17199 combined even if masks different with allow_slp_p param.
17200 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
17201 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
17202 dissolve SLP-only vectorizable groups when SLP has been discarded.
17203 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
17204 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
17206 (vect_build_slp_tree_1): Fixed comment typo.
17207 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
17208 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
17209 loads for SLP only.
17210 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
17212 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
17214 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17216 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
17217 Remove obsolete use_thunk reference.
17218 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
17219 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17220 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
17221 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
17222 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
17223 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
17224 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17225 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
17226 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
17228 2019-05-28 Nathan Sidwell <nathan@acm.org>
17230 * tree.h (IDENTIFIER_ANON_P): New.
17231 (anon_aggrname_format, anon_aggname_p): Don't declare.
17232 (make_anon_name): Declare.
17233 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
17234 (hash_tree): Likewise.
17235 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
17236 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
17237 (anon_cnt, make_anon_name): New.
17239 2019-05-28 Martin Liska <mliska@suse.cz>
17242 * opts-global.c (decode_options): Print help for all
17243 help_option_arguments.
17244 * opts.c (print_help): Add new argument.
17245 (common_handle_option): Remember all values into
17246 help_option_arguments.
17247 * opts.h (print_help): Add new argument.
17249 2019-05-28 Martin Liska <mliska@suse.cz>
17252 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
17253 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
17254 (func_checker::compare_bb): Call compare_loops.
17256 2019-05-27 Jakub Jelinek <jakub@redhat.com>
17258 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
17259 on sections construct.
17260 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
17262 (lower_omp_sections): Handle lastprivate conditional.
17263 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
17264 lastprivate_conditional_map.
17265 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
17267 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
17268 critical, taskgroup and section regions when looking for a region
17269 with non-NULL lastprivate_conditional_map.
17271 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17273 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
17274 (*ix86_gen_sub3): Ditto.
17275 (*ix86_gen_sub3_carry): Ditto.
17276 (*ix86_gen_one_cmpl2): Ditto.
17277 (*ix86_gen_andsp): Ditto.
17278 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
17279 (gen_and2_insn): New static function.
17280 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
17281 Use gen_add3_insn instead of ix86_gen_add3.
17282 (ix86_expand_split_stack_prologue): Use gen_add2_insn
17283 instead of ix86_gen_add3.
17284 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
17285 Use gen_sub3_insn instead of ix86_gen_sub3.
17286 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
17287 instead of ix86_gen_add3.
17288 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
17289 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
17290 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
17291 * config/i386/i386-options.c (ix86_option_override_internal):
17292 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
17293 ix86_gen_one_cmpl2 and ix86_gen_andsp.
17295 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
17297 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
17298 and DW_OP_GNU_const_index opcodes.
17300 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17302 * config/i386/i386.h (STACK_SIZE_MODE): Define.
17304 2019-05-27 Richard Biener <rguenther@suse.de>
17306 PR tree-optimization/90637
17307 * tree-ssa-sink.c (statement_sink_location): Honor the
17308 computed sink location for single-uses.
17310 2019-05-27 Richard Biener <rguenther@suse.de>
17312 PR middle-end/90610
17313 * match.pd (vec_perm): Avoid clobbering op0 when not generating
17316 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17318 * config/i386/i386.md (@sub<mode>3_carry): Rename
17319 from sub<mode>3_carry.
17320 (@leave_<mode>): New expander.
17321 (*leave): Rename from leave.
17322 (*leave_rex64): Rename from leave_rex64.
17323 (@monitorx_<mode>): Rename from monitorx_<mode>.
17324 (@clzero_<mode>): Rename from clzero_<mode>.
17325 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
17326 from sse3_monitor_<mode>.
17327 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
17328 (*ix86_gen_leave): Ditto.
17329 (*ix86_gen_monitor): Ditto.
17330 (*ix86_gen_monitorx): Ditto.
17331 (*ix86_gen_clzero): Ditto.
17332 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
17333 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
17334 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
17335 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
17336 Use gen_sse3_monitor instead of ix86_gen_monitor.
17337 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
17338 instead of ix86_gen_monitorx.
17339 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
17340 instead of ix86_gen_clzero.
17341 * config/i386/i386-options.c (ix86_option_override_internal):
17342 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
17343 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
17345 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17347 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
17348 Rename from tls_global_dynamic_64_<mode>.
17349 (@tls_local_dynamic_base_64_<mode>): Rename from
17350 tls_local_dynamic_base_64_<mode>.
17351 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
17352 Remove indirect function.
17353 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
17354 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
17355 instead of ix86_gen_tls_global_dynamic_64.
17356 Use gen_tls_local_dynamic_base_64 instead of
17357 ix86_gen_tls_local_dynamic_base_64.
17358 * config/i386/i386-options.c (ix86_option_override_internal):
17359 Do not initialize ix86_gen_tls_global_dynamic_64 and
17360 ix86_gen_tls_local_dynamic_base_64.
17362 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17364 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
17365 Rename from pro_epilogue_adjust_stack_<mode>_add.
17366 (@pro_epilogue_adjust_stack_sub_<mode>)
17367 Rename from pro_epilogue_adjust_stack_<mode>_sub.
17368 (@allocate_stack_worker_probe_<mode>):
17369 Rename from allocate_stack_worker_probe_<mode>.
17370 (allocate_stack): Use gen_allocate_stack_worker_probe.
17371 (probe_stack): Use gen_probe_stack_1.
17372 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
17373 (@adjust_stack_and_probe_<mode>): Rename from
17374 adjust_stack_and_probe<mode>.
17375 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
17376 (stack_protect_set): Use gen_stack_protect_set_1.
17377 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
17378 (stack_protect_test): Use gen_stack_protect_test_1.
17379 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
17380 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
17381 Remove indirect function.
17382 (*ix86_gen_adjust_stack_and_probe): Ditto.
17383 (*ix86_gen_probe_stack_range): Ditto.
17384 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
17385 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
17386 (ix86_adjust_stack_and_probe_stack_clash): Use
17387 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
17388 (ix86_adjust_stack_and_probe): Ditto.
17389 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
17390 of ix86_gen_probe_stack_range.
17391 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
17392 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
17393 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
17394 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
17395 CODE_FOR_stack_protect_test_{si,di}.
17396 * config/i386/i386-options.c (ix86_option_override_internal):
17397 Do not initialize ix86_gen_allocate_stack_worker,
17398 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
17400 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
17402 * doc/invoke.texi (Link Options): Many editorial changes around
17405 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17407 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
17408 pre-Solaris 11 referene and most Studio compiler details.
17410 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
17413 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
17414 DImode to SImode in floating-point registers on 64-bit target.
17415 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
17416 register_operand in xmpyu patterns.
17418 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17420 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
17421 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
17422 OMP_CLAUSE__REDUCTEMP_.
17423 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17424 OMP_CLAUSE__CONDTEMP_.
17425 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
17426 * tree-pretty-print.c (dump_omp_clause): Likewise.
17427 * tree-nested.c (convert_nonlocal_omp_clauses,
17428 convert_local_omp_clauses): Likewise.
17429 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
17430 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
17431 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
17433 (gimplify_omp_for): Warn and disable conditional modifier from
17434 lastprivate on loop iterators.
17435 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
17437 * omp-general.c (omp_extract_for_data): Initialize it.
17438 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
17440 (delete_omp_context): Delete it.
17441 (lower_lastprivate_conditional_clauses): New function.
17442 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
17443 handle lastprivate conditional clauses.
17444 (lower_reduction_clauses): Add CLIST argument, emit it into
17445 the critical section if any.
17446 (lower_omp_sections): Adjust lower_lastprivate_clauses and
17447 lower_reduction_clauses callers.
17448 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
17449 to lower_lastprivate_clauses.
17450 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
17451 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
17452 clist into a critical section if not emitted there already by
17453 lower_reduction_clauses.
17454 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
17456 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
17457 conditional variables.
17458 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
17460 (expand_omp_for_generic, expand_omp_for_static_nochunk,
17461 expand_omp_for_static_chunk): Handle lastprivate conditional.
17462 (expand_omp_for): Handle fd.lastprivate_conditional like
17465 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17467 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
17468 kernel does not exit cleanly.
17469 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
17471 2019-05-24 Jason Merrill <jason@redhat.com>
17474 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17476 2019-05-24 Richard Biener <rguenther@suse.de>
17479 * tree-loop-distribution.c (struct partition): Add location
17481 (partition_alloc): Initialize all fields.
17482 (generate_memset_builtin): Use the location recorded in the
17483 partition for the generated call.
17484 (generate_memcpy_builtin): Likewise.
17485 (classify_partition): Record the location of a single store
17486 as location for the partition.
17488 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17490 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
17493 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
17496 * common/config/aarch64/aarch64-common.c
17497 (aarch64_rewrite_selected_cpu): Change local temporary variable
17498 type from unsigned long to uint64_t.
17499 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
17500 aarch64_get_extension_string_for_isa_flags): Change declaration to
17501 match new definition by replacing unsigned long with uint64_t.
17503 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17506 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
17507 gen_attr_type just once instead of 4-7 times. Formatting fixes.
17508 Handle stack_protect_test_<mode> codegen similarly to corresponding
17511 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
17513 * config/i386/darwin.h: Reject -mfentry*.
17514 * doc/sourcebuild.texi: Document mfentry target support.
17516 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17518 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
17519 Rename to rs6000_global_entry_point_prologue_needed_p. Return
17520 false for PC-relative functions.
17521 (rs6000_output_function_prologue): Change called function name to
17522 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
17523 name,1" for PC-relative functions.
17524 (rs6000_elf_declare_function_name): Change called function name to
17525 rs6000_global_entry_point_prologue_needed_p.
17527 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
17530 * config/i386/i386.c (gen_rtx_cost):
17531 Use ix86_tune_cost instead of ix86_cost.
17533 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17534 Michael Meissner <meissner@linux.ibm.com>
17535 Segher Boessenkool <segher@kernel.crashing.org>
17537 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
17539 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
17540 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
17541 (rs6000_fndecl_pcrel_p): Likewise.
17542 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
17543 error if -mpcrel is requested without -mcpu=future.
17544 (rs6000_opt_masks): Add entry for pcrel.
17545 (rs6000_fndecl_pcrel_p): New function.
17546 (rs6000_pcrel_p): Likewise.
17547 * config/rs6000/rs6000.opt (mpcrel): New option.
17548 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
17550 2019-05-23 Jan Hubicka <jh@suse.cz>
17551 Martin Liska <mliska@suse.cz>
17553 PR tree-optimization/90576
17554 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
17556 (aliasing_component_refs_p): Fix three way size compare conditional;
17557 give up earlier in case we can not decide on equivalence.
17559 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17560 Michael Meissner <meissner@linux.ibm.com>
17561 Segher Boessenkool <segher@kernel.crashing.org>
17563 * config.gcc: Add future cpu.
17564 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
17565 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
17567 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
17568 (RS6000_CPU): New instantiation for future cpu.
17569 * config/rs6000/rs6000-opts.h (enum processor_type): Add
17571 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
17572 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
17573 * config/rs6000/rs6000-tables.opt: Regenerate.
17574 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
17575 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
17576 (rs6000_machine_from_flags): Handle future cpu.
17577 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
17578 PROCESSOR_POWER9 for now.
17579 (rs6000_adjust_cost): Likewise.
17580 (rs6000_issue_rate): Likewise.
17581 (rs6000_register_move_cost): Likewise.
17582 (rs6000_opt_masks): Add entry for future.
17583 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
17584 (MASK_FUTURE): New #define.
17585 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
17586 * config/rs6000/rs6000.opt (mfuture): New target option.
17587 * doc/invoke.texi (mcpu): Add future cpu.
17589 2019-05-23 Martin Liska <mliska@suse.cz>
17592 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
17593 operation points to a temporary (pointed via tree_to_wide_ref)
17594 that is out of scope after the &.
17596 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
17599 * doc/extend.texi (Function Names): Add missing word.
17601 2019-05-23 Richard Biener <rguenther@suse.de>
17603 PR tree-optimization/88440
17604 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
17606 * tree-loop-distribution.c (generate_memset_builtin): Fold the
17608 (generate_memcpy_builtin): Likewise.
17609 (distribute_loop): Pass in whether to only distribute patterns.
17610 (prepare_perfect_loop_nest): Also allow size optimization.
17611 (pass_loop_distribution::execute): When optimizing a loop
17612 nest for size allow pattern replacement.
17614 2019-05-23 Jakub Jelinek <jakub@redhat.com>
17617 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
17620 2019-05-23 Martin Liska <mliska@suse.cz>
17623 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
17624 expression similarly to gimplify_decl_expr.
17626 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17628 * cse.c (cse_dump_path): s/dump_file/f.
17630 2019-05-22 David Malcolm <dmalcolm@redhat.com>
17633 * diagnostic-format-json.cc: Include "selftest.h".
17634 (json_from_expanded_location): Only add "file" key for non-NULL
17636 (json_from_location_range): Don't add "start" and "finish"
17637 children if they are UNKNOWN_LOCATION.
17638 (selftest::test_unknown_location): New selftest.
17639 (selftest::test_bad_endpoints): New selftest.
17640 (selftest::diagnostic_format_json_cc_tests): New function.
17641 * json.cc (json::object::get): New function.
17642 (selftest::test_object_get): New selftest.
17643 (selftest::json_cc_tests): Call it.
17644 * json.h (json::object::get): New decl.
17645 * selftest-run-tests.c (selftest::run_tests): Call
17646 selftest::diagnostic_format_json_cc_tests.
17647 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
17650 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
17651 Andrew Stubbs <amd@codesourcery.com>
17653 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
17654 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
17655 (kernel): Rename to...
17656 (main_kernel): ... this.
17657 (load_image): Load _init_array and _fini_array kernels.
17658 (run): Add argument for kernel to run.
17659 (main): Run init_array_kernel before main_kernel, and
17660 fini_array_kernel after.
17661 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
17662 amdgpu_hsa_kernel attribute on functions.
17663 (gcn_disable_constructors): Delete.
17664 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
17665 * config/gcn/crt0.c (size_t): Define.
17666 (_init_array, _fini_array): New.
17667 (__preinit_array_start, __preinit_array_end,
17668 __init_array_start, __init_array_end,
17669 __fini_array_start, __fini_array_end): Declare weak references.
17671 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
17673 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
17675 2019-05-22 Jason Merrill <jason@redhat.com>
17677 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17679 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
17682 * config/i386/i386-options.c (ix86_init_machine_status): Set
17683 stack_frame_required to true.
17684 * config/i386/i386.c (ix86_get_frame_size): New function.
17685 (ix86_frame_pointer_required): Replace get_frame_size with
17686 ix86_get_frame_size.
17687 (ix86_compute_frame_layout): Likewise.
17688 (ix86_find_max_used_stack_alignment): Changed to void. Set
17689 stack_frame_required.
17690 (ix86_finalize_stack_frame_flags): Always call
17691 ix86_find_max_used_stack_alignment. Replace get_frame_size with
17692 ix86_get_frame_size.
17693 * config/i386/i386.h (machine_function): Add stack_frame_required.
17695 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
17697 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
17699 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
17701 * common/config/aarch64/aarch64-common.c
17702 (struct aarch64_option_extension, struct processor_name_to_arch,
17703 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
17704 aarch64_contains_opt,
17705 aarch64_get_extension_string_for_isa_flags): Change type of
17706 variables storing flags to uint64_t.
17707 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
17708 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
17709 * config/aarch64/aarch64.c (struct processor,
17710 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
17711 aarch64_validate_march, aarch64_override_options,
17712 aarch64_option_print, aarch64_handle_attr_isa_flags,
17713 aarch64_declare_function_name, aarch64_start_file): Make flag
17714 variables uint64_t.
17715 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
17716 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
17717 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
17718 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
17719 * config/aarch64/driver-aarch64.c
17720 (struct aarch64_arch_extension, struct aarch64_core_data,
17721 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
17722 flag variables uint64_t.
17723 * doc/invoke.texi: Add documentation for new arguments.
17725 2019-05-22 Richard Biener <rguenther@suse.de>
17727 * alias.c (ao_ref_from_mem): Move stack-slot sharing
17729 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
17731 2019-05-22 Martin Liska <mliska@suse.cz>
17734 * doc/extend.texi: Document the change.
17736 2019-05-22 Richard Biener <rguenther@suse.de>
17738 PR tree-optimization/90450
17739 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
17740 (mem_ref_hasher::equal): Check it.
17741 (mem_ref_alloc): Initialize it.
17742 (gather_mem_refs_stmt): Set it.
17744 2019-05-22 Richard Biener <rguenther@suse.de>
17746 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
17748 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
17751 2019-05-22 Alan Modra <amodra@gmail.com>
17753 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
17754 (ASM_CPU_SPEC): Conditionally add -many.
17755 * config/rs6000/rs6000.c (rs6000_machine): New static var.
17756 (rs6000_machine_from_flags, emit_asm_machine): New functions..
17757 (rs6000_file_start): ..extracted from here, and modified to
17759 (rs6000_output_function_prologue): Emit .machine as necessary.
17761 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
17763 PR middle-end/90553
17764 * ira-lives.c (process_bb_node_lives): Consider defs
17765 for a call insn to be die before the call, not after.
17767 * function.c (assign_parm_setup_block): Raise alignment of
17768 stacked parameter only for STRICT_ALIGNMENT targets.
17770 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17772 * config/rs6000/constraints.md (define_register_constraint "wz"):
17774 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17775 RS6000_CONSTRAINT_wz.
17776 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17777 (rs6000_init_hard_regno_mode_ok): Adjust.
17778 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
17779 * doc/md.texi (Machine Constraints): Adjust.
17781 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17783 * config/rs6000/constraints.md (define_register_constraint "wl"):
17785 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17786 RS6000_CONSTRAINT_wl.
17787 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17788 (rs6000_init_hard_regno_mode_ok): Adjust.
17789 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
17790 * doc/md.texi (Machine Constraints): Adjust.
17792 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17794 * config/rs6000/constraints.md (define_register_constraint "wm"):
17796 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17797 RS6000_CONSTRAINT_wm.
17798 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17799 (rs6000_init_hard_regno_mode_ok): Adjust.
17800 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
17801 * doc/md.texi (Machine Constraints): Adjust.
17803 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17805 * config/rs6000/constraints.md (define_register_constraint "wk"):
17807 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17808 RS6000_CONSTRAINT_wk.
17809 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17810 (rs6000_init_hard_regno_mode_ok): Adjust.
17811 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
17812 * doc/md.texi (Machine Constraints): Adjust.
17814 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17816 * config/rs6000/constraints.md (define_register_constraint "wj"):
17818 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17819 RS6000_CONSTRAINT_wj.
17820 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17821 (rs6000_init_hard_regno_mode_ok): Adjust.
17822 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
17824 * config/rs6000/vsx.md: Ditto.
17825 * doc/md.texi (Machine Constraints): Adjust.
17827 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17829 * config/rs6000/constraints.md (define_register_constraint "wh"):
17831 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17832 RS6000_CONSTRAINT_wh.
17833 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17834 (rs6000_init_hard_regno_mode_ok): Adjust.
17835 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
17836 * doc/md.texi (Machine Constraints): Adjust.
17838 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17841 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
17842 Avoid calling gen_lowpart with CONST operand.
17844 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
17846 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
17847 field template_last_to_copy.
17848 (ssa_create_duplicates): Set it, and use it. Attempt to
17849 preserve more debug stmts.
17851 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17853 * config/i386/sse.md (VF1_AVX2): New mode iterator.
17854 (signbit<mode>2): New expander
17856 2019-05-21 James Clarke <jrtc27@jrtc27.com>
17859 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
17860 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
17862 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17864 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
17865 %ebx and %ecx bafore calling cpuid with leaf 1 or
17866 non-constant leaf argument.
17868 2019-05-21 Alan Modra <amodra@gmail.com>
17871 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
17872 power9 direct move cost.
17874 2019-05-21 Richard Biener <rguenther@suse.de>
17876 PR middle-end/90510
17877 * fold-const.c (fold_read_from_vector): New function.
17878 * fold-const.h (fold_read_from_vector): Declare.
17879 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
17880 single-element insert permutations. Canonicalize selector
17881 further and fix issue with last commit.
17883 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17885 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
17886 parameter with default value false to declaration.
17887 (split_edges_for_insertion): New inline function. Wrapper for
17888 split_critical_edges with for_edge_insertion_p = true.
17889 * tree-cfg.c (split_critical_edges): Don't split non-critical
17890 edges if for_edge_insertion_p is false. Fix whitespace.
17891 * tree-ssa-pre.c (pass_pre::execute): Call
17892 split_edges_for_insertion instead of split_critical_edges.
17893 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
17894 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
17895 (pass_data_sink_code): Update function name in the comment.
17897 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17899 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
17900 around is_value_included_in that knows how to handle BIT_AND_EXPR.
17901 (is_pred_expr_subset_of): Use the new function. Handle more cases where
17902 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
17905 2019-05-21 Martin Liska <mliska@suse.cz>
17907 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
17909 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
17910 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
17912 * config/rs6000/rs6000.c (rs6000_option_override_internal):
17914 (rs6000_function_arg): Likewise.
17915 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
17916 (rs6000_expand_ternop_builtin): Use interval syntax.
17917 (get_element_number): Likewise.
17918 (altivec_expand_builtin): Likewise.
17919 (rs6000_get_function_versions_dispatcher): Quote target_clones.
17921 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17925 * function.h (struct function): Add calls_eh_return member.
17926 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
17927 gimplifying __builtin_eh_return call.
17928 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
17930 (expand_call_inline): Or in src_cfun->calls_eh_return into
17931 dst_cfun->calls_eh_return.
17932 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
17933 cfun->calls_eh_return.
17934 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
17935 * lto-streamer-out.c (output_struct_function_base): Write
17938 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
17940 PR rtl-optimization/43147
17941 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
17942 IX86_BUILTIN_SHUFPD.
17944 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17946 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
17947 (refs_may_alias_p_1): ... here; update stats.
17948 (refs_may_alias_p): Do not update stats here.
17950 2019-05-20 Richard Biener <rguenther@suse.de>
17952 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
17953 doesn't produce pointers.
17954 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
17955 the first operand points to.
17957 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17959 * tree-ssa-alias.c (compare_sizes): New function.
17960 (sompare_type_sizes): New function
17961 (aliasing_component_refs_p): Use it.
17962 (indirect_ref_may_alias_decl_p): Likewise.
17964 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17966 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
17968 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17970 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
17971 (LIBLSAN_EARLY_SPEC): Likewise.
17972 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
17974 2019-05-20 Martin Liska <mliska@suse.cz>
17976 * config/i386/i386.c (ix86_libc_has_fast_function):
17977 Add ATTRIBUTE_UNUSED for the argument.
17979 2019-05-20 Richard Biener <rguenther@suse.de>
17981 * gimple-match-head.c: Include vec-perm-indices.h.
17982 * generic-match-head.c: Likewise.
17983 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
17985 * fold-const.c (fold_vec_perm): Export.
17986 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
17987 (match.pd): ...here.
17989 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17991 * cfgloop.h (struct loop): Add simdlen member.
17992 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
17993 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
17994 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
17995 as new argument to autovectorize_vector_sizes target hook. If
17996 loop->simdlen, pick up vector size where the vectorization factor
17997 is equal to loop->simd, and if there is none, fall back to the first
17999 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
18001 * omp-low.c (omp_clause_aligned_alignment): Likewise.
18002 * omp-general.c (omp_max_vf): Likewise.
18003 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
18004 * tree-vect-slp.c (vect_slp_bb): Likewise.
18005 * target.def (autovectorize_vector_sizes): Add ALL argument and
18007 * doc/tm.texi: Adjust documentation.
18008 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
18009 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
18010 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
18012 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
18013 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
18014 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
18015 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
18016 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
18017 preferred vector size is not 512-bit or 256-bit, just put those
18018 unpreferred ones last.
18020 2019-05-20 Martin Liska <mliska@suse.cz>
18022 * targhooks.c (default_libc_has_fast_function): New function.
18023 * targhooks.h (default_libc_has_fast_function): Likewise.
18025 2019-05-20 Martin Liska <mliska@suse.cz>
18027 PR middle-end/90263
18028 * builtins.c (expand_builtin_memory_copy_args): When having a
18029 target with fast mempcpy implementation do now use memcpy.
18030 * config/i386/i386.c (ix86_libc_has_fast_function): New.
18031 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
18032 * doc/tm.texi: Likewise.
18033 * doc/tm.texi.in: Likewise.
18035 * expr.c (emit_block_move_hints): Add 2 new arguments.
18036 * expr.h (emit_block_move_hints): Bail out when libcall
18037 to memcpy would be used.
18039 2019-05-20 Martin Liska <mliska@suse.cz>
18041 * profile-count.c: Add vertical spacing in order
18042 to separate functions.
18043 * profile-count.h: Likewise.
18045 2019-05-20 Martin Liska <mliska@suse.cz>
18047 * profile-count.h: Do not use full qualified
18049 * profile-count.c (profile_count::to_frequency): Likewise.
18051 2019-05-20 Martin Liska <mliska@suse.cz>
18053 * profile-count.h (enum profile_quality): Use capital letters
18054 for enum value names. Use the adjusted names.
18055 * profile-count.c: Use the adjusted names.
18057 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18059 * config/rs6000/constraints.md (define_register_constraint "wH"):
18061 (define_register_constraint "wI"): Delete.
18062 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18063 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
18064 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18065 (rs6000_init_hard_regno_mode_ok): Adjust.
18066 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
18067 resp. "d", or with "wa" as appropriate, all with "p8v".
18068 * config/rs6000/vsx.md: Ditto.
18069 * doc/md.texi (Machine Constraints): Adjust.
18071 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18073 * config/rs6000/constraints.md (define_register_constraint "wy"):
18075 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18076 RS6000_CONSTRAINT_wy.
18077 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18078 (rs6000_init_hard_regno_mode_ok): Adjust.
18079 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
18080 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
18081 (define_mode_attr Fisa): New.
18082 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
18083 * doc/md.texi (Machine Constraints): Adjust.
18085 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18087 * config/rs6000/constraints.md (define_register_constraint "wu"):
18089 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18090 RS6000_CONSTRAINT_wu.
18091 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18092 (rs6000_init_hard_regno_mode_ok): Adjust.
18093 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
18095 (define_mode_attr Fa): Delete.
18096 * config/rs6000/vsx.md: Ditto.
18097 * doc/md.texi (Machine Constraints): Adjust.
18099 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18101 * config/rs6000/constraints.md (define_register_constraint "wJ"):
18103 (define_register_constraint "wK"): Delete.
18104 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18105 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
18106 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18107 (rs6000_init_hard_regno_mode_ok): Adjust.
18108 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
18109 Replace "wK" constraint by "wH" with "p9v".
18110 * config/rs6000/vsx.md: Ditto.
18111 * doc/md.texi (Machine Constraints): Adjust.
18113 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18115 * config/rs6000/constraints.md (define_register_constraint "wb"):
18117 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18118 RS6000_CONSTRAINT_wb.
18119 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18120 (rs6000_init_hard_regno_mode_ok): Adjust.
18121 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
18122 * config/rs6000/vsx.md: Ditto.
18123 * doc/md.texi (Machine Constraints): Adjust.
18125 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18127 * config/rs6000/constraints.md (define_register_constraint "wo"):
18129 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18130 RS6000_CONSTRAINT_wo.
18131 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
18132 (rs6000_init_hard_regno_mode_ok): Adjust.
18133 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
18134 * config/rs6000/altivec.md: Ditto.
18135 * doc/md.texi (Machine Constraints): Adjust.
18137 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18139 * config/darwin-c.c (darwin_register_objc_includes): Do not
18140 prepend the sysroot when building gnu-runtime header search
18143 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
18145 * config/darwin.c (darwin_file_end): Use switch_to_section ()
18146 instead of direct output of the asm.
18148 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18150 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
18151 argument to be type bool (was int before).
18152 (rs6000_emit_epilogue): Simplify some code. Declare some variables
18153 at first use. Use type bool for some variables. Fix a theoretical
18154 eh_return bug for svr4.
18156 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
18158 * config/rs6000/rs6000.md (isa): New attribute.
18159 (enabled): New attribute.
18161 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
18163 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
18164 assemble_start_function and assemble_end_function.
18166 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
18168 PR middle-end/89433
18169 * omp-general.c (oacc_verify_routine_clauses): Change formal
18170 parameters. Add checking if already marked with an OpenACC
18171 'routine' directive. Adjust all users.
18173 PR middle-end/89433
18174 * omp-general.c (oacc_build_routine_dims): Move some of its
18176 (oacc_verify_routine_clauses): ... this new function.
18177 * omp-general.h (oacc_verify_routine_clauses): New prototype.
18179 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18181 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
18182 formating of picbase labels to match other ports.
18184 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18186 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
18187 in the generated code.
18189 2019-05-16 Martin Sebor <msebor@redhat.com>
18191 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
18192 identifiers, keywords, operators, and types in diagnostics. Correct
18193 quoting, spelling, and sentence capitalization issues.
18194 (expand_builtin_atomic_is_lock_free): Same.
18195 (fold_builtin_next_arg): Same.
18196 * cfgexpand.c (expand_one_var): Same.
18197 (tree_conflicts_with_clobbers_p): Same.
18198 (expand_asm_stmt): Same.
18199 (verify_loop_structure): Same.
18200 * cgraphunit.c (process_function_and_variable_attributes): Same.
18201 * collect-utils.c (collect_execute): Same.
18202 * collect2.c (maybe_run_lto_and_relink): Same.
18203 (is_lto_object_file): Same.
18204 (scan_prog_file): Same.
18205 * convert.c (convert_to_real_1): Same.
18206 * dwarf2out.c (dwarf2out_begin_prologue): Same.
18207 * except.c (verify_eh_tree): Same.
18208 * gcc.c (execute): Same.
18209 (eval_spec_function): Same.
18210 (run_attempt): Same.
18211 (driver::set_up_specs): Same.
18212 (compare_debug_auxbase_opt_spec_function): Same.
18213 * gcov-tool.c (unlink_gcda_file): Same.
18215 (do_rewrite): Same.
18216 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
18217 * gimplify.c (gimplify_asm_expr): Same.
18218 (gimplify_adjust_omp_clauses): Same.
18219 * hsa-gen.c (gen_hsa_addr_insns): Same.
18220 (gen_hsa_insns_for_load): Same.
18221 (gen_hsa_cmp_insn_from_gimple): Same.
18222 (gen_hsa_insns_for_operation_assignment): Same.
18223 (gen_get_level): Same.
18224 (gen_hsa_alloca): Same.
18225 (omp_simple_builtin::generate): Same.
18226 (gen_hsa_atomic_for_builtin): Same.
18227 (gen_hsa_insns_for_call): Same.
18228 * input.c (dump_location_info): Same.
18229 * ipa-devirt.c (compare_virtual_tables): Same.
18230 * ira.c (ira_setup_eliminable_regset): Same.
18231 * lra-assigns.c (lra_assign): Same.
18232 * lra-constraints.c (lra_constraints): Same.
18233 * lto-streamer-in.c (lto_input_mode_table): Same.
18234 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
18235 (merge_and_complain): Same.
18236 (compile_offload_image): Same.
18237 (compile_images_for_offload_targets): Same.
18238 (debug_objcopy): Same.
18241 * opts.c (print_specific_help): Same.
18242 (parse_no_sanitize_attribute): Same.
18243 (print_help): Same.
18244 (handle_param): Same.
18245 * plugin.c (add_new_plugin): Same.
18246 (parse_plugin_arg_opt): Same.
18247 (try_init_one_plugin): Same.
18248 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
18249 operators, and types in diagnostics. Correct quoting and spelling
18251 * read-rtl-function.c (parse_edge_flag_token): Same.
18252 (function_reader::parse_enum_value): Same.
18253 * reg-stack.c (check_asm_stack_operands): Same.
18254 * regcprop.c (validate_value_data): Same.
18255 * sched-rgn.c (make_pass_sched_fusion): Same.
18256 * stmt.c (check_unique_operand_names): Same.
18257 * targhooks.c (default_target_option_pragma_parse): Same.
18258 * tlink.c (recompile_files): Same.
18259 * toplev.c (process_options): Same.
18260 (do_compile): Same.
18261 * trans-mem.c (diagnose_tm_1): Same.
18262 (ipa_tm_scan_irr_block): Same.
18263 (ipa_tm_diagnose_transaction): Same.
18264 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
18265 format a tree code name in a diagnostic.
18266 (verify_types_in_gimple_min_lval): Same.
18267 (verify_types_in_gimple_reference): Same.
18268 (verify_gimple_call): Same.
18269 (verify_gimple_assign_unary): Same.
18270 (verify_gimple_assign_binary): Same.
18271 (verify_gimple_assign_ternary): Same.
18272 (verify_gimple_assign_single): Same.
18273 (verify_gimple_switch): Same.
18274 (verify_gimple_label): Same.
18275 (verify_gimple_phi): Same.
18276 (verify_gimple_in_seq): Same.
18277 (verify_eh_throw_stmt_node): Same.
18278 (collect_subblocks): Same.
18279 (gimple_verify_flow_info): Same.
18280 (do_warn_unused_result): Same.
18281 * tree-inline.c (expand_call_inline): Same.
18282 * tree-into-ssa.c (update_ssa): Same.
18283 * tree.c (tree_int_cst_elt_check_failed): Same.
18284 (tree_vec_elt_check_failed): Same.
18285 (omp_clause_operand_check_failed): Same.
18286 (verify_type_variant): Same.
18287 (verify_type): Same.
18288 * value-prof.c (verify_histograms): Same.
18289 * varasm.c (assemble_start_function): Same.
18291 2019-05-16 Martin Sebor <msebor@redhat.com>
18293 * config/i386/i386-expand.c (get_element_number): Quote keywords
18294 and other internal names in diagnostics. Adjust other diagnostic
18295 formatting issues noted by -Wformat-diag.
18296 * config/i386/i386-features.c
18297 (ix86_mangle_function_version_assembler_name): Same.
18298 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
18299 * config/i386/i386.c (ix86_function_type_abi): Same.
18300 (ix86_function_ms_hook_prologue): Same.
18301 (classify_argument): Same.
18302 (ix86_expand_prologue): Same.
18303 (ix86_md_asm_adjust): Same.
18304 (ix86_memmodel_check): Same.
18306 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
18308 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
18309 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
18312 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
18315 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
18316 intrinsics without SSE/SSE2/SSSE3.
18317 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
18319 (*mmx_uavgv8qi3): Likewise.
18321 2019-05-17 Richard Biener <rguenther@suse.de>
18323 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
18324 VEC_PERM_EXPR as __VEC_PERM with -gimple.
18326 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
18328 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
18329 vec_sldw insn pattern.
18331 2019-05-17 Richard Biener <rguenther@suse.de>
18333 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
18335 2019-05-17 Martin Liska <mliska@suse.cz>
18338 * toplev.c (output_stack_usage): With LTO and sanitizer it
18339 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
18340 has no file location.
18342 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18345 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
18346 sz0 is equal to sz1, instead return false in that case.
18348 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
18349 has non-constant expression, force sctx.lane and use two
18350 argument IFN_GOMP_SIMD_LANE instead of single argument.
18351 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
18352 two argument IFN_GOMP_SIMD_LANE without lhs.
18353 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
18355 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
18357 (LOOP_REQUIRES_VERSIONING): Or in
18358 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
18359 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
18361 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
18362 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
18363 from simd if clause if needed.
18365 2019-05-16 Richard Biener <rguenther@suse.de>
18367 * tree-affine.c (expr_to_aff_combination): New function split
18369 (tree_to_aff_combination): ... here.
18370 (aff_combination_expand): Avoid building a GENERIC tree.
18372 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
18374 * cgraphunit.c (cgraph_node::expand_thunk): Remove
18375 assemble_start_function and assemble_end_function calls.
18376 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
18377 assemble_start_function and assemble_end_function.
18378 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
18379 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
18380 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
18381 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
18382 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
18383 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
18384 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
18385 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
18386 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
18387 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
18388 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
18389 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
18391 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
18392 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
18393 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
18394 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
18395 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
18396 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
18397 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
18398 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
18399 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
18400 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
18401 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
18402 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
18403 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
18404 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
18406 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
18407 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
18408 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
18410 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
18412 * tree-ssa-alias.c (alias_stats): Add
18413 aliasing_component_refs_p_may_alias and
18414 aliasing_component_refs_p_no_alias.
18415 (dump_alias_stats): Print aliasing_component_refs_p stats.
18416 (aliasing_component_refs_p): Update stats.
18418 2019-05-16 Martin Liska <mliska@suse.cz>
18421 * multiple_target.c (expand_target_clones): Do not allow
18422 target_clones being used with a symbol that is an alias.
18424 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
18426 PR tree-optimization/90394
18427 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
18428 positives rather than ICE for cases where (code2 == NE_EXPR
18429 && code1 == BIT_AND_EXPR).
18431 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18434 * tree-core.h (struct tree_decl_common): Document
18435 decl_nonshareable_flag for PARM_DECLs.
18436 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
18437 * calls.c (expand_call): Don't try tail call if caller
18438 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
18439 passed on the stack and callee needs to pass any arguments on the
18441 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
18442 else if instead of series of mutually exclusive ifs. Handle
18443 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
18444 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
18446 * lto-streamer.h (LTO_major_version): Bump to 9.
18448 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
18450 PR tree-optimization/90106
18451 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
18452 new parameter as new internal function call, also move it to new
18454 (use_internal_fn): Pass internal function call to
18455 shrink_wrap_one_built_in_call_with_conds.
18457 2019-05-15 Jakub Jelinek <jakub@redhat.com>
18459 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
18461 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
18462 safelen_int and set loop->dont_vectorize.
18464 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18467 * config/i386/i386-builtin.def: Enable MMX intrinsics with
18469 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
18471 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
18472 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
18473 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
18476 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18479 * config/i386/mmx.md (*vec_dupv2sf): Changed to
18480 define_insn_and_split to support SSE emulation.
18481 (*vec_extractv2sf_0): Likewise.
18482 (*vec_extractv2sf_1): Likewise.
18483 (*vec_extractv2si_0): Likewise.
18484 (*vec_extractv2si_1): Likewise.
18485 (*vec_extractv2si_zext_mem): Likewise.
18486 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
18487 (vec_extractv2sf_1 splitter): Likewise.
18488 (vec_extractv2sfsf): Likewise.
18489 (vec_setv2si): Likewise.
18490 (vec_extractv2si_1 splitter): Likewise.
18491 (vec_extractv2sisi): Likewise.
18492 (vec_setv4hi): Likewise.
18493 (vec_extractv4hihi): Likewise.
18494 (vec_setv8qi): Likewise.
18495 (vec_extractv8qiqi): Likewise.
18496 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18497 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
18498 (vec_extractv2sisi): Likewise.
18499 (vec_extractv4hihi): Likewise.
18500 (vec_extractv8qiqi): Likewise.
18501 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18502 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
18503 (vec_initv2sisi): Likewise.
18504 (vec_initv4hihi): Likewise.
18505 (vec_initv8qiqi): Likewise.
18506 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
18507 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
18508 (vec_setv4hi): Likewise.
18509 (vec_setv8qi): Likewise.
18511 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18514 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
18515 TARGET_MMX_WITH_SSE.
18516 (MMXMODE:*mov<mode>_internal): Likewise.
18517 (MMXMODE:movmisalign<mode>): Likewise.
18519 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
18522 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
18523 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
18524 (sse2_cvtpd2pi): Ditto.
18525 (sse2_cvttpd2pi): Ditto.
18526 (*vec_concatv2sf_sse4_1): Ditto.
18527 (*vec_concatv2sf_sse): Ditto.
18528 (*vec_concatv2si_sse4_1): Ditto.
18529 (*vec_concatv2si): Ditto.
18530 (*vec_concatv4si_0): Ditto.
18531 (*vec_concatv2di_0): Ditto.
18533 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18536 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
18538 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18541 * config/i386/sse.md (ssse3_palignrdi): Changed to
18542 define_insn_and_split to support SSE emulation.
18544 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18547 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
18549 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18552 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
18553 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18556 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18559 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
18560 or TARGET_MMX_WITH_SSE.
18561 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
18563 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18566 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
18568 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18571 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
18572 Changed to define_insn_and_split to support SSE emulation.
18574 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18577 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
18578 Changed to define_insn_and_split to support SSE emulation.
18580 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18583 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
18584 (*mmx_<emms>): This.
18585 (mmx_<emms>): New expander.
18587 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18590 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
18592 (*sse2_umulv1siv1di3): Add SSE2 emulation.
18594 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18597 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
18599 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18602 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
18604 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18607 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
18608 TARGET_MMX_WITH_SSE.
18609 (*mmx_uavgv4hi3): Add SSE emulation.
18611 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18614 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
18615 and TARGET_MMX_WITH_SSE.
18616 (*mmx_uavgv8qi3): Add SSE emulation.
18618 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18621 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
18622 maskmovdqu for __MMX_WITH_SSE__.
18624 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18627 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
18628 TARGET_MMX and TARGET_MMX_WITH_SSE.
18629 (*mmx_umulv4hi3_highpart): Add SSE emulation.
18631 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18634 * config/i386/mmx.md (mmx_pmovmskb): Changed to
18635 define_insn_and_split to support SSE emulation.
18637 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18640 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
18641 and TARGET_MMX_WITH_SSE.
18642 (mmx_<code>v8qi3): Likewise.
18643 (smaxmin:<code>v4hi3): New.
18644 (umaxmin:<code>v8qi3): Likewise.
18645 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
18646 (umaxmin:*mmx_<code>v8qi3): Likewise.
18648 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18651 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
18652 TARGET_MMX_WITH_SSE.
18653 (*mmx_pinsrw): Add SSE emulation.
18655 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18658 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
18660 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18663 * config/i386/sse.md (sse_cvtpi2ps): Changed to
18664 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18667 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18670 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
18671 (sse_cvttps2pi): Likewise.
18673 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18676 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
18677 TARGET_MMX_WITH_SSE.
18678 (mmx_pshufw_1): Add SSE emulation.
18679 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
18680 TARGET_MMX_WITH_SSE to support SSE emulation.
18682 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18685 * config/i386/constraints.md (Yw): New constraint.
18686 * config/i386/mmx.md (*vec_dupv2si): Changed to
18687 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
18688 support SSE emulation.
18690 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18693 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
18694 TARGET_MMX_WITH_SSE.
18695 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18697 (mmx_gt<mode>3): Likewise.
18699 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18702 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
18703 TARGET_MMX_WITH_SSE. Add SSE support.
18705 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18708 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
18709 TARGET_MMX_WITH_SSE.
18710 (any_logic:<code><mode>3): New.
18711 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
18714 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18717 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
18718 TARGET_MMX_WITH_SSE. Add SSE emulation.
18719 (mmx_<shift_insn><mode>3): Likewise.
18720 (ashr<mode>3): New.
18721 (<shift_insn><mode>3): Likewise.
18723 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18726 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
18727 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
18729 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18732 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
18733 TARGET_MMX_WITH_SSE.
18734 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
18737 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18740 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
18741 TARGET_MMX_WITH_SSE.
18743 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18746 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18749 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
18750 (plusminus:mmx_<plusminus_insn><mode>3): Check
18751 TARGET_MMX_WITH_SSE.
18752 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
18753 (<plusminus_insn><mode>3): New.
18754 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
18755 (*mmx_<plusminus_insn><mode>3): Likewise.
18757 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18760 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
18761 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
18763 * config/i386/mmx.m (mmx_punpckhbw): Changed to
18764 define_insn_and_split to support SSE emulation.
18765 (mmx_punpcklbw): Likewise.
18766 (mmx_punpckhwd): Likewise.
18767 (mmx_punpcklwd): Likewise.
18768 (mmx_punpckhdq): Likewise.
18769 (mmx_punpckldq): Likewise.
18771 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18772 Uros Bizjak <ubizjak@gmail.com>
18775 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
18777 (ix86_split_mmx_pack): Likewise.
18778 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
18780 (ix86_split_mmx_pack): Likewise.
18781 * config/i386/i386.md (mmx_isa): New.
18782 (enabled): Also check mmx_isa.
18783 * config/i386/mmx.md (any_s_truncate): New code iterator.
18784 (s_trunsuffix): New code attr.
18785 (mmx_packsswb): Removed.
18786 (mmx_packssdw): Likewise.
18787 (mmx_packuswb): Likewise.
18788 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
18789 MMX packsswb/packuswb with SSE2.
18790 (mmx_packssdw): Likewise.
18791 * config/i386/predicates.md (register_mmxmem_operand): New.
18793 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18796 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18797 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
18798 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
18799 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
18800 (ix86_vector_mode_supported_p): Likewise.
18801 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
18803 2019-05-15 Martin Liska <mliska@suse.cz>
18805 PR middle-end/90478
18806 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18807 Check for overflow.
18809 2019-05-15 Richard Biener <rguenther@suse.de>
18811 * tree-into-ssa.c (pass_build_ssa::execute): Run
18812 update_address_taken before going into SSA.
18814 2019-05-15 Richard Biener <rguenther@suse.de>
18816 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
18817 as __BIT_FIELD_REF with type with -gimple.
18819 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
18821 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
18822 semantically equivalent branches (left over after prior refactorings).
18824 2019-05-15 Richard Biener <rguenther@suse.de>
18826 PR tree-optimization/88828
18827 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
18830 2019-05-14 Richard Biener <rguenther@suse.de>
18832 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
18833 as __VIEW_CONVERT with -gimple.
18835 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18838 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
18841 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18843 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
18844 define_split to become a define_insn_and_split.
18846 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18848 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
18850 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
18851 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
18852 (sibcall_epilogue): Adjust.
18853 (epilogue): Adjust.
18855 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18857 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
18858 to unsupported ones.
18859 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
18860 * config.host: Likewise.
18861 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
18862 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
18863 __svr4__]: Remove "brand" fallback.
18864 [!KSTAT_DATA_STRING]: Remove.
18865 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
18867 (comdat_group): Likewise.
18868 (set_have_as_tls): Likewise.
18869 (gcc_cv_target_dl_iterate_phdr): Likewise.
18870 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
18871 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
18872 * configure: Regenerate.
18873 * doc/install.texi: Simplify Solaris target triplets.
18874 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
18875 (Specific, *-*-solaris2*): Document Solaris 10 removal.
18876 Remove Solaris 10 references.
18877 Remove obsolete Solaris bug reference.
18878 (Specific, sparc-sun-solaris2.10): Remove.
18880 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
18882 * config/i386/i386.md (any_div): New code iterator.
18883 (paired_mod): New code attribute.
18884 (sgnprefix): Handle DIV and UDIV RTXes.
18886 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
18887 and udivmod<mode>4 patterns using any_div code iterator.
18888 (divmod splitters): Macroize splitters using any_div code iterator.
18889 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
18890 (*udivmodsi4_pow2_zext_2): Ditto.
18891 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
18892 and *udivmod<mode>4_noext patterns using any_div code iterator.
18893 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
18894 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
18895 patterns using any_div code iterator.
18896 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
18897 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
18898 patterns using any_div code iterator.
18899 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
18900 udivmodhiqi3 patterns using any_extend code iterator.
18902 2019-05-14 Richard Biener <rguenther@suse.de>
18903 H.J. Lu <hongjiu.lu@intel.com>
18905 PR tree-optimization/88828
18906 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
18907 permuting in a single non-constant element not extracted
18910 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
18912 * internal-fn.def (SIGNBIT): New.
18913 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
18915 (signbitv4sf2): Likewise.
18917 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
18920 * config/mips/mips.c (mips_split_move): Skip forward SRC into
18921 next insn when the SRC reg is dead.
18923 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
18925 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
18926 (alloc_cand_and_find_basis): Ditto.
18927 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
18928 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
18929 (create_add_imm_cand, slsr_process_cast): Ditto.
18930 (slsr_process_copy, replace_mult_candidate): Ditto.
18931 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
18932 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
18933 (pass_strength_reduction::execute): Init the first NULL element.
18935 2019-05-13 Nathan Sidwell <nathan@acm.org>
18937 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
18938 (run_attempt): Reformat line break.
18940 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
18943 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
18944 data registers in sibcall epilogues.
18945 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18947 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
18950 * configure.ac (--enable-frame-pointer):
18951 Disable by default for cygwin and mingw.
18952 * configure: Regenerate.
18954 2019-05-13 Nathan Sidwell <nathan@acm.org>
18956 * dwarf2out.c (breakout_comdat_types): Move comment to correct
18958 (const_ok_for_output_1): Balance parens around #if/#else/#endif
18959 (gen_member_die): Move abstract origin check earlier. Only VARs
18960 can be static_inline_p. Simplify splicing control flow.
18962 2019-05-13 Richard Biener <rguenther@suse.de>
18964 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
18966 (vect_build_slp_tree_1): Likewise.
18968 2019-05-13 Richard Biener <rguenther@suse.de>
18970 PR tree-optimization/90402
18971 * tree-if-conv.c (tree_if_conversion): Value number only
18972 the loop body by making the latch an exit of the region
18974 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
18976 (do_rpo_vn): Deal with multiple edges into the entry block
18977 that are not backedges inside the region by skipping PHIs
18978 of the entry block.
18980 2019-05-13 Richard Biener <rguenther@suse.de>
18982 PR tree-optimization/90316
18983 * tree-ssa-pre.c (insert_aux): Fold into ...
18984 (insert): ... this function. Use a RPO walk to reduce the
18985 number of required iterations.
18987 2019-05-13 Martin Liska <mliska@suse.cz>
18989 PR tree-optimization/90416
18990 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
18991 string instead of passing the second part as va_arg argument.
18993 2019-05-13 Martin Liska <mliska@suse.cz>
18995 PR gcov-profile/90380
18996 * gcov.c (handle_cycle): Do not support zero cycle count,
18997 it should not be possible.
18998 (path_contains_zero_cycle_arc): New function.
18999 (circuit): Ignore zero cycle arc counts.
19001 2019-05-13 Martin Liska <mliska@suse.cz>
19003 PR gcov-profile/90380
19004 * gcov.c (enum loop_type): Remove the enum and
19006 (handle_cycle): Assert that we should not reach
19008 (circuit): Use loop_found instead of a tri-state loop_type.
19009 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
19012 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
19015 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
19016 (ix86_output_indirect_branch_via_reg): Use output mechanism
19017 accounting for __USER_LABEL_PREFIX__.
19018 (ix86_output_indirect_branch_via_push): Likewise.
19019 (ix86_output_function_return): Likewise.
19020 (ix86_output_indirect_function_return): Likewise.
19022 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
19024 * doc/md.texi: Document use of code attributes in rtx patterns.
19025 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
19026 * read-rtl.c (find_code): Split out search loops into...
19027 (maybe_find_code): ...this new function.
19028 (check_code_iterator): Make the error message more informative.
19029 (check_code_attribute): New function.
19030 (rtx_reader::rtx_alloc_for_name): Likewise.
19031 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
19032 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
19033 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
19034 <max_opp> directly as an rtx code instead of via a match_operator.
19035 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
19036 (<su>abd<mode>_3): Update accordingly.
19038 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
19040 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
19041 is given, print the state of the EH "save world" computation for
19044 2019-05-11 Jakub Jelinek <jakub@redhat.com>
19047 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
19048 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
19050 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
19052 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
19053 Use pinsrd for TARGET_SSE4_1.
19054 * config/i386/sse.md (movdi_to_sse): Ditto.
19056 2019-05-10 Richard Biener <rguenther@suse.de>
19058 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
19059 (do_rpo_vn): Initialize next_value_id.
19061 2019-05-10 Martin Liska <mliska@suse.cz>
19063 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
19066 2019-05-10 Jakub Jelinek <jakub@redhat.com>
19068 PR tree-optimization/90385
19069 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
19070 arguments of the exit phis.
19073 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
19074 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
19076 (copy_tree_body_r): Likewise.
19077 (copy_fn): Set id.do_not_fold to true.
19079 2019-05-10 Martin Liska <mliska@suse.cz>
19081 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
19082 Reapply changes from r269790.
19084 2019-05-10 Martin Liska <mliska@suse.cz>
19086 PR middle-end/90340
19087 * doc/invoke.texi: New params.
19088 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
19089 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
19090 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
19092 * tree-switch-conversion.h (struct jump_table_cluster):
19095 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
19097 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
19099 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
19101 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
19103 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
19105 PR rtl-optimization/88879
19106 * sel-sched.c (sel_target_adjust_priority): Remove assert.
19108 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
19111 * config/arm/arm.c (callee_saved_reg_p): Move before
19112 thumb_find_work_register.
19113 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
19114 thumb_find_work_register. Only call df_get_live_out once.
19115 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
19116 (thumb_find_work_register): Use
19117 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
19118 algorithms to locate a spare call clobbered reg.
19120 2019-05-09 Martin Liska <mliska@suse.cz>
19122 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
19123 and MAX_EXPR in GIMPLE FE format.
19125 2019-05-09 Martin Liska <mliska@suse.cz>
19127 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
19128 * gimple-pretty-print.c (dump_gimple_bb_header):
19130 (pp_cfg_jump): Dump edge probability.
19131 * profile-count.c (profile_quality_as_string): Simplify
19132 with a static array.
19133 (parse_profile_quality): New function.
19134 (profile_count::dump): Simplify with a static array.
19135 (profile_count::from_gcov_type): Add new argument.
19136 * profile-count.h (parse_profile_quality): Likewise.
19137 * predict.h (set_hot_bb_threshold): New.
19138 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
19140 * predict.c (get_hot_bb_threshold): Set from the new param.
19141 (set_hot_bb_threshold): New.
19143 2019-05-09 Richard Biener <rguenther@suse.de>
19145 PR tree-optimization/90395
19146 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
19147 rewrite vector stores that throw internally.
19149 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
19151 * cif-code.def (CHKP): Remove.
19154 * configure.ac (--enable-frame-pointer): Disable by default for
19156 * configure: Regenerate.
19158 2019-05-09 Alan Modra <amodra@gmail.com>
19161 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
19162 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
19163 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
19164 cost for general <-> vsx when direct moves are available.
19165 Cost union classes at minimal cost for any reg in the class.
19166 Correct calculation for moves between vsx, float, and altivec.
19167 Don't return a low cost for moves between special regs. Don't
19168 use hard coded register numbers.
19169 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
19170 (rs6000_ira_change_pseudo_allocno_class): New function.
19171 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
19172 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
19174 (movsi_internal1): Don't disparage vector alternatives.
19175 (mov<mode>_internal): Likewise, excepting alternative that
19177 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
19178 we <- b alternative.
19180 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19183 PR tree-optimization/89060
19184 * tree-ssa-live.h (live_vars_map): New typedef.
19185 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
19186 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
19187 (struct compute_live_vars_data): New type.
19188 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
19189 live_vars_at_stmt, destroy_live_vars): New functions.
19190 * tree-tailcall.c: Include tree-ssa-live.h.
19191 (live_vars, live_vars_vec): New global variables.
19192 (find_tail_calls): Perform variable life analysis before punting.
19193 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
19194 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
19196 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
19197 Perform variable life analysis to select variables that really need
19199 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
19200 instead set id->eh_landing_pad_dest and assert it is the same.
19201 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
19203 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
19204 Richard Earnshaw <rearnsha@arm.com>
19207 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
19209 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
19210 (thumb1_compute_save_core_reg_mask): Don't force a spare work
19211 register if both the epilogue and prologue can use call-clobbered
19213 (thumb1_unexpanded_epilogue): Use
19214 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
19215 picking temporaries for restoring high regs to match that of the
19216 prologue where possible.
19217 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
19218 the list of work registers. Detect if the return address is still live
19219 at the end of the prologue and avoid using it for a work register if so.
19220 If the return address is not live, add LR to the list of pushable regs
19221 after the first pass.
19223 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19225 PR tree-optimization/90078
19226 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
19227 (INFTY): Increase the value for infinite cost.
19228 (struct comp_cost): Promote type of members to int64_t.
19229 (infinite_cost): Don't set complexity in initialization.
19230 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
19231 overflows to infinite_cost.
19232 (adjust_setup_cost): Promote type of parameter and cost computation
19234 (struct ainc_cost_data, struct iv_ca): Promote type of member to
19236 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
19237 cost computation to int64_t.
19238 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
19239 int64_t's format specifier in dump.
19241 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19243 PR tree-optimization/90240
19244 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
19245 with respect to scaling factor pre-computed for each basic block.
19246 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
19247 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
19248 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
19249 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
19250 live range for array of loop's basic blocks. Cleanup aux field of
19251 loop's basic blocks.
19253 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19255 PR tree-optimization/90356
19256 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
19258 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
19260 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
19261 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
19262 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
19263 (ix86_handle_option): Handle -mavx512bf16.
19264 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
19266 * config/i386/avx512bf16vlintrin.h: New.
19267 * config/i386/avx512bf16intrin.h: New.
19268 * config/i386/cpuid.h (bit_AVX512BF16): New.
19269 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
19270 * config/i386/i386-builtin-types.def: Add new types.
19271 * config/i386/i386-builtin.def: Add new builtins.
19272 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19274 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
19275 (ix86_option_override_internal): Handle BF16.
19276 (ix86_valid_target_attribute_inner_p): Ditto.
19277 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
19278 * config/i386/i386-builtin.c (enum processor_features): Add
19280 (static const _isa_names_table isa_names_table): Ditto.
19281 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
19282 (PTA_AVX512BF16): Ditto.
19283 * config/i386/i386.opt: Add -mavx512bf16.
19284 * config/i386/immintrin.h: Include avx512bf16intrin.h
19285 and avx512bf16vlintrin.h.
19286 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
19287 avx512f_cvtneps2bf16_<mode><mask_name>,
19288 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
19289 * config/i386/subst.md (mask_half): Add new subst.
19290 * doc/invoke.texi: Document -mavx512bf16.
19292 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
19294 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
19295 Delete declaration.
19296 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
19297 (rs6000_debug_legitimize_reload_address): Delete.
19298 (rs6000_legitimize_reload_address_ptr): Delete.
19299 (rs6000_option_override_internal): Adjust.
19300 (mem_operand_gpr): Adjust comment.
19301 (legitimate_lo_sum_address_p): Ditto.
19302 (rs6000_legitimize_reload_address): Delete.
19303 (rs6000_debug_legitimize_reload_address): Delete.
19304 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
19306 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
19309 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19310 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
19311 to compute vector element selector for both constant and variable
19314 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19316 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
19317 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
19318 ashrdi3_cvt using SWI48 mode iterator.
19320 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19322 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
19323 (aarch64_<su>abd<mode>_3): Likewise.
19324 (*aarch64_<su>abd<mode>_3): New define_insn.
19325 (<sur>sad<vsi2qi>): New define_expand.
19326 * config/aarch64/iterators.md: Added MAX_OPP attribute.
19327 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
19328 (build_vect_cond_expr): Likewise.
19330 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19332 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
19333 clobbers outside of accessible_reg_set.
19334 * config/i386/i386.c (ix86_conditional_register_usage):
19335 Disable register sets by clearing corresponding bits in
19336 accessible_reg_set. Do not set corresponding bits in fixed_regs,
19337 call_used_regs and don't clear corresponding reg_names array members.
19339 2019-05-07 Richard Biener <rguenther@suse.de>
19341 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
19342 not specified still compute a comp_vectype for invariant
19345 2019-05-07 Richard Biener <rguenther@suse.de>
19347 PR tree-optimization/90316
19348 * tree-ssa-pre.c (translate_vuse_through_block): When
19349 same_valid is NULL do not bother to search for a virtual
19351 (phi_translate_1): When operands changed we cannot keep
19352 the same value-number so do not bother to ask whether
19353 that's possible from translate_vuse_through_block.
19355 2019-05-07 Martin Liska <mliska@suse.cz>
19357 * bitmap.c (bitmap_register): Come up with
19358 alloc_descriptor_max_uid and assign it for
19360 (register_overhead): Use get_descriptor as
19362 (release_overhead): New.
19363 (bitmap_elem_to_freelist): Call it.
19364 (bitmap_elt_clear_from): Likewise.
19365 (bitmap_obstack_free): Likewise.
19366 (bitmap_move): Sensitively release memory.
19367 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
19368 (bitmap_initialize): Initialize alloc_descriptor to zero.
19369 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
19371 2019-05-07 Richard Biener <rguenther@suse.de>
19373 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
19374 we build a SLP node. Remove max_size and limiting.
19375 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
19377 2019-05-07 Richard Biener <rguenther@suse.de>
19379 PR tree-optimization/90316
19380 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
19381 limit by reference.
19382 (walk_non_aliased_vuses): Take walking limit argument.
19383 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
19384 walking if it is reached instead of just counting.
19385 (get_continuation_for_phi): Likewise.
19386 (walk_non_aliased_vuses): Likewise, instead of leaving counter
19387 limiting to the callback.
19388 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
19389 (vn_reference_lookup_3): Likewise.
19390 (vn_reference_lookup_pieces): Likewise.
19391 (vn_reference_lookup): Likewise.
19392 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
19393 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
19394 (avail_exprs_stack::lookup_avail_expr): Likewise.
19396 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
19398 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
19399 for comparaible types in the second direction even if first one
19400 hits incomparable type.
19402 2019-05-07 Richard Biener <rguenther@suse.de>
19405 * lto-wrapper.c (debug_objcopy): Use the original filename
19406 including archive offset for the filename used for -save-temps.
19408 2019-05-07 Li Jia He <helijia@linux.ibm.com>
19410 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
19413 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
19414 Hongtao Liu <hongtao.liu@intel.com>
19418 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
19419 Modified, original implementation isn't correct.
19421 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19423 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
19424 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
19425 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
19426 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
19427 (FRAME_POINTER_REGNUM): Change numbering.
19428 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
19429 (alt_reg_names): Adjust.
19430 (rs6000_conditional_register_usage): Don't mark hard register 64 as
19432 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19433 (DWARF_FRAME_REGISTERS): Delete.
19434 (DWARF2_FRAME_REG_OUT): Fix whitespace.
19435 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19437 (REG_ALLOC_ORDER): Adjust.
19438 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
19439 (REG_CLASS_CONTENTS): Adjust.
19440 (RETURN_ADDR_RTX): Change comment.
19441 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
19443 (REGISTER_NAMES): Adjust.
19444 (ADDITIONAL_REGISTER_NAMES): Adjust.
19445 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19447 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19449 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
19451 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19452 (DWARF_FRAME_REGISTERS): Adjust.
19453 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19455 (REG_ALLOC_ORDER): Adjust.
19456 (enum reg_class): Delete SPR_REGS.
19457 (REG_CLASS_NAMES): Delete SPR_REGS.
19458 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
19459 (REGISTER_NAMES): Adjust.
19460 (ADDITIONAL_REGISTER_NAMES): Adjust.
19461 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19462 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
19463 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
19464 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
19465 (htm_spr_regno): Delete.
19466 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
19468 (rs6000_dbx_register_number): Adjust.
19470 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19472 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
19474 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19476 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
19477 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
19479 2019-05-06 Jakub Jelinek <jakub@redhat.com>
19481 PR tree-optimization/88709
19482 PR tree-optimization/90271
19483 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
19484 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
19485 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
19487 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
19488 of the store merging group is larger than
19489 PARAM_STORE_MERGING_MAX_SIZE parameter.
19490 (split_group): Add bzero_first argument. If set, always emit first
19491 the first store which must be = {} of the whole area and then for the
19492 rest of the stores consider all zero bytes as paddings.
19493 (imm_store_chain_info::output_merged_store): Check if first store
19494 is = {} of the whole area and if yes, determine which setting of
19495 bzero_first for split_group gives smaller number of stores. Adjust
19496 split_group callers.
19497 (lhs_valid_for_store_merging_p): Allow decls.
19498 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
19500 (pass_store_merging::process_store): Likewise.
19502 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
19505 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
19506 handling of V1TImode.
19508 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
19511 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
19512 and enable_frame_pointer ...
19513 * configure.ac: ... here. Update help strings for
19514 --enable-frame-pointer.
19515 * configure: Regenerate.
19516 * config/i386/i386-options.c (ix86_option_override_internal): Remove
19517 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
19518 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
19519 (USE_X86_64_FRAME_POINTER): Ditto.
19521 2019-05-06 Martin Liska <mliska@suse.cz>
19523 * config.gcc: Append to target_gtfiles and fix indentation.
19525 2019-05-06 Richard Biener <rguenther@suse.de>
19527 PR tree-optimization/90358
19528 * tree-vect-stmts.c (get_group_load_store_type): Properly
19529 detect unused upper half of load.
19530 (vectorizable_load): Likewise.
19532 2019-05-06 Richard Biener <rguenther@suse.de>
19534 PR tree-optimization/88828
19535 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
19536 (simplify_vector_constructor): ...here. Handle constants in
19539 2019-05-06 Richard Biener <rguenther@suse.de>
19541 PR tree-optimization/90328
19542 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
19543 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
19544 is valid in the loop nest before using it.
19545 (initialize_data_dependence_relation): Adjust.
19546 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
19547 loop as loop-nest to dr_may_alias_p.
19549 2019-05-06 Richard Biener <rguenther@suse.de>
19551 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
19553 2019-05-06 Richard Biener <rguenther@suse.de>
19555 PR tree-optimization/90316
19556 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
19557 compute target on demand.
19558 (get_continuation_for_phi): Remove code walking stmts to
19559 get to a target virtual operand which could end up being
19562 2019-05-06 Martin Liska <mliska@suse.cz>
19565 * config/i386/i386-options.c (ix86_option_override_internal): Error only
19566 when -mabi is selected to a non-default version.
19568 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
19569 Martin Liska <mliska@suse.cz>
19571 * Makefile.in: Add lto-dump.texi.
19572 * cgraph.h: Add new functions get_visibility_string and
19573 get_symtab_type_string.
19574 * doc/gcc.texi: Include lto-dump section.
19575 * doc/lto-dump.texi: New file.
19576 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
19577 (parse_dump_option): Factor out this function.
19578 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
19579 (parse_dump_option): Export the function.
19580 * symtab.c (symtab_node::get_visibility_string): New function.
19581 (symtab_node::get_symtab_type_string): Likewise.
19583 2019-05-06 Martin Liska <mliska@suse.cz>
19585 * config/i386/i386-builtins.c: New file.
19586 * config/i386/i386-builtins.h: New file.
19587 * config/i386/i386-expand.c: New file.
19588 * config/i386/i386-expand.h: New file.
19589 * config/i386/i386-features.c: New file.
19590 * config/i386/i386-features.h: New file.
19591 * config/i386/i386-options.c: New file.
19592 * config/i386/i386-options.h: New file.
19593 * config.gcc: Add new files into extra_objs and
19595 * config/i386/i386.c: Split content of the file
19596 into newly introduced files.
19597 * config/i386/i386.h: Declare common variables
19599 * config/i386/t-i386: Define dependencies for new files.
19601 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
19604 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
19605 Restrict 'all' variant to 32-bit configurations.
19606 (unaligned_loadhiu): Likewise.
19607 (unaligned_storehi): Likewise.
19608 (unaligned_storesi): Likewise.
19609 (unaligned_loadhis): Disable when compiling for thumb1.
19611 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
19613 PR tree-optimization/90269
19614 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
19617 2019-05-03 Martin Liska <mliska@suse.cz>
19619 * hash-map.h: Add is_empty function.
19620 * hash-set.h: Likewise.
19621 * hash-table.h: Likewise.
19622 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
19623 elements () == 0 (and similar usages).
19624 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
19625 * gimplify.c (gimplify_bind_expr): Likewise.
19626 (gimplify_switch_expr): Likewise.
19627 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
19628 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
19629 * postreload-gcse.c (dump_hash_table): Likewise.
19630 (gcse_after_reload_main): Likewise.
19631 * predict.c (combine_predictions_for_bb): Likewise.
19632 * tree-parloops.c (reduction_phi): Likewise.
19633 (separate_decls_in_region): Likewise.
19634 (transform_to_exit_first_loop): Likewise.
19635 (gen_parallel_loop): Likewise.
19636 (gather_scalar_reductions): Likewise.
19637 (try_create_reduction_list): Likewise.
19638 * var-tracking.c (dump_vars): Likewise.
19639 (emit_notes_for_changes): Likewise.
19640 (vt_emit_notes): Likewise.
19642 2019-05-03 Richard Biener <rguenther@suse.de>
19644 PR tree-optimization/90316
19645 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
19648 2019-05-03 Richard Biener <rguenther@suse.de>
19650 * tree-vect-stmts.c (get_group_load_store_type): Avoid
19651 peeling for gaps by loading only lower halves of vectors
19653 (vectorizable_load): Likewise.
19655 2019-05-03 Richard Biener <rguenther@suse.de>
19657 PR middle-end/89518
19658 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
19660 2019-05-03 Richard Biener <rguenther@suse.de>
19662 PR middle-end/87314
19663 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
19664 Handle STRING_CST vs DECL or STRING_CST.
19666 2019-05-03 Richard Biener <rguenther@suse.de>
19668 PR tree-optimization/88963
19669 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
19670 vector loads feeding only BIT_FIELD_REFs to component
19671 loads. Rewrite stores fed by CONSTRUCTORs to component
19674 2019-05-03 Jakub Jelinek <jakub@redhat.com>
19676 * opts.h (finish_options): Remove lang_mask argument.
19677 (print_help, help_option_argument): Declare.
19678 * opts.c (print_help): Remove forward declaration, no longer static.
19679 (finish_options): Remove lang_mask argument, don't call print_help
19681 * opts-global.c (decode_options): Adjust finish_option caller, call
19684 PR tree-optimization/90303
19685 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
19686 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
19688 2019-05-03 Richard Biener <rguenther@suse.de>
19690 PR tree-optimization/89698
19691 * gimple-fold.c (canonicalize_constructor_val): Early out
19692 for constants, handle unfolded INTEGER_CSTs as they appear in
19693 C++ virtual table ctors.
19695 2019-05-03 Richard Biener <rguenther@suse.de>
19697 * passes.c (execute_function_todo): Remove dead code.
19699 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19701 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
19702 the internal register number, for any "real" register.
19704 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19706 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
19707 correct numbers for TFHAR, TFIAR, TEXASR.
19709 2019-05-02 Richard Biener <rguenther@suse.de>
19711 PR tree-optimization/89653
19712 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
19713 update-address-taken before the pass.
19714 * passes.def (pass_tree_loop_init): Put comment before it.
19716 2019-05-02 Richard Biener <rguenther@suse.de>
19718 PR tree-optimization/89509
19719 * tree-ssa-structalias.c (compute_dependence_clique): Look
19720 at the first subvar when determining whether it is restrict.
19722 2019-05-02 Richard Biener <rguenther@suse.de>
19724 PR tree-optimization/90273
19725 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
19726 useless debug stmts.
19728 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19730 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
19732 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
19734 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
19735 VEC_COND_EXPR be inserted to emulate a conditional internal function.
19736 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
19737 (vectorizable_reduction): Use the functions above to vectorize in a
19738 fully masked loop codes that don't have a conditional internal
19741 2019-05-02 Martin Liska <mliska@suse.cz>
19743 * cgraphclones.c: Call valid_attribute_p with 1 for
19745 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
19746 it's for target attribute.
19747 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
19748 Add new boolean argument.
19749 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
19751 (ix86_valid_target_attribute_tree): Pass target_clone_attr
19752 to ix86_valid_target_attribute_inner_p.
19753 (ix86_valid_target_attribute_p): Pass flags argument to
19754 ix86_valid_target_attribute_inner_p.
19755 (get_builtin_code_for_version): Use 0 as it's target attribute.
19757 2019-05-02 Martin Liska <mliska@suse.cz>
19759 * gcc.c (process_command): Add dummy file only
19761 * opts-global.c (decode_options): Pass lang_mask.
19762 * opts.c (print_help): New function.
19763 (finish_options): Print --help if help_option_argument
19765 (common_handle_option): Factor out content of OPT__help_
19767 * opts.h (finish_options): Add new argument.
19769 2019-05-02 Martin Liska <mliska@suse.cz>
19772 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
19773 With -minline-all-stringops use inline expansion using 4B loop.
19774 * doc/invoke.texi: Document the change of
19775 -minline-all-stringops.
19777 2019-05-01 Jeff Law <law@redhat.com>
19779 PR tree-optimization/88797
19780 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
19781 PHI feeds a conditional on the RHS of an assignment.
19783 2019-04-30 Andrew Waterman <andrew@sifive.com>
19784 Jim Wilson <jimw@sifive.com>
19786 * config/riscv/constraints.md (L): New.
19787 * config/riscv/predicates.md (lui_operand): New.
19788 (sfb_alu_operand): New.
19789 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
19790 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
19791 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
19792 * config/riscv/risc.md (type): Add sfb_alu.
19793 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
19794 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
19795 (branch_zero<mode>): Delete.
19796 (mov<mode>cc): New.
19797 (mov<GPR:mode><X:mode>cc): Likewise.
19798 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
19800 2019-04-30 Nathan Sidwell <nathan@acm.org>
19802 * tree.h (MARK_TS_EXP): New.
19804 2019-04-30 Martin Liska <mliska@suse.cz>
19806 * opts.c (enable_warning_as_error): Provide hints
19807 for unknown options.
19809 2019-04-30 Martin Liska <mliska@suse.cz>
19812 * doc/invoke.texi: Add missing dash for gas-locview-support
19813 and gno-as-locview-support.
19815 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19818 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
19819 whitespace at the start of target attribute string.
19821 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19824 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
19825 Define __ARM_FEATURE_ATOMICS.
19827 2019-04-30 Martin Liska <mliska@suse.cz>
19829 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
19830 into built_in_function enum. Remove code for endp == 2 and
19831 use BUILT_IN_* constants.
19832 (gimple_fold_builtin): Call the function with fcode.
19834 2019-04-30 Martin Liska <mliska@suse.cz>
19836 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
19837 DECL_FUNCTION_CODE into ix86_builtins enum before
19838 the switch statement.
19840 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19842 PR tree-optimization/89475
19843 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
19846 2019-04-30 Martin Liska <mliska@suse.cz>
19848 PR translation/90274
19849 * opts.c (print_filtered_help): Wrap string in _(...).
19851 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
19853 PR tree-optimization/90240
19855 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19857 PR tree-optimization/90078
19858 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19859 checks for infinite_cost overflow.
19861 2019-04-29 Jeff Law <law@redhat.com>
19863 * passes.def: Move -Wrestrict pass after copy propagation.
19865 2019-04-29 Maya Rashish <coypu@sdf.org>
19867 * config.gcc (default_gnu_indirect_function): Default to yes
19868 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
19869 sparc*-*-netbsd*, x86_64-*-netbsd*.
19871 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
19873 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
19874 where cond2 is NE_EXPR.
19875 (is_value_included_in): Update comment.
19877 2019-04-29 Richard Biener <rguenther@suse.de>
19879 PR tree-optimization/90278
19880 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
19881 EH on comparison simplification.
19883 2019-04-29 Jason Merrill <jason@redhat.com>
19885 PR c++/82081 - tail call optimization breaks noexcept
19886 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
19887 nothrow function to a might-throw function into a tail call.
19889 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
19891 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
19892 (DDR_INNER_LOOP): Likewise.
19893 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
19894 (initialize_data_dependence_relation): Likewise.
19895 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
19897 2019-04-29 Jakub Jelinek <jakub@redhat.com>
19899 PR rtl-optimization/90257
19900 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
19904 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19908 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
19911 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
19914 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
19916 * lra-spills.c (lra_final_code_change): Remove useless move insns.
19918 2019-04-29 Richard Biener <rguenther@suse.de>
19920 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
19923 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
19925 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
19926 varasm.h, and netbsd-protos.h.
19928 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
19931 * config/i386/i386-protos.h (ix86_data_alignment): Change
19932 the second argument type to unsigned int.
19933 * config/i386/i386.c (ix86_data_alignment): Change "align"
19934 argument type to unsigned int.
19936 2019-04-27 Martin Liska <mliska@suse.cz>
19938 PR middle-end/90258
19939 * opt-suggestions.c (option_proposer::build_option_suggestions):
19940 When get_valid_option_values returns empty values, add the
19941 misspelling candidate.
19943 2019-04-26 Jim Wilson <jimw@sifive.com>
19945 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
19947 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
19948 Pass orig_mode to riscv_build_integer.
19949 (riscv_split_integer): Pass mode to riscv_move_integer.
19950 (riscv_legitimize_const_move): Likewise.
19951 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
19952 promoted_mode. Replace force_reg call with code to load constant into
19953 promoted reg and then subreg it for the store.
19954 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
19955 riscv_move_integer.
19957 2018-04-26 Eugene Sharygin <eush@ispras.ru>
19959 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
19962 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
19964 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
19965 commentary about the encoding of precision.
19967 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
19969 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
19970 * config/i386/t-freebsd64: New file.
19971 * config.gcc: Add the t-freebsd64 for multilib support.
19973 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
19975 * doc/extend.texi (vector_size): Add missing comma after @xref.
19977 2019-04-25 Jakub Jelinek <jakub@redhat.com>
19979 * BASE-VER: Set to 10.0.0.
19981 2019-04-25 Richard Biener <rguenther@suse.de>
19983 PR middle-end/89765
19984 * gimplify.c (gimplify_expr): Avoid turning a lvalue
19985 VIEW_CONVERT_EXPR into one operating on an rvalue.
19987 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
19990 * config/i386/i386.c (feature_priority): Moved to file scope.
19991 (processor_features): Likewise.
19992 (processor_model): Likewise.
19993 (_arch_names_table): Likewise.
19994 (arch_names_table): Likewise.
19995 (_feature_list): Removed.
19996 (feature_list): Likewise.
19997 (_isa_names_table): Moved to file scope. Add priority.
19998 (isa_names_table): Likewise.
19999 (get_builtin_code_for_version): Replace feature_list with
20000 isa_names_table. Update error message for P_ZERO priority.
20002 2019-04-25 Richard Biener <rguenther@suse.de>
20004 * tree-pass.h (make_pass_phi_only_cprop): Remove.
20005 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
20007 2019-04-24 Jeff Law <law@redhat.com>
20009 PR tree-optimization/90037
20010 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
20011 * passes.def: Replace all instance of phi-only cprop with the
20012 lattice propagator. Move propagation pass from after erroneous
20013 path isolation to before erroneous path isolation.
20014 * tree-ssa-phionlycprop.c: Remove.
20016 2019-04-24 Richard Biener <rguenther@suse.de>
20018 PR middle-end/90213
20019 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
20020 by size and BITS_PER_UNIT on poly-wide-ints.
20022 2019-04-25 Richard Biener <rguenther@suse.de>
20024 PR middle-end/90194
20025 * match.pd: Add pattern to simplify view-conversion of an
20028 2019-04-24 Clement Chigot <clement.chigot@atos.net>
20030 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
20031 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
20032 for Go on 32 bit AIX.
20033 * config/rs6000/aix72.h: Likewise.
20035 2019-04-24 Jakub Jelinek <jakub@redhat.com>
20038 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
20039 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
20041 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
20044 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
20045 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
20046 for restored hard frame pointer.
20047 (s390_sched_dependencies_evaluation): Implement new target hook.
20048 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
20050 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
20052 * config/arc/arc-options.def: Fix typos and spelling mistakes.
20053 * config/arc/arc.c (arc_init): Cleanup warning message.
20054 (arc_override_options): Likewise.
20056 2019-04-24 Jakub Jelinek <jakub@redhat.com>
20059 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
20060 a register if both if_true and if_false are MEMs.
20062 PR tree-optimization/90208
20063 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
20064 after labels of new_bb, not before them.
20066 PR tree-optimization/90211
20067 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
20068 which are not SSA_NAMEs.
20070 2018-04-23 Sudakshina Das <sudi.das@arm.com>
20072 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
20074 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
20076 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
20078 PR rtl-optimization/87979
20079 * modulo-sched.c (sms_schedule): Start ii value "mii" should
20082 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
20084 PR rtl-optimization/84032
20085 * modulo-sched.c (ps_insn_find_column): Change condition so that
20086 branch will always be the last insn in a row inside partial
20089 2019-04-23 Richard Biener <rguenther@suse.de>
20092 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
20093 dest_single_pred_p argument.
20094 (remove_forwarder_block): Adjust.
20095 (remove_forwarder_block_with_phi): Likewise.
20097 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20098 Bernd Edlinger <bernd.edlinger@hotmail.de>
20099 Jakub Jelinek <jakub@redhat.com>
20102 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
20103 if used with general-regs-only.
20104 (arm_conditional_register_usage): Don't add non-general regs if
20106 (arm_valid_target_attribute_rec): Handle general-regs-only.
20107 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
20109 (TARGET_HARD_FLOAT_SUB): Define.
20110 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
20111 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
20112 (TARGET_REALLY_IWMMXT2): Likewise.
20113 * config/arm/arm.opt: Add -mgeneral-regs-only.
20114 * doc/extend.texi: Document ARM general-regs-only target.
20115 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
20117 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20119 PR tree-optimization/90078
20120 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
20121 checks for infinite_cost overflow.
20123 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
20125 PR tree-optimization/90021
20126 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
20127 and check univariate against it.
20128 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
20129 * tree-data-ref.c (add_other_self_distances): Pass new argument.
20131 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
20135 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
20138 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
20141 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
20143 * lra-spills.c (lra_final_code_change): Remove useless move insns.
20145 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
20147 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
20148 names using operand format, rather than hard-wired.
20149 (speculation_barrier): Likewise.
20151 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
20153 PR tree-optimization/88055
20154 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
20155 (gen_one_condition): Use it if !HONOR_NANS.
20157 2019-04-19 Jakub Jelinek <jakub@redhat.com>
20159 PR middle-end/90139
20160 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
20161 assign_temp instead of gen_reg_rtx.
20163 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
20165 PR translation/90118
20166 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20167 Add missing space before %<.
20169 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
20171 PR rtl-optimization/87871
20172 * ira-lives.c (make_object_dead): Don't add conflicts to
20173 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
20175 2019-04-18 Martin Sebor <msebor@redhat.com>
20177 PR middle-end/89797
20178 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
20179 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
20180 assuming type size fits in SHWI.
20182 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
20185 * ipa-inline.c (flatten_function): New parameter UPDATE.
20186 (ipa_inline, early_inliner): Use it.
20188 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20190 * fold-const.c (int_const_binop): Return early on failure.
20192 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20194 PR middle-end/85164
20195 * combine.c (force_int_to_mode): Cast the argument rather than
20196 the result of known_alignment.
20197 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
20199 2019-04-18 Richard Biener <rguenther@suse.de>
20202 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
20204 (remove_forwarder_block): ... here.
20205 (remove_forwarder_block_with_phi): Also move debug stmts here.
20207 2019-04-18 Jakub Jelinek <jakub@redhat.com>
20209 PR translation/79183
20210 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
20211 inform where appropriate.
20213 2019-04-18 Richard Biener <rguenther@suse.de>
20215 * tree.c (get_qualified_type): Put found type variants at the
20216 head of the variant list.
20218 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20220 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
20222 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
20225 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
20226 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
20227 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
20228 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
20229 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
20231 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
20233 * ira-conflicts.c (print_allocno_conflicts): Always print something,
20234 even for allocno's with no conflicts.
20235 (print_conflicts): Print an extra newline.
20237 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20239 * auto-inc-dec.c (attempt_change): Set the alignment of the
20240 temporary memory to that of the original.
20242 2019-04-17 Joao Moreira <jmoreira@suse.de>
20244 * targhooks.c (default_print_patchable_function_entry): Emit
20245 __patchable_function_entries section with writable flags to allow
20246 relocation resolution.
20248 2019-04-17 Jonny Grant <jg@jguk.org>
20250 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
20252 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20254 PR middle-end/90095
20255 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
20256 on lowpart SUBREGs.
20258 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
20260 * config/arc/arc.c (arc_init): Format diagnostic string.
20261 (arc_override_options): Likewise.
20262 (check_if_valid_regno_const): Likewise.
20263 (arc_reorg): Likewise.
20265 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20268 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
20270 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
20272 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
20273 (*movdi_update1): Use Pmode.
20274 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
20275 (movdi_<mode>_update_stack): Rename to ...
20276 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
20278 (*movsi_update1): Use Pmode.
20279 (*movsi_update2): Use Pmode.
20280 (movsi_update): Rename to ...
20281 (movsi_<mode>_update): ... this. Use Pmode.
20282 (movsi_update_stack): Fix condition.
20283 (*movhi_update1): Use Pmode. Fix argument to
20284 avoiding_indexed_address_p.
20285 (*movhi_update2): Ditto.
20286 (*movhi_update3): Ditto.
20287 (*movhi_update4): Ditto.
20288 (*movqi_update1): Ditto.
20289 (*movqi_update2): Ditto.
20290 (*movqi_update3): Ditto.
20291 (*movsf_update1, *movdf_update1): Merge, rename to...
20292 (*mov<mode>_update1): This. Use Pmode. Fix argument to
20293 avoiding_indexed_address_p. Add "size" attribute.
20294 (*movsf_update2, *movdf_update2): Merge, rename to...
20295 (*mov<mode>_update2): This. Ditto.
20296 (*movsf_update3): Use Pmode. Fix argument to
20297 avoiding_indexed_address_p.
20298 (*movsf_update4): Ditto.
20299 (allocate_stack): Simplify condition. Adjust pattern names.
20301 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20304 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
20305 whitespace at the start of target attribute string.
20307 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
20310 * config/rs6000/power9.md: Add store forwarding bypass.
20312 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
20315 * valtrack.c (dead_debug_insert_temp): Reset debug references
20316 to the return value of a call being removed.
20318 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20320 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
20321 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
20322 implement target hook.
20323 (arc_memory_move_cost): New function.
20324 (TARGET_REGISTER_MOVE_COST): Define.
20325 (TARGET_MEMORY_MOVE_COST): Likewise.
20326 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
20327 (MEMORY_MOVE_COST): Likewise.
20329 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20331 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
20332 (sibcall_value_insn): Likewise.
20333 * config/arc/constraints.md (Rs5): Remove.
20335 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20337 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
20338 for last two fake registers.
20339 (arc_conditional_register_usage): Make sure fake frame and arg
20340 pointer regs are in general regs class.
20341 (FRAME_POINTER_MASK): Remove.
20342 (RETURN_ADDR_MASK): Remove.
20343 (arc_must_save_register): Use hard frame regnum.
20344 (frame_restore_reg): Use hard_frame_pointer_rtx.
20345 (arc_save_callee_saves): Likewise.
20346 (arc_restore_callee_saves): Likewise.
20347 (arc_save_callee_enter): Likewise.
20348 (arc_restore_callee_leave): Likewise.
20349 (arc_save_callee_milli): Likewise.
20350 (arc_eh_return_address_location): Likewise.
20351 (arc_check_multi): Use hard frame regnum.
20352 (arc_can_eliminate): Likewise.
20353 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
20354 for register allocator.
20355 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
20356 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
20357 (FRAME_POINTER_REGNUM): Change it to a fake register.
20358 (HARD_FRAME_POINTER_REGNUM): Defined.
20359 (ARG_POINTER_REGNUM): Change it to a new fake register.
20360 (ELIMINABLE_REGS): Update.
20361 (REGISTER_NAMES): Update names.
20362 * config/arc/arc.md (LP_START): Remove.
20363 (LP_END): Likewise.
20364 (shift_si3_loop): Update pattern.
20366 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20368 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
20369 to avoid delay slot scheduling.
20370 (arc_must_save_register): Don't save SP.
20371 * config/arc/arc.md (stack_tie): Remove.
20372 (UNSPEC_ARC_STKTIE): Likewise.
20374 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
20375 Shiva Chen <shiva0217@gmail.com>
20377 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
20378 code gen with large shift amount.
20380 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
20382 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
20385 2019-04-16 Jakub Jelinek <jakub@redhat.com>
20388 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
20389 print -m64/-mx32/-m32 if it is true.
20390 (ix86_debug_options, ix86_function_specific_print): Pass true as
20391 ADD_ABI_P to ix86_target_string.
20392 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
20393 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
20394 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
20396 PR rtl-optimization/90082
20397 * dce.c (can_delete_call): New function.
20398 (deletable_insn_p, mark_insn): Use it.
20400 PR tree-optimization/90090
20401 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
20403 (is_division_by_square): Likewise. Formatting fix.
20405 2019-04-16 Richard Biener <rguenther@suse.de>
20407 PR tree-optimization/56049
20408 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
20409 equality check if alias-set zero will prevail.
20411 2019-04-15 Jeff Law <law@redhat.com>
20413 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
20414 size and alignment as unsigned.
20416 2019-04-15 Richard Biener <rguenther@suse.de>
20419 * tree-loop-distribution.c (destroy_loop): Preserve correct
20422 2019-04-15 Richard Biener <rguenther@suse.de>
20424 PR tree-optimization/90071
20425 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
20426 abnormal operands from def stmts.
20428 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
20430 PR rtl-optimization/89794
20431 * combine.c (count_auto_inc): New function.
20432 (try_combine): Count how many auto_inc expressions there were in the
20433 original instructions. Ensure we have the same number in the new
20434 instructions. Remove the code that tried to ensure auto_inc side
20435 effects on i1 and i0 are not lost.
20437 2019-04-15 Richard Biener <rguenther@suse.de>
20440 * tree.h (auto_var_p): Declare.
20441 * tree.c (auto_var_p): New function, split out from ...
20442 (auto_var_in_fn_p): ... here.
20443 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
20445 (new_var_info): Initialize it.
20446 (set_uids_in_ptset): Also set the shadow variable uid if required.
20447 (ipa_pta_execute): Postprocess points-to solutions assigning
20448 shadow variable uids for locals that may reach their containing
20449 function recursively.
20450 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
20451 assert but instead check whether the points-to solution is
20454 2019-04-15 Martin Jambor <mjambor@suse.cz>
20457 * cgraph.c (clone_of_p): Loop over clone chain for each step in
20460 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20462 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
20464 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20465 Kito Cheng <kito.cheng@gmail.com>
20466 Shiva Chen <shiva0217@gmail.com>
20468 * config/nds32/nds32-md-auxiliary.c
20469 (nds32_legitimize_pic_address): Use new PIC pattern.
20470 (nds32_legitimize_tls_address): Use new TLS pattern.
20471 (nds32_output_symrel): New.
20472 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
20473 (nds32_alloc_relax_group_id): Ditto.
20474 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
20475 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
20477 (nds32_group_tls_insn): Ditto.
20478 (nds32_group_float_insns): Ditto.
20479 * config/nds32/nds32.md (tls_le): New.
20482 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
20484 * configure: Add nds32 target for dwarf2 debug_line checking.
20485 * configure.ac: Regenerated.
20487 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
20490 * ipa-devirt.c (skip_in_fields_list_p): New.
20491 (odr_types_equivalent_p): Use it.
20493 2019-04-13 Jakub Jelinek <jakub@redhat.com>
20496 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
20497 instead of strncmp when checking for thumb and arm. Formatting fixes.
20499 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
20501 * doc/install.texi: Document --with-target-system-zlib.
20503 2019-04-12 Martin Sebor <msebor@redhat.com>
20509 * targhooks.c (default_vector_alignment): Avoid assuming
20510 argument fits in SHWI.
20511 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
20512 a shift expression.
20513 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
20515 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20517 PR rtl-optimization/89965
20518 * dce.c: Include rtl-iter.h.
20519 (struct check_argument_load_data): New type.
20520 (check_argument_load): New function.
20521 (find_call_stack_args): Check for loads from stack slots still tracked
20522 in sp_bytes and punt if any is found.
20524 * config/mips/loongson-mmiintrin.h: Fix up #error message.
20526 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
20528 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
20529 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
20531 2019-04-12 Martin Liska <mliska@suse.cz>
20533 PR middle-end/89970
20534 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
20536 (separate_attrs): Handle multiple 'default's.
20537 (expand_target_clones): Rework error handling code.
20539 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
20542 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
20543 mode of vector rather than mode of destination for move instruction.
20544 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
20545 Use QI inner mode with V16QI vector mode.
20547 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20550 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
20551 "invalid %%t operand" in output_operand_lossage message.
20553 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
20555 * config/s390/predicates.md (permute_pattern_operand): New
20557 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
20558 operand for the permute pattern.
20559 ("*vec_perm<mode>"): New insn definition.
20560 ("bswap<mode>"): Generate the permute pattern operand in the
20561 expander and perform the operand reloads for pre arch13 level
20563 ("*bswap<mode>_emu"): Rename to ...
20564 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
20565 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
20566 Add the USE operand for the permute pattern.
20567 ("*vec_set_bswap_vec<mode>"): Likewise.
20569 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20572 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
20573 and gcc_unreachable if it fails, just call tree_to_uhwi which
20574 verifies that too. Test TREE_CHAIN instead of list_length > 1.
20575 Start warning message with a lower-case letter. Formatting fixes.
20577 PR rtl-optimization/90026
20578 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
20579 successors, look for BARRIERs inside of the whole BB_FOOTER chain
20580 rather than just at the start of it. If e->src BB_FOOTER is not NULL
20581 in cfglayout mode, use emit_barrier_after_bb.
20583 2018-04-11 Steve Ellcey <sellcey@marvell.com>
20585 PR rtl-optimization/87763
20586 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
20589 2019-04-11 Tom de Vries <tdevries@suse.de>
20591 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
20592 max macro using statement expression.
20594 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
20596 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
20597 * xcoffout.c (xcoff_private_rodata_section_name): Define.
20598 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
20599 read_only_private_data_section using xcoff_private_rodata_section_name.
20600 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
20602 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
20605 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
20607 2019-04-11 Jakub Jelinek <jakub@redhat.com>
20609 PR rtl-optimization/89965
20610 * dce.c (sp_based_mem_offset): New function.
20611 (find_call_stack_args): Use sp_based_mem_offset.
20613 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
20615 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
20617 2019-04-11 Richard Biener <rguenther@suse.de>
20619 PR tree-optimization/90020
20620 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
20621 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
20622 * tree-ssa-pre.c (compute_avail): Use it to not put
20623 possibly trapping references after a call that might not
20624 return into EXP_GEN.
20625 * gcse.c (compute_hash_table_work): Do not elide
20626 marking a block containing a call if the call might not
20629 2019-04-11 Richard Biener <rguenther@suse.de>
20631 PR tree-optimization/90018
20632 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
20633 Test both SLP and interleaving variants.
20635 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
20637 * config/s390/8561.md: New file.
20638 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20639 Add arch13 cpu model.
20640 * config/s390/s390-opts.h (enum processor_type): Likewise.
20641 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
20642 (s390_get_unit_mask): Likewise.
20643 (s390_is_fpd): Likewise.
20644 (s390_is_fxd): Likewise.
20645 * config/s390/s390.h (s390_tune_attr): Likewise.
20646 * config/s390/s390.md: Include arch13 pipeline description.
20647 * config/s390/s390.opt: Add arch13.
20649 2018-04-10 Steve Ellcey <sellcey@marvell.com>
20651 PR rtl-optimization/87763
20652 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
20654 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
20656 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
20658 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
20659 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
20660 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
20661 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
20663 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
20665 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
20666 "Although" in -fipa-icf documentation.
20668 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
20669 of using multiple -g options.
20671 2019-04-10 Martin Liska <mliska@suse.cz>
20673 PR gcov-profile/89959
20674 * doc/gcov.texi: Make documentation of -x option
20677 2019-04-10 Richard Biener <rguenther@suse.de>
20679 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
20681 (DR_GROUP_SAME_DR_STMT): Remove.
20682 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
20683 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
20684 replace with assert.
20685 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
20686 (vect_record_grouped_load_vectors): Remove unreachable code.
20688 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
20691 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
20692 obsolete reference to N.
20694 2019-04-10 Jakub Jelinek <jakub@redhat.com>
20696 PR middle-end/90025
20697 * expr.c (store_expr): Set properly size on the MEM passed to
20701 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
20702 with strlen in between hostsz-3 and hostsz-1 inclusive when no
20703 translation is needed, and when translation is needed, only append
20704 ... if the string length is hostsz or more bytes long. Avoid using
20707 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
20710 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
20711 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
20713 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
20714 differences directly.
20715 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
20717 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20719 PR translation/90011
20720 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
20722 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
20724 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
20725 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
20726 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
20727 trailing space from -gsplit-dwarf diagnostics.
20729 PR tree-optimization/89998
20730 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
20731 instead of integer_type_node if possible, don't add ranges if return
20732 type is not compatible with int.
20733 * gimple-fold.c (gimple_fold_builtin_sprintf,
20734 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
20737 2019-04-09 Martin Liska <mliska@suse.cz>
20739 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
20740 * doc/install.texi: Document the new config.
20742 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
20744 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
20745 use gimple_expr_type for load and store calls. Skip over the
20746 condition argument in a conditional internal function.
20747 Protect use of TREE_INT_CST_LOW.
20749 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20752 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
20753 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
20754 trailing period from it too.
20756 2019-04-08 wu yuan <wuyuan5@huawei.com>
20758 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
20759 * config/aarch64/aarch64.md : Add "tsv110.md"
20760 * config/aarch64/tsv110.md: New file.
20762 2019-04-08 Richard Biener <rguenther@suse.de>
20764 PR tree-optimization/90006
20765 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
20768 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
20771 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
20773 (fma_root_node): Likewise.
20774 (func_fma_steering): Likewise.
20776 2019-04-08 Jakub Jelinek <jakub@redhat.com>
20778 PR rtl-optimization/89865
20779 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
20781 PR rtl-optimization/89865
20782 * config/i386/i386.md
20783 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
20784 numbers not to clash with the additional operands[4].
20785 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
20786 with extra register copy in the middle.
20788 2019-04-08 Martin Liska <mliska@suse.cz>
20790 PR gcov-profile/89961
20791 * doc/gcov.texi: Document data_file.
20792 * gcov.c (generate_results): Add data_info into JSON output.
20794 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
20796 PR tree-optimization/89725
20797 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
20798 loop's chrec as invariant symbol.
20799 * tree-chrec.h (chrec_contains_symbols): New parameter.
20800 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
20801 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
20802 function of loops not in DDR's loop_nest.
20803 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
20805 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
20808 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
20811 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
20814 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
20815 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
20817 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
20819 * sched-deps.c (sched_macro_fuse_insns): Check return value of
20820 targetm.fixed_condition_code_regs.
20822 2019-04-05 Richard Biener <rguenther@suse.de>
20826 * tree-cfgcleanup.c (remove_forwarder_block): Always move
20827 debug bind stmts but reset them if they are not valid at the
20830 2019-04-05 Martin Liska <mliska@suse.cz>
20832 PR translation/89936
20833 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
20834 order to wrap keywords or arguments.
20835 * collect2.c (main): Likewise.
20836 (scan_prog_file): Likewise.
20837 (scan_libraries): Likewise.
20838 * common/config/riscv/riscv-common.c
20839 (riscv_subset_list::parsing_subset_version): Likewise.
20840 (riscv_subset_list::parse_std_ext): Likewise.
20841 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20843 * config/arm/arm.c (arm_option_override): Likewise.
20844 * config/cris/cris.c (cris_print_operand): Likewise.
20845 * config/darwin-c.c (darwin_pragma_options): Likewise.
20846 (darwin_pragma_unused): Likewise.
20847 (darwin_pragma_ms_struct): Likewise.
20848 * config/ft32/ft32.c (ft32_print_operand): Likewise.
20849 * config/i386/i386.c (print_reg): Likewise.
20850 (ix86_print_operand): Likewise.
20851 * config/i386/xm-djgpp.h: Likewise.
20852 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
20853 * config/m32c/m32c.c (m32c_option_override): Likewise.
20854 * config/msp430/msp430.c (msp430_option_override): Likewise.
20855 * config/nds32/nds32.c (nds32_option_override): Likewise.
20856 * config/nvptx/mkoffload.c (main): Likewise.
20857 * config/rx/rx.c (rx_print_operand): Likewise.
20858 (valid_psw_flag): Likewise.
20859 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
20860 (vms_pragma_nomember_alignment): Likewise.
20861 (vms_pragma_extern_model): Likewise.
20862 * lto-wrapper.c (compile_offload_image): Likewise.
20863 * omp-offload.c (oacc_parse_default_dims): Likewise.
20864 * symtab.c (symtab_node::verify_base): Likewise.
20865 * tlink.c (recompile_files): Likewise.
20866 (start_tweaking): Likewise.
20867 * tree-profile.c (parse_profile_filter): Likewise.
20869 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
20871 PR tree-optimization/89956
20872 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
20873 multiple negates of the same value.
20875 2019-04-04 Martin Sebor <msebor@redhat.com>
20877 PR middle-end/89957
20878 PR middle-end/89911
20879 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
20880 have the same precision since the function crashes otherwise.
20881 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
20882 has non-zero arguments.
20884 2019-04-04 Martin Sebor <msebor@redhat.com>
20886 PR middle-end/89934
20887 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
20888 out if the number of arguments is less than expected.
20890 2019-04-04 Jeff Law <law@redhat.com>
20892 PR rtl-optimization/89399
20893 * ree.c (combine_set_extension): Use single_set rather than
20894 digging into PATTERN for items on the candidate list.
20895 (combine_reaching_defs): Likewise.
20897 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
20899 PR rtl-optimization/46590
20900 * loop-invariant.c (find_defs): Move df_remove_problem and
20901 df_process_deferred_rescans to move_invariants.
20902 Move df_live_add_problem and df_live_set_all_dirty calls
20903 to move_invariants.
20904 (move_invariants): Likewise.
20905 (move_loop_invariants): Likewise, making the df_live calls
20906 conditional on -O. Remove the problem again if we added it
20909 2019-04-03 qing zhao <qing.zhao@oracle.com>
20911 PR tree-optimization/89730
20912 * ipa-inline.c (can_inline_edge_p): Delete the checking for
20913 -flive-patching=inline-only-static.
20914 (can_inline_edge_by_limits_p): Add the checking for
20915 -flive-patching=inline-only-static and grant always_inline
20916 even when -flive-patching=inline-only-static is specified.
20918 2019-04-03 Jeff Law <law@redhat.com>
20920 PR rtl-optimization/81025
20921 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
20923 2019-04-03 Richard Biener <rguenther@suse.de>
20925 PR tree-optimization/84101
20926 * tree-vect-stmts.c: Include explow.h for hard_function_value,
20927 regs.h for hard_regno_nregs.
20928 (cfun_returns): New helper.
20929 (vect_model_store_cost): When vectorizing a store to a decl
20930 we return and the function ABI returns in a multi-reg location
20931 account for the possible spilling that will happen.
20933 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
20935 * config/s390/s390.c (s390_legitimate_address_p): Reject long
20936 displacement addresses for vector mode operands.
20938 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
20940 * config/arc/arc.c (GMASK_LEN): Define.
20941 (arc_restore_callee_saves): Restore first blink when
20944 2019-04-03 Sudakshina Das <sudi.das@arm.com>
20946 * doc/extend.texi: Add deprecated comment on sign-return-address
20947 function attribute and add mbranch-protection.
20948 * doc/invoke.texi: Add bti to the options for mbranch-protection.
20950 2019-04-03 Richard Biener <rguenther@suse.de>
20953 * lto-wrapper.c (run_gcc): Avoid implicit rules making
20954 the all target phony.
20956 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
20960 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
20961 Return false for variable DImode shifts.
20962 (dimode_scalar_chain::compute_convert_gain): Do not handle
20963 register count operand in variable DImode shifts.
20964 (dimode_scalar_chain::make_vector_copies): Remove support to copy
20965 count argument of a variable shift instruction to a vector register.
20966 (dimode_scalar_chain::convert_reg): Remove support to convert
20967 count argument of a variable shift instruction.
20969 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20971 PR rtl-optimization/84206
20972 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
20973 iterating over loop headers.
20975 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20977 PR rtl-optimization/85876
20978 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
20979 beyond the original fence.
20981 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
20983 * config.gcc: Mark spu* targets as deprecated/obsolete.
20985 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20987 * config/s390/s390-builtin-types.def: New builtin function type
20988 definitions. Remove unused types.
20989 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
20990 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
20991 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
20992 overloaded builtins.
20993 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
20994 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
20995 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
20996 (vec_double, vec_signed, vec_unsigned): Define to use the new
20997 overloaded builtins.
20998 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
21001 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21003 * config/s390/s390-builtin-types.def: New builtin function type
21005 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
21006 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
21007 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
21008 (s390_vstrszh, s390_vstrszf): New low-level builtins.
21009 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
21010 constant definitions.
21011 * config/s390/vecintrin.h (vec_search_string_cc)
21012 (vec_search_string_until_zero_cc): New builtin name definitions.
21013 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
21015 ("vec_vstrs<mode>"): New insn definition.
21017 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21019 * config/s390/s390-builtin-types.def: Add new builtin function
21021 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
21022 New overloaded builtins.
21023 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
21025 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
21026 (UNSPEC_VEC_SLDBYTE): ... this.
21027 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
21028 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
21030 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
21031 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
21032 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
21034 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21036 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
21037 New insn definition.
21038 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
21039 * config/s390/vector.md (V_HW_HSD): ... here.
21041 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21043 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
21044 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
21045 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
21046 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
21047 New insn definitions.
21049 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21051 * config/s390/s390-builtin-types.def: Add new builtin function type.
21052 * config/s390/s390-builtins.def: Add overloaded builtin
21053 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
21054 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
21055 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
21056 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
21057 ("eltswap<mode>"): New expander.
21058 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
21061 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21063 * config/s390/s390-builtin-types.def: Add new builtin function types.
21064 * config/s390/s390-builtins.def: Add overloaded builtin
21065 s390_vec_revb. Add low-level builtins for vlbr and vstbr
21067 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
21068 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
21069 ("bswap<mode>"): New expander.
21070 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
21072 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21074 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
21075 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
21076 vector builtin version number in __VEC__.
21078 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21080 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
21082 (SFSI): New mode attribute.
21083 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
21084 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
21086 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
21087 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
21088 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
21089 ("floatsi<mode>2"): Add wcefb instruction.
21091 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21093 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
21094 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
21096 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
21097 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
21098 support 32 bit fp-int conversions. Rename to ...
21099 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
21100 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
21101 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
21102 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
21105 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21107 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
21108 if-then-else constructs if we can use the select instruction.
21109 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
21111 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21113 * config/s390/s390.md ("*popcountdi_arch13_cc")
21114 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
21116 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
21117 Append _z196 to make it ...
21118 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
21119 ("popcounthi2_z196"): ... this.
21120 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
21121 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
21123 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21125 * config/s390/s390.c (s390_canonicalize_comparison): Convert
21126 certain compares for arch13 in order to make use of the condition
21127 code result produced by the new instructions.
21128 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
21129 nxrk, and nxgrk instruction patterns.
21130 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
21131 (inv_no): Add new code iterator together with some attributes.
21132 ("*andc_split_<mode>"): Disable splitter for arch13.
21133 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
21134 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
21135 ("*<ANDOR:bitops_name>c<GPR:mode>")
21136 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
21137 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
21138 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
21139 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
21141 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
21143 * common/config/s390/s390-common.c (processor_flags_table): New
21145 * config.gcc: Support arch13 with the --with-arch= configure flag.
21146 * config/s390/driver-native.c (s390_host_detect_local_cpu):
21147 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
21148 * config/s390/s390.c (s390_get_sched_attrmask)
21149 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
21150 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
21151 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
21152 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
21153 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
21155 * config/s390/s390.opt: Support arch13 as processor type in
21156 command line options.
21158 2019-04-02 Martin Liska <mliska@suse.cz>
21160 PR translation/89912
21161 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
21162 Fix param description of graphite-max-arrays-per-scop.
21164 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
21166 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
21167 (ASAN_CC1_SPEC): Use it in 64-bit mode.
21168 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
21170 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21172 PR rtl-optimization/85412
21173 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
21174 sel_sched_region_1, not after.
21176 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21178 PR rtl-optimization/86928
21179 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
21180 compute_live if necessary.
21181 (sel_redirect_edge_and_branch): Likewise.
21183 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
21185 PR rtl-optimization/89865
21186 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
21187 register if it is a part of small class.
21189 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21191 PR rtl-optimization/87273
21192 * sel-sched-ir.c (merge_fences): Remove assert.
21194 2019-04-01 Richard Biener <rguenther@suse.de>
21196 PR tree-optimization/46590
21197 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
21198 (dom_walker::m_reachability): Add in place of...
21199 (dom_walker::m_skip_unreachable_blocks): ...this.
21200 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
21201 Move complex initialization ...
21202 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
21203 lazily and initialize edge flags on each invocation.
21204 (dom_walker::bb_reachable): Use m_reachability.
21206 2019-04-01 Martin Liska <mliska@suse.cz>
21209 * opt-suggestions.c (option_proposer::build_option_suggestions):
21210 Add variant without any argument in order to provide better
21213 2019-04-01 Richard Biener <rguenther@suse.de>
21216 * gimple.c: Include langhooks.h.
21217 (gimple_get_alias_set): Treat enumeral types as the underlying
21220 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
21221 Eric Botcazou <ebotcazou@adacore.com>
21223 PR rtl-optimization/89862
21224 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
21225 that operates on the full registers for WORD_REGISTER_OPERATIONS
21228 2019-03-29 Jim Wilson <jimw@sifive.com>
21230 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
21231 Clear MASK_RVC and then set if C subset supported.
21233 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21236 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
21237 non-addressable complit into its initializer if it is volatile.
21239 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
21241 * opts-common.c (integral_argument): Set errno properly in one case.
21243 2019-03-29 Martin Liska <mliska@suse.cz>
21245 * doc/invoke.texi: Remove -Wchkp from documentation.
21247 2019-03-29 Martin Liska <mliska@suse.cz>
21249 * dbgcnt.c (print_limit_reach): New function.
21252 2019-03-29 Martin Liska <mliska@suse.cz>
21254 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
21255 (dbg_cnt_process_opt): Parse first tokens aas
21256 dbg_cnt_process_single_pair is also using strtok.
21258 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21260 PR rtl-optimization/87485
21261 * function.c (expand_function_end): Move stack_protect_epilogue
21262 before loading of return value into hard register(s).
21264 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21266 PR middle-end/89621
21267 * tree-inline.h (struct copy_body_data): Add
21268 dont_remap_vla_if_no_change flag.
21269 * tree-inline.c (remap_type_3, remap_type_2): New functions.
21270 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
21271 and remap_type_2 returns false.
21272 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
21273 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
21274 only from where it is copied to nested contexts.
21276 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21279 * config/i386/i386.md (RMW operation with LEA peephole):
21280 Use LEAMODE mode attribute instead of SWI mode iterator for
21283 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21286 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
21287 Also process XEXP (src, 0) of a shift insn.
21289 2019-03-28 David Malcolm <dmalcolm@redhat.com>
21291 PR middle-end/89725
21292 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
21293 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
21295 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21297 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
21299 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
21300 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
21301 immediately after first one with df_analyze in between, but rather
21302 process all bbs, queueing ones that need second pass in a worklist,
21303 df_analyze, process queued debug insn changes and if second pass is
21304 needed, process bbs from worklist, df_analyze, process queued debug
21307 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
21308 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
21309 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
21311 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
21314 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
21317 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
21320 * config/i386/i386.c (ix86_function_value_1): Call the newly added
21321 function for 32-bit MS_ABI.
21322 (function_value_ms_32): New function.
21324 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
21326 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
21327 (movdi): Call gen_movdi_symbol_save_scc.
21328 (gen_movdi_symbol_save_scc): New insn and split.
21330 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
21332 PR rtl-optimization/89313
21333 * function.c (matching_constraint_num): New static function.
21334 (match_asm_constraints_1): Use it. Fixup white space and comment.
21335 Don't replace inputs with non-matching constraints which conflict
21336 with early clobber outputs.
21338 2019-03-27 Jeff Law <law@redhat.com>
21340 PR rtl-optimization/87761
21341 PR rtl-optimization/89826
21342 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
21344 (pass_cprop_hardreg::execute): Call df_analyze after adding the
21345 note problem to get REG_DEAD/REG_UNUSED notes updated.
21347 2019-03-27 Richard Biener <rguenther@suse.de>
21349 PR tree-optimization/89463
21350 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
21351 queue edges to remove.
21352 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
21353 dead stmts. Delay edge removal until PHIs are removed to
21354 make debug-stmt creation not confused by seemingly degenerate
21357 2019-03-27 Alan Modra <amodra@gmail.com>
21359 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
21361 * config/rs6000/darwin.h: Likewise.
21362 * config/rs6000/rs6000.c: Likewise.
21364 2019-03-27 Alan Modra <amodra@gmail.com>
21366 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
21367 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
21369 2019-03-26 Andrew Waterman <andrew@sifive.com>
21370 Jim Wilson <jimw@sifive.com>
21372 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
21373 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
21374 (generic_idivdi, generic_fmul_single, generic_fmul_double)
21375 (generic_fdiv, generic_fsqrt): Add check for generic tune.
21376 (generic_alu): Add auipc to type list.
21377 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
21378 (riscv_microarchitecture): Declare.
21379 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
21380 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
21382 (riscv_microarchitecture): New.
21383 (sifive_7_tune_info): New.
21384 (riscv_cpu_info_table): Add microarchitecture value for rocket and
21385 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
21387 (riscv_store_data_bypass_p): New.
21388 (riscv_option_override): Set riscv_microarchitecture from
21389 cpu->microarchitecture.
21390 * config/riscv/riscv.md: Include sifive-7.md.
21393 (auipc<mode>): Change type to auipc.
21394 (restore_stack_nonlocal): New.
21395 * config/riscv/sifive-7.md: New.
21396 * doc/invoke.texi (RISC-V Options): Update mtune docs.
21398 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
21401 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
21402 Also process XEXP (src, 0) of a shift insn.
21404 2019-03-26 Richard Biener <rguenther@suse.de>
21406 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
21407 (copy_debug_stmt): Likewise.
21408 (expand_call_inline): Likewise.
21409 (copy_bb): Avoid redundant lookup & set of gimple_block.
21410 * gimple-low.c (lower_gimple_return): Likewise.
21411 (lower_builtin_setjmp): Likewise.
21413 2019-03-26 Jakub Jelinek <jakub@redhat.com>
21415 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
21416 is constant 0, turn into static const data member initialized to false.
21417 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
21418 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
21420 2019-03-26 Jason Merrill <jason@redhat.com>
21421 Jakub Jelinek <jakub@redhat.com>
21423 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
21425 (mem_alloc_description::release_object_overhead): Fix comment typos.
21426 * hash-table.h (hash_table::~hash_table): Call
21427 release_instance_overhead only if m_entries is non-NULL, otherwise
21428 call unregister_descriptor.
21430 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
21432 PR tree-optimization/81740
21433 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
21434 In case of outer loop vectorization, check for backward dependence
21435 at the inner loop if outer loop dependence is reversed.
21437 2019-03-26 Alan Modra <amodra@gmail.com>
21439 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
21440 rs6000_vector_mem init. Correct wI and wJ comment.
21442 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
21444 PR rtl-optimization/88347
21445 PR rtl-optimization/88423
21446 * sched-deps.c (sched_analyze_insn): Take into account that for
21447 tablejumps the barrier appears after a label and a jump_table_data.
21449 2019-03-25 Martin Sebor <msebor@redhat.com>
21452 * c-common.c (check_user_alignment): Rename local. Correct maximum
21453 alignment in diagnostic. Avoid assuming argument fits in SHWI,
21454 convert it to UHWI when it fits.
21456 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
21459 * dwarf2out.c (premark_used_variables): New function.
21460 (prune_unused_types_walk): Do not mark not premarked external
21462 (prune_unused_types): Call premark_used_variables.
21464 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
21466 PR rtl-optimization/89676
21467 * lra-constraints.c (curr_insn_transform): Do match reload for
21468 early clobbers when the match was successful only for different
21471 2019-03-25 Martin Sebor <msebor@redhat.com>
21473 * doc/extend.texi (Common Type Attributes): Document vector_size.
21474 (Common Variable Attributes): Mention size constraint. Correct
21476 (Vector Extensions): Use @dfn when defining bas type. Clarify
21477 base type and size constraints.
21479 2019-03-25 Richard Biener <rguenther@suse.de>
21481 PR tree-optimization/89789
21482 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
21483 changes from non-undefined back to undefined.
21485 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
21487 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
21488 heap string and a gc string, but since this variable is unknown to
21489 ggc the gc string might get reused and corrupted. Fixed by always
21490 using a heap string.
21492 2019-03-25 Richard Biener <rguenther@suse.de>
21494 PR tree-optimization/89779
21495 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
21496 to remove IV defs, delay actual removal.
21497 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
21498 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
21499 very end, properly also reset loop control IV information.
21501 2019-03-25 Richard Biener <rguenther@suse.de>
21503 PR tree-optimization/89802
21504 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
21505 move EH data to folded stmt.
21507 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21509 * config/s390/s390-builtin-types.def: Remove few unused types and
21510 fix sort order for others.
21512 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21514 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
21515 expected and found types with -mdebug during builtin matching.
21517 2019-03-25 Richard Biener <rguenther@suse.de>
21519 PR middle-end/89790
21520 * fold-const.c (operand_equal_p): Revert last change with
21523 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
21525 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
21526 notes for the result of the __tls_get_addr calls.
21527 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
21529 2019-03-24 Jeff Law <law@redhat.com>
21531 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
21533 PR rtl-optimization/87761
21534 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
21535 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
21537 (pass_cprop_hardreg::execute): Add df note problem and defer insn
21538 rescans. Reprocess blocks as needed, calling df_analyze before
21539 reprocessing. Always call df_analyze before fixing up debug bind
21542 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
21544 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
21547 2019-03-22 Andrew Pinski <apinski@marvell.com>
21549 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
21550 attrribute for uxtw.
21552 2019-03-26 Jeff Law <law@redhat.com>
21554 PR rtl-optimization/87761
21555 * config/mips/mips-protos.h (mips_split_move): Add new argument.
21556 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
21557 (mips_split_move): Accept new INSN argument. Try to forward SRC
21558 into the next instruction.
21559 (mips_split_move_insn): Pass INSN through to mips_split_move.
21561 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
21563 PR rtl-optimization/89676
21564 * lra-constraints.c (curr_insn_transform): Do match reload for
21565 early clobbers even if the match was successful.
21567 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21570 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
21572 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
21574 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
21576 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21578 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
21579 <avx512>_fmsub_<mode>_mask3<round_name>,
21580 <avx512>_fnmadd_<mode>_mask3<round_name>,
21581 <avx512>_fnmsub_<mode>_mask3<round_name>,
21582 avx512f_vmfmadd_<mode>_mask3<round_name>,
21583 avx512f_vmfmsub_<mode>_mask3<round_name>,
21584 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
21585 instead of register_operand and %v instead of v for match_operand 1.
21586 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
21587 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
21588 <round_nimm_predicate> instead of register_operand and %v instead of v
21589 for match_operand 1.
21591 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
21592 <avx512>_fmadd_<mode>_mask3<round_name>,
21593 <avx512>_fmsub_<mode>_mask<round_name>,
21594 <avx512>_fmsub_<mode>_mask3<round_name>,
21595 <avx512>_fnmadd_<mode>_mask<round_name>,
21596 <avx512>_fnmadd_<mode>_mask3<round_name>,
21597 <avx512>_fnmsub_<mode>_mask<round_name>,
21598 <avx512>_fnmsub_<mode>_mask3<round_name>,
21599 <avx512>_fmaddsub_<mode>_mask<round_name>,
21600 <avx512>_fmaddsub_<mode>_mask3<round_name>,
21601 <avx512>_fmsubadd_<mode>_mask<round_name>,
21602 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
21603 <round_nimm_predicate> instead of nonimmediate_operand.
21604 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
21605 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
21606 Use register_operand instead of <round_nimm_predicate> for the
21607 operand that needs to match output.
21608 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
21609 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
21610 Likewise. Formatting fixes.
21613 * config/i386/i386.c (enum ix86_builtins): Remove
21614 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
21615 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
21616 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
21617 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
21618 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
21619 __builtin_ia32_vfmsubss3_mask3): New builtins.
21620 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
21621 avx512f_vmfmadd_<mode>_mask3<round_name>,
21622 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
21623 *avx512f_vmfmsub_<mode>_mask<round_name>,
21624 avx512f_vmfmsub_<mode>_mask3<round_name>,
21625 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
21626 *avx512f_vmfnmadd_<mode>_mask<round_name>,
21627 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
21628 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
21629 *avx512f_vmfnmsub_<mode>_mask<round_name>,
21630 avx512f_vmfnmsub_<mode>_mask3<round_name>,
21631 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
21632 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
21633 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
21634 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
21635 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
21636 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
21637 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
21638 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
21639 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
21640 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
21641 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
21642 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
21643 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
21644 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
21645 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
21646 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
21647 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
21648 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
21649 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
21650 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
21651 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
21652 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
21654 2019-03-21 Martin Sebor <msebor@redhat.com>
21656 PR tree-optimization/89350
21657 * builtins.c (compute_objsize): Also ignore offsets whose upper
21659 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
21660 (builtin_memref::builtin_memref): Initialize new member.
21661 Allow EXPR to be null.
21662 (builtin_memref::extend_offset_range): Replace local with a member.
21663 Avoid assuming pointer offsets are unsigned.
21664 (builtin_memref::set_base_and_offset): Determine base object
21665 before computing offset range.
21666 (builtin_access::builtin_access): Handle memset.
21667 (builtin_access::generic_overlap): Replace local with a member.
21668 (builtin_access::strcat_overlap): Same.
21669 (builtin_access::overlap): Same.
21670 (maybe_diag_overlap): Same.
21671 (maybe_diag_access_bounds): Same.
21672 (wrestrict_dom_walker::check_call): Handle memset.
21673 (check_bounds_or_overlap): Same.
21675 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
21676 Jakub Jelinek <jakub@redhat.com>
21679 * tree.c (fld_type_variant, fld_incomplete_type_of,
21680 fld_process_array_type): Call fld->pset.add and don't call
21681 add_tree_to_fld_list if it returns true.
21682 (free_lang_data_in_type): Similarly with self-recursive call. Purge
21683 non-marked types from TYPE_NEXT_VARIANT list.
21684 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
21686 2019-03-21 Jakub Jelinek <jakub@redhat.com>
21688 * hash-table.h (hash_table): Add Lazy template parameter defaulted
21689 to false, if true, don't alloc_entries during construction, but defer
21690 it to the first method that needs m_entries allocated.
21691 (hash_table::hash_table, hash_table::~hash_table,
21692 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
21693 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
21694 hash_table::clear_slot, hash_table::traverse_noresize,
21695 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
21696 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
21698 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
21699 NO_INSERT instead of find_with_hash.
21700 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
21701 hash_set::m_table): Add Lazy to template params of hash_table.
21702 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
21703 * attribs.c (test_attribute_exclusions): Likewise.
21704 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
21705 hash_set. Add tests for hash_set with Lazy = true.
21707 2019-03-21 Richard Biener <rguenther@suse.de>
21709 PR tree-optimization/89779
21710 * tree.c (tree_nop_conversion): Consolidate and fix defensive
21711 checks with respect to released SSA names now having error_mark_node
21713 * fold-const.c (operand_equal_p): Likewise.
21715 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
21718 * config/s390/s390.c (global_not_special_regno_p): Move to make it
21720 (s390_optimize_register_info): Use global_not_special_regno_p to
21721 check for global regs.
21723 2019-03-20 Jakub Jelinek <jakub@redhat.com>
21726 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
21727 update this_alternative nor this_alternative_set.
21729 2019-03-19 Jim Wilson <jimw@sifive.com>
21732 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
21733 align, size, offset. Use them to handle a BLKmode reference. Update
21735 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
21737 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21739 PR rtl-optimization/89768
21740 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
21741 instead of GEN_INT.
21742 (unroll_loop_runtime_iterations): Likewise.
21744 2019-03-19 Martin Sebor <msebor@redhat.com>
21746 PR tree-optimization/89644
21747 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
21748 rather than endptr as an indicator of nul-termination.
21750 PR tree-optimization/89644
21751 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
21752 arrays in determining sequence sizes in strncpy and stpncpy.
21754 2019-03-19 Martin Liska <mliska@suse.cz>
21756 PR middle-end/89737
21757 * predict.c (combine_predictions_for_bb): Empty likely_edges and
21758 unlikely_edges if there's an edge that belongs to both these sets.
21760 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
21763 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
21764 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
21765 go via a stack temporary.
21767 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21770 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
21771 instead of gen_rtx_SUBREG.
21772 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
21774 2019-03-19 Richard Biener <rguenther@suse.de>
21777 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
21779 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
21783 * tree.c (free_lang_data_in_decl): Do not free context of C++
21786 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21789 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
21790 subs for the first alternative except when operands[3] is 1.
21793 * gimplify.c (gimplify_asm_expr): For output argument with
21794 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
21797 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
21799 PR rtl-optimization/89753
21800 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
21801 explicit unrolling factor even more robust.
21803 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21806 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
21807 compensation use x2 += 1 instead of x2 -= -1 and when honoring
21808 signed zeros, do another copysign after the compensation.
21810 2019-03-18 Martin Sebor <msebor@redhat.com>
21812 PR tree-optimization/89720
21813 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
21814 more conservatively, the same as anti-range.
21816 2019-03-18 Richard Biener <rguenther@suse.de>
21818 PR middle-end/88945
21819 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
21820 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
21821 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
21822 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
21824 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
21826 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
21827 Extend queue to 1024 entries.
21828 Add "consumed" field.
21829 (gomp_print_output): Remove print_index parameter.
21830 Add final parameter.
21831 Change limit to unsigned.
21832 Use consumed field to implement circular buffer.
21833 Detect interrupted print in final pass.
21834 Flush output at the end.
21835 (run): Update gomp_print_output usage.
21836 (main): Initialize kernargs->output_data.consumed.
21838 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
21840 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
21841 calculation of the minimum number of scalar iterations for
21842 fully-predicated loops.
21844 2019-03-18 Martin Jambor <mjambor@suse.cz>
21846 PR tree-optimization/89546
21847 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
21848 any propagation to its children took place.
21850 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
21853 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
21854 parameter, and make use of it.
21855 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
21857 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21859 * config/arc/arc.opt (mcode-density-frame): Get the inital value
21860 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
21861 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21862 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21863 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
21864 match what the ops is doing.
21865 (push_multi_fp_blink): Likewise.
21866 * config/arc/arc.c (arc_override_options): Enable enter/leave when
21867 compiling for size and elf target.
21868 (arc_save_callee_enter): Adjust note to match what enter/leave
21871 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21873 * config/arc/arc.md (tst_movb): Fix constraint.
21875 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21877 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
21879 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21881 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
21882 * config/arc/arc.c (arc_conditional_register_usage): Remove all
21883 reg_alloc_order references.
21884 (size_alloc_order): Define.
21885 (arc_adjust_reg_alloc_order): New function.
21886 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
21888 (ADJUST_REG_ALLOC_ORDER): Define.
21889 (HONOR_REG_ALLOC_ORDER): Likewise.
21891 2019-03-18 Richard Biener <rguenther@suse.de>
21894 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
21895 loads and stores a bit more.
21897 2019-03-18 Richard Biener <rguenther@suse.de>
21900 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
21901 load pessimization to stores as well.
21903 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
21905 PR middle-end/86979
21906 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
21907 successor, use NULL as its av set.
21909 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
21911 PR rtl-optimization/89721
21912 * lra-constraints (invariant_p): Return false if side_effects_p holds.
21914 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
21917 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21918 When handling vec_extract, use modular arithmetic to allow
21919 constant selectors greater than vector length.
21920 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
21921 V1TImode vectors to have constant selector values greater than 0.
21922 Use modular arithmetic to compute vector index.
21923 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
21924 index for in-memory vectors. Correct code generation for
21925 in-register vectors.
21926 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
21929 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
21933 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
21936 2019-03-15 Jakub Jelinek <jakub@redhat.com>
21939 * tree.c (inchash::add_expr): Strip any location wrappers.
21940 * fold-const.c (operand_equal_p): Move stripping of location wrapper
21941 after hash verification.
21944 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
21945 SIGN_EXTEND and ZERO_EXTEND.
21947 2019-03-14 Jason Merrill <jason@redhat.com>
21948 Jakub Jelinek <jakub@redhat.com>
21950 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
21951 than if is_empty (*slot).
21952 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
21953 existing elt and for elt removal.
21954 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
21955 of already removed elt.
21957 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
21960 * config/i386/i386.c (remove_partial_avx_dependency): Handle
21961 REG_EH_REGION note.
21963 2019-03-14 Martin Liska <mliska@suse.cz>
21966 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
21968 2019-03-14 Richard Biener <rguenther@suse.de>
21971 * config/i386/i386.c (make_resolver_func): Properly set
21972 DECL_CONTEXT on the RESULT_DECL.
21973 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
21975 2019-03-14 Richard Biener <rguenther@suse.de>
21977 * gimple-pretty-print.c: Include cfgloop.h.
21978 (dump_gimple_phi): Adjust.
21979 (dump_gimple_bb_header): Dump loop header for GIMPLE.
21980 (pp_cfg_jump): Adjust.
21981 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
21982 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
21983 (lower_phi_internal_fn): Remove.
21984 (verify_gimple_call): Remove IFN_PHI special-casing.
21985 (dump_function_to_file): Dump IL state.
21986 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
21987 done to deal with PHI nodes being present in non-SSA state.
21989 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21992 * multiple_target.c (create_dispatcher_calls): Change
21993 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
21994 In the node->iterate_referring loop, push *ref rather than ref, call
21995 ref->remove_reference () and always pass 0 to iterate_referring.
21997 PR rtl-optimization/89679
21998 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
21999 would contain a paradoxical SUBREG.
22001 2019-03-14 Richard Biener <rguenther@suse.de>
22003 PR tree-optimization/89710
22004 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
22007 2019-03-14 Martin Liska <mliska@suse.cz>
22009 * coverage.c (coverage_begin_function): Stream also
22011 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
22012 documentation about function declaration location.
22013 * gcov-dump.c (tag_function): Print whole range
22014 of function declaration.
22015 * gcov.c (struct function_info): Add end_column field.
22016 (function_info::function_info): Initialize it.
22017 (output_json_intermediate_file): Output {start,end}_column
22019 (read_graph_file): Read end_column.
22021 2019-03-14 Richard Biener <rguenther@suse.de>
22023 PR middle-end/89698
22024 * fold-const.c (operand_equal_p): For INDIRECT_REF check
22025 that the access types are similar.
22027 2019-03-14 Jakub Jelinek <jakub@redhat.com>
22029 PR tree-optimization/89703
22030 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
22031 aren't compatible also with builtin_decl_explicit. Check pure
22032 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
22033 and BUILT_IN_STPNCPY{,_CHK}.
22035 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
22038 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
22039 addr32 prefix to VSIB address for X32.
22040 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
22042 (*avx512pf_gatherpf<mode>df_mask): Likewise.
22043 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
22044 (*avx512pf_scatterpf<mode>df_mask): Likewise.
22045 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
22046 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
22047 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
22048 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
22049 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
22050 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
22051 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
22052 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
22053 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
22054 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
22055 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
22056 (*avx512f_scatterdi<mode>): Likewise.
22058 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
22061 * lra-constraints.c (inherit_in_ebb): Update
22062 potential_reload_hard_regs along with live_hard_regs.
22064 2019-03-13 Jakub Jelinek <jakub@redhat.com>
22067 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
22069 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
22071 2019-03-13 Martin Sebor <msebor@redhat.com>
22073 PR tree-optimization/89662
22074 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
22077 2019-03-13 Richard Biener <rguenther@suse.de>
22079 PR middle-end/89677
22080 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
22081 throw FP expressions at tree-affine.
22083 2019-03-14 Richard Biener <rguenther@suse.de>
22085 * tree-pretty-print.c (dump_generic_node): For -gimple properly
22086 dump negative integer constants using _Literal (type) -num.
22088 2019-03-13 Jakub Jelinek <jakub@redhat.com>
22090 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
22091 nonlocal_value member.
22093 PR middle-end/88588
22094 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
22095 (ipa_simd_modify_function_body): Handle PHIs.
22097 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22099 * config/s390/s390.c (s390_option_override_internal): Use more
22100 aggressive inlining parameters.
22102 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22104 * config/s390/3906.md: New file.
22105 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
22106 (LONGRUNNING_THRESHOLD): Remove.
22107 (MAX_SCHED_MIX_SCORE): Decrease.
22108 (MAX_SCHED_MIX_DISTANCE): Decrease.
22109 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
22110 (struct s390_sched_state): New struct to hold scheduling state.
22111 (S390_SCHED_STATE_NORMAL): Remove.
22112 (S390_SCHED_STATE_CRACKED): Remove.
22113 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
22114 (s390_get_sched_attrmask): Use new attribute.
22115 (s390_get_unit_mask): Use new units.
22116 (s390_is_fpd): New function.
22117 (s390_is_fxd): New function.
22118 (s390_is_longrunning): New function.
22119 (s390_sched_score): Use new functions.
22120 (s390_sched_reorder): Likewise.
22121 (s390_sched_variable_issue): Rework and use new functions.
22122 (s390_sched_init): Use new functions.
22123 * config/s390/s390.h (s390_tune_attr): Add z14.
22124 * config/s390/s390.md: Add z14.
22126 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
22128 * config/s390/2964.md: Update pipeline description.
22129 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
22130 (LONGRUNNING_THRESHOLD): Remove.
22131 (LATENCY_FACTOR): Remove.
22132 (s390_get_unit_mask): Add unit.
22133 (s390_sched_score): Use fxd/fpd.
22134 (s390_sched_variable_issue): Use fxd/fpd.
22136 2019-03-12 Martin Liska <mliska@suse.cz>
22138 * config/i386/i386.c: Reword an error message.
22140 2019-03-12 Martin Jambor <mjambor@suse.cz>
22142 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
22143 terminate with newline.
22145 2019-03-12 Jakub Jelinek <jakub@redhat.com>
22148 * config/s390/s390.md (tabort): Use %wd instead of
22149 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
22150 letters and periods.
22151 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
22152 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
22155 PR middle-end/89663
22156 * builtins.c (expand_builtin_int_roundingfn,
22157 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
22158 gcc_unreachable if validate_arglist fails.
22160 2019-03-12 Richard Biener <rguenther@suse.de>
22162 PR tree-optimization/89664
22163 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
22164 free the occurance tree after the early out.
22166 2019-03-11 Jakub Jelinek <jakub@redhat.com>
22168 PR middle-end/89655
22170 * vr-values.c (vr_values::update_value_range): If
22171 old_vr->varying_p (), don't update it, make new_vr also VARYING
22174 2019-03-11 Martin Liska <mliska@suse.cz>
22176 * config/aarch64/aarch64.c (aarch64_override_options_internal):
22177 Fix double string quoting.
22179 2019-03-11 Martin Liska <mliska@suse.cz>
22181 * collect-utils.c (collect_wait): Wrap apostrophes
22182 in gcc internal format with %'.
22183 * collect2.c (main): Likewise.
22184 (scan_prog_file): Likewise.
22185 (scan_libraries): Likewise.
22186 * config/i386/i386.c (ix86_expand_call): Likewise.
22187 (ix86_handle_interrupt_attribute): Likewise.
22188 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
22189 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
22190 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
22191 * lto-wrapper.c (find_crtoffloadtable): Likewise.
22192 * symtab.c (symtab_node::verify_base): Likewise.
22193 * tree-cfg.c (verify_gimple_label): Likewise.
22194 * tree.c (verify_type_variant): Likewise.
22196 2019-03-11 Martin Liska <mliska@suse.cz>
22198 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
22199 in a string format message and fix GNU coding style.
22200 (expand_builtin_set_thread_pointer): Likewise.
22201 * common/config/aarch64/aarch64-common.c
22202 (aarch64_rewrite_selected_cpu): Likewise.
22203 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
22204 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
22205 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
22206 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
22207 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
22208 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
22209 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
22210 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
22211 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
22212 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
22214 * common/config/riscv/riscv-common.c
22215 (riscv_subset_list::parsing_subset_version): Likewise.
22216 (riscv_subset_list::parse_std_ext): Likewise.
22217 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22218 (riscv_subset_list::parse): Likewise.
22219 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
22220 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
22221 (aarch64_override_options_internal): Likewise.
22222 (aarch64_validate_mcpu): Likewise.
22223 (aarch64_validate_march): Likewise.
22224 (aarch64_validate_mtune): Likewise.
22225 (aarch64_override_options): Likewise.
22226 * config/alpha/alpha.c (alpha_option_override): Likewise.
22227 * config/arc/arc.c (arc_init): Likewise.
22228 (parse_mrgf_banked_regs_option): Likewise.
22229 (arc_override_options): Likewise.
22230 (arc_expand_builtin_aligned): Likewise.
22231 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
22232 (arm_expand_builtin): Likewise.
22233 * config/arm/arm.c (arm_option_check_internal): Likewise.
22234 (arm_configure_build_target): Likewise.
22235 (arm_option_override): Likewise.
22236 (arm_options_perform_arch_sanity_checks): Likewise.
22237 (arm_handle_cmse_nonsecure_entry): Likewise.
22238 (arm_handle_cmse_nonsecure_call): Likewise.
22239 (arm_tls_referenced_p): Likewise.
22240 (thumb1_expand_prologue): Likewise.
22241 * config/avr/avr.c (avr_option_override): Likewise.
22242 * config/bfin/bfin.c (bfin_option_override): Likewise.
22243 * config/c6x/c6x.c (c6x_option_override): Likewise.
22244 * config/cr16/cr16.c (cr16_override_options): Likewise.
22245 * config/cris/cris.c (cris_option_override): Likewise.
22246 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
22247 * config/darwin-c.c (macosx_version_as_macro): Likewise.
22248 * config/darwin.c (darwin_override_options): Likewise.
22249 * config/frv/frv.c (frv_expand_builtin): Likewise.
22250 * config/h8300/h8300.c (h8300_option_override): Likewise.
22251 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
22252 (ix86_option_override_internal): Likewise.
22253 (warn_once_call_ms2sysv_xlogues): Likewise.
22254 (ix86_expand_prologue): Likewise.
22255 (split_stack_prologue_scratch_regno): Likewise.
22256 (ix86_warn_parameter_passing_abi): Likewise.
22257 * config/ia64/ia64.c (fix_range): Likewise.
22258 * config/m68k/m68k.c (m68k_option_override): Likewise.
22259 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
22260 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
22261 (mips_set_compression_mode): Likewise.
22262 * config/mmix/mmix.c (mmix_option_override): Likewise.
22263 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
22264 * config/msp430/msp430.c (msp430_option_override): Likewise.
22265 * config/nds32/nds32.c (nds32_option_override): Likewise.
22266 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
22267 (nios2_option_override): Likewise.
22268 (nios2_expand_custom_builtin): Likewise.
22269 * config/nvptx/mkoffload.c (main): Likewise.
22270 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
22271 * config/pa/pa.c (fix_range): Likewise.
22272 (pa_option_override): Likewise.
22273 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
22274 (riscv_option_override): Likewise.
22275 * config/rl78/rl78.c (rl78_option_override): Likewise.
22276 * config/rs6000/aix61.h: Likewise.
22277 * config/rs6000/aix71.h: Likewise.
22278 * config/rs6000/aix72.h: Likewise.
22279 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
22280 * config/rs6000/freebsd64.h: Likewise.
22281 * config/rs6000/linux64.h: Likewise.
22282 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
22283 (rs6000_expand_zeroop_builtin): Likewise.
22284 (rs6000_expand_mtfsb_builtin): Likewise.
22285 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
22286 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
22287 (rs6000_invalid_builtin): Likewise.
22288 (rs6000_expand_split_stack_prologue): Likewise.
22289 * config/rs6000/rtems.h: Likewise.
22290 * config/rx/rx.c (valid_psw_flag): Likewise.
22291 (rx_expand_builtin): Likewise.
22292 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
22293 * config/s390/s390.c (s390_expand_builtin): Likewise.
22294 (s390_function_profiler): Likewise.
22295 (s390_option_override_internal): Likewise.
22296 (s390_option_override): Likewise.
22297 * config/sh/sh.c (sh_option_override): Likewise.
22298 (sh_builtin_saveregs): Likewise.
22299 (sh_fix_range): Likewise.
22300 * config/sh/vxworks.h: Likewise.
22301 * config/sparc/sparc.c (sparc_option_override): Likewise.
22302 * config/spu/spu.c (spu_option_override): Likewise.
22303 (fix_range): Likewise.
22304 * config/visium/visium.c (visium_option_override): Likewise.
22305 (visium_handle_interrupt_attr): Likewise.
22306 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
22307 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
22308 (dbg_cnt_process_opt): Likewise.
22309 * dwarf2out.c (output_dwarf_version): Likewise.
22310 * except.c (expand_eh_return): Likewise.
22311 * gcc.c (defined): Likewise.
22312 (driver_handle_option): Likewise.
22313 (process_command): Likewise.
22314 (compare_files): Likewise.
22315 (driver::prepare_infiles): Likewise.
22316 (driver::do_spec_on_infiles): Likewise.
22317 (driver::maybe_run_linker): Likewise.
22318 * omp-offload.c (oacc_parse_default_dims): Likewise.
22319 * opts-global.c (handle_common_deferred_options): Likewise.
22320 * opts.c (parse_sanitizer_options): Likewise.
22321 (common_handle_option): Likewise.
22322 (enable_warning_as_error): Likewise.
22323 * passes.c (enable_disable_pass): Likewise.
22324 * plugin.c (parse_plugin_arg_opt): Likewise.
22325 (default_plugin_dir_name): Likewise.
22326 * targhooks.c (default_expand_builtin_saveregs): Likewise.
22327 (default_pch_valid_p): Likewise.
22328 * toplev.c (init_asm_output): Likewise.
22329 (process_options): Likewise.
22330 (toplev::run_self_tests): Likewise.
22331 * tree-cfg.c (verify_gimple_call): Likewise.
22332 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
22333 (tree_inlinable_function_p): Likewise.
22334 * var-tracking.c (vt_find_locations): Likewise.
22336 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
22338 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
22339 only on the else branch.
22341 2019-03-11 Martin Liska <mliska@suse.cz>
22343 * gcov.c (output_intermediate_json_line): Print function
22345 (output_json_intermediate_file): Add new argument.
22346 * doc/gcov.texi: Document the change.
22348 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
22350 PR rtl-optimization/89588
22351 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
22352 explicit unrolling factor more robust.
22354 2019-03-11 Richard Biener <rguenther@suse.de>
22356 PR tree-optimization/89649
22357 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
22358 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
22359 on the prolog and epilog loops.
22360 (vect_loop_versioning): Return copy of loop.
22361 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
22362 on the non-vectorized version of the loop.
22364 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
22367 * config/i386/sse.md (*vec_extractv2di_0_sse):
22368 Add (=r,x) alternative and corresponding splitter.
22370 2019-03-10 Martin Jambor <mjambor@suse.cz>
22372 PR tree-optimization/85762
22373 PR tree-optimization/87008
22374 PR tree-optimization/85459
22375 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
22376 it points to if there is a type changing MEM_REF. Adjust all callers.
22377 (build_accesses_from_assign): Disable total scalarization if
22378 contains_vce_or_bfcref_p returns true through the new parameter, for
22381 2019-03-09 Jakub Jelinek <jakub@redhat.com>
22384 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
22385 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
22388 * common.opt (fdiagnostics-show-labels,
22389 fdiagnostics-show-line-numbers, fdiagnostics-format=,
22390 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
22391 gas-locview-support, ginline-points, ginternal-reset-location-views):
22392 Terminate description text with a dot.
22393 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
22394 * config/mcore/mcore.opt (m210, m340): Likewise.
22395 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
22396 mnops=): Start description text with a capital letter.
22397 * config/arc/arc.opt (msize-level=): Likewise.
22398 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
22399 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
22400 mnewlib): Likewise.
22401 * config/ft32/ft32.opt (msim): Likewise.
22402 (mft32b, mcompress): Likewise. Terminate description text with a dot.
22403 (mnodiv, mnopm): Terminate description text with a dot.
22404 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
22406 * config/i386/i386.opt (prefer_vector_width, instrument_return):
22408 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
22411 PR rtl-optimization/89634
22412 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
22413 are modified in BB_END (e->src) instruction.
22415 2019-03-08 David Malcolm <dmalcolm@redhat.com>
22418 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
22419 messages more amenable to translation, and improve wording.
22421 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
22423 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
22424 ud- and du-chains between phases.
22426 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
22429 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
22430 instead of POLY_INT_CST.
22432 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
22434 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
22437 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
22442 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
22443 (_mm_storeu_si64): Ditto.
22445 2019-03-08 Martin Liska <mliska@suse.cz>
22448 * config/i386/i386.c (ix86_option_override_internal): Disable
22449 jump tables when retpolines are used.
22451 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
22454 * ipa-split.c (execute_split_functions): Do not split
22455 'noinline' or 'section' function.
22457 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22460 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
22461 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
22462 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
22465 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
22466 from diagnostics. Formatting fixes.
22469 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
22470 warn_odr diagnostics.
22473 * lra-constraints.c (process_alt_operands): Avoid one space before
22474 " at the end of line and another after " on another line in a string
22476 * attribs.c (handle_dll_attribute): Likewise.
22477 * config/avr/avr-devices.c (avr_texinfo): Likewise.
22479 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
22480 warning_at or inform messages in G_() if there is no ?:.
22482 PR tree-optimization/89550
22483 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
22484 returned true. Formatting fixes.
22485 (expand_builtin_strnlen): Formatting fixes.
22486 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
22487 if warning_at returned true.
22488 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
22490 2019-03-08 Richard Biener <rguenther@suse.de>
22492 PR middle-end/89578
22493 * cfgloop.h (struct loop): Add owned_clique field.
22494 * cfgloopmanip.c (copy_loop_info): Copy it.
22495 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
22497 * tree-inline.c (copy_loops): Remap owned_clique.
22498 * lto-streamer-in.c (input_cfg): Stream owned_clique.
22499 * lto-streamer-out.c (output_cfg): Likewise.
22501 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22504 * config/darwin.c: Include intl.h.
22505 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
22506 composing the message out of two separate parts.
22508 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22511 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
22512 doesn't start with a capital letter and doesn't end with a dot.
22513 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
22514 with a capital letter.
22515 (ix86_mangle_function_version_assembler_name): Likewise.
22516 (ix86_generate_version_dispatcher_body): Likewise.
22517 (fold_builtin_cpu): Likewise.
22518 (get_builtin_code_for_version): Likewise. Remove extraneous space.
22519 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
22520 translators, wrap full type name in %qs.
22522 PR translation/79999
22523 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
22524 depend clause with source (or sink) modifier.
22525 * omp-expand.c (expand_omp_ordered_sink): Likewise.
22528 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
22529 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
22530 (avx512f_load<mode>_mask): New define_expand.
22531 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
22532 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
22533 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
22534 __builtin_ia32_movess_mask): New builtins.
22535 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
22536 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
22537 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
22538 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
22540 2019-03-07 Martin Jambor <mjambor@suse.cz>
22543 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
22544 for extern inline functions.
22546 2019-03-07 Martin Jambor <mjambor@suse.cz>
22549 * cgraph.h (cgraph_node): New inline method former_thunk_p.
22550 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
22551 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
22552 have multiple callees. At the end check if declarations match as
22553 opposed to cgraph_nodes.
22555 2019-03-07 Martin Liska <mliska@suse.cz>
22557 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
22558 which is equivalent to searching for this in clones chain.
22559 * symtab.c (symtab_node::verify_base): Similarly compare ASM
22560 names with a neighbour and special case first node in a chain.
22562 2019-01-25 Jason Merrill <jason@redhat.com>
22564 PR c++/80916 - spurious "static but not defined" warning.
22565 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
22566 for an internal symbol with DECL_EXTERNAL.
22568 2019-04-07 Richard Biener <rguenther@suse.de>
22570 PR middle-end/89618
22571 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
22572 * tree-inline.c (copy_loops): Simplify.
22574 2019-03-07 Martin Liska <mliska@suse.cz>
22576 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
22578 2019-03-07 Richard Biener <rguenther@suse.de>
22580 PR tree-optimization/89595
22581 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
22582 stmt iterator as reference, take boolean output parameter to
22583 indicate whether the stmt was removed and thus the iterator
22585 (dom_opt_dom_walker::before_dom_children): Re-iterate over
22586 stmts created by folding.
22588 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22591 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
22594 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
22596 PR rtl-optimization/88845
22597 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
22599 * lra.c (remove_scratches_1): New function.
22600 (remove_scratches): Use it.
22601 (lra_emit_move): Likewise.
22603 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
22605 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
22606 unaligned_access variable.
22607 * config/arc/arc.c (arc_override_options): Set unaligned access
22608 default on for HS CPUs.
22609 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
22611 2019-03-06 Martin Liska <mliska@suse.cz>
22613 PR gcov-profile/89577
22614 * doc/gcov.texi: Prefer to use --coverage.
22615 * doc/sourcebuild.texi: Likewise.
22617 2019-03-02 Jason Merrill <jason@redhat.com>
22619 PR c++/86485 - -Wmaybe-unused with empty class ?:
22620 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
22622 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22625 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
22628 PR middle-end/89590
22629 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
22630 exactly one argument.
22632 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22633 Richard Sandiford <richard.sandiford@arm.com>
22635 PR tree-optimization/89570
22636 * match.pd (vec_cond into cond_op simplification): Don't use
22637 get_conditional_internal_fn, use as_internal_fn (cond_op).
22639 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
22642 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
22643 to decide when to split off a non-zero offset from a symbol.
22644 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
22645 in function symbols.
22647 2019-03-05 Richard Biener <rguenther@suse.de>
22649 PR tree-optimization/89594
22650 * tree-if-conv.c (pass_if_conversion::execute): Handle
22651 case where .LOOP_VECTORIZED_FUNCTION was removed.
22653 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22656 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
22657 instead alloca it only when needed with the needed size.
22659 PR tree-optimization/89570
22660 * match.pd (vec_cond into cond_op simplification): Guard with
22661 vectorized_internal_fn_supported_p test and #if GIMPLE.
22663 PR tree-optimization/89566
22664 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
22665 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
22666 Punt if get_user_idx_format succeeds, but idx_format argument is
22667 not provided or doesn't have pointer type, or if idx_args is above
22668 number of provided arguments.
22670 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
22672 PR tree-optimization/89437
22673 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
22675 2019-03-04 Richard Biener <rguenther@suse.de>
22677 PR middle-end/89572
22678 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
22681 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
22683 PR tree-optimization/89487
22684 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
22685 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
22686 (distribute_loop): Don't do runtime alias check if there is non-
22687 addressable data reference.
22688 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
22689 is a register variable.
22691 2019-03-02 Jakub Jelinek <jakub@redhat.com>
22694 * config/arm/arm.md (cmpsi2_addneg): Use
22695 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
22696 If operands[2] is 0 or INT_MIN, force use of subs.
22697 (*compare_scc splitter): Use gen_int_mode.
22698 (*negscc): Likewise.
22699 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
22701 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
22702 Monk Chiang <sh.chiang04@gmail.com>
22704 * common/config/riscv/riscv-common.c: Include sstream.
22705 (riscv_subset_list::to_string): New.
22706 (riscv_arch_str): Likewise.
22707 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
22708 * config.in: Regen.
22709 * config/riscv/riscv-protos.h (riscv_arch_str): New.
22710 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
22711 (riscv_emit_attribute): New.
22712 (riscv_file_start): Emit attribute if needed.
22713 (riscv_option_override): Init riscv_emit_attribute_p.
22714 * config/riscv/riscv.opt (mriscv-attribute): New option.
22715 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
22716 * configure: Regen.
22717 * doc/install.texi: Document --with-riscv-attribute.
22718 * doc/invoke.texi: Document -mriscv-attribute.
22720 * common/config/riscv/riscv-common.c:
22721 Include config/riscv/riscv-protos.h.
22722 (INCLUDE_STRING): Defined.
22723 (RISCV_DONT_CARE_VERSION): Defined.
22724 (riscv_subset_t): Declare.
22725 (riscv_subset_t::riscv_subset_t): New.
22726 (riscv_subset_list): Declare.
22727 (riscv_subset_list::riscv_subset_list): New.
22728 (riscv_subset_list::~riscv_subset_list): Likewise.
22729 (riscv_subset_list::parsing_subset_version): Likewise.
22730 (riscv_subset_list::parse_std_ext): Likewise.
22731 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22732 (riscv_subset_list::add): Likewise.
22733 (riscv_subset_list::lookup): Likewise.
22734 (riscv_subset_list::xlen): Likewise.
22735 (riscv_subset_list::parse): Likewise.
22736 (riscv_supported_std_ext): Likewise.
22737 (current_subset_list): Likewise.
22738 (riscv_parse_arch_string): Using riscv_subset_list::parse to
22741 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
22743 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22744 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
22745 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
22747 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
22749 PR rtl-optimization/85899
22750 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
22751 fallthru edges leading to the exit block.
22753 2019-03-01 Tamar Christina <tamar.christina@arm.com>
22756 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
22757 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
22759 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
22761 PR tree-optimization/89535
22762 * tree-vect-stmts.c (vectorizable_call): Record the vector types
22763 for each operand. Calculate the fallback choice for mask operands
22764 and pass it to vect_get_vec_def_for_operand.
22766 2019-03-01 Richard Biener <rguenther@suse.de>
22768 PR middle-end/89541
22769 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
22770 get virtual operands.
22771 (get_expr_operands): Handle CONST_DECL like other decls.
22773 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22775 PR middle-end/89503
22776 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
22777 on DECL_P and EXPR_P.
22779 2019-03-01 Richard Biener <rguenther@suse.de>
22781 PR middle-end/89497
22782 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
22783 argument, defaulted to zero.
22784 * passes.c (execute_function_todo): Pass down SSA update flags
22785 to cleanup_tree_cfg.
22786 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
22787 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
22789 (cleanup_tree_cfg): Get and pass down SSA update flags.
22791 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22794 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
22795 early_lto_debug argument.
22797 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
22799 PR tree-optimization/89536
22800 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
22801 only whether bit #0 of the value is 0 instead of the entire value.
22803 2019-02-28 Marek Polacek <polacek@redhat.com>
22805 PR c++/87068 - missing diagnostic with fallthrough statement.
22806 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
22807 at the end of a seq, save its location to walk_stmt_info.
22808 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
22811 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
22814 * tree.c (find_atomic_core_type): Move ahead in file.
22815 (check_base_type): Correctly compare alignments of atomic types.
22817 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
22820 * config/i386/i386.c (get_builtin_code_for_version): Identify
22821 Westmere from PCLMUL, instead of AES.
22823 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22826 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
22827 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
22830 2019-02-28 Tamar Christina <tamar.christina@arm.com>
22833 * config/aarch64/aarch64-option-extensions.def: Document it.
22834 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
22837 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22840 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
22841 builtins if they don't have a single scalar floating point argument.
22844 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
22846 PR rtl-optimization/89490
22847 * varasm.c (get_block_for_section): Bail out for mergeable sections.
22848 (default_use_anchors_for_symbol_p, output_object_block): Assert the
22849 block section is not mergeable.
22851 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22854 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
22855 old define_insn to ...
22856 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
22857 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
22858 Rename old define_insn to ...
22859 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
22860 (thumb2_casesi_internal_pic): New define_expand. Rename old
22862 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
22863 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
22864 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
22866 2019-02-27 Richard Biener <rguenther@suse.de>
22869 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
22871 2019-02-27 Richard Biener <rguenther@suse.de>
22873 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
22876 2019-02-27 Richard Biener <rguenther@suse.de>
22879 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
22880 parameter, prefix section name with .gnu.debuglto_ if true.
22881 (dwarf2out_finish): Pass false to output_comdat_type_unit.
22882 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
22884 2019-02-27 Richard Biener <rguenther@suse.de>
22887 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
22888 rather than on use_debug_types, doing what output_die does.
22889 (value_format): Likewise.
22891 2019-02-27 Martin Jambor <mjambor@suse.cz>
22892 Martin Sebor <msebor@redhat.com>
22894 * doc/invoke.texi (Warning Options): Reword description of
22895 -Wno-absolute-value.
22897 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22899 PR tree-optimization/89280
22900 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
22901 builtin_setjmp_setup_bb): New functions.
22902 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
22903 When visiting __builtin_setjmp_setup block, queue in special
22904 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
22905 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
22906 from visited after the loop if they don't have any visited successor
22909 2018-02-26 Steve Ellcey <sellcey@marvell.com>
22911 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
22913 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
22915 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22918 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
22919 with types other than sizetype/ssizetype.
22921 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22923 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
22924 (enum sparc_processor_type): ...this.
22925 (enum sparc_code_model_type): New enumeration type.
22926 (enum sparc_memory_model_type): Tweak comments.
22927 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
22929 (mcmodel): Use sparc_code_model enumeration and variable.
22930 (sparc_code_model): New enumeration.
22931 (mdebug): Add Undocumented marker.
22932 * config/sparc/sparc.h (enum cmodel): Delete.
22933 (sparc_cmodel): Likewise.
22934 (TARGET_CM_MEDLOW): Adjust to above renaming.
22935 (TARGET_CM_MEDMID): Likewise.
22936 (TARGET_CM_MEDANY): Likewise.
22937 (TARGET_CM_EMBMEDANY): Likewise.
22938 * config/sparc/sparc.c (sparc_cmodel): Delete.
22939 (sparc_option_override): Remove string/value mapping support for the
22940 code model. Move code and memory model support to after the handling
22941 of target flags. Do private machine setup last.
22942 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
22943 (sparc_legitimize_reload_address): Likewise.
22944 (sparc_output_mi_thunk): Likewise.
22945 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
22947 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22949 PR tree-optimization/89500
22950 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
22951 (handle_builtin_strlen): Remove noncst_bound variable. Always
22952 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
22953 cst if the first cst bytes starting at x are known to be non-zero,
22954 even if the string is not zero terminated. Don't try to modify
22955 *si for strnlen. Update strlen_to_stridx only for strlen or if
22956 we can prove strnlen returns the same value as strlen would.
22958 2019-02-26 Martin Liska <mliska@suse.cz>
22960 * alloc-pool.h (struct pool_usage): Remove extra
22962 * bitmap.h (struct bitmap_usage): Likewise.
22963 * ggc-common.c (struct ggc_usage): Likewise.
22964 * mem-stats.h (struct mem_usage): Likewise.
22965 (mem_alloc_description::dump): Print dash lines
22966 here and repeat header at the end of a table report.
22967 It's then more readable.
22968 * tree-phinodes.c (phinodes_print_statistics): Make
22969 horizontal alignment.
22970 * tree-ssanames.c (ssanames_print_statistics): Likewise.
22971 * vec.c (struct vec_usage): Remove extra print_dash_line.
22972 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
22974 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
22976 * doc/extend.texi (__builtin_object_size):
22977 Use @pxref instead of @xref inside parenthesis.
22978 (__builtin_has_attribute): Add missing comma after @xref.
22979 (__builtin_object_size): Ditto.
22980 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
22982 2019-02-26 Jeff Law <law@redhat.com>
22984 PR rtl-optimization/87761
22985 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
22986 detect obviously dead insns and delete them.
22988 2019-02-26 Richard Biener <rguenther@suse.de>
22990 PR tree-optimization/89505
22991 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
22992 to handle restrict pointed-to vars with multiple subvars
22995 2019-02-26 Richard Biener <rguenther@suse.de>
22997 PR tree-optimization/89489
22998 * tree-parloops.c (create_loop_fn): Copy over last_clique.
23000 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
23002 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
23003 and move around comment.
23004 <BIT_AND_EXPR>: Likewise.
23005 <BIT_NOT_EXPR>: Add specific handling for boolean types.
23007 2019-02-26 Jakub Jelinek <jakub@redhat.com>
23010 * config/i386/i386.c (remove_partial_avx_dependency): Call
23011 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
23012 after changing possibly many instructions to use that pseudo. Fix up
23013 insertion of v4sf_const0 setter at the start of bb.
23015 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
23018 * doc/extend.texi (Variadic Pointer Args): New section.
23020 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
23021 Martin Sebor <msebor@gmail.com>
23023 * common.opt (Wattribute-alias): Likewise.
23024 * doc/invoke.texi (Option Summary): List general form of
23025 -Wattribute-alias=. List positive form of -Wmissing-attributes.
23026 (-Wmissing-attributes): Invert entry, rewrite and correct default.
23027 Add cross-references.
23028 (-Wattribute-alias): Rewrite and correct default. Mention
23029 considered attributes (same as for -Wmissing-attributes).
23031 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
23033 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
23034 (_mm_cvtpd_ps): Likewise.
23035 (_mm_cvttpd_epi32): Likewise.
23038 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
23039 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
23042 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
23044 2019-02-25 Tamar Christina <tamar.christina@arm.com>
23047 * common/config/aarch64/aarch64-common.c
23048 (struct aarch64_option_extension): Add is_synthetic.
23049 (all_extensions): Use it.
23050 (TARGET_OPTION_INIT_STRUCT): Define hook.
23051 (struct gcc_targetm_common): Moved to end.
23052 (all_extensions_by_on): New.
23053 (opt_ext_cmp, typedef opt_ext): New.
23054 (aarch64_option_init_struct): New.
23055 (aarch64_contains_opt): New.
23056 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
23057 * config/aarch64/aarch64-option-extensions.def
23058 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
23059 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
23060 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
23061 Set is_synthetic to false.
23062 (crypto): Set is_synthetic to true.
23063 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
23066 2019-02-25 Tamar Christina <tamar.christina@arm.com>
23068 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
23069 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
23070 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
23071 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
23072 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
23073 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
23074 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
23075 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
23077 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
23078 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
23079 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
23080 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
23081 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
23082 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
23083 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
23084 vfmlsl_laneq_high_f16): ... To this.
23085 * config/arm/neon.md: Update comments.
23087 2019-02-25 Tamar Christina <tamar.christina@arm.com>
23089 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
23090 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
23091 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
23092 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
23093 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
23094 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
23095 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
23096 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
23098 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
23099 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
23100 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
23101 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
23102 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
23103 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
23104 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
23105 vfmlslq_laneq_high_f16): ... To this.
23107 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
23109 PR rtl-optimization/86096
23110 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
23111 comparing mw_order values.
23113 2019-02-25 Jakub Jelinek <jakub@redhat.com>
23116 * config/arm/arm.md (*subsi3_carryin_const): Use
23117 arm_neg_immediate_operand predicate instead of
23118 arm_not_immediate_operand, "L" constraint instead of "K" and
23119 print it using %n2 instead of %B2.
23120 (*subsi3_carryin_const0): New define_insn.
23121 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
23122 instead of arm_not_operand and "I" constraint instead of "K" and
23123 print it using %n3 instead of %B2. Instead of using match_dup 2 add
23124 another match_operand and in the condition check that it is negation
23126 (*subsi3_carryin_compare_const0): New define_ins.
23127 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
23128 *subsi3_carryin_const.
23129 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
23130 split into *subsi3_carryin_compare_const0 if the highpart is zero.
23133 * config/arm.vfp.md (*negdf2_vfp): Use
23134 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
23135 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
23137 2019-02-24 Jakub Jelinek <jakub@redhat.com>
23139 PR rtl-optimization/89445
23140 * simplify-rtx.c (simplify_ternary_operation): Don't use
23141 simplify_merge_mask on operands that may trap.
23142 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
23143 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
23144 second operand is CONST_VECTOR, check if any element could be zero.
23145 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
23146 their operands can trap.
23148 2019-02-23 Martin Sebor <msebor@redhat.com>
23150 * gimple-ssa-sprintf.c (target_strtol): Rename...
23151 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
23152 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
23153 check for range error.
23155 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
23158 * opts-common.c (prune_options): Also prune joined switches
23159 with Negative and RejectNegative.
23160 * config/i386/i386.opt (march=): Add Negative(march=).
23161 (mtune=): Add Negative(mtune=).
23162 * doc/options.texi: Document Negative used together with Joined
23163 and RejectNegative.
23165 2019-02-22 Martin Sebor <msebor@redhat.com>
23167 * doc/extend.texi (Other Builtins): Add
23168 __builtin_is_constant_evaluated.
23170 2019-02-22 Richard Biener <rguenther@suse.de>
23172 PR tree-optimization/87609
23173 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
23175 2019-02-22 Jeff Law <law@redhat.com>
23177 PR rtl-optimization/87761
23178 * config/mips/mips.md: Add new combiner pattern to recognize
23179 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
23181 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
23184 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
23185 destination register in peepholes generating patterns for ADDS/SUBS.
23186 (add<mode>3_compare0,
23187 *addsi3_compare0_uxtw, add<mode>3_compareC,
23188 add<mode>3_compareV_imm, add<mode>3_compareV,
23189 *adds_<optab><ALLX:mode>_<GPI:mode>,
23190 *subs_<optab><ALLX:mode>_<GPI:mode>,
23191 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
23192 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
23193 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
23194 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
23195 sub<mode>3_compare1): Allow stack pointer for source register.
23196 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
23198 2019-02-22 Martin Sebor <msebor@redhat.com>
23200 PR tree-optimization/88993
23201 PR tree-optimization/88853
23202 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
23204 (sprintf_dom_walker::call_info::is_string_func): New helper.
23205 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
23206 for formatted string functions.
23207 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
23209 2019-02-22 Martin Sebor <msebor@redhat.com>
23212 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
23213 unreachable subexpressions.
23215 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
23216 Hongtao Liu <hongtao.liu@intel.com>
23217 Sunil K Pandey <sunil.k.pandey@intel.com>
23220 * config/i386/i386-passes.def: Add
23221 pass_remove_partial_avx_dependency.
23222 * config/i386/i386-protos.h
23223 (make_pass_remove_partial_avx_dependency): New.
23224 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
23226 (pass_data_remove_partial_avx_dependency): New.
23227 (pass_remove_partial_avx_dependency): Likewise.
23228 (make_pass_remove_partial_avx_dependency): Likewise.
23229 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
23230 (*extendsfdf2): Add avx_partial_xmm_update.
23231 (truncdfsf2): Likewise.
23232 (*float<SWI48:mode><MODEF:mode>2): Likewise.
23233 (SF/DF conversion splitters): Disabled for TARGET_AVX.
23235 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
23237 PR middle-end/85598
23238 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
23241 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
23244 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
23245 (PTA_SKYLAKE): Add PTA_AES.
23246 (PTA_GOLDMONT): Likewise.
23248 2019-02-22 Sudakshina Das <sudi.das@arm.com>
23250 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
23251 instruction if enabled.
23252 (aarch64_override_options): Remove reference to return address key.
23254 2019-02-22 Richard Biener <rguenther@suse.de>
23256 PR tree-optimization/89440
23257 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
23258 not necessary assert.
23260 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
23263 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
23264 (oacc_replace_fn_attrib_attr): ... this new function.
23265 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
23266 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
23268 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23270 * config/arm/arm-cpus.in (ares): Rename to...
23271 (neoverse-n1): ... This. Add ares as alias.
23272 * config/arm/arm-tables.opt: Regenerate.
23273 * config/arm/arm-tune.md: Likewise.
23274 * doc/invoke.txt (ARM Options): Document neoverse-n1.
23276 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23278 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
23279 * config/aarch64/aarch64-tune.md: Regenerate.
23280 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
23282 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23284 * config/aarch64/aarch64.c (ares_tunings): Rename to...
23285 (neoversen1_tunings): ... This.
23286 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
23287 (neoverse-n1): New CPU.
23288 * config/aarch64/aarch64-tune.md: Regenerate.
23289 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
23291 2019-02-22 Richard Biener <rguenther@suse.de>
23293 PR middle-end/87609
23294 * cfghooks.h (dependence_hash): New typedef.
23295 (struct copy_bb_data): New type.
23296 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
23297 (duplicate_block): Likewise.
23298 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
23299 (copy_bbs): Create and pass down copy_bb_data.
23300 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
23301 (rtl_duplicate_bb): Likewise.
23302 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
23303 remap dependence info.
23305 2019-02-22 Richard Biener <rguenther@suse.de>
23307 PR tree-optimization/87609
23308 * tree-core.h (tree_base): Document special clique values.
23309 * tree-inline.c (remap_dependence_clique): Do not use the
23310 special clique value of one.
23311 (maybe_set_dependence_info): Use clique one.
23312 (clear_dependence_clique): New callback.
23313 (compute_dependence_clique): Clear clique one from all refs
23314 before assigning it (again).
23316 2019-02-21 Martin Sebor <msebor@redhat.com>
23318 * doc/extend.texi (__clear_cache): Correct signature.
23320 2019-02-21 Ian Lance Taylor <iant@golang.org>
23323 * varasm.c (decode_addr_const): Call lookup_constant_def rather
23324 than output_constant_def.
23325 (add_constant_to_table): New static function.
23326 (output_constant_def): Call add_constant_to_table.
23327 (tree_output_constant_def): Likewise.
23329 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23332 * builtins.c (fold_builtin_arith_overflow): If first two args are
23333 INTEGER_CSTs, set intres and ovfres to constants rather than calls
23336 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
23339 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
23340 error for -mindirect-branch/-mfunction-return with incompatible
23343 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23346 * constraints.md (q): Remove.
23347 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
23350 2019-02-21 Martin Jambor <mjambor@suse.cz>
23353 * omp-general.c (omp_extract_for_data): Removed a duplicate call
23354 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
23355 (omp_adjust_for_condition): ...here. Added necessary parameters.
23356 * omp-general.h (omp_adjust_for_condition): Updated declaration.
23357 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
23358 proper values to new parameters of omp_adjust_for_condition.
23360 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23362 PR middle-end/89412
23363 * expr.c (expand_assignment): If result is a MEM, use change_address
23364 instead of simplify_gen_subreg.
23366 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23367 David Malcolm <dmalcolm@redhat.com>
23369 PR middle-end/89091
23370 * fold-const.c (decode_field_reference): Return NULL_TREE if
23371 lang_hooks.types.type_for_size returns NULL. Check it before
23372 overwriting *exp_. Use return NULL_TREE instead of return 0.
23374 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23376 PR middle-end/88074
23377 PR middle-end/89415
23378 * toplev.c (do_compile): Double the emin/emax exponents to workaround
23381 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
23384 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
23385 TARGET_SSE in addition to TARGET_SSE_MATH.
23387 (ix86_excess_precision): Ditto.
23388 (ix86_float_exceptions_rounding_supported_p): Ditto.
23389 (use_rsqrt_p): Ditto.
23390 * config/i386/sse.md (rsqrt<mode>2): Ditto.
23392 2019-02-20 David Malcolm <dmalcolm@redhat.com>
23395 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
23396 linenum_arith_t when determining if two adjacent line spans are
23397 close enough to merge.
23398 (diagnostic_show_locus): Use linenum_arith_t when iterating over
23399 lines within each line_span.
23401 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
23404 * lra-constraints.c(uses_hard_regs_p): Fix handling of
23405 paradoxical SUBREGS.
23407 2019-02-20 Li Jia He <helijia@linux.ibm.com>
23410 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
23411 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
23412 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
23415 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
23417 * config/gcn/gcn.c (print_operand): Fix typo.
23419 2019-02-19 Richard Biener <rguenther@suse.de>
23421 PR middle-end/88074
23422 * toplev.c (do_compile): Initialize mpfr's exponent range
23423 based on available float modes.
23425 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
23427 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
23428 as long as the epilogue isn't completed.
23430 2019-02-18 Martin Sebor <msebor@redhat.com>
23432 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
23433 __has_cpp_attribute, and __has_include.
23435 2019-02-18 Martin Sebor <msebor@redhat.com>
23437 * doc/invoke.texi (-Wreturn-type): Correct and expand.
23439 2019-02-18 Martin Sebor <msebor@redhat.com>
23441 PR middle-end/89294
23442 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
23444 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
23446 2019-02-18 Richard Biener <rguenther@suse.de>
23448 PR tree-optimization/89296
23449 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
23450 of no-warning flag to cases that might emit the bogus warning.
23452 2019-02-18 Jakub Jelinek <jakub@redhat.com>
23455 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
23457 * config/arm/vfp.md (*movdi_vfp): Likewise.
23458 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
23459 "q" constraint for operands[0].
23462 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
23463 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
23464 pattern in a temporary buffer.
23465 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
23466 than 64-operands[2].
23469 * config/s390/s390.c (s390_indirect_branch_attrvalue,
23470 s390_indirect_branch_settings): Define unconditionally.
23471 (s390_set_current_function): Likewise, but guard the whole body except
23472 the s390_indirect_branch_settings call with
23473 #if S390_USE_TARGET_ATTRIBUTE.
23474 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
23476 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
23477 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
23478 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
23479 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
23480 HOST_WIDE_INT_1U instead of 1ULL.
23481 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
23482 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
23483 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
23484 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
23486 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
23489 2019-02-18 Martin Jambor <mjambor@suse.cz>
23491 PR tree-optimization/89209
23492 * tree-sra.c (create_access_replacement): New optional parameter
23493 reg_tree. Use it as a type if non-NULL and access type is not of
23495 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
23496 to create_access_replacement.
23497 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
23498 Check lacc is non-NULL before attempting to re-create it on the RHS.
23500 2019-02-18 Martin Liska <mliska@suse.cz>
23503 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
23505 (symbol_table::free_edge): Recycle m_summary_id.
23506 * cgraph.h (get_summary_id): New.
23507 (symbol_table::release_symbol): Set m_summary_id to -1
23509 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
23510 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
23511 function_summary to fast_function_summary.
23512 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
23513 * ipa-pure-const.c (class funct_state_summary_t):
23514 Switch from function_summary to fast_function_summary.
23515 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
23516 (class ipa_ref_opt_summary_t): Switch from function_summary
23517 to fast_function_summary.
23518 * symbol-summary.h (class function_summary_base): New class
23519 that is created from base of former function_summary.
23520 (function_summary_base::unregister_hooks): New.
23521 (class function_summary): Inherit from function_summary_base.
23522 (class call_summary_base): New class
23523 that is created from base of former call_summary.
23524 (class call_summary): Inherit from call_summary_base.
23525 (struct is_same): New.
23526 (class fast_function_summary): New summary class.
23527 (class fast_call_summary): New summary class.
23528 * vec.h (vec_safe_grow_cleared): New function.
23530 2019-02-18 Martin Liska <mliska@suse.cz>
23532 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
23533 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
23534 * doc/tm.texi: Document new target hook.
23535 * doc/tm.texi.in: Likewise.
23536 * target.def: Add new target macro.
23537 * gcc.c (find_fortran_preinclude_file): Do not search multilib
23540 2019-02-17 Alan Modra <amodra@gmail.com>
23543 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
23544 output reg on add insn.
23545 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
23547 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23550 * config/i386/sse.md (ssedoublemode): Remove V4HI.
23551 (PMULHRSW): Likewise.
23552 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
23554 (ssse3_pmulhrswv4hi3): New expander.
23556 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23558 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
23559 MMX. Add isa attribute.
23561 2019-02-16 Jakub Jelinek <jakub@redhat.com>
23563 PR rtl-optimization/66152
23564 * builtins.h (c_readstr): Declare.
23565 * builtins.c (c_readstr): Remove forward declaration. Add
23566 null_terminated_p argument, if false, read all bytes from the
23567 string instead of stopping after '\0'.
23568 * expr.c (string_cst_read_str): New function.
23569 (store_expr): Use string_cst_read_str instead of
23570 builtin_strncpy_read_str. Try to store by pieces the whole
23571 exp_len first, and only if that fails, split it up into
23572 store by pieces followed by clear_storage. Formatting fix.
23574 * config/i386/i386.md (*movqi_internal): Remove static from
23575 buf variable. Use output_asm_insn (buf, operands); return "";
23576 instead of return buf;.
23577 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
23578 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
23579 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
23581 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23583 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
23584 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
23585 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
23586 (CC1_SPEC): Likewise.
23587 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
23589 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23591 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
23592 the base address on 64-bit strict-alignment platforms.
23594 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
23596 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
23598 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23600 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
23602 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
23604 PR rtl-optimization/88308
23605 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
23606 on copied instruction.
23608 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23610 * final.c (insn_current_reference_address): Replace test on JUMP_P
23611 with test on jump_to_label_p.
23612 * config/visium/visium-passes.def: New file.
23613 * config/visium/t-visium (PASSES_EXTRA): Define.
23614 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
23615 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
23616 (TRAMPOLINE_ALIGNMENT): Define.
23617 * config/visium/visium.c (visium_option_override): Do not register
23618 the machine-specific reorg pass here.
23619 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
23621 (output_branch): Adjust threshold for long branch instruction.
23622 * config/visium/visium.md (cpu): Move around.
23623 (length): Adjust for the GR6.
23625 2019-02-15 Richard Biener <rguenther@suse.de>
23626 Jakub Jelinek <jakub@redhat.com>
23628 PR tree-optimization/89278
23629 * tree-loop-distribution.c: Include tree-eh.h.
23630 (generate_memset_builtin, generate_memcpy_builtin): Call
23631 rewrite_to_non_trapping_overflow on builtin->size before passing it
23632 to force_gimple_operand_gsi.
23634 2019-02-15 Jakub Jelinek <jakub@redhat.com>
23637 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
23639 * opth-gen.awk: Likewise.
23641 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23643 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
23644 Enable MMX, SSE and SSE2 by default.
23645 * config/i386/i386.c (ix86_option_override_internal): Do not
23646 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
23648 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23650 PR rtl-optimization/89354
23651 * combine.c (make_extraction): Punt if extraction_mode is narrower
23654 2019-02-14 Maya Rashish <coypu@sdf.org>
23656 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
23657 * config/netbsd-d.c: New file.
23658 * config/t-netbsd: Add netbsd-d.o
23660 2018-02-14 Steve Ellcey <sellcey@marvell.com>
23662 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
23663 affects_type_identity to true for aarch64_vector_pcs.
23664 (aarch64_comp_type_attributes): New function.
23665 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
23667 2019-02-14 Tamar Christina <tamar.christina@arm.com>
23670 * config/arm/iterators.md (ANY64): Add V4HF.
23672 2019-02-14 Martin Liska <mliska@suse.cz>
23674 PR rtl-optimization/89242
23675 * dce.c (delete_unmarked_insns): Call free_dominance_info we
23676 process a transformation.
23678 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23680 PR tree-optimization/89314
23681 * fold-const.c (fold_binary_loc): Cast strlen argument to
23682 const char * before dereferencing it. Formatting fixes.
23684 PR middle-end/89284
23685 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
23687 2019-02-13 Ian Lance Taylor <iant@golang.org>
23689 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
23690 and set current index for other optimizations.
23692 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
23694 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
23695 nonimmediate_operand as operand 2 predicate.
23696 (vec_set<VF2_512_256:mode>_0): Ditto.
23697 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
23698 (*vec_concatv2si): Remove alternative 2.
23699 (*vec_concatv4si_0): Use vm constraint for alternative 0.
23700 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
23701 (vec_concatv2di): Split alternatives 4,5,6 to ...
23702 (*vec_concatv2di_0) ... new pattern.
23704 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
23707 * config/arm/arm.c (ldm_stm_operation_p) Set
23708 addr_reg_in_reglist correctly for first register.
23709 (load_multiple_sequence): Remove dead base check.
23710 (gen_ldm_seq): Correctly set write_back for Thumb-1.
23712 2019-02-13 Tamar Christina <tamar.christina@arm.com>
23715 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
23716 Expose as @aarch64_pred_mov.
23717 * config/aarch64/aarch64.c (aarch64_classify_address):
23718 Use expand_insn which legitimizes operands.
23720 2019-02-13 Martin Liska <mliska@suse.cz>
23722 * builtins.h (expand_builtin_with_bounds): Remove declaration.
23723 * calls.c (struct arg_data): Remove special_slot, pointer_arg
23724 and pointer_offset fields.
23725 (initialize_argument_information): Remove usage of dead
23727 * cgraph.h (struct cgraph_thunk_info): Remove
23728 add_pointer_bounds_args.
23729 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
23731 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
23733 * config/i386/i386.c (ix86_function_arg_advance): Remove
23735 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
23736 (def_builtin): Remove usage of dead fields.
23737 (ix86_add_new_builtins): Likewise.
23738 * ipa-fnsummary.c (compute_fn_summary): Likewise.
23739 * ipa-icf.c (sem_function::equals_wpa): Likewise.
23740 (sem_function::init): Likewise.
23741 (sem_variable::merge): Likewise.
23742 * ipa-visibility.c (function_and_variable_visibility): Likewise.
23743 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
23744 * lto-cgraph.c (lto_output_node): Likewise.
23745 (lto_output_varpool_node): Likewise.
23746 (input_node): Likewise.
23747 (input_varpool_node): Likewise.
23748 * lto-streamer-out.c (lto_output): Likewise.
23749 * tree-inline.c (expand_call_inline): Remove usage of
23751 * tree-inline.h (struct copy_body_data): Likewise.
23752 * varpool.c (varpool_node::dump): Likewise.
23754 2019-02-13 Jakub Jelinek <jakub@redhat.com>
23756 PR middle-end/89303
23757 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
23758 into pt->vars_contains_escaped_heap instead of setting
23759 pt->vars_contains_escaped_heap to it.
23761 PR middle-end/89281
23762 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
23763 INTVAL (size), compare it to GET_MODE_MASK instead of
23764 1 << GET_MODE_BITSIZE.
23767 * config/i386/predicates.md (x86_64_immediate_operand): Allow
23768 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
23771 2019-02-13 Martin Liska <mliska@suse.cz>
23774 * cfgrtl.c (remove_barriers_from_footer): New function.
23775 (try_redirect_by_replacing_jump): Use it.
23776 (cfg_layout_redirect_edge_and_branch): Likewise.
23778 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
23780 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
23781 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
23782 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
23783 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
23784 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
23785 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
23787 * config/rs6000/rs6000.c (builtin_function_type)
23788 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
23789 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
23790 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
23791 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
23792 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
23794 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
23796 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
23797 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
23799 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
23802 * config/i386/i386.md (*movoi_internal_avx): Revert revision
23803 268678 and revision 268657.
23804 (*movti_internal): Likewise.
23806 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
23809 * config/s390/s390.c (s390_decompose_address): Update comment.
23810 (s390_check_qrst_address): Reject invalid address forms after
23813 2019-02-12 Martin Liska <mliska@suse.cz>
23816 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
23817 we need default values of funct_state for a function that
23820 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
23822 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
23823 the object to pick the size of stores on strict-alignment platforms.
23825 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
23826 (*movdi_insn_sp32): Likewise.
23827 (*movdi_insn_sp64): Likewise.
23829 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
23832 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
23833 types that needs constructiong.
23834 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
23836 2019-02-12 Richard Biener <rguenther@suse.de>
23838 PR tree-optimization/89253
23839 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
23840 duplicate the loop.
23842 2019-02-11 David Malcolm <dmalcolm@redhat.com>
23845 * input.c (selftest::test_line_offset_overflow): New selftest.
23846 (selftest::input_c_tests): Call it.
23848 2019-02-11 Martin Sebor <msebor@redhat.com>
23850 PR tree-optimization/88771
23851 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
23852 when -Wstringop-overflow is set.
23853 (builtin_memref::builtin_memref): Adjust excessive upper bound
23854 only when lower bound is not excessive.
23855 (maybe_diag_overlap): Detect and diagnose excessive bounds via
23856 -Wstringop-ovefflow.
23857 (maybe_diag_offset_bounds): Rename...
23858 (maybe_diag_access_bounds): ...to this.
23859 (check_bounds_or_overlap): Adjust for name change above.
23861 2019-02-11 Martin Sebor <msebor@redhat.com>
23864 * builtins.c (max_object_size): Move from here...
23865 * builtins.h (max_object_size): ...and here...
23866 * tree.c (max_object_size): ...to here...
23867 * tree.h (max_object_size): ...and here.
23869 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
23871 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
23872 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
23873 for correct semantics.
23875 2019-02-11 Alan Modra <amodra@gmail.com>
23877 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
23878 -mlongcall and -mpltseq.
23879 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
23880 (RS/6000 and PowerPC Options <-mpltseq>): Document.
23881 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
23882 * config/rs6000/sysv4.opt (mpltseq): New option.
23883 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
23884 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
23885 support is lacking. Don't allow -mpltseq with -mbss-plt.
23886 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
23887 -mpltseq given for ELFv1.
23888 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
23889 Only use UNSPEC_PLTSEQ for inline PLT calls.
23890 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
23891 use UNSPEC_PLTSEQ for inline PLT calls.
23892 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
23893 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
23894 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
23895 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
23896 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
23897 (pltseq_mtctr_<mode>): Likewise.
23899 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23901 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
23903 * configure: Regenerate.
23905 2019-02-11 Jakub Jelinek <jakub@redhat.com>
23908 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
23911 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23913 * function.c (assign_parm_setup_block): Use the stored
23914 size, not the passed size, when allocating stack-space,
23915 also for a parameter with alignment larger than
23916 MAX_SUPPORTED_STACK_ALIGNMENT.
23918 2019-02-11 Martin Liska <mliska@suse.cz>
23921 * ipa-cp.c (build_toporder_info): Remove usage of a param.
23922 * ipa-inline.c (inline_small_functions): Likewise.
23923 * ipa-pure-const.c (propagate_pure_const): Likewise.
23924 (propagate_nothrow): Likewise.
23925 * ipa-reference.c (propagate): Likewise.
23926 * ipa-utils.c (struct searchc_env): Remove unused field.
23927 (searchc): Always search across AVAIL_INTERPOSABLE.
23928 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
23929 the only called IPA pure const can properly not propagate
23930 across interposable boundary.
23931 * ipa-utils.h (ipa_reduced_postorder): Remove param.
23933 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
23935 * config/nds32/nds32.md (call_internal, call_value_internal,
23936 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
23938 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23940 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
23943 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
23945 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
23948 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23950 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
23952 2019-02-10 Jakub Jelinek <jakub@redhat.com>
23954 PR tree-optimization/89268
23955 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
23956 if preds is non-NULL.
23958 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23961 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
23964 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23966 * config/nds32/nds32.md (trap): New pattern.
23968 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23970 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
23973 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23975 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
23978 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23980 * ipa-visibility.c (localize_node): Also do not localize
23981 LDPR_PREVAILING_DEF_IRONLY_EXP.
23983 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23986 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
23987 instead of type_with_linkage.
23989 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23992 * params.def (uninlined-function-insns, uninlined-function-time,
23993 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
23994 bound so we don't get overflows.
23996 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
23998 * config/rs6000/rs6000-string.c (expand_compare_loop,
23999 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
24002 2019-02-09 Jakub Jelinek <jakub@redhat.com>
24004 PR middle-end/89246
24005 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24006 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
24007 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
24009 2019-02-09 Alan Modra <amodra@gmail.com>
24012 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
24013 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
24016 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
24018 PR middle-end/88560
24019 * lra-constraints.c (process_alt_operands): Don't increase reject
24020 for memory when offset memory is required.
24022 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
24024 * config/s390/vector.md: Implement vector copysign.
24026 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
24028 * expr.c (expand_constructor): Correct indentations.
24030 2019-02-08 Richard Biener <rguenther@suse.de>
24032 PR tree-optimization/89247
24033 * tree-if-conv.c: Include tree-cfgcleanup.h.
24034 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
24035 (tree_if_conversion): Pass through predicate vector.
24036 (pass_if_conversion::execute): Do CFG cleanup and SSA update
24037 inline, see if any if-converted loops we refrece in
24038 LOOP_VECTORIZED calls vanished and fixup.
24039 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
24041 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
24043 * config/s390/constraints.md (jdd): New constraint.
24045 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
24048 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
24049 upper 16 vector registers without TARGET_AVX512VL.
24050 (*movti_internal): Likewise.
24052 2019-02-08 Jakub Jelinek <jakub@redhat.com>
24054 PR rtl-optimization/89234
24055 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
24056 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
24057 (copy_reg_eh_region_note_backward): Likewise.
24059 2019-02-08 Richard Biener <rguenther@suse.de>
24061 PR middle-end/89223
24062 * tree-data-ref.c (initialize_matrix_A): Fail if constant
24063 doesn't fit in HWI.
24064 (analyze_subscript_affine_affine): Handle failure from
24065 initialize_matrix_A.
24067 2019-02-08 Jakub Jelinek <jakub@redhat.com>
24069 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
24072 2019-02-07 David Malcolm <dmalcolm@redhat.com>
24074 PR tree-optimization/86637
24075 PR tree-optimization/89235
24076 * tree-vect-loop.c (optimize_mask_stores): Add an
24077 auto_purge_vect_location sentinel to ensure that vect_location is
24079 * tree-vectorizer.c
24080 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
24081 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
24082 to ensure that vect_location is purged on exit.
24083 (pass_slp_vectorize::execute): Likewise, replacing the manual
24085 * tree-vectorizer.h (class auto_purge_vect_location): New class.
24087 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24089 * config/aarch64/iterators.md (max_opp): New code_attr.
24090 (USMAX): New code iterator.
24091 * config/aarch64/predicates.md (aarch64_smin): New predicate.
24092 (aarch64_smax): Likewise.
24093 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
24094 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
24097 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
24100 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
24101 for TARGET_AVX512VL.
24102 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
24104 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
24106 * config/s390/s390-builtin-types.def: Add new types.
24107 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
24108 (s390_vec_xlw4): Make the memory operand into a const pointer.
24109 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
24111 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
24112 a new vector type with the alignment of the scalar memory operand.
24114 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
24115 Jakub Jelinek <jakub@redhat.com>
24118 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
24119 arm_count_ldrdstrd_insns): New declarations.
24120 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
24122 (valid_operands_ldrd_strd): New function.
24123 (arm_count_ldrdstrd_insns): New function.
24124 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
24125 sets instead of single DImode set and define new insns to match this.
24127 2019-02-07 Tamar Christina <tamar.christina@arm.com>
24129 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
24130 Make it a C initializer.
24132 2019-02-07 Tamar Christina <tamar.christina@arm.com>
24135 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
24137 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24139 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
24140 Use neon_dot<q> for type.
24141 (neon_<sup>dot_lane<vsi2qi>): Likewise.
24143 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24145 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
24146 Use neon_dot<q> for type.
24147 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
24148 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
24150 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
24152 PR rtl-optimization/89225
24153 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
24156 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
24158 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
24159 after restoring registers saved to allocate the frame on Windows.
24161 2019-02-06 Richard Biener <rguenther@suse.de>
24163 PR tree-optimization/89182
24164 * graphite.h (cached_scalar_evolution_in_region): Declare.
24165 * graphite.c (struct seir_cache_key): New.
24166 (struct sese_scev_hash): Likewise.
24167 (seir_cache): New global.
24168 (cached_scalar_evolution_in_region): New function.
24169 (graphite_transform_loops): Allocate and release seir_cache.
24170 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
24171 cached_scalar_evolution_in_region.
24172 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24174 (scop_detection::graphite_can_represent_expr: Use
24175 cached_scalar_evolution_in_region.
24176 (scop_detection::stmt_simple_for_scop_p): Likewise.
24177 (find_params_in_bb): Likewise.
24178 (gather_bbs::before_dom_children): Likewise.
24179 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
24180 (add_loop_constraints): Likewise.
24182 2019-02-06 Jakub Jelinek <jakub@redhat.com>
24184 PR middle-end/89210
24185 * fold-const-call.c (fold_const_vec_convert): Pass true as last
24186 operand to new_unary_operation only if both element types are integral
24187 and it isn't a widening conversion. Return NULL_TREE if
24188 new_unary_operation failed.
24190 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
24193 * config/s390/s390.md: Remove load and test FP splitter.
24195 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24198 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
24199 expand_compare_loop, expand_block_compare_gpr,
24200 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
24201 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
24202 #include "profile-count.h" and "predict.h" for types and functions
24203 needed to work with REG_BR_PROB notes.
24205 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24208 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
24209 for the long branch case.
24211 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24214 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
24215 can throw, non-call exceptions are enabled and we can't delete
24216 dead exceptions or alter cfg. Set must_clean if
24217 delete_insn_and_edges returns true, don't set it blindly for calls.
24218 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
24220 PR rtl-optimization/89195
24221 * combine.c (make_extraction): For MEMs, don't extract bytes outside
24222 of the original MEM.
24224 2019-02-05 Martin Liska <mliska@suse.cz>
24226 PR gcov-profile/89000
24227 * gcov.c (function_summary): Remove argument.
24228 (file_summary): New function.
24229 (print_usage): Replace tabs with spaces.
24230 (generate_results): Use new function file_summary.
24232 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24235 * optabs.c (prepare_cmp_insn): Pass x and y to
24236 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
24238 2019-02-05 Richard Biener <rguenther@suse.de>
24240 PR middle-end/89150
24241 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
24242 (struct bitmap_element): Drop chain_prev so we properly recurse on
24243 the prev member, supporting tree views.
24244 (struct bitmap_head): GTY skip the obstack member.
24246 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
24249 * doc/extend.texi (Vector Extensions): Add an example of using vector
24250 types together with x86 intrinsics.
24252 2019-02-04 Alan Modra <amodra@gmail.com>
24254 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
24255 str[] size to 160, and comment.
24257 2019-02-04 Alan Modra <amodra@gmail.com>
24259 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
24260 (rs6000_pltseq_template): Guard output of TLS markers with
24261 TARGET_TLS_MARKERS.
24262 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
24263 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
24264 to use inline PLT sequences.
24265 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
24266 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
24267 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
24269 2019-02-04 Martin Liska <mliska@suse.cz>
24272 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
24273 out when ipa_fn_summaries does not contain entry for callee.
24275 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
24277 * config/sparc/sparc.h: Remove superfluous blank lines.
24278 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
24279 (got_register_rtx): ...this.
24280 (sparc_got): Adjust to above renaming.
24281 (sparc_tls_got): Likewise.
24282 (sparc_delegitimize_address): Likewise.
24283 (sparc_output_mi_thunk): Likewise.
24284 (sparc_init_pic_reg): Likewise.
24285 (save_local_or_in_reg_p): Fix test on the GOT register.
24286 (USE_HIDDEN_LINKONCE): Move around.
24287 (get_pc_thunk_name): Likewise.
24288 (gen_load_pcrel_sym): Likewise.
24289 (load_got_register): Likewise.
24291 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
24293 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
24294 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
24296 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24298 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
24299 into consideration.
24301 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24303 * config.gcc (with_nds32_lib, glibc):
24304 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
24305 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
24306 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
24308 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
24311 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
24312 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
24313 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
24314 (*rcpsf2_sse): Ditto.
24315 (*rsqrtsf2_sse): Ditto.
24316 (sse4_1_round<mode<2): Ditto.
24318 2019-02-03 Richard Biener <rguenther@suse.de>
24321 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
24324 2019-02-02 Jakub Jelinek <jakub@redhat.com>
24326 PR middle-end/87887
24327 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24328 Punt with warning on aggregate return or argument types. Ignore
24329 type/mode checking for uniform arguments.
24331 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
24333 * combine.c (try_combine): Do not print "Can't combine" messages unless
24334 printing failed combination attempts.
24336 2019-02-01 Martin Jambor <mjambor@suse.cz>
24339 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
24340 segment and global segment variables before making them static.
24342 2019-02-01 Martin Jambor <mjambor@suse.cz>
24344 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
24345 missed optimization dump with dump_enabled_p.
24347 2019-02-01 Richard Biener <rguenther@suse.de>
24349 PR middle-end/88597
24350 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
24351 the instantiate cache.
24352 (instantiate_scev_binary): Elide second operand procesing
24353 if equal to the first.
24354 * tree-chrec.c (chrec_contains_symbols): Add visited set.
24355 (chrec_contains_undetermined): Likewise.
24356 (tree_contains_chrecs): Likewise.
24358 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
24360 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
24362 2019-02-01 Jakub Jelinek <jakub@redhat.com>
24364 PR tree-optimization/89143
24365 * wide-int-range.h (wide_int_range_absu): Declare.
24366 * wide-int-range.cc (wide_int_range_absu): New function.
24367 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
24369 PR tree-optimization/88107
24370 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
24371 instead of assertion that eh_region_outermost is non-NULL, if it
24372 is NULL, set *ALL to true and return NULL.
24373 (move_sese_region_to_fn): Adjust caller, if all is set, call
24374 duplicate_eh_regions with NULL region.
24376 2019-02-01 Richard Biener <rguenth@suse.de>
24378 PR rtl-optimization/88593
24379 * mode-switching.c (optimize_mode_switching): Free dominators before
24380 calling cleanup_cfg.
24382 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
24384 PR tree-optimization/88932
24385 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
24387 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24389 PR middle-end/89137
24390 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
24391 bogus clang warning.
24393 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
24396 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
24397 alternative to avoid partial SSE register stall for TARGET_AVX.
24398 (truncdfsf2): Ditto.
24399 (sse4_1_round<mode>2): Ditto.
24401 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
24403 PR tree-optimization/89008
24404 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
24405 process anything of the form X * 0.
24407 2019-01-31 Richard Biener <rguenther@suse.de>
24409 PR tree-optimization/89135
24410 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
24411 with abnormal preds.
24413 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24416 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
24417 always_inline callees into no_sanitize_address callers.
24419 2019-01-31 Richard Biener <rguenther@suse.de>
24421 PR rtl-optimization/89115
24422 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
24424 2019-01-30 Martin Sebor <msebor@redhat.com>
24427 * doc/extend.texi (cast to a union): Correct and expand.
24429 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
24431 PR rtl-optimization/87246
24432 * lra-constraints.c (simplify_operand_subreg): Reload memory
24433 in subreg if the address became invalid.
24435 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
24438 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
24439 Disable for little-endian.
24441 2019-01-30 Richard Biener <rguenther@suse.de>
24443 PR rtl-optimization/89115
24444 * opts.c (default_options_optimization): Reduce
24445 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
24446 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
24449 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
24451 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
24452 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
24453 type of vector element when vec_extract is implemented by direct
24456 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
24458 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
24460 2019-01-30 Richard Biener <rguenther@suse.de>
24462 PR tree-optimization/89111
24463 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
24464 canonicalization to appropriately sized access types.
24466 2019-01-30 Jakub Jelinek <jakub@redhat.com>
24469 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
24470 for arguments to functions that are TU-local and shouldn't be
24471 referenced by assembly.
24473 2019-01-30 Ulrich Drepper <drepper@redhat.com>
24475 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
24478 2019-01-29 Martin Sebor <msebor@redhat.com>
24481 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
24483 2019-01-29 Jakub Jelinek <jakub@redhat.com>
24487 * omp-simd-clone.c (simd_clone_clauses_extract)
24488 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
24489 OMP_CLAUSE_ALIGNED_ALIGNMENT.
24491 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
24493 * config.gcc: Force .init_array for ARC.
24495 2019-01-29 Richard Biener <rguenther@suse.de>
24498 * dwarf2out.c (collect_skeleton_dies): New helper.
24499 (copy_decls_for_unworthy_types): Call it.
24500 (build_abbrev_table): Assert we do not try to replace
24501 DW_AT_signature refs with local refs.
24503 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24505 PR middle-end/89002
24506 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
24507 for lastprivate/linear IV, push gimplify context around gimplify_assign
24508 and, if it needed any temporaries, pop it into a gimple bind around the
24511 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
24513 * common.opt (-Wattribute-alias): Remove "no-" from name.
24514 Make -Wattribute-alias command line option and
24515 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
24517 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24520 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
24521 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
24523 (bmi2): Add missing @opindex.
24524 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
24525 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
24526 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
24527 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
24528 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
24529 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
24530 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
24531 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
24532 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
24533 xsavec, xsaveopt and xsaves options.
24535 2019-01-28 Richard Biener <rguenther@suse.de>
24538 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
24541 2019-01-28 Richard Biener <rguenther@suse.de>
24543 PR tree-optimization/88739
24544 * tree-cfg.c (verify_types_in_gimple_reference): Verify
24545 BIT_FIELD_REFs only are applied to mode-precision operands
24546 when they are integral.
24547 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
24548 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
24549 BIT_FIELD_REFs of non-mode-precision integral operands.
24551 2019-01-27 Jakub Jelinek <jakub@redhat.com>
24554 * config/i386/sse.md
24555 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
24556 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
24557 first constants in pairs are multiples of 2. Formatting fixes.
24558 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
24559 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
24560 first constants in each quadruple are multiples of 4. Formatting fixes.
24562 2019-01-26 Martin Jambor <mjambor@suse.cz>
24565 * tree-inline.c: Include tree-cfgcleanup.h.
24566 (delete_unreachable_blocks_update_callgraph): Move...
24567 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
24568 ...here, make externally visible, make second argument bool, adjust
24570 * tree-cfgcleanup.c: Include cgraph.h.
24571 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
24573 * ipa-prop.c: Include tree-cfgcleanup.h.
24574 (ipcp_transform_function): Call
24575 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
24577 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
24579 PR rtl-optimization/88846
24580 * ira.c (process_set_for_memref_referenced_p): New.
24581 (memref_referenced_p): Add new param. Use
24582 process_set_for_memref_referenced_p. Add new switch cases.
24583 (memref_used_between_p): Pass new arg to memref_referenced_p.
24585 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
24588 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
24589 argument ABI_BREAK. Set to true if the calculated alignment has
24590 changed in gcc-9. Check bit-fields for their base type alignment.
24591 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
24592 (aarch64_function_arg_boundary): Likewise.
24593 (aarch64_gimplify_va_arg_expr): Likewise.
24595 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24597 PR middle-end/89037
24598 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
24599 instead of accessing TREE_INT_CST_ELT directly.
24601 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
24603 * doc/sourcebuild.texi (Environment attributes): Add fenv and
24604 fenv_exceptions description.
24606 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
24608 PR rtl-optimization/87763
24609 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
24610 Allow SUBREG when matching CC_NZmode compare.
24612 2019-01-25 Richard Biener <rguenther@suse.de>
24614 PR tree-optimization/89049
24615 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
24616 Look at the pattern stmt to determine if the stmt is vectorized.
24618 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24620 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
24621 (pred_mov<mode>): Handle all-register forms using both a new
24622 alternative and a split.
24624 2019-01-25 Richard Biener <rguenther@suse.de>
24626 PR tree-optimization/86865
24627 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24628 Reject non-do-while loops.
24630 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
24632 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
24633 * config/rs6000/constraints.md (Q constraint): Use REG_P.
24634 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
24635 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24636 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
24637 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24638 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
24639 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
24640 vlogical_operand, gpc_reg_operand, int_reg_operand,
24641 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
24642 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
24643 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
24644 (save_world_operation, restore_world_operation, lmw_operation,
24645 stmw_operation): Use MEM_P and REG_P.
24646 (tie_operand): Use MEM_P.
24647 (vrsave_operation, crsave_operation): Use REG_P.
24648 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
24649 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
24650 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
24651 (call_operand): Use HARD_REGISTER_P.
24652 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
24654 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
24655 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
24656 quad_aligned_load_p, replace_swapped_aligned_store,
24657 recombine_lvx_pattern, replace_swapped_aligned_load,
24658 recombine_stvx_pattern): Use MEM_P.
24659 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
24660 Use MEM_P and SYMBOL_REF_P.
24661 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
24662 (insn_is_swappable_p): Use REG_P and MEM_P.
24663 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
24664 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
24666 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
24667 Use CONST_DOUBLE_P.
24668 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
24670 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
24671 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
24672 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
24673 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
24675 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24676 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
24677 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
24678 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
24679 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
24680 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
24681 rs6000_split_logical_di): Use CONST_INT_P.
24682 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
24683 REG_P and SYMBOL_REF_P.
24684 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
24685 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
24686 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
24687 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
24688 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
24689 (small_data_operand, print_operand_address): Use CONST_INT_P and
24691 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
24692 (rs6000_init_hard_regno_mode_ok, direct_move_p):
24693 Use HARD_REGISTER_NUM_P.
24694 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
24695 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
24696 SUBREG_P and SYMBOL_REF_P.
24697 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
24698 and HARD_REGISTER_NUM_P.
24699 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
24701 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
24702 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
24704 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
24705 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
24706 find_addr_reg): Use REG_P.
24707 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
24708 (rs6000_emit_le_vsx_move): Use SUBREG_P.
24709 (offsettable_ok_by_alignment, constant_pool_expr_p,
24710 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
24711 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
24712 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
24713 rs6000_assemble_integer, create_TOC_reference,
24714 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
24715 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
24716 (rs6000_split_vec_extract_var): Use reg_or_subregno.
24717 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24718 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24719 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24720 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24721 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
24722 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
24723 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
24724 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
24725 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
24726 and cbranch<mode>4): Use CONST_INT_P.
24727 (multiple define_splits): Use REG_P and SUBREG_P.
24728 (define_expands call, call_value): Use MEM_P.
24729 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
24730 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
24731 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
24732 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
24733 and HARD_REGISTER_NUM_P.
24734 (multiple define_splits): Use HARD_REGISTER_NUM_P.
24736 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
24738 PR rtl-optimization/88948
24739 * rtl.h (prepare_copy_insn): New prototype.
24740 * gcse.c (prepare_copy_insn): New function, split out from
24741 process_insert_insn.
24742 (process_insert_insn): Use prepare_copy_insn.
24743 * store-motion.c (replace_store_insn): Use prepare_copy_insn
24744 instead of gen_move_insn.
24746 2019-01-24 Jakub Jelinek <jakub@redhat.com>
24749 * config/i386/i386.c (ix86_pic_register_p): Return true for
24750 UNSPEC_SET_GOT too.
24752 PR tree-optimization/88964
24753 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
24754 punt if HONOR_SNANS (chrec).
24756 PR middle-end/89015
24757 * tree-nested.c (convert_nonlocal_reference_stmt,
24758 convert_local_reference_stmt, convert_tramp_reference_stmt,
24759 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
24760 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
24761 or GIMPLE_OMP_TASK.
24763 PR tree-optimization/89027
24764 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
24765 for "omp simd array" variables.
24767 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
24770 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
24771 force the alignment of m_val.
24773 2019-01-24 Richard Biener <rguenther@suse.de>
24776 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
24777 When in "legacy" debug mode make sure to reset self-origins.
24779 2019-01-24 Martin Liska <mliska@suse.cz>
24781 PR gcov-profile/88994
24782 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
24783 result will be always smaller or equal to the original.
24784 * gcov.c (mangle_name): Fix else branch where we should
24785 also copy to PTR and shift the pointer.
24787 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
24789 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
24790 * vr-values.c (find_case_label_ranges): Fix a comment typo.
24792 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
24794 * common/config/i386/i386-common.c
24795 (OPTION_MASK_ISA_ENQCMD_SET,
24796 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
24797 (ix86_handle_option): Handle -menqcmd.
24798 * config.gcc (enqcmdintrin.h): New header file.
24799 * config/i386/cpuid.h (bit_ENQCMD): New bit.
24800 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
24802 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
24804 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
24805 __builtin_ia32_enqcmds): New builtins.
24806 * config/i386/i386-c.c (__ENQCMD__): New macro.
24807 * config/i386/i386-option.c (ix86_target_string): Add
24809 (ix86_valid_target_attribute_inner_p): Likewise.
24810 * config/i386/i386-expand.c
24811 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
24812 IX86_BUILTIN_ENQCMDS.
24813 * config/i386/i386.h (TARGET_ENQCMD): New.
24814 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
24815 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
24816 (movdir64b_<mode>): Parameterize to enable share expansion code
24817 with ENQCMD in function ix86_expand_builtin.
24818 * config/i386/i386.opt: Add -menqcmd.
24819 * config/i386/immintrin.h: Include enqcmdintrin.h.
24820 * config/i386/enqcmdintrin.h: New intrinsic file.
24821 * doc/invoke.texi: Add -menqcmd.
24823 2019-01-23 Bin Cheng <bin.cheng@arm.com>
24824 Steve Ellcey <sellcey@marvell.com>
24827 * recog.c (address_operand): Return false on wrong mode for address.
24828 (constrain_operands): Check for mode with 'p' constraint.
24830 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
24833 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
24834 Disparage MMX alternative.
24835 (sse2_cvtpd2pi): Ditto.
24836 (sse2_cvttpd2pi): Ditto.
24838 2019-01-23 David Malcolm <dmalcolm@redhat.com>
24841 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
24842 use-after-free of the result of
24843 aarch64_get_extension_string_for_isa_flags.
24845 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24848 * doc/extend.texi: Document break and continue behavior in
24849 statement expressions.
24851 2019-01-23 Richard Biener <rguenther@suse.de>
24853 PR tree-optimization/89008
24854 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
24855 not leave another stray operand.
24857 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24859 * BASE-VER: Bump to 9.0.1.
24861 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
24863 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
24864 thunk that returns by reference, use the type of the return object
24865 of the thunk instead of that of the alias to build the dereference.
24867 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
24869 * config/arc/atomic.md: Add operand to DMB instruction.
24871 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24873 PR tree-optimization/88964
24874 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
24875 build_zero_cst instead of build_int_cst. Return false for loop
24876 invariants which honor signed zeros.
24878 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
24880 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
24882 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24885 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
24886 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
24887 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
24889 PR middle-end/88968
24890 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
24891 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
24894 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
24895 Disable for little endian.
24897 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24900 * config/arm/arm.c (arm_needs_double_word_align): Check
24901 DECL_BIT_FIELD_TYPE.
24903 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
24904 H.J. Lu <hongjiu.lu@intel.com>
24907 * config/i386/i386-builtin.def: Add mask2 to all builtin
24908 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
24910 * config/i386/i386.c (BDESC): Add mask2 to the definition.
24911 (BDESC_FIRST): Likewise.
24912 (define_builtin): Add an argument for mask2. Updated to handle
24913 both ix86_isa_flags and ix86_isa_flags2.
24914 (define_builtin_const): Likewise.
24915 (define_builtin_pure): Likewise.
24916 (define_builtin2): Deleted.
24917 (define_builtin_const2): Likewise.
24918 (builtin_description): Add a member, mask2.
24919 (bdesc_*): Add mask2 to builtin initializations.
24920 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
24921 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
24923 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
24925 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
24928 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
24931 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24934 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
24935 alignment is dominated by a bitfield with 64-bit aligned base type.
24936 (arm_function_arg): Emit a warning if the alignment has changed since
24937 earlier GCC releases.
24938 (arm_function_arg_boundary): Likewise.
24939 (arm_setup_incoming_varargs): Likewise.
24941 2019-01-22 Richard Biener <rguenther@suse.de>
24943 PR tree-optimization/88862
24944 * graphite-scop-detection.c
24945 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
24947 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
24949 * doc/extend.tex (AMD GCN Function Attributes): New section.
24950 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
24951 * doc/invoke.texi (AMD GCN Options): New section.
24952 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
24954 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
24956 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
24957 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
24959 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24961 PR tree-optimization/88044
24962 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
24963 is false in the first iteration, but !every_iteration, return false
24964 instead of true with niter->niter zero.
24966 PR rtl-optimization/88904
24967 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
24968 any nonequal registers before processing BB_END (b).
24971 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
24973 (expand_binop_directly, expand_doubleword_clz,
24974 expand_doubleword_popcount, expand_ctz, expand_ffs,
24975 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
24977 PR rtl-optimization/49429
24979 PR rtl-optimization/86334
24981 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
24982 addressable from here...
24983 (emit_block_op_via_libcall): ... to here.
24985 2019-01-22 Richard Biener <rguenther@suse.de>
24987 * tree-vect-loop.c (vect_analyze_loop_operations): Use
24988 auto_vec for cost vector to fix memleak.
24989 (vectorize_fold_left_reduction): Properly gather SLP defs.
24990 (vectorizable_comparison): Do not swap operands to properly
24993 2019-01-22 Alan Modra <amodra@gmail.com>
24996 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
24997 stays a reg. Allow a const_int.
24998 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
24999 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
25000 (IS_NOMARK_TLSGETADDR): Define.
25001 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
25002 (rs6000_output_tlsargs): New function.
25003 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
25004 __tls_get_addr call takes an arg.
25005 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
25006 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
25008 (call_value_nonlocal_sysv): ..or here, delete split.
25009 (tls_gdld_nomark): Delete.
25010 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
25011 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
25012 (call_value_nonlocal_sysv): Likewise.
25013 (call_value_nonlocal_sysv_secure): Likewise.
25014 (call_value_nonlocal_aix): Likewise.
25015 (call_value_indirect_aix): Likewise.
25016 (call_value_indirect_elfv2): Likewise.
25017 (call_value_local32, call_value_local64): Disable for no-mark tls.
25018 (call_value_local_aix): Likewise.
25020 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
25023 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
25024 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
25026 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
25028 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
25029 string contents as hash_map keys.
25031 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
25034 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
25035 for rvalue context. Handle rvalues correctly. Use min_align_of_type
25036 instead of TYPE_ALIGN.
25037 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
25038 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
25039 pointer from TYPE_STUB_DECL.
25041 2019-01-21 Richard Biener <rguenther@suse.de>
25043 PR tree-optimization/88934
25044 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
25045 at the possibly non-constant operand.
25046 (vect_get_constant_vectors): Adjust.
25048 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
25051 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
25052 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
25053 instead of _X86INTRIN_H_INCLUDED.
25054 * onfig/i386/clwbintrin.h: Likewise.
25055 * config/i386/pkuintrin.h: Likewise.
25056 * config/i386/prfchwintrin.h: Likewise.
25057 * config/i386/rdseedintrin.h: Likewise.
25058 * config/i386/wbnoinvdintrin.h: Likewise.
25059 * config/i386/xsavecintrin.h: Likewise.
25060 * config/i386/xsavesintrin.h: Likewise.
25061 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
25062 * config/i386/xsaveintrin.h: Likewise.
25063 * config/i386/xsaveoptintrin.h: Likewise.
25064 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
25065 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
25066 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
25067 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
25068 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
25069 * config/i386/immintrin.h: Here.
25071 2019-01-20 Martin Jambor <mjambor@suse.cz>
25074 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
25075 with aa_walk_budget.
25076 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
25077 aa_walk_budget_p parameter.
25078 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
25079 walk. Updated all callers.
25080 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
25081 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
25083 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
25084 parameter info. Extract info from fbi. Pass fbi to recursive calls
25085 and to unmodified_parm.
25086 (phi_result_unknown_predicate): New parameter fbi, removed parameter
25087 info, updated call to will_be_nonconstant_expr_predicate.
25088 (param_change_prob): New parameter fbi, limit AA walking.
25089 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
25090 calls to various above functions.
25091 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
25092 parameter. Use it to limit AA walking.
25093 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
25094 fbi, limit AA walk.
25095 (detect_type_change): New parameter fbi, pass it on to
25096 detect_type_change_from_memory_writes.
25097 (detect_type_change_ssa): Likewise.
25098 (aa_overwalked): Removed.
25099 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
25100 accordingly, adjust to the neew AA limiting scheme.
25101 (parm_ref_data_preserved_p): Likewise.
25102 (ipa_compute_jump_functions_for_edge): Adjust call to
25104 (ipa_analyze_call_uses): Likewise.
25105 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
25106 (ipa_analyze_node): Initialize aa_walk_budget.
25107 (ipcp_transform_function): Likewise.
25108 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
25109 to get_dynamic_type.
25111 2019-01-19 Jakub Jelinek <jakub@redhat.com>
25113 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
25114 outside of #if CHECKING_P code.
25116 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
25118 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
25119 New function, split out from...
25120 (loop_versioning::analyze_stride): ...here.
25121 (loop_versioning::find_per_loop_multiplication): Use gassign.
25122 (loop_versioning::analyze_term_using_scevs): Return a success code.
25123 (loop_versioning::analyze_arbitrary_term): New function.
25124 (loop_versioning::analyze_address_fragment): Use
25125 analyze_arbitrary_term if all else fails.
25127 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
25130 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
25133 2019-01-18 Richard Biener <rguenther@suse.de>
25135 PR tree-optimization/88903
25136 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
25137 scalar stmts a SLP shift amount is composed of when detecting
25140 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
25143 * config/arm/arm-cpus.in (mp): New feature.
25144 (sec): New feature.
25145 (fgroup ARMv7ve): Add mp and sec features.
25146 (arch armv7-a): Add options to allow mp and sec extensions.
25147 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
25148 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
25149 extenstions to the base architecture.
25150 (cpu cortex-a8): Add sec extension to the base architecture.
25151 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
25152 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
25153 variants down to the base v7-a varaint.
25154 * config/arm/t-multilib (v7_a_arch_variants): New variable.
25155 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
25156 of permitted extensions for -march=armv7-a and for
25157 -mcpu=generic-armv7-a.
25159 2019-01-18 Martin Liska <mliska@suse.cz>
25161 * params.def: Fix comment.
25162 * tree-profile.c (gimple_init_gcov_profiler): Bump function
25164 (gimple_gen_ic_func_profiler): Likewise.
25166 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25168 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
25169 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
25170 and put in error checks for stack protector guard options.
25171 (aarch64_stack_protect_guard): New.
25172 (TARGET_STACK_PROTECT_GUARD): Define.
25173 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
25174 (reg_stack_protect_address<mode>): New.
25175 (stack_protect_set): Adjust for SSP_GLOBAL.
25176 (stack_protect_test): Likewise.
25177 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
25178 (-mstack-protector-guard): Likewise.
25179 (-mstack-protector-guard-offset): Likewise.
25181 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25183 PR tree-optimization/86214
25184 * tree-inline.h (struct copy_body_data): Add
25185 add_clobbers_to_eh_landing_pads member.
25186 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
25187 (copy_edges_for_bb): Call it if EH edge destination is <
25188 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
25189 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
25190 if flag_stack_reuse != SR_NONE and clear it afterwards.
25192 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
25195 * doc/install.texi (with-multilib-list): Document for aarch64.
25197 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25200 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
25201 (("..."))) with ("...").
25203 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
25205 * doc/extend.texi (Built-in Functions for Memory Model Aware
25206 Atomic Operations): Document atomic fetch and nand.
25208 2019-01-18 Martin Liska <mliska@suse.cz>
25209 Richard Biener <rguenther@suse.de>
25211 PR middle-end/88587
25212 * cgraph.h (create_version_clone_with_body): Add new argument
25214 * cgraphclones.c (cgraph_node::create_version_clone): Add
25215 DECL_ATTRIBUTES to a newly created decl. And call
25216 valid_attribute_p so that proper cl_target_optimization_node
25217 is set for the newly created declaration.
25218 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
25220 (expand_target_clones): Do not call valid_attribute_p, it must
25222 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
25225 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25228 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
25229 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
25230 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
25232 2019-01-17 Martin Sebor <msebor@redhat.com>
25234 PR middle-end/88273
25235 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
25236 Handle anti-ranges the same as no range at all.
25238 2018-01-17 Steve Ellcey <sellcey@cavium.com>
25240 * config/aarch64/aarch64.c (cgraph.h): New include.
25241 (intl.h): New include.
25242 (supported_simd_type): New function.
25243 (currently_supported_simd_type): Ditto.
25244 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
25245 (aarch64_simd_clone_adjust): Ditto.
25246 (aarch64_simd_clone_usable): Ditto.
25247 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
25248 (TARGET_SIMD_CLONE_ADJUST): Ditto.
25249 (TARGET_SIMD_CLONE_USABLE): Ditto.
25250 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
25251 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
25254 2019-01-17 Martin Sebor <msebor@redhat.com>
25256 PR tree-optimization/88800
25257 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
25258 NO_WARNING bit here. Avoid folding out-of-bounds calls.
25259 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
25260 redundant argument. Add new argument and issue diagnostics under
25261 its control. Detect out-of-bounds access even with warnings
25263 (check_bounds_or_overlap): Change return type. Add argument.
25264 (wrestrict_dom_walker::check_call): Adjust.
25265 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
25266 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
25267 check_bounds_or_overlap's return value.
25268 (handle_builtin_stxncpy): Same.
25269 (handle_builtin_strcat): Same.
25271 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25272 Kwok Cheung Yeung <kcy@codesourcery.com>
25273 Julian Brown <julian@codesourcery.com>
25274 Tom de Vries <tom@codesourcery.com>
25276 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
25278 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25280 * doc/sourcebuild.texi: Document dg-require-effective-target
25281 llvm_binutils and offload_gcn.
25283 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25284 Kwok Cheung Yeung <kcy@codesourcery.com>
25285 Julian Brown <julian@codesourcery.com>
25286 Tom de Vries <tom@codesourcery.com>
25288 * doc/sourcebuild.texi: Document dg-required-effective-target
25291 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25292 Kwok Cheung Yeung <kcy@codesourcery.com>
25293 Julian Brown <julian@codesourcery.com>
25294 Tom de Vries <tom@codesourcery.com>
25295 Jan Hubicka <hubicka@ucw.cz>
25296 Martin Jambor <mjambor@suse.cz>
25298 * config.gcc: Add amdgcn*-*-amdhsa configuration.
25299 * configure.ac: Check for dlopen.
25300 * configure: Regenerate.
25302 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25303 Kwok Cheung Yeung <kcy@codesourcery.com>
25304 Julian Brown <julian@codesourcery.com>
25305 Tom de Vries <tom@codesourcery.com>
25306 Jan Hubicka <hubicka@ucw.cz>
25307 Martin Jambor <mjambor@suse.cz>
25309 * common/config/gcn/gcn-common.c: New file.
25310 * config/gcn/driver-gcn.c: New file.
25311 * config/gcn/gcn-builtins.def: New file.
25312 * config/gcn/gcn-hsa.h: New file.
25313 * config/gcn/gcn-modes.def: New file.
25314 * config/gcn/gcn-opts.h: New file.
25315 * config/gcn/gcn-passes.def: New file.
25316 * config/gcn/gcn-protos.h: New file.
25317 * config/gcn/gcn-run.c: New file.
25318 * config/gcn/gcn-tree.c: New file.
25319 * config/gcn/gcn.c: New file.
25320 * config/gcn/gcn.h: New file.
25321 * config/gcn/gcn.opt: New file.
25322 * config/gcn/t-gcn-hsa: New file.
25324 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25325 Kwok Cheung Yeung <kcy@codesourcery.com>
25326 Julian Brown <julian@codesourcery.com>
25327 Tom de Vries <tom@codesourcery.com>
25328 Jan Hubicka <hubicka@ucw.cz>
25329 Martin Jambor <mjambor@suse.cz>
25331 * config/gcn/constraints.md: New file.
25332 * config/gcn/gcn-valu.md: New file.
25333 * config/gcn/gcn.md: New file.
25334 * config/gcn/predicates.md: New file.
25336 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
25338 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
25339 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
25340 (stmt_uses_0_or_null_in_undefined_way): Likewise.
25341 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
25343 2019-01-17 Tamar Christina <tamar.christina@arm.com>
25346 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
25347 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
25348 it and document registers.
25350 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25352 * config/aarch64/aarch64.c (ares_tunings): Define.
25353 * config/aarch64/aarch64-cores.def (ares): Use the above.
25355 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25359 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
25361 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
25362 (_mm512_fixupimm_round_pd): Update parameters and builtin.
25363 (_mm512_maskz_fixupimm_round_pd): Ditto.
25364 (_mm512_fixupimm_round_ps): Ditto.
25365 (_mm512_maskz_fixupimm_round_ps): Ditto.
25366 (_mm_fixupimm_round_sd): Ditto.
25367 (_mm_maskz_fixupimm_round_sd): Ditto.
25368 (_mm_fixupimm_round_ss): Ditto.
25369 (_mm_maskz_fixupimm_round_ss): Ditto.
25370 (_mm512_fixupimm_pd): Ditto.
25371 (_mm512_maskz_fixupimm_pd): Ditto.
25372 (_mm512_fixupimm_ps): Ditto.
25373 (_mm512_maskz_fixupimm_ps): Ditto.
25374 (_mm_fixupimm_sd): Ditto.
25375 (_mm_maskz_fixupimm_sd): Ditto.
25376 (_mm_fixupimm_ss): Ditto.
25377 (_mm_maskz_fixupimm_ss): Ditto.
25378 (_mm512_mask_fixupimm_round_pd): Update builtin.
25379 (_mm512_mask_fixupimm_round_ps): Ditto.
25380 (_mm_mask_fixupimm_round_sd): Ditto.
25381 (_mm_mask_fixupimm_round_ss): Ditto.
25382 (_mm512_mask_fixupimm_pd): Ditto.
25383 (_mm512_mask_fixupimm_ps): Ditto.
25384 (_mm_mask_fixupimm_sd): Ditto.
25385 (_mm_mask_fixupimm_ss): Ditto.
25386 * config/i386/avx512vlintrin.h:
25387 (_mm256_fixupimm_pd): Update parameters and builtin.
25388 (_mm256_maskz_fixupimm_pd): Ditto.
25389 (_mm256_fixupimm_ps): Ditto.
25390 (_mm256_maskz_fixupimm_ps): Ditto.
25391 (_mm_fixupimm_pd): Ditto.
25392 (_mm_maskz_fixupimm_pd): Ditto.
25393 (_mm_fixupimm_ps): Ditto.
25394 (_mm_maskz_fixupimm_ps): Ditto.
25395 (_mm256_mask_fixupimm_pd): Update builtin.
25396 (_mm256_mask_fixupimm_ps): Ditto.
25397 (_mm_mask_fixupimm_pd): Ditto.
25398 (_mm_mask_fixupimm_ps): Ditto.
25399 * config/i386/i386-builtin-types.def: Add new types and remove
25401 * config/i386/i386-builtin.def: Update builtin definitions.
25402 * config/i386/i386.c: Handle new builtin types and remove useless ones.
25403 * config/i386/sse.md: Update VFIXUPIMM* patterns.
25404 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25405 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25406 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
25407 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25408 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25409 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
25410 * config/i386/subst.md:
25411 (round_saeonly_sd_mask_operand4): Add new subst_attr.
25412 (round_saeonly_sd_mask_op4): Ditto.
25413 (round_saeonly_expand_operand5): Ditto.
25414 (round_saeonly_expand): Update.
25416 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25420 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
25422 * config/i386/sse.md: Combine VFIXUPIMM* patterns
25423 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25424 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25425 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
25426 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25427 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25428 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
25430 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25434 2018-12-15 Jakub Jelinek <jakub@redhat.com>
25437 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
25438 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
25439 instead of UNSPEC_FIXUPIMM.
25441 2019-01-17 Richard Biener <rguenther@suse.de>
25444 * dwarf2out.c (want_pubnames): Never generate pubnames sections
25445 and friends for the LTO part of debug info.
25447 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25449 PR tree-optimization/86214
25450 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
25453 PR rtl-optimization/88870
25454 * dce.c (deletable_insn_p): Never delete const/pure calls that can
25455 throw if we can't alter the cfg or delete dead exceptions.
25456 (mark_insn): Don't call find_call_stack_args for such calls.
25458 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
25460 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
25461 prototypes for vec_st.
25462 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
25463 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
25464 mainly on signed/unsigned long long and double.
25466 2019-01-16 David Malcolm <dmalcolm@redhat.com>
25469 * combine.c (delete_noop_moves): Convert to "bool" return,
25470 returning true if any edges are eliminated.
25471 (combine_instructions): Also return true if delete_noop_moves
25474 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25476 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
25477 correct max nunits for endian swap.
25478 (aarch64_expand_fcmla_builtin): Correct subreg code.
25479 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25480 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
25483 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
25485 * config/alpha/alpha.c (alpha_gimplify_va_arg):
25486 Handle split indirect COMPLEX_TYPE arguments.
25488 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
25491 * config/aarch64/aarch64-modes.def: Add comment about how the carry
25492 bit is set by add and compare.
25493 (CC_ADC): New CC_MODE.
25494 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
25495 to cache the code and mode of X. Adjust the shape of a CC_Cmode
25496 comparison. Add detection for CC_ADCmode.
25497 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
25499 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
25500 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
25501 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
25502 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
25503 to eliminate the need for zero-extending the operands.
25504 (add<mode>3_compareC_imm): Delete. Merge into ...
25505 (add<mode>3_compareC): ... this. Restructure the comparison to
25506 eliminate the need for zero-extending the operands.
25507 (add<mode>3_carryin): Use LTU for the overflow detection.
25508 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
25509 Reexpress comparison for overflow.
25510 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
25511 (add<mode>3_carryinC): Likewise.
25512 (add<mode>3_carryinV): Use LTU for carry between partials.
25513 * config/aarch64/predicates.md (aarch64_carry_operation): Update
25514 handling of CC_Cmode and add CC_ADCmode.
25515 (aarch64_borrow_operation): Likewise.
25517 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25519 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
25520 Remove patternmode.
25521 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
25522 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25523 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
25524 Remove endianness conversion.
25526 2019-01-16 Martin Liska <mliska@suse.cz>
25528 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
25530 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
25532 * gcc.c (add_sysrooted_hdrs_prefix): New function.
25533 (path_prefix_reset): Move up in the source file.
25534 (find_fortran_preinclude_file): Make complex search for the
25535 fortran header files.
25537 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
25539 * godump.c (go_output_typedef): When outputting a typedef, refer
25540 to the underlying type by its name and not its structure.
25542 2019-01-15 David Malcolm <dmalcolm@redhat.com>
25545 * tree.c (build_function_type): Assert that arg_types is not
25548 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
25550 PR inline-asm/52813
25551 * doc/extend.texi: Document that listing the stack pointer in the
25552 clobber list of an asm is a deprecated feature.
25553 * common.opt (Wdeprecated): Moved from c-family/c.opt.
25554 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
25555 warning instead of an error for clobbers of the stack pointer.
25556 Add a note explaining why.
25558 2019-01-15 Richard Biener <rguenther@suse.de>
25561 * dwarf2out.c (gen_member_die): Do not generate inheritance
25564 2019-01-15 Richard Biener <rguenther@suse.de>
25566 PR tree-optimization/88855
25567 * tree-if-conv.c (combine_blocks): Collect
25568 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
25570 2019-01-15 Tom de Vries <tdevries@suse.de>
25573 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
25574 lhs == NULL_TREE for gang-level reduction.
25576 2019-01-15 Richard Biener <rguenther@suse.de>
25577 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25580 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
25581 return true if SSA_NAME is already marked in visited bitmap.
25582 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
25584 2019-01-15 Jakub Jelinek <jakub@redhat.com>
25586 PR tree-optimization/88775
25587 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
25588 equal == 0 equality pointer comparisons some more if compared in
25589 integral types and either one points to an automatic var and the
25590 other to a global, or we can prove at least one points to the middle
25591 or both point to start or both point to end.
25593 2019-01-14 Andi Kleen <ak@linux.intel.com>
25595 * Makefile.in: Lower autofdo sampling rate by 10x.
25596 * Makefile.tpl: Dito.
25598 2019-01-14 Tom Honermann <tom@honermann.net>
25600 * defaults.h: Define CHAR8_TYPE.
25602 2019-01-14 Martin Sebor <msebor@redhat.com>
25605 * doc/extend.texi (Darwin Format Checks): Clarify.
25607 2019-01-14 Richard Biener <rguenther@suse.de>
25609 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
25610 whether we are in (simplify ...) or (match ...) context.
25612 2019-01-14 Jakub Jelinek <jakub@redhat.com>
25614 PR rtl-optimization/88796
25615 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
25616 * cfgexpand.c (stack_protect_prologue): Initialize
25617 crtl->stack_protect_guard_decl.
25618 * function.c (stack_protect_epilogue): Use it instead of calling
25619 targetm.stack_protect_guard again.
25620 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
25621 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
25622 crtl->stack_protect_guard_decl.
25623 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
25624 on the returned MEM_EXPR.
25626 2019-01-12 Tom de Vries <tdevries@suse.de>
25628 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
25629 vector length using -fopenacc-dim.
25631 2019-01-12 Tom de Vries <tdevries@suse.de>
25633 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
25634 lengths into account.
25636 2019-01-12 Svante Signell <svante.signell@gmail.com>
25638 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
25639 (TARGET_CAN_SPLIT_STACK): Define.
25640 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
25642 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
25644 * params.def (inline-unit-growth): Set to 40.
25646 2019-01-12 Jakub Jelinek <jakub@redhat.com>
25648 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
25650 2019-01-12 Tom de Vries <tdevries@suse.de>
25652 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
25653 region calling vector-partitionable routine, set default_vector_length
25656 2019-01-12 Tom de Vries <tdevries@suse.de>
25658 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
25659 variable default_vector_length.
25661 2019-01-12 Tom de Vries <tdevries@suse.de>
25663 PR middle-end/88703
25664 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
25665 from oacc_default_dims, as oacc_validate_dims would do it, and apply
25668 2019-01-12 Tom de Vries <tdevries@suse.de>
25670 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
25671 (nvptx_goacc_validate_dims): Add used parameter.
25672 * doc/tm.texi: Regenerate.
25673 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
25674 argument to call to targetm.goacc.validate_dims.
25675 (default_goacc_validate_dims): Add used
25677 * target.def (validate_dims): Add used parameter in DEFHOOK.
25678 * targhooks.h (default_goacc_validate_dims): Add used parameter.
25680 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25682 PR middle-end/85956
25684 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
25686 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
25687 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
25688 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
25689 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
25691 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
25693 PR rtl-optimization/87305
25695 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
25696 for little endian pseudos used as paradoxical subreg.
25698 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25700 PR tree-optimization/88693
25701 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
25702 for STRING_CSTs that don't contain any NUL characters in the first
25703 TREE_STRING_LENGTH bytes.
25705 2019-01-11 Alan Modra <amodra@gmail.com>
25709 * genattrtab.c (min_fn): Don't translate values.
25710 (min_attr_value): Return INT_MAX when the value can't be calculated.
25711 Return minimum among any values that can be calculated.
25712 (max_attr_value): Adjust.
25714 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25716 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
25718 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25720 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25721 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
25722 (aarch64_return_call_with_max_clobbers): New function.
25723 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
25724 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
25726 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
25727 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
25728 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
25729 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
25730 * cselib.c (cselib_process_insn): Add argument to
25731 targetm.hard_regno_call_part_clobbered call.
25732 * ira-conflicts.c (ira_build_conflicts): Ditto.
25733 * ira-costs.c (ira_tune_allocno_costs): Ditto.
25734 * lra-constraints.c (inherit_reload_reg): Ditto.
25735 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
25736 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
25737 argument. Call targetm.return_call_with_max_clobbers.
25738 Add argument to targetm.hard_regno_call_part_clobbered call.
25739 (calls_have_same_clobbers_p): New function.
25740 (process_bb_lives): Add call_insn and last_call_insn variables.
25741 Pass call_insn to check_pseudos_live_through_calls.
25742 Modify if stmt to check targetm.return_call_with_max_clobbers.
25743 Update setting of flush variable.
25744 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
25746 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
25747 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
25748 targetm.hard_regno_call_part_clobbered call.
25749 * reginfo.c (choose_hard_reg_mode): Ditto.
25750 * regrename.c (check_new_reg_p): Ditto.
25751 * reload.c (find_equiv_reg): Ditto.
25752 * reload1.c (emit_reload_insns): Ditto.
25753 * sched-deps.c (deps_analyze_insn): Ditto.
25754 * sel-sched.c (init_regs_for_mode): Ditto.
25755 (mark_unavailable_hard_regs): Ditto.
25756 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
25757 * target.def (hard_regno_call_part_clobbered): Add insn argument.
25758 (return_call_with_max_clobbers): New target function.
25759 * doc/tm.texi: Regenerate.
25760 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
25761 * hooks.c (hook_bool_uint_mode_false): Change to
25762 hook_bool_insn_uint_mode_false.
25763 * hooks.h (hook_bool_uint_mode_false): Ditto.
25765 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25767 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25768 (aarch64_remove_extra_call_preserved_regs): New function.
25769 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
25770 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
25771 * doc/tm.texi: Regenerate.
25772 * final.c (get_call_reg_set_usage): Call new hook.
25773 * target.def (remove_extra_call_preserved_regs): New hook.
25774 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
25775 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
25777 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25780 * passes.c (finish_optimization_passes): Call print_combine_total_stats
25781 inside of pass_combine_1 dump rather than pass_profile_1.
25783 2019-01-11 Tom de Vries <tdevries@suse.de>
25785 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
25786 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
25787 (PTX_NUM_PER_WORKER_BARRIERS): Define.
25788 (nvptx_apply_dim_limits): Prevent vector_length 64 and
25791 2019-01-11 Tom de Vries <tdevries@suse.de>
25793 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
25795 2019-01-11 Jan Beulich <jbeulich@suse.com>
25797 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
25798 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
25799 sse2_cvtsi2sd): Add {l}.
25800 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
25803 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25806 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
25808 (*float<floatunssuffix>v2div2sf2): New define_insn.
25809 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
25810 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
25811 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
25812 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
25813 match_operands with "const0_operand" "C".
25815 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25817 * config/aarch64/aarch64-builtins.c
25818 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
25819 (aarch64_init_simd_builtins): ...Here
25821 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
25823 PR rtl-optimization/87305
25825 (setup_live_pseudos_and_spill_after_risky_transforms): Check
25826 allocation for big endian pseudos used as paradoxical subregs and
25827 spill them if it is wrong.
25828 * lra-constraints.c (lra_constraints): Add a comment.
25830 2019-01-10 Richard Biener <rguenther@suse.de>
25832 PR tree-optimization/88792
25833 * tree-ssa-pre.c (get_representative_for): Do not return a
25836 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25838 PR middle-end/84877
25840 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
25841 (assign_parm_setup_block): Do the argument slot realignment here
25844 2019-01-10 Stefan Agner <stefan@agner.ch>
25847 * config/arm/arm.c (arm_option_override_internal): Force
25848 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
25850 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25853 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
25856 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25858 * config/arm/arm-builtins.c
25859 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
25860 (MAC_LANE_PAIR_QUALIFIERS): New.
25861 (arm_expand_builtin_args): Use it.
25862 (arm_expand_builtin_1): Likewise.
25863 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
25864 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
25865 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
25866 * config/arm/arm_neon.h:
25867 (vcadd_rot90_f16): New.
25868 (vcaddq_rot90_f16): New.
25869 (vcadd_rot270_f16): New.
25870 (vcaddq_rot270_f16): New.
25873 (vcmla_lane_f16): New.
25874 (vcmla_laneq_f16): New.
25875 (vcmlaq_lane_f16): New.
25876 (vcmlaq_laneq_f16): New.
25877 (vcmla_rot90_f16): New.
25878 (vcmlaq_rot90_f16): New.
25879 (vcmla_rot90_lane_f16): New.
25880 (vcmla_rot90_laneq_f16): New.
25881 (vcmlaq_rot90_lane_f16): New.
25882 (vcmlaq_rot90_laneq_f16): New.
25883 (vcmla_rot180_f16): New.
25884 (vcmlaq_rot180_f16): New.
25885 (vcmla_rot180_lane_f16): New.
25886 (vcmla_rot180_laneq_f16): New.
25887 (vcmlaq_rot180_lane_f16): New.
25888 (vcmlaq_rot180_laneq_f16): New.
25889 (vcmla_rot270_f16): New.
25890 (vcmlaq_rot270_f16): New.
25891 (vcmla_rot270_lane_f16): New.
25892 (vcmla_rot270_laneq_f16): New.
25893 (vcmlaq_rot270_lane_f16): New.
25894 (vcmlaq_rot270_laneq_f16): New.
25895 (vcadd_rot90_f32): New.
25896 (vcaddq_rot90_f32): New.
25897 (vcadd_rot270_f32): New.
25898 (vcaddq_rot270_f32): New.
25901 (vcmla_lane_f32): New.
25902 (vcmla_laneq_f32): New.
25903 (vcmlaq_lane_f32): New.
25904 (vcmlaq_laneq_f32): New.
25905 (vcmla_rot90_f32): New.
25906 (vcmlaq_rot90_f32): New.
25907 (vcmla_rot90_lane_f32): New.
25908 (vcmla_rot90_laneq_f32): New.
25909 (vcmlaq_rot90_lane_f32): New.
25910 (vcmlaq_rot90_laneq_f32): New.
25911 (vcmla_rot180_f32): New.
25912 (vcmlaq_rot180_f32): New.
25913 (vcmla_rot180_lane_f32): New.
25914 (vcmla_rot180_laneq_f32): New.
25915 (vcmlaq_rot180_lane_f32): New.
25916 (vcmlaq_rot180_laneq_f32): New.
25917 (vcmla_rot270_f32): New.
25918 (vcmlaq_rot270_f32): New.
25919 (vcmla_rot270_lane_f32): New.
25920 (vcmla_rot270_laneq_f32): New.
25921 (vcmlaq_rot270_lane_f32): New.
25922 (vcmlaq_rot270_laneq_f32): New.
25923 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
25924 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
25925 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
25926 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
25927 vcmlaq_lane270): New.
25928 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25929 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
25930 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
25931 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
25932 (arm_option_reconfigure_globals): Use them.
25933 * config/arm/iterators.md (VDF, VQ_HSF): New.
25934 (VCADD, VCMLA): New.
25935 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
25936 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
25938 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
25939 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
25941 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25943 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
25944 Add qualifier_lane_pair_index.
25945 (emit-rtl.h): Include.
25946 (TYPES_QUADOP_LANE_PAIR): New.
25947 (aarch64_simd_expand_args): Use it.
25948 (aarch64_simd_expand_builtin): Likewise.
25949 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
25951 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
25952 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
25953 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
25954 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
25955 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
25956 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
25957 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
25958 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
25959 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
25960 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
25961 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
25962 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
25963 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
25964 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
25965 Add __ARM_FEATURE_COMPLEX.
25966 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
25967 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
25968 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
25969 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
25970 fcmlaq_lane270): New.
25971 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25972 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
25973 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
25974 * config/aarch64/arm_neon.h:
25975 (vcadd_rot90_f16): New.
25976 (vcaddq_rot90_f16): New.
25977 (vcadd_rot270_f16): New.
25978 (vcaddq_rot270_f16): New.
25981 (vcmla_lane_f16): New.
25982 (vcmla_laneq_f16): New.
25983 (vcmlaq_lane_f16): New.
25984 (vcmlaq_rot90_lane_f16): New.
25985 (vcmla_rot90_laneq_f16): New.
25986 (vcmla_rot90_lane_f16): New.
25987 (vcmlaq_rot90_f16): New.
25988 (vcmla_rot90_f16): New.
25989 (vcmlaq_laneq_f16): New.
25990 (vcmla_rot180_laneq_f16): New.
25991 (vcmla_rot180_lane_f16): New.
25992 (vcmlaq_rot180_f16): New.
25993 (vcmla_rot180_f16): New.
25994 (vcmlaq_rot90_laneq_f16): New.
25995 (vcmlaq_rot270_laneq_f16): New.
25996 (vcmlaq_rot270_lane_f16): New.
25997 (vcmla_rot270_laneq_f16): New.
25998 (vcmlaq_rot270_f16): New.
25999 (vcmla_rot270_f16): New.
26000 (vcmlaq_rot180_laneq_f16): New.
26001 (vcmlaq_rot180_lane_f16): New.
26002 (vcmla_rot270_lane_f16): New.
26003 (vcadd_rot90_f32): New.
26004 (vcaddq_rot90_f32): New.
26005 (vcaddq_rot90_f64): New.
26006 (vcadd_rot270_f32): New.
26007 (vcaddq_rot270_f32): New.
26008 (vcaddq_rot270_f64): New.
26012 (vcmla_lane_f32): New.
26013 (vcmla_laneq_f32): New.
26014 (vcmlaq_lane_f32): New.
26015 (vcmlaq_laneq_f32): New.
26016 (vcmla_rot90_f32): New.
26017 (vcmlaq_rot90_f32): New.
26018 (vcmlaq_rot90_f64): New.
26019 (vcmla_rot90_lane_f32): New.
26020 (vcmla_rot90_laneq_f32): New.
26021 (vcmlaq_rot90_lane_f32): New.
26022 (vcmlaq_rot90_laneq_f32): New.
26023 (vcmla_rot180_f32): New.
26024 (vcmlaq_rot180_f32): New.
26025 (vcmlaq_rot180_f64): New.
26026 (vcmla_rot180_lane_f32): New.
26027 (vcmla_rot180_laneq_f32): New.
26028 (vcmlaq_rot180_lane_f32): New.
26029 (vcmlaq_rot180_laneq_f32): New.
26030 (vcmla_rot270_f32): New.
26031 (vcmlaq_rot270_f32): New.
26032 (vcmlaq_rot270_f64): New.
26033 (vcmla_rot270_lane_f32): New.
26034 (vcmla_rot270_laneq_f32): New.
26035 (vcmlaq_rot270_lane_f32): New.
26036 (vcmlaq_rot270_laneq_f32): New.
26037 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
26038 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
26039 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
26040 (FCADD, FCMLA): New.
26042 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
26044 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
26048 * config/pa/pa.c: Change "can not" to "cannot".
26049 * gimple-ssa-evrp-analyze.c: Likewise.
26050 * ipa-icf.c: Likewise.
26051 * ipa-polymorphic-call.c: Likewise.
26052 * ipa-pure-const.c: Likewise.
26053 * lra-constraints.c: Likewise.
26054 * lra-remat.c: Likewise.
26055 * reload1.c: Likewise.
26056 * reorg.c: Likewise.
26057 * tree-ssa-uninit.c: Likewise.
26059 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
26063 * Makefile.in: Mechanically replace "can not" with "cannot".
26064 * alias.c: Likewise.
26065 * builtins.c: Likewise.
26066 * calls.c: Likewise.
26067 * cgraph.c: Likewise.
26068 * cgraph.h: Likewise.
26069 * cgraphclones.c: Likewise.
26070 * cgraphunit.c: Likewise.
26071 * combine-stack-adj.c: Likewise.
26072 * combine.c: Likewise.
26073 * common/config/i386/i386-common.c: Likewise.
26074 * config/aarch64/aarch64.c: Likewise.
26075 * config/alpha/sync.md: Likewise.
26076 * config/arc/arc.c: Likewise.
26077 * config/arc/predicates.md: Likewise.
26078 * config/arm/arm-c.c: Likewise.
26079 * config/arm/arm.c: Likewise.
26080 * config/arm/arm.h: Likewise.
26081 * config/arm/arm.md: Likewise.
26082 * config/arm/cortex-r4f.md: Likewise.
26083 * config/csky/csky.c: Likewise.
26084 * config/csky/csky.h: Likewise.
26085 * config/darwin-f.c: Likewise.
26086 * config/epiphany/epiphany.md: Likewise.
26087 * config/i386/i386.c: Likewise.
26088 * config/i386/sol2.h: Likewise.
26089 * config/m68k/m68k.c: Likewise.
26090 * config/mcore/mcore.h: Likewise.
26091 * config/microblaze/microblaze.md: Likewise.
26092 * config/mips/20kc.md: Likewise.
26093 * config/mips/sb1.md: Likewise.
26094 * config/nds32/nds32.c: Likewise.
26095 * config/nds32/predicates.md: Likewise.
26096 * config/pa/pa.c: Likewise.
26097 * config/rs6000/e300c2c3.md: Likewise.
26098 * config/rs6000/rs6000.c: Likewise.
26099 * config/s390/s390.h: Likewise.
26100 * config/sh/sh.c: Likewise.
26101 * config/sh/sh.md: Likewise.
26102 * config/spu/vmx2spu.h: Likewise.
26103 * cprop.c: Likewise.
26104 * dbxout.c: Likewise.
26105 * df-scan.c: Likewise.
26106 * doc/cfg.texi: Likewise.
26107 * doc/extend.texi: Likewise.
26108 * doc/fragments.texi: Likewise.
26109 * doc/gty.texi: Likewise.
26110 * doc/invoke.texi: Likewise.
26111 * doc/lto.texi: Likewise.
26112 * doc/md.texi: Likewise.
26113 * doc/objc.texi: Likewise.
26114 * doc/rtl.texi: Likewise.
26115 * doc/tm.texi: Likewise.
26117 * emit-rtl.c: Likewise.
26118 * emit-rtl.h: Likewise.
26119 * except.c: Likewise.
26120 * expmed.c: Likewise.
26121 * expr.c: Likewise.
26122 * fold-const.c: Likewise.
26123 * genautomata.c: Likewise.
26124 * gimple-fold.c: Likewise.
26125 * hard-reg-set.h: Likewise.
26126 * ifcvt.c: Likewise.
26127 * ipa-comdats.c: Likewise.
26128 * ipa-cp.c: Likewise.
26129 * ipa-devirt.c: Likewise.
26130 * ipa-fnsummary.c: Likewise.
26131 * ipa-icf.c: Likewise.
26132 * ipa-inline-transform.c: Likewise.
26133 * ipa-inline.c: Likewise.
26134 * ipa-polymorphic-call.c: Likewise.
26135 * ipa-profile.c: Likewise.
26136 * ipa-prop.c: Likewise.
26137 * ipa-pure-const.c: Likewise.
26138 * ipa-reference.c: Likewise.
26139 * ipa-split.c: Likewise.
26140 * ipa-visibility.c: Likewise.
26142 * ira-build.c: Likewise.
26143 * ira-color.c: Likewise.
26144 * ira-conflicts.c: Likewise.
26145 * ira-costs.c: Likewise.
26146 * ira-int.h: Likewise.
26147 * ira-lives.c: Likewise.
26150 * loop-invariant.c: Likewise.
26151 * loop-unroll.c: Likewise.
26152 * lower-subreg.c: Likewise.
26153 * lra-assigns.c: Likewise.
26154 * lra-constraints.c: Likewise.
26155 * lra-eliminations.c: Likewise.
26156 * lra-lives.c: Likewise.
26157 * lra-remat.c: Likewise.
26158 * lra-spills.c: Likewise.
26160 * lto-cgraph.c: Likewise.
26161 * lto-streamer-out.c: Likewise.
26162 * postreload-gcse.c: Likewise.
26163 * predict.c: Likewise.
26164 * profile-count.h: Likewise.
26165 * profile.c: Likewise.
26166 * recog.c: Likewise.
26168 * reload.c: Likewise.
26169 * reload1.c: Likewise.
26170 * reorg.c: Likewise.
26171 * resource.c: Likewise.
26172 * rtl.def: Likewise.
26174 * rtlanal.c: Likewise.
26175 * sched-deps.c: Likewise.
26176 * sched-ebb.c: Likewise.
26177 * sched-rgn.c: Likewise.
26178 * sel-sched-ir.c: Likewise.
26179 * sel-sched.c: Likewise.
26180 * shrink-wrap.c: Likewise.
26181 * simplify-rtx.c: Likewise.
26182 * symtab.c: Likewise.
26183 * target.def: Likewise.
26184 * toplev.c: Likewise.
26185 * tree-call-cdce.c: Likewise.
26186 * tree-cfg.c: Likewise.
26187 * tree-complex.c: Likewise.
26188 * tree-core.h: Likewise.
26189 * tree-eh.c: Likewise.
26190 * tree-inline.c: Likewise.
26191 * tree-loop-distribution.c: Likewise.
26192 * tree-nrv.c: Likewise.
26193 * tree-profile.c: Likewise.
26194 * tree-sra.c: Likewise.
26195 * tree-ssa-alias.c: Likewise.
26196 * tree-ssa-dce.c: Likewise.
26197 * tree-ssa-dom.c: Likewise.
26198 * tree-ssa-forwprop.c: Likewise.
26199 * tree-ssa-loop-im.c: Likewise.
26200 * tree-ssa-loop-ivcanon.c: Likewise.
26201 * tree-ssa-loop-ivopts.c: Likewise.
26202 * tree-ssa-loop-niter.c: Likewise.
26203 * tree-ssa-phionlycprop.c: Likewise.
26204 * tree-ssa-phiopt.c: Likewise.
26205 * tree-ssa-propagate.c: Likewise.
26206 * tree-ssa-threadedge.c: Likewise.
26207 * tree-ssa-threadupdate.c: Likewise.
26208 * tree-ssa-uninit.c: Likewise.
26209 * tree-ssanames.c: Likewise.
26210 * tree-streamer-out.c: Likewise.
26211 * tree.c: Likewise.
26212 * tree.h: Likewise.
26213 * vr-values.c: Likewise.
26215 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
26217 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
26218 (ix86_split_xorsign): Ditto.
26219 * config/i386/i386.c (ix86_expand_xorsign): New function.
26220 (ix86_split_xorsign): Ditto.
26221 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
26222 (xorsign<mode>3): New expander.
26223 (xorsign<mode>3_1): New insn_and_split pattern.
26224 * config/i386/sse.md (xorsign<mode>3): New expander.
26226 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26228 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
26229 (*tablejump_sp64): Likewise.
26230 (*tablejump<P:mode>): ...this.
26231 (*call_address_sp32): Merge into...
26232 (*call_address_sp64): Likewise.
26233 (*call_address<P:mode>): ...this.
26234 (*call_symbolic_sp32): Merge into...
26235 (*call_symbolic_sp64): Likewise.
26236 (*call_symbolic<P:mode>): ...this.
26237 (call_value): Remove constraint and add predicate.
26238 (*call_value_address_sp32): Merge into...
26239 (*call_value_address_sp64): Likewise.
26240 (*call_value_address<P:mode>): ...this.
26241 (*call_value_symbolic_sp32): Merge into...
26242 (*call_value_symbolic_sp64): Likewise.
26243 (*call_value_symbolic<P:mode>): ...this.
26244 (*sibcall_symbolic_sp32): Merge into...
26245 (*sibcall_symbolic_sp64): Likewise.
26246 (*sibcall_symbolic<P:mode>): ...this.
26247 (sibcall_value): Remove constraint and add predicate.
26248 (*sibcall_value_symbolic_sp32): Merge into...
26249 (*sibcall_value_symbolic_sp64): Likewise.
26250 (*sibcall_value_symbolic<P:mode>): ...this.
26251 (window_save): Minor tweak.
26252 (*branch_sp32): Merge into...
26253 (*branch_sp64): Likewise.
26254 (*branch<P:mode>): ...this.
26256 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26257 James Clarke <jrtc27@jrtc27.com>
26260 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
26261 consistently in TLS address generation and adjust code to the renaming
26262 of patterns. Mark calls to __tls_get_addr as const.
26263 * config/sparc/sparc.md (tgd_hi22): Turn into...
26264 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
26265 (tgd_lo10): Turn into...
26266 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
26267 (tgd_add32): Merge into...
26268 (tgd_add64): Likewise.
26269 (tgd_add<P:mode>): ...this and use Pmode throughout.
26270 (tldm_hi22): Turn into...
26271 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
26272 (tldm_lo10): Turn into...
26273 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
26274 (tldm_add32): Merge into...
26275 (tldm_add64): Likewise.
26276 (tldm_add<P:mode>): ...this and use Pmode throughout.
26277 (tldm_call32): Merge into...
26278 (tldm_call64): Likewise.
26279 (tldm_call<P:mode>): ...this and use Pmode throughout.
26280 (tldo_hix22): Turn into...
26281 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
26282 (tldo_lox10): Turn into...
26283 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
26284 (tldo_add32): Merge into...
26285 (tldo_add64): Likewise.
26286 (tldo_add<P:mode>): ...this and use Pmode throughout.
26287 (tie_hi22): Turn into...
26288 (tie_hi22<P:mode>): ...this and use Pmode throughout.
26289 (tie_lo10): Turn into...
26290 (tie_lo10<P:mode>): ...this and use Pmode throughout.
26291 (tie_ld64): Use DImode throughout.
26292 (tie_add32): Merge into...
26293 (tie_add64): Likewise.
26294 (tie_add<P:mode>): ...this and use Pmode throughout.
26295 (tle_hix22_sp32): Merge into...
26296 (tle_hix22_sp64): Likewise.
26297 (tle_hix22<P:mode>): ...this and use Pmode throughout.
26298 (tle_lox22_sp32): Merge into...
26299 (tle_lox22_sp64): Likewise.
26300 (tle_lox22<P:mode>): ...this and use Pmode throughout.
26301 (*tldo_ldub_sp32): Merge into...
26302 (*tldo_ldub_sp64): Likewise.
26303 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
26304 (*tldo_ldub1_sp32): Merge into...
26305 (*tldo_ldub1_sp64): Likewise.
26306 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
26307 (*tldo_ldub2_sp32): Merge into...
26308 (*tldo_ldub2_sp64): Likewise.
26309 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
26310 (*tldo_ldsb1_sp32): Merge into...
26311 (*tldo_ldsb1_sp64): Likewise.
26312 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
26313 (*tldo_ldsb2_sp32): Merge into...
26314 (*tldo_ldsb2_sp64): Likewise.
26315 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
26316 (*tldo_ldub3_sp64): Use DImode throughout.
26317 (*tldo_ldsb3_sp64): Likewise.
26318 (*tldo_lduh_sp32): Merge into...
26319 (*tldo_lduh_sp64): Likewise.
26320 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
26321 (*tldo_lduh1_sp32): Merge into...
26322 (*tldo_lduh1_sp64): Likewise.
26323 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
26324 (*tldo_ldsh1_sp32): Merge into...
26325 (*tldo_ldsh1_sp64): Likewise.
26326 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
26327 (*tldo_lduh2_sp64): Use DImode throughout.
26328 (*tldo_ldsh2_sp64): Likewise.
26329 (*tldo_lduw_sp32): Merge into...
26330 (*tldo_lduw_sp64): Likewise.
26331 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
26332 (*tldo_lduw1_sp64): Use DImode throughout.
26333 (*tldo_ldsw1_sp64): Likewise.
26334 (*tldo_ldx_sp64): Likewise.
26335 (*tldo_stb_sp32): Merge into...
26336 (*tldo_stb_sp64): Likewise.
26337 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
26338 (*tldo_sth_sp32): Merge into...
26339 (*tldo_sth_sp64): Likewise.
26340 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
26341 (*tldo_stw_sp32): Merge into...
26342 (*tldo_stw_sp64): Likewise.
26343 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
26344 (*tldo_stx_sp64): Use DImode throughout.
26346 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26348 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
26349 check configure option to set BTI and Return Address Signing.
26350 * configure.ac: Add --enable-standard-branch-protection and
26351 --disable-standard-branch-protection.
26352 * configure: Regenerated.
26353 * doc/install.texi: Document the same.
26355 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26356 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26358 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
26359 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
26360 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
26362 * config/aarch64/aarch64-bti-insert.c: New file.
26363 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
26365 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
26367 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
26368 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
26369 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
26370 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
26372 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26374 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
26375 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
26376 Disable bti for -mbranch-protection=none.
26377 (aarch64_handle_standard_branch_protection): Enable bti for
26378 -mbranch-protection=standard.
26379 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
26380 -mbranch-protection.
26381 (aarch64_bti_enabled): Check if bti is enabled.
26382 * config/aarch64/aarch64.opt: Declare target variable.
26383 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
26385 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26387 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
26388 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
26389 (aarch64_expand_epilogue): Likewise.
26390 (aarch64_output_mi_thunk): Likewise.
26391 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
26392 TAILCALL_ADDR_REGS to x16 and x17.
26393 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
26395 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26397 * config/aarch64/aarch64-option-extensions.def: Define
26398 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
26399 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
26400 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
26401 (AARCH64_FL_PREDRES): New.
26402 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
26403 AARCH64_FL_PREDRES by default.
26404 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
26406 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26408 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
26410 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
26411 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
26412 * doc/invoke.texi: Document ARMv8.5-A.
26414 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26416 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
26417 (xorsign<mode>3): Likewise.
26419 2019-01-09 Jelinek <jakub@redhat.com>
26421 PR middle-end/88758
26422 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
26423 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
26425 PR rtl-optimization/88331
26426 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
26427 not currently_expanding_to_rtl.
26429 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26431 * doc/invoke.texi (-Os): Remove trailing spaces.
26432 (-finline-functions): Remove reference to -O2.
26434 2019-01-08 Jakub Jelinek <jakub@redhat.com>
26436 PR rtl-optimization/79593
26437 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
26439 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
26440 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
26442 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
26445 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
26449 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
26450 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
26452 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
26455 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
26456 ix86_avx_u128_mode_entry.
26458 2019-01-08 Martin Liska <mliska@suse.cz>
26460 PR tree-optimization/88753
26461 * tree-switch-conversion.c (switch_conversion::build_one_array):
26462 Come up with local variable constructor. Convert first to
26463 type of constructor values.
26465 2019-01-08 Richard Biener <rguenther@suse.de>
26467 PR tree-optimization/86554
26468 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
26469 rpo_avail): Move earlier.
26470 (visit_nary_op): When value-numbering to expressions
26471 with different overflow behavior make sure there's an
26472 available expression on the path.
26474 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
26476 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
26477 aarch64_parse_branch_protection,
26478 struct aarch64_branch_protect_type,
26479 aarch64_handle_no_branch_protection,
26480 aarch64_handle_standard_branch_protection,
26481 aarch64_validate_mbranch_protection,
26482 aarch64_handle_pac_ret_protection,
26483 aarch64_handle_attr_branch_protection,
26484 accepted_branch_protection_string,
26485 aarch64_pac_ret_subtypes,
26486 aarch64_branch_protect_types,
26487 aarch64_handle_pac_ret_leaf): Define.
26488 (aarch64_override_options_after_change_1, aarch64_override_options):
26489 Add check for accepted_branch_protection_string.
26490 (aarch64_option_save): Save accepted_branch_protection_string.
26491 (aarch64_option_restore): Save accepted_branch_protection_string.
26492 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
26493 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
26494 msign-return-address.
26495 * doc/invoke.texi: Add mbranch-protection.
26497 2019-01-08 Alan Modra <amodra@gmail.com>
26500 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
26501 Delete "unknownp" parameter. Adjust callers. Handle
26502 CONST_INT, PLUS, MINUS, and MULT.
26503 (attr_value_aligned): Renamed from or_attr_value.
26504 (min_attr_value): Return INT_MIN for unhandled rtl case..
26505 (min_fn): ..and translate to INT_MAX here.
26506 (write_length_unit_log): Modify to cope without "unknown".
26507 (write_attr_value): Handle IF_THEN_ELSE.
26509 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26511 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
26512 optimization for masked stores.
26514 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26516 PR middle-end/88567
26517 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
26518 output vector directly to duplicate_and_interleave instead of
26519 going through a temporary. Postpone insertion of ctor_seq to
26520 the end of the loop.
26522 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
26525 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
26526 unsigned_p. Handle signed and unsigned overflow correction as
26528 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
26530 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
26532 (add<mode>3_compareV_imm): Make this callable for expanding.
26533 (subv<GPI:mode>4): Use register_operand for operand 1. Use
26534 aarch64_plus_operand for operand 2.
26535 (subv<GPI:mode>_insn): New insn pattern.
26536 (subv<GPI:mode>_imm): Likewise.
26537 (negv<GPI:mode>3): New expand pattern.
26538 (negv<GPI:mode>_insn): New insn pattern.
26539 (negv<GPI:mode>_cmp_only): Likewise.
26540 (cmpv<GPI:mode>_insn): Likewise.
26541 (subvti4): Use register_operand for operand 1. Update call to
26542 aarch64_expand_subvti.
26543 (usubvti4): Likewise.
26544 (negvti3): New expand pattern.
26545 (negdi_carryout): New insn pattern.
26546 (negvdi_carryinV): New insn pattern.
26547 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
26548 version the named version.
26549 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
26551 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
26553 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
26555 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
26556 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
26557 (sub<mode>3_carryinCV): Delete.
26558 (sub<GPI:mode>3_carryinV): New expand pattern.
26559 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
26561 2019-01-07 Richard Biener <rguenther@suse.de>
26563 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
26564 of tree_operand_hash.
26566 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26568 PR tree-optimization/88598
26569 * tree.h (single_nonzero_element): Declare.
26570 * tree.c (single_nonzero_element): New function.
26571 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
26572 if I is the only nonzero element of CST.
26574 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26576 PR tree-optimization/88598
26577 * tree.h (initializer_each_zero_or_onep): Declare.
26578 * tree.c (initializer_each_zero_or_onep): New function.
26579 (signed_or_unsigned_type_for): Handle float types too.
26580 (unsigned_type_for, signed_type_for): Update comments accordingly.
26581 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
26582 x & { 0 or -1, 0 or -1, ... }.
26584 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
26586 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
26587 with x86_64-pc-linux-gnu.
26589 2019-01-07 Tom de Vries <tdevries@suse.de>
26592 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
26594 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
26597 2019-01-07 Jakub Jelinek <jakub@redhat.com>
26599 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
26600 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
26601 TARGET_AVX512F as condition.
26604 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
26605 const_not_ok_for_debug_p target hook.
26606 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
26607 on UNSPEC and subexpressions thereof if all subexpressions of the
26608 UNSPEC are CONSTANT_P.
26610 PR tree-optimization/88676
26611 * tree-ssa-phiopt.c (two_value_replacement): New function.
26612 (tree_ssa_phiopt_worker): Call it.
26615 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
26616 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
26619 * tree-vect-generic.c: Include insn-config.h and recog.h.
26620 (expand_vector_piecewise): Add defaulted ret_type argument,
26621 if non-NULL, use that in preference to type for the result type.
26622 (expand_vector_parallel): Formatting fix.
26623 (do_vec_conversion, do_vec_narrowing_conversion,
26624 expand_vector_conversion): New functions.
26625 (expand_vector_operations_1): Call expand_vector_conversion
26626 for VEC_CONVERT ifn calls.
26627 * internal-fn.def (VEC_CONVERT): New internal function.
26628 * internal-fn.c (expand_VEC_CONVERT): New function.
26629 * fold-const-call.c (fold_const_vec_convert): New function.
26630 (fold_const_call): Use it for CFN_VEC_CONVERT.
26631 * doc/extend.texi (__builtin_convertvector): Document.
26633 2019-01-07 Tom de Vries <tdevries@suse.de>
26635 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
26636 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
26637 vector_red_partition, vector_red_sym): New global variables.
26638 (nvptx_option_override): Initialize vector_red_sym.
26639 (nvptx_declare_function_name): Restore red_partition register.
26640 (nvptx_file_end): Emit code to declare the vector reduction variables.
26641 (nvptx_output_red_partition): New function.
26642 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
26643 large vector reductions.
26644 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
26645 (nvptx_init_builtins): Add VECTOR_ADDR.
26646 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
26647 Handle nvptx_expand_shared_addr.
26648 (nvptx_get_shared_red_addr): Add vector argument and handle large
26650 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
26652 (nvptx_goacc_reduction_init): Likewise.
26653 (nvptx_goacc_reduction_fini): Likewise.
26654 (nvptx_goacc_reduction_teardown): Likewise.
26655 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
26656 init,fini,teardown}.
26657 (nvptx_init_axis_predicate): Initialize vector_red_partition.
26658 (nvptx_set_current_function): Init vector_red_partition.
26659 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
26660 (nvptx_red_partition): New insn.
26661 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
26663 2019-01-07 Tom de Vries <tdevries@suse.de>
26666 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
26669 2019-01-07 Tom de Vries <tdevries@suse.de>
26671 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
26672 (nvptx_option_override): Init oacc_bcast_partition.
26673 (nvptx_init_oacc_workers): New function.
26674 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
26675 (nvptx_needs_shared_bcast): New function.
26676 (nvptx_find_par): Generalize to enable vectors to use shared-memory
26677 to propagate state.
26678 (nvptx_shared_propagate): Initialize vector bcast partition and
26679 synchronization state.
26680 (nvptx_single): Generalize to enable vectors to use shared-memory
26681 to propagate state.
26682 (nvptx_process_pars): Likewise.
26683 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
26684 * config/nvptx/nvptx.h (struct machine_function): Add
26685 bcast_partition and sync_bar members.
26687 2019-01-07 Tom de Vries <tdevries@suse.de>
26689 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
26690 (nvptx_apply_dim_limits): New function.
26691 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
26694 2019-01-07 Tom de Vries <tdevries@suse.de>
26696 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
26697 as late as possible.
26699 2019-01-07 Tom de Vries <tdevries@suse.de>
26701 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
26702 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
26703 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
26704 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
26705 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
26707 2019-01-07 Tom de Vries <tdevries@suse.de>
26709 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
26711 2019-01-07 Tom de Vries <tdevries@suse.de>
26713 * omp-offload.c (oacc_get_min_dim): New function.
26714 * omp-offload.h (oacc_get_min_dim): Declare.
26716 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
26719 * config/i386/i386.c (function_value_ms_64): Return small sturct in
26720 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
26722 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26726 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
26728 * ipa-inline.c (edge_badness): Use inlined_time instead of
26729 inline_summaries->get.
26731 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26733 * opts.c (enable_fdo_optimizations): Enable
26734 version-loops-for-strides, loop-interchange, unrol-and-jam
26735 and tree-loop-distribution.
26736 * invoke.texi: Document newly enabled options.
26738 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26740 * doc/invoke.texi (max-inline-insns-small): New parameters.
26741 * ipa-inline.c (want_early_inline_function_p): simplify.
26742 (want_inline_small_function_p): Fix pasto from previous patch;
26743 use max-inline-insns-small bound.
26744 * params.def (max-inline-insns-small): New param.
26745 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
26746 variables correctly.
26748 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26750 * doc/invoke.texi: Document max-inline-insns-size,
26751 uninlined-function-insns, uninlined-function-time,
26752 uninlined-thunk-insns and uninlined-thunk-time.
26753 * params.def: Add max-inline-insns-size,
26754 uninlined-function-insns, uninlined-function-time,
26755 uninlined-thunk-insns and uninlined-thunk-time.
26756 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
26758 * ipa-inline.c (can_inline_edge_by_limits_p,
26759 want_inline_small_function_p): Use new parameters.
26761 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26763 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
26765 2019-01-05 Jakub Jelinek <jakub@redhat.com>
26767 PR middle-end/82564
26769 * expr.c (expand_assignment): For calls returning VLA structures
26770 if to_rtx is not a MEM, force it into a stack temporary.
26773 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
26774 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
26775 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
26776 subexpressions of both operands.
26777 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
26778 subrtxes are CONSTANT_P.
26779 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
26780 2018-11-09 changes.
26782 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
26784 * params.def (hot-bb-count-ws-permille): Set to 990.
26786 2019-01-04 Martin Sebor <msebor@redhat.com>
26789 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
26792 2019-01-04 Martin Sebor <msebor@redhat.com>
26795 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
26797 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26799 * gdbinit.in: Turn off pagination for the skip commands, restore
26800 it to previous state afterwards.
26802 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26805 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
26806 of GET_MODE (opN) as modes of the libcall arguments.
26808 2019-01-04 Jan Beulich <jbeulich@suse.com>
26810 * config/i386/sse.md
26811 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
26812 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
26813 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26814 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26815 avx512f_vmcmp<mode>3<round_saeonly_name>,
26816 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
26817 avx512f_maskcmp<mode>3,
26818 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26819 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26820 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26821 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26822 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26823 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26824 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26825 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26826 <avx512>_testm<mode>3<mask_scalar_merge_name>,
26827 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
26828 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
26829 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
26830 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
26831 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
26832 avx512cd_maskb_vec_dup<mode>,
26833 avx512cd_maskw_vec_dup<mode>,
26834 avx512dq_fpclass<mode><mask_scalar_merge_name>,
26835 avx512dq_vmfpclass<mode>,
26836 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
26839 2019-01-03 Martin Sebor <msebor@redhat.com>
26841 PR tree-optimization/88659
26842 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
26844 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
26846 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
26847 unaligned vsx and avoid lxvd2x/stxvd2x.
26848 (gen_lvx_v4si_move): New function.
26850 2019-01-03 Tom de Vries <tdevries@suse.de>
26852 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
26853 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
26855 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
26857 2019-01-03 Tom de Vries <tdevries@suse.de>
26859 * config/nvptx/nvptx.c (struct offload_attrs): New.
26860 (populate_offload_attrs): New function. Factor mask extraction out of
26861 nvptx_reorg. Add extraction of dimensions.
26862 (nvptx_reorg): Use populate_offload_attrs.
26864 2019-01-03 Tom de Vries <tdevries@suse.de>
26866 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
26867 cases for oacc_min_dims_p and routine_p. Add asserts for
26868 oacc_default_dims_p and offload_region_p.
26870 2019-01-03 Tom de Vries <tdevries@suse.de>
26872 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
26873 factored out of ...
26874 (nvptx_goacc_validate_dims): ... here.
26876 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26878 PR tree-optimization/85574
26879 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
26881 (struct ssa_equip_hash_traits): Declare.
26882 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
26884 2019-01-03 Jakub Jelinek <jakub@redhat.com>
26887 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
26888 change it to qualified_type.
26890 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26892 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
26893 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
26895 2019-01-02 Martin Sebor <msebor@redhat.com>
26896 Jeff Law <law@redhat.com>
26898 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
26899 (get_range_strlen_tree): Update appropriately.
26901 * gimple-fold.h (get_range_strlen): Drop unused last argument.
26903 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
26904 rather than set_range_info.
26905 * tree-ssa-strlen.c (set_strlen_range): Extracted from
26906 maybe_set_strlen_range. Handle potentially boundary crossing
26907 cases more conservatively.
26908 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
26909 Call set_strlen_range.
26910 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
26912 PR middle-end/88663
26913 * gimple-fold.c (get_range_strlen): Update prototype to no longer
26914 need the flexp argument.
26915 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
26916 from calls to get_range_strlen. Update comments. Just update
26917 VAL for an unterminated const char array and let the reset of the
26918 code handle it normally. No longer try to set *flexp. Adjust
26920 (get_range_strlen): Update for the new get_range_strlen API.
26921 (get_maxval_strlen): Similarly.
26922 (gimple_fold_builtin_strlen): Handle update meaning of return value
26923 from get_range_strlen.
26924 * gimple-ssa-sprintf.c (get_string_length): Update for the new
26925 get_range_strlen API.
26927 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
26930 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
26931 false at WPA time when body was removed.
26933 2019-01-02 Martin Liska <mliska@suse.cz>
26935 PR tree-optimization/88650
26936 * predict.c (set_even_probabilities): Calculate probability
26937 remainer only when really used.
26939 2019-01-02 Richard Biener <rguenther@suse.de>
26941 PR middle-end/88651
26942 * tree-data-ref.c (analyze_subscript_affine_affine): Use
26943 widest_ints when mangling max_stmt_execution results.
26945 2019-01-02 Richard Biener <rguenther@suse.de>
26947 PR tree-optimization/88621
26948 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
26949 bitfields when canoncalizing.
26951 2019-01-02 Richard Biener <rguenther@suse.de>
26954 * config/i386/x86-tune-costs.h (intel_cost): Adjust
26955 cost of cheap SSE instruction.
26957 2019-01-02 Richard Biener <rguenther@suse.de>
26960 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
26961 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
26963 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
26964 set after UIDs before splitting them.
26966 2019-01-01 Martin Sebor <msebor@redhat.com>
26967 Jeff Law <law@redhat.com>
26969 * gimple-fold.c (get_range_strlen_tree): Record if the computed
26970 length is optimistic. If it is, then arrange to compute the
26971 conservative length as well.
26973 * gimple-fold.h (get_range_strlen): Update prototype.
26974 * builtins.c (check_access): Update call to get_range_strlen to use
26975 c_strlen_data pointer. Change various variable accesses to instead
26976 pull data from the c_strlen_data structure.
26977 (check_strncat_sizes, expand_builtin_strncat): Likewise.
26978 * calls.c (maybe_warn_nonstring_arg): Likewise.
26979 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
26980 minimum length if maximum lengh is unknown.
26981 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
26982 that used c_strlen, it's no longer needed. Restructure slightly.
26983 (format_string): Set unlikely range appropriately.
26984 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
26986 (get_range_strlen): Accept c_strlen_data pointer for external
26987 call sites as well. Pass through to call to internal get_range_strlen.
26988 Adjust minlen, maxlen and maxbound as needed.
26989 (get_maxval_strlen): Update comments.
26990 (gimple_fold_builtin_strlen): Update call to get_range_strlen
26991 to use c_strlen_data pointer. Change variable accesses to instead
26992 use c_strlen_data data members.
26994 * gimple-fold.c (get_range_strlen): Update prototype.
26995 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
26996 local variables. Use pdata to return information to caller.
26997 Update calls to get_range_strlen. Update pdata->maxbound.
26998 (get_range_strlen -- static version): Similarly.
26999 (get_range_strlen -- extern version): Update for internal
27000 get_range_strlen API change. Convert to external data format.
27001 (get_maxval_strlen): Similarly.
27003 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
27005 * coverage.c (get_coverage_counts): Use current_function_decl.
27006 * profile.c (read_thunk_profile): New function.
27007 (branch_prob): Add THUNK parameter.
27008 * tree-profile.c (tree_profiling): Handle thunks.
27009 * value-prof.c (init_node_map): Handle thunks.
27010 * value-prof.h (branch_prob): Upate prototype.
27011 (read_thunk_profile): Declare.
27013 2019-01-01 Jakub Jelinek <jakub@redhat.com>
27015 Update copyright years.
27017 * gcc.c (process_command): Update copyright notice dates.
27018 * gcov-dump.c (print_version): Ditto.
27019 * gcov.c (print_version): Ditto.
27020 * gcov-tool.c (print_version): Ditto.
27021 * gengtype.c (create_file): Ditto.
27022 * doc/cpp.texi: Bump @copying's copyright year.
27023 * doc/cppinternals.texi: Ditto.
27024 * doc/gcc.texi: Ditto.
27025 * doc/gccint.texi: Ditto.
27026 * doc/gcov.texi: Ditto.
27027 * doc/install.texi: Ditto.
27028 * doc/invoke.texi: Ditto.
27030 Copyright (C) 2019 Free Software Foundation, Inc.
27032 Copying and distribution of this file, with or without modification,
27033 are permitted in any medium without royalty provided the copyright
27034 notice and this notice are preserved.