1 2019-08-05 Alan Modra <amodra@gmail.com>
4 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
5 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
7 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
9 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
10 bug that was fixed in Tcl 8.6.1.
12 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
15 check to use targetm.slow_unaligned_access instead.
17 * function.c (assign_param_data_one): Remove unused data members.
19 2019-08-02 Steve Ellcey <sellcey@marvell.com>
21 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
22 build_distinct_type_copy.
23 (simd_clone_adjust_argument_types): Ditto.
24 (simd_clone_adjust): Call build_distinct_type_copy here.
25 (expand_simd_clones): Ditto.
27 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
30 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
32 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
34 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
36 (sort_locs_in_loop_postorder_cmp): Likewise.
38 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
40 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
41 (hot-bb-count-ws-permille): Likewise.
42 (hot-bb-frequency-fraction): Likewise.
43 (unlikely-bb-count-fraction): Likewise.
44 * params.def (hot-bb-count-fraction): Rework description.
45 (hot-bb-count-ws-permille): Likewise.
46 (hot-bb-frequency-fraction): Likewise.
47 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
48 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
50 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
53 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
56 2019-08-02 Richard Biener <rguenther@suse.de>
58 * vec.h (vec::sort): Add gcc_qsort_r support.
59 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
60 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
61 to gcc_qsort_r style callback.
62 (sort_locs_in_loop_postorder_cmp): Likewise.
63 (analyze_memory_references): Use gcc_sort_r interfaces.
64 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
66 2019-08-02 Martin Liska <mliska@suse.cz>
69 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
70 to detect working job server.
71 (driver::detect_jobserver): Test whether jobserver
72 is active from GCC driver. That will prevent situation where
73 GCC is invoked from a LD plugin and the linker already uses
74 file descriptors suggested by make. That leads to a wrong
76 * gcc.h (driver): Add detect_jobserver.
77 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
78 not scanning for --jobserver-auth prefix.
80 2019-08-02 Jakub Jelinek <jakub@redhat.com>
82 PR tree-optimization/91201
83 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
84 V16QImode extraction without sse4.1 try to use V4SImode lowpart
87 2019-08-01 Martin Sebor <msebor@redhat.com>
90 * tree.c (type_initializer_zero_p): Define.
91 * tree.h (type_initializer_zero_p): New function.
93 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
95 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
97 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
99 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
100 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
101 * predict.c (maybe_hot_count_p): Likewise.
102 (maybe_hot_bb_p): Tweak comment.
103 (maybe_hot_edge_p): Likewise.
104 (probably_never_executed): Likewise. Minor tweak.
105 (probably_never_executed_bb_p): Likewise.
106 (unlikely_executed_edge_p): Likewise.
107 (probably_never_executed_edge_p): Likewise.
108 (optimize_function_for_size_p): Likewise.
109 (optimize_function_for_speed_p): Likewise.
110 (function_optimization_type): Likewise.
111 (optimize_bb_for_size_p): Likewise.
112 (optimize_bb_for_speed_p): Likewise.
113 (bb_optimization_type): Likewise.
114 (optimize_edge_for_size_p): Likewise.
115 (optimize_edge_for_speed_p): Likewise.
116 (optimize_insn_for_size_p): Likewise.
117 (optimize_insn_for_speed_p): Likewise.
118 (optimize_loop_for_size_p): Likewise.
119 (optimize_loop_for_speed_p): Likewise.
120 (optimize_loop_nest_for_speed_p): Likewise.
121 (optimize_loop_nest_for_size_p): Likewise.
122 (predictable_edge_p): Likewise.
123 (handle_missing_profiles): Minor tweak.
125 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
127 * config/rs6000/predicates.md (pcrel_external_address): Update
130 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
133 * config/i386/mmx.md (usadv8qi): New expander.
135 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
138 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
139 with reserved names that are in a system header.
141 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
143 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
144 (*vec_extractv2si_0_zext_sse4): New insn pattern.
145 (*vec_extractv2si_0_zext): Ditto.
146 (*vec_extractv2si_1): Add (rm,x) alternative.
147 (*vec_extractv2si_1_zext): New insn pattern.
148 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
151 2019-08-01 Richard Biener <rguenther@suse.de>
153 * domwalk.c (bb_postorder): Remove static variable.
154 (cmp_bb_postorder): Adjust.
155 (sort_bbs_postorder): Adjust and use gcc_sort_r.
156 (dom_walker::walk): Adjust.
158 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
160 * sort.cc (sort_r_ctx): New struct.
161 (reorder23): Make templated on context type.
163 (cmp1): Ditto. Adjust signature.
166 [CHECKING_P] (cmp2to3): New static function. Use it...
167 (gcc_qsort) [CHECKING_P]: ...here.
168 (gcc_sort_r): New function.
169 * system.h (sort_r_cmp_fn): New function typedef.
170 (qsort_chk): Adjust signature.
171 (gcc_sort_r): Declare.
172 * vec.c (qsort_chk_error): Adjust.
175 2019-08-01 Richard Biener <rguenther@suse.de>
177 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
178 (compute_antic): Localize it here.
180 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
182 * common/config/riscv/riscv-common.c: Check -march string ends
185 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
187 * ipa-devirt.c (type_warning_cmp): Make static.
188 (decl_warning_cmp): Ditto.
190 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
193 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
194 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
195 use of deleted rs6000_dejagnu_cpu_index variable.
196 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
197 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
198 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
199 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
200 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
201 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
203 2019-07-31 Richard Biener <rguenther@suse.de>
205 PR tree-optimization/91280
206 * tree-ssa-structalias.c (get_constraint_for_component_ref):
207 Decompose MEM_REF manually for offset handling.
209 2019-07-31 Richard Biener <rguenther@suse.de>
211 PR tree-optimization/91293
212 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
215 2019-07-31 Matt Thomas <matt@3am-software.com>
216 Nick Hudson <nick@nthcliff.demon.co.uk>
217 Matthew Green <mrg@eterna.com.au>
218 Maya Rashish <coypu@sdf.org>
220 * config.gcc (hppa*-*-netbsd*): New target.
221 * config/pa/pa-netbsd.h: New file.
222 * config/pa/pa32-netbsd.h: New file.
224 2019-07-31 Jakub Jelinek <jakub@redhat.com>
226 PR tree-optimization/91201
227 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
229 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
231 * config/gcn/gcn-valu.md
232 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
233 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
234 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
235 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
236 struct ilist. Add nops for delayeduse insns.
237 * config/gcn/gcn.md (delayeduse): New attribute.
238 (*movbi): Remove s_waitcnt from stores.
239 (*mov<mode>_insn): Likewise.
240 (*movti_insn): Likewise. Add delayeduse attribute.
241 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
242 (atomic_store<mode>): Remove or adjust s_waitcnt.
244 2019-07-31 Richard Biener <rguenther@suse.de>
246 * vr-values.h (vr_values::swap_vr_value): New.
247 (vr_values::free_value_range): likewise.
248 * vr-values.c (vr_values::swap_vr_value): Implement.
249 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
250 Do not return a range or take a var.
251 (evrp_range_analyzer::stack): Change back to recording a non-const
253 * gimple-ssa-evrp-analyze.c
254 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
256 (evrp_range_analyzer::pop_to_marker): Adjust.
257 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
258 (evrp_range_analyzer::pop_value_range): Likewise. Free the
259 no longer needed value-range.
261 2019-07-31 Martin Liska <mliska@suse.cz>
263 * tree-ssa-dce.c (propagate_necessity): Delete operator can
264 have size and (or) alignment as 2nd and later arguments.
265 Mark all of them as necessary.
267 2019-07-31 Richard Biener <rguenther@suse.de>
269 PR tree-optimization/91178
270 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
273 2019-07-31 Jakub Jelinek <jakub@redhat.com>
275 PR tree-optimization/91201
276 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
277 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
279 (reduc_plus_scal_<mode>): Improve formatting by introducing
282 2019-07-31 Sudakshina Das <sudi.das@arm.com>
284 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
285 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
286 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
287 (aarch64_init_tme_builtins): New.
288 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
289 (aarch64_expand_builtin_tme): New.
290 (aarch64_expand_builtin): Handle TME builtins.
291 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
292 __ARM_FEATURE_TME when enabled.
293 * config/aarch64/aarch64-option-extensions.def: Add "tme".
294 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
296 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
297 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
299 (tstart, ttest, tcommit, tcancel): New instructions.
300 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
301 (__tcancel, __ttest): New.
302 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
303 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
304 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
305 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
306 * config/arm/types.md: Add new tme type attr.
307 * doc/invoke.texi: Document "tme".
309 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
311 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
312 warn_unused_result attribute.
313 (cmse_check_address_range): Add warn_unused_result attribute.
315 2019-07-31 Richard Biener <rguenther@suse.de>
317 PR tree-optimization/91257
318 * tree-vrp.c (union_ranges): Unify equality and less tests
319 by using compare_values. Re-order cheap tests first.
321 2019-07-31 Jakub Jelinek <jakub@redhat.com>
324 * gimplify.c (gimplify_omp_for): If for class iterator on
325 distribute parallel for there is no data sharing clause
326 on inner_for_stmt, look for private clause on combined
327 parallel too and if found, move it to inner_for_stmt.
329 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
331 * lra-int.h (lra_operand_data): Remove early_clobber field.
332 (lra_insn_reg): Likewise.
333 * lra.c (debug_operand_data): Update accordingly.
334 (setup_operand_alternative): Likewise.
335 (new_insn_reg): Likewise. Remove early_clobber parameter.
336 (collect_non_operand_hard_regs): Update call accordingly.
337 Don't assign to lra_insn_reg::early_clobber.
338 (add_regs_to_insn_regno_info): Remove early_clobber parameter
339 and update calls to new_insn_reg.
340 (lra_update_insn_regno_info): Update calls accordingly.
341 * lra-constraints.c (update_and_check_small_class_inputs): Take the
342 alternative number as a parameter and test whether the operand
343 is earlyclobbered in that particular alternative.
344 (process_alt_operands): Update call accordingly. Use per-alternative
345 checks for earyclobber here too.
346 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
347 against zero for IRA_UNKNOWN_ALT.
349 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
351 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
353 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
355 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
356 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
358 2019-07-30 Martin Liska <mliska@suse.cz>
361 * cgraph.c (cgraph_edge::make_direct): Use
362 edge->indirect_unknown_callee as edge->resolve_speculation can
363 deallocate edge which is this pointer.
365 2019-07-30 Richard Biener <rguenther@suse.de>
367 PR tree-optimization/91257
368 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
370 2019-07-30 Martin Liska <mliska@suse.cz>
372 * doc/invoke.texi: Document new behavior.
373 * lto-wrapper.c (cpuset_popcount): New function
374 is a copy of libgomp/config/linux/proc.c.
375 (init_num_threads): Likewise.
376 (run_gcc): Automatically detect core count for -flto.
377 (jobserver_active_p): New function.
379 2019-07-30 Richard Biener <rguenther@suse.de>
381 PR tree-optimization/91257
382 * bitmap.h (bitmap_ior_into_and_free): Declare.
383 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
384 whether to add the unliked element to the freelist.
385 (bitmap_list_insert_element_after): Add defaulted param for
386 an already allocated element.
387 (bitmap_ior_into_and_free): New function.
388 * tree-ssa-structalias.c (condense_visit): Reduce the
389 ponts-to and edge bitmaps of the SCC members in a
390 logarithmic fashion rather than all to one.
392 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
394 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
395 parameter. When nonnull, make sure that the addition or subtraction
396 has the same condition.
397 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
398 for CFN_COND_MUL too.
400 2019-07-30 Richard Biener <rguenther@suse.de>
402 PR tree-optimization/91291
403 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
406 2019-07-30 Jakub Jelinek <jakub@redhat.com>
409 * omp-low.c (global_nonaddressable_vars): New variable.
410 (use_pointer_for_field): For global decls, if they are non-addressable,
411 remember it in the global_nonaddressable_vars bitmap, if they are
412 addressable and in the global_nonaddressable_vars bitmap, ignore their
413 TREE_ADDRESSABLE bit.
414 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
415 vars in global_nonaddressable_vars bitmap.
416 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
419 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
420 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
421 comparison to unsigned HOST_WIDE_INT before shifting it left.
423 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
425 * config/i386/i386.md (movstrict<mode>): Use register_operand
426 predicate for operand 0. Add expander condition. Assert that
427 operand 0 is a SUBREG RTX.
428 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
429 Update operand constraints and insn condition.
430 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
431 (zero_extendqihi2_and): Do not call gen_movstrictqi.
432 (*setcc_qi_slp): Use register_operand predicate for operand 0.
433 Update operand 0 constraints.
434 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
436 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
438 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
439 when -m{code,data}-region are used without -mlarge.
440 * config/msp430/msp430.c (msp430_option_override): Error when a
441 non-default code or data region is used without -mlarge.
442 (msp430_section_attr): Emit a warning and do not add upper/lower/either
443 attributes when they are used without -mlarge.
445 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
448 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
450 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
453 * wide-int.h (generic_wide_int::sext_elt): New function.
454 * inchash.h (hash::add_wide_int): Use it instead of elt.
456 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
458 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
460 * config/arm/arm.md (<crc_variant>): Rename to...
461 (arm_<crc_variant>): ... This.
462 (<cdp>): Rename to...
463 (arm_<cdp>): ... This.
464 (<ldc>): Rename to...
465 (arm_<ldc>): ... This.
466 (<stc>): Rename to...
467 (arm_<stc>): ... This.
468 (<mcr>): Rename to...
469 (arm_<mcr>): ... This.
470 (<mrc>): Rename to...
471 (arm_<mrc>): ... This.
472 (<mcrr>): Rename to...
473 (arm_<mcrr>): ... This.
474 (<mrrc>): Rename to...
475 (arm_<mrrc>): ... This.
477 2019-07-29 Richard Biener <rguenther@suse.de>
479 PR tree-optimization/91257
480 * tree-ssa-sccvn.h (struct vn_avail): New.
481 (struct vn_ssa_aux): Add avail member.
482 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
483 member, add m_avail_freelist one.
484 (rpo_elim::~rpo_elim): Remove.
485 (rpo_elim::eliminate_avail): Adjust to new avail tracking
487 (rpo_elim::eliminate_push_avail): Likewise.
488 (do_unwind): Likewise.
489 (do_rpo_vn): Likewise.
491 2019-07-29 Richard Biener <rguenther@suse.de>
493 PR tree-optimization/91257
494 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
495 most cases, instead call compare_values which handles the
496 symbolic ranges we handle specially.
497 (compare_values_warnv): Do not call operand_less_p but open-code
498 the effective fold calls. Avoid converting so much.
500 2019-07-29 Martin Liska <mliska@suse.cz>
502 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
503 remove LHS of operator new call. It's handled latter.
505 2019-07-29 Richard Biener <rguenther@suse.de>
507 PR tree-optimization/91267
508 * vr-values.c (vr_values::update_value_range): Add early return
509 for effectively VARYING lattice entry.
511 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
514 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
515 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
516 necessary if keep_all_vdefs_p is true.
517 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
518 that keep_all_vdefs_p is false.
519 (mark_all_reaching_defs_necessary): Likewise.
520 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
522 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
524 * common.opt (Og): Change the initial value of flag_dse to 0.
525 * opts.c (default_options_table): Move OPT_ftree_dse from
526 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
527 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
528 entry before the OPT_ftree_sra entry.
529 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
530 of flags disabled by Og.
532 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
534 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
537 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
539 * doc/sourcebuild.texi (check-function-bodies): Document.
541 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
543 * simplify-rtx.c (simplify_const_unary_operation): Fold a
544 VEC_DUPLICATE of a fixed-length vector even if the result
545 is variable-length. Likewise fold a duplicate of a
546 variable-length vector if the variable-length vector is
547 itself a duplicate of a fixed-length sequence.
548 (test_vector_ops_duplicate): Test more cases.
550 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
552 * vector-builder.h (vector_builder): Add a shape template parameter.
553 (vector_builder::new_unary_operation): New function, generalizing
554 the old tree_vector_builder function.
555 (vector_builder::new_binary_operation): Likewise.
556 (vector_builder::binary_encoded_nelts): Likewise.
557 * int-vector-builder.h (int_vector_builder): Update template
558 parameters to vector_builder.
559 (int_vector_builder::shape_nelts): New function.
560 * rtx-vector-builder.h (rtx_vector_builder): Update template
561 parameters to vector_builder.
562 (rtx_vector_builder::shape_nelts): New function.
563 (rtx_vector_builder::nelts_of): Likewise.
564 (rtx_vector_builder::npatterns_of): Likewise.
565 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
566 * tree-vector-builder.h (tree_vector_builder): Update template
567 parameters to vector_builder.
568 (tree_vector_builder::shape_nelts): New function.
569 (tree_vector_builder::nelts_of): Likewise.
570 (tree_vector_builder::npatterns_of): Likewise.
571 (tree_vector_builder::nelts_per_pattern_of): Likewise.
572 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
573 (tree_vector_builder::new_binary_operation): Delete.
574 (tree_vector_builder::binary_encoded_nelts): Likewise.
575 * simplify-rtx.c: Include rtx-vector-builder.h.
576 (distributes_over_addition_p): New function.
577 (simplify_const_unary_operation)
578 (simplify_const_binary_operation): Generalize handling of vector
579 constants to include variable-length vectors.
580 (test_vector_ops_series): Add more tests.
582 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
585 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
586 than INDENTIFIER_POINTER.
588 2019-07-28 Martin Liska <mliska@suse.cz>
591 * cgraph.c (symbol_table::create_edge): Always allocate
593 (symbol_table::free_edge): Store summary_id to
594 edge_released_summary_ids if != -1;
595 * cgraph.h (NEXT_FREE_NODE): Remove.
596 (SET_NEXT_FREE_NODE): Likewise.
597 (NEXT_FREE_EDGE): Likewise.
598 (symbol_table::release_symbol): Store summary_id to
599 cgraph_released_summary_ids if != -1;
600 (symbol_table::allocate_cgraph_symbol): Always allocate
603 2019-07-28 Alan Modra <amodra@gmail.com>
605 * gcc/config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
608 2019-07-28 Alan Modra <amodra@gmail.com>
611 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
613 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
614 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
615 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
617 2019-07-28 Alan Modra <amodra@gmail.com>
620 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
621 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
622 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
623 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
624 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
625 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
627 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
628 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
630 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
632 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
634 2019-07-26 Tamar Christina <tamar.christina@arm.com>
637 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
638 * config/aarch64/aarch64-option-extensions.def: Add new comments
639 and restore easier to read options.
641 2019-07-26 Tamar Christina <tamar.christina@arm.com>
643 * convert.c (convert_to_real_1): Move part of conversion code...
644 * match.pd: ...To here.
646 2019-07-26 Martin Jambor <mjambor@suse.cz>
649 * ipa-inline-transform.c (check_speculations_1): New function.
650 (push_all_edges_in_set_to_vec): Likewise.
651 (check_speculations): Use check_speculations_1, new parameter
653 (inline_call): Pass new_edges to check_speculations.
654 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
656 (speculation_useful_p): Early return true if edge is inlined, remove
657 later checks for inline_failed.
659 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
661 PR rtl-optimization/91223
662 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
663 matching with INOUT operand.
665 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
667 * stmt.c (expand_case): Try to narrow the index type if it's larger
668 than a word. Tidy up.
670 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
672 * cif-code.def (NEVER_CALL): New code.
673 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
674 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
676 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
678 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
679 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
681 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
683 * ipa-devirt.c (add_type_duplicate): Fix return value.
685 2019-07-25 Richard Biener <rguenther@suse.de>
687 * tree-vrp.c (extract_range_from_multiplicative_op): Add
688 type parameter and use it instead of guessing expression
689 type from the first operand.
690 (extract_range_from_binary_expr): Pass expr_type down.
692 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
694 * config/arm/arm.md (SATrev): Change to code attribute.
695 (*satsi_<SAT:code>): Adjust for the above.
696 (*satsi_<SAT:code>_shift): Likewise.
698 2019-07-25 Richard Biener <rguenther@suse.de>
700 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
701 Make value_range * temporary const.
702 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
704 (evrp_range_analyzer::record_ranges_from_): Likewise.
705 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
706 deal with having recorded a const one.
707 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
708 Return a const value_range *.
709 (evrp_range_analyzer::pop_value_range): Likewise.
710 (evrp_range_analyzer::stack): Record const value_range *s.
711 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
713 * gimple-ssa-sprintf.c (get_int_range): Likewise.
714 (format_integer): Likewise.
715 (sprintf_dom_walker::handle_gimple_call): Likewise.
716 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
717 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
718 (vrp_prop::get_value_range): Adjust.
719 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
720 modifying the lattice in-place.
721 (vrp_prop::visit_stmt): Likewise.
722 * vr-values.c (vr_values::get_lattice_entry): New private method.
723 (vr_values::get_value_range): Wrap it and return a const
725 (vr_values::set_def_to_varying): New.
726 (vr_values::set_defs_to_varying): Use it.
727 (vr_values::update_value_range): Likewise.
728 (vr_values::vrp_stmt_computes_nonzero): Adjust.
729 (values::op_with_constant_singleton_va): Likewise.
730 (vr_values::extract_range_for_var_from_co): Likewise.
731 (vr_values::extract_range_from_ssa_name): Likewise.
732 (vr_values::extract_range_from_cond_expr): Likewise.
733 (vr_values::extract_range_basic): Likewise.
734 (compare_ranges): Take const value_range *, adjust.
735 (compare_range_with_value): Likewise.
736 (vrp_valueize): Adjust.
737 (vrp_valueize_1): Likewise.
738 (vr_values::get_vr_for_comparison): Return a const value_range *.
739 (vr_values::compare_name_with_value): Adjust.
740 (vr_values::compare_names): Likewise.
741 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
743 (vr_values::vrp_evaluate_conditional): Likewise.
744 (find_case_label_ranges): Take a const value_range *.
745 (vr_values::vrp_visit_switch_stmt): Adjust.
746 (vr_values::extract_range_from_phi_node): Likewise.
747 (vr_values::simplify_div_or_mod_using_ran): Likewise.
748 (vr_values::simplify_abs_using_ranges): Likewise.
749 (test_for_singularity): Take a const value_range *.
750 (range_fits_type_p): Likewise.
751 (vr_values::simplify_cond_using_ranges_1): Adjust.
752 (vr_values::simplify_cond_using_ranges_2): Likewise.
753 (vr_values::simplify_switch_using_ranges): Likewise.
754 (vr_values::simplify_float_conversion_usi): Likewise.
755 (vr_values::two_valued_val_range_p): Likewise.
756 * vr-values.h (vr_values::get_value_range): Return a const
758 (vr_values::set_def_to_varying): New.
759 (vr_values::get_lattice_entry): New private method.
760 (vr_values::get_vr_for_comparison): Return a const value_range *.
762 2019-07-25 Martin Liska <mliska@suse.cz>
763 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
766 * common.opt: Add -fallocation-dce
767 * gimple.c (gimple_call_operator_delete_p): New.
768 * gimple.h (gimple_call_operator_delete_p): Likewise.
769 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
770 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
771 DECL_IS_OPERATOR_DELETE_P.
772 (mark_all_reaching_defs_necessary_1): Likewise.
773 (propagate_necessity): Likewise.
774 (eliminate_unnecessary_stmts): Handle
775 gimple_call_operator_delete_p.
776 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
777 Add packing of OPERATOR_DELETE.
778 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
780 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
781 (DECL_SET_IS_OPERATOR_DELETE): New.
782 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
784 2019-07-25 Martin Liska <mliska@suse.cz>
786 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
787 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
788 * coverage.c (coverage_begin_function): Likewise.
789 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
790 * gimple.c (gimple_call_nonnull_result_p): Likewise.
791 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
792 (sem_item::hash_referenced_symbol_properties): Likewise.
793 * lto-streamer-out.c (hash_tree): Likewise.
794 * predict.c (expr_expected_value_1): Likewise.
795 * tree-inline.c (expand_call_inline): Likewise.
796 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
797 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
798 * tree-core.h (enum function_decl_type): New enum.
799 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
800 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
801 (set_function_decl_type): Likewise.
802 (DECL_IS_OPERATOR_NEW_P): New.
803 (DECL_SET_IS_OPERATOR_NEW): Likewise.
804 (DECL_LAMBDA_FUNCTION): Likewise.
805 (DECL_LAMBDA_FUNCTION_P): Likewise.
806 (DECL_IS_OPERATOR_NEW): Remove.
807 (DECL_SET_LAMBDA_FUNCTION): Likewise.
809 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
811 * ipa-profile.c (get_most_common_single_value): Use
812 get_nth_most_common_value.
813 * profile.c (sort_hist_value): New function.
814 (compute_value_histograms): Call sort_hist_value to sort the
815 values after loading from disk.
816 * value-prof.c (get_most_common_single_value): Rename to ...
817 get_nth_most_common_value. Add input params n, return
818 the n_th value and count.
819 (gimple_divmod_fixed_value_transform): Use
820 get_nth_most_common_value.
821 (gimple_ic_transform): Likewise.
822 (gimple_stringops_transform): Likewise.
823 * value-prof.h (get_most_common_single_value): Add input params
826 2019-07-25 Richard Biener <rguenther@suse.de>
828 PR tree-optimization/91236
829 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
830 size of CONSTRUCTOR write. Fix buffer size we pass to
833 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
835 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
836 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
839 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
841 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
842 explicitly disabled with --disable-initfini-array.
844 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
846 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
849 2019-07-24 Martin Sebor <msebor@redhat.com>
851 PR tree-optimization/91183
852 PR tree-optimization/86688
853 * builtins.c (compute_objsize): Handle MEM_REF.
854 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
855 (get_min_string_length): Remove.
856 (count_nonzero_bytes): New function.
857 (handle_char_store): Rename...
858 (handle_store): to this. Handle multibyte stores via integer types.
859 (strlen_check_and_optimize_stmt): Adjust conditional and the called
862 2019-07-24 Martin Sebor <msebor@redhat.com>
865 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
866 (diagnostic_report_diagnostic): Same.
867 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
868 (diagnostic_context::lang_mask): New data member.
869 * ipa-pure-const.c (suggest_attribute): Use
870 lang_hooks.option_lang_mask ().
871 * opts-common.c (option_enabled): Handle new argument.
872 (get_option_state): Pass an additional argument.
873 * opts.c (print_filtered_help): Print supported languages for
874 unsupported options. Adjust printing of current state.
875 * opts.h (option_enabled): Add argument.
876 * toplev.c (print_switch_values): Use lang_mask.
877 (general_init): Set global_dc->lang_mask.
879 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
882 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
884 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
886 * cgraphunit.c (symbol_table::compile): Start and stop
887 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
888 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
890 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
892 * gimplify.c (flag_instrument_functions_exclude_p): Include
893 namespace/class information in the printable name.
894 * opts.c (add_comma_separated_to_vector): Add NUL terminator
895 to tokens entered into the vector.
897 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
899 * tree-nested.c (build_simple_mem_ref_notrap): New function.
900 (get_static_chain): Call it instead of build_simple_mem_ref.
901 (get_frame_field): Likewise.
902 (get_nonlocal_debug_decl): Likewise.
903 (convert_nonlocal_reference_op): Likewise.
905 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
907 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
909 (arc_compute_frame_size): Millicode is disabled when compiling
911 (arc_return_address_register): Likewise.
912 (arc_compute_function_type): Likewise.
913 (arc_compute_frame_size): Likewise.
914 (secondary_reload_info): Likewise.
915 (arc_get_unalign): Likewise.
916 (arc_can_use_return_insn): Declare.
917 * config/arc/arc.c (AUX_LP_START): Define
918 (AUX_LP_END): Likewise.
919 (arc_frame_info): Update gmask member to 64-bit datum.
921 (arc_compute_function_type): Make it static, move it forward.
922 (arc_must_save_register): Update, consider the extra regs.
923 (arc_compute_millicode_save_restore_regs): Update to use the 64
925 (arc_compute_frame_size): Likewise.
926 (arc_enter_leave_p): Likewise.
927 (arc_save_callee_saves): Likewise.
928 (arc_restore_callee_saves): Likewise.
929 (arc_save_callee_enter): Likewise.
930 (arc_restore_callee_leave): Likewise.
931 (arc_save_callee_milli): Likewise.
932 (arc_restore_callee_milli): Likewise.
933 (arc_expand_prologue): Add new interrupt handling.
934 (arc_return_address_register): Make it static, move it forward.
935 (arc_expand_epilogue): Add new interrupt handling.
936 (arc_get_unalign): Delete.
937 (arc_epilogue_uses): Make sure we do not remove the extra
938 saved/restored registers when interrupt.
939 (arc_can_use_return_insn): New function.
940 (push_reg): Likewise.
942 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
944 (arc_restore_callee_saves): Likewise, but restoring.
945 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
966 (type): Add rtie attribute.
967 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
968 (movsi_insn): Accept moves to lp_count.
969 (rtie): Update pattern.
970 (simple_return): Simplify it, don't use this pattern as a return
972 (arc600_rtie): New pattern.
973 (p_return_i): Clean up.
975 * config/arc/builtins.def (rtie): Only available for non ARC6xx
977 * config/arc/predicates.md (move_src_operand): Consider lp_count
980 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
982 * config/s390/predicates.md (addv_const_operand): New predicate.
983 * config/s390/s390-modes.def (CCO): New condition code mode.
984 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
985 (s390_branch_condition_mask): Likewise.
986 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
987 ("mulv<mode>4"): New expanders.
988 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
989 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
992 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
995 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
996 (define_predicates): Add entry for uniform_vector_p.
997 (vec_same_elem_p): New match pattern.
999 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
1002 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
1003 * config/i386/darwin32-biarch.h .. to here.
1004 * config/i386/darwin64-biarch.h: Adjust comments.
1005 * config/rs6000/darwin32-biarch.h: Likewise.
1006 * config/rs6000/darwin64-biarch.h: Likewise.
1007 * config.gcc: Missed commit from r273746
1008 (*-*-darwin*): Don't include CPU t-darwin here.
1009 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
1010 an error message if i686-darwin configuration is attempted for
1013 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
1016 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
1017 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
1018 an error message if i686-darwin configuration is attempted for
1020 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
1021 (powerpc-*-darwin*): Use biarch files where needed.
1022 (powerpc64-*-darwin*): Likewise.
1023 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
1024 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
1026 * config/i386/darwin32-biarch.h: New.
1027 * config/i386/darwin64.h: Rename.
1028 * gcc/config/i386/darwin64-biarch.h: To this.
1029 * config/i386/t-darwin: Rename.
1030 * gcc/config/i386/t-darwin32-biarch: To this.
1031 * config/i386/t-darwin64: Rename.
1032 * gcc/config/i386/t-darwin64-biarch: To this.
1033 * config/rs6000/darwin32-biarch.h: New.
1034 * config/rs6000/darwin64.h: Rename.
1035 * config/rs6000/darwin64-biarch.h: To this.
1036 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
1038 * config/rs6000/t-darwin8: Rename.
1039 * config/rs6000/t-darwin32-biarch: To this.
1040 * config/rs6000/t-darwin64 Rename.
1041 * config/rs6000/t-darwin64-biarch: To this.
1043 2019-07-23 Martin Sebor <msebor@redhat.com>
1045 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
1047 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
1049 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
1050 (rh): New alias for it.
1052 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
1054 * gdbhooks.py: Pass replace=True to
1055 gdb.printing.register_pretty_printer.
1057 2019-07-23 Richard Biener <rguenther@suse.de>
1060 * lto-streamer-in.c (input_function): Drop inline-entry markers
1061 that ended up with an unknown location block.
1063 2019-07-23 Richard Biener <rguenther@suse.de>
1065 PR tree-optimization/83518
1066 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
1067 init from a constant even when partial defs are already recorded.
1069 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
1071 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
1072 * config/i386/znver1.md: Enable patterns for znver2 and add store
1073 variants which use extra AGU unit.
1075 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
1077 * config/i386/i386-options.c (ix86_option_override_internal): Default
1078 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
1079 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
1082 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
1084 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
1085 (znver2_costs): Update 256 bit SSE costs and multiplication.
1087 2019-07-23 Jan Beulich <jbeulich@suse.com>
1089 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
1090 Require only AVX512F.
1091 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
1092 alternative expanding to vpternlog.
1094 2019-07-23 Martin Liska <mliska@suse.cz>
1096 * dwarf2out.c (gen_producer_string): Canonize -flto=N
1097 to -flto in dwarf producer string.
1099 2019-07-23 Richard Biener <rguenther@suse.de>
1101 * tree-cfg.c (label_for_bb): Remove global var.
1102 (main_block_label): Take label_for_bb as argument.
1103 (cleanup_dead_labels_eh): Likewise, adjust.
1104 (cleanup_dead_labels): Adjust.
1106 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
1108 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
1109 Configurations): Add documentation for __builtin_mtfsf.
1111 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
1113 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
1114 * config/riscv/riscv.c (riscv_constant_alignment): Use
1115 riscv_align_data_type.
1116 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
1117 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
1118 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
1119 * config/riscv/riscv.opt (malign-data): New.
1120 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
1122 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
1124 * cgraph.c (dump_graphviz): New function.
1125 * cgraph.h (dump_graphviz): New function.
1126 * symtab.c (dump_graphviz): New function.
1128 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
1130 * config/aarch64/aarch64-simd.md
1131 (*aarch64_simd_sra<mode>): New.
1132 * config/aarch64/iterators.md
1133 (SHIFTRT): New iterator.
1134 (sra_op): New attribute.
1136 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1138 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
1139 callee-saved regs R4->R10 in an interrupt function that calls another
1142 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
1144 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
1145 (_mm_blendv_epi8): New.
1147 2019-07-22 Richard Biener <rguenther@suse.de>
1149 PR tree-optimization/91221
1150 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
1151 restrict partial-def handling of empty constructors and
1152 memset to refs with known offset.
1154 2019-07-22 Jan Beulich <jbeulich@suse.com>
1156 * config/i386/sse.md (ternlogsuffix): New.
1157 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
1159 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
1161 2019-07-22 Martin Liska <mliska@suse.cz>
1163 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
1165 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
1167 2019-07-22 Martin Liska <mliska@suse.cz>
1169 * lto-section-in.c (lto_get_section_data):
1170 Use new function get_compression.
1171 * lto-streamer-out.c (produce_lto_section): Use
1172 set_compression to encode compression algorithm.
1173 * lto-streamer.h (struct lto_section): Do not
1174 use bitfields in the format.
1176 2019-07-22 Martin Liska <mliska@suse.cz>
1179 * opts-common.c (decode_cmdline_option): Decode
1180 argument of -Werror and check it for a wrong language.
1181 * opts-global.c (complain_wrong_lang): Remove such case.
1183 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
1185 * config/arc/arc.c (prepare_move_operands): Always use an
1186 intermediate register when storing a TLS symbols.
1188 2019-07-22 Stafford Horne <shorne@gmail.com>
1190 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
1193 2019-07-22 Stafford Horne <shorne@gmail.com>
1195 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
1196 and munordered-float validations.
1197 * config/or1k/constraints.md (d): New register constraint.
1198 * config/or1k/predicates.md (fp_comparison_operator): New.
1199 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
1201 (or1k_expand_compare): Normalize unordered comparisons.
1202 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
1203 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
1204 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
1205 * config/or1k/or1k.md (type): Add fpu.
1206 (fpu): New instruction reservation.
1207 (F, f, fr, fi, FI, FOP, fop): New.
1208 (<fop><F:mode>3): New ALU instruction definition.
1209 (float<fi><F:mode>2): New conversion instruction definition.
1210 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
1211 (fpcmpcc): New code iterator.
1212 (*sf_fp_insn): New instruction definition.
1213 (cstore<F:mode>4): New expand definition.
1214 (cbranch<F:mode>4): New expand definition.
1215 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
1216 munordered-float): New options.
1217 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
1220 2019-07-22 Stafford Horne <shorne@gmail.com>
1222 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
1223 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
1224 documenation to be more clear.
1225 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
1227 * config/or1k/or1k.opt (mrori): New option.
1228 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
1229 msfimm, mshftimm): Rewrite documentation to be more clear.
1230 * config/or1k/or1k.md (insn_support): Add ror and rori.
1231 (enabled): Add conditions for ror and rori.
1232 (rotrsi3): Replace condition for shftimm with ror and rori.
1234 2019-07-22 Stafford Horne <shorne@gmail.com>
1237 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
1238 (extend<mode>si2): Update predicate.
1239 * gcc/config/or1k/predicates.md (volatile_mem_operand): New.
1240 (reg_or_mem_operand): New.
1242 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
1244 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
1245 * config/rs6000/rs6000-call.c: ... to here.
1247 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
1249 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
1252 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
1254 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
1256 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
1258 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
1260 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
1262 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
1263 (any_memory_operand): New predicate.
1264 (reg_or_mem_operand): Use it.
1266 2019-07-20 Jakub Jelinek <jakub@redhat.com>
1269 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
1271 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
1273 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
1274 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
1276 2019-07-20 Jakub Jelinek <jakub@redhat.com>
1278 * tree.def (OMP_LOOP): New tree code.
1279 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
1280 (enum omp_clause_bind_kind): New enum.
1281 (struct tree_omp_clause): Add subcode.bind_kind.
1282 * tree.h (OMP_LOOP_CHECK): Rename to ...
1283 (OMP_LOOPING_CHECK): ... this.
1284 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
1285 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
1286 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
1287 (OMP_CLAUSE_BIND_KIND): Define.
1288 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
1289 bind clause entries.
1290 (walk_tree_1): Handle OMP_CLAUSE_BIND.
1291 * tree-pretty-print.c (dump_omp_clause): Likewise.
1292 (dump_generic_node): Handle OMP_LOOP.
1293 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
1294 (in_omp_construct): New variable.
1295 (is_gimple_stmt): Handle OMP_LOOP.
1296 (gimplify_scan_omp_clauses): For lastprivate don't set
1297 check_non_private if code == OMP_LOOP. For reduction clause
1298 on OMP_LOOP combined with parallel or teams propagate as shared
1299 on the combined construct. Handle OMP_CLAUSE_BIND.
1300 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
1301 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
1302 for constructs from a loop construct to gimplify_scan_omp_clauses.
1303 Don't predetermine iterator linear on OMP_SIMD from loop construct.
1304 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
1305 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
1306 to match the implicit ORT_TARGET construct around whole body.
1307 Temporarily clear in_omp_construct when processing body.
1308 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
1309 etc. temporarily set in_omp_construct when processing body.
1310 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
1311 * omp-low.c (struct omp_context): Add loop_p.
1312 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
1313 in that the original var might be private.
1314 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
1315 (check_omp_nesting_restrictions): Adjust nesting restrictions for
1316 addition of loop construct.
1317 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
1319 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
1320 lastprivate non-addressable iterator of a collapse(1) simd.
1322 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
1324 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
1327 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
1329 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
1330 refer to default conditions. Warn for the 'y' spec which is ignored
1333 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
1335 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
1336 cpu_supports_info, builtin_hash_struct, builtin_hasher,
1337 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
1338 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
1339 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
1340 init_cumulative_args, rs6000_promote_function_mode,
1341 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
1342 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
1343 rs6000_function_arg_boundary, rs6000_parm_offset,
1344 rs6000_parm_start, rs6000_arg_size,
1345 rs6000_darwin64_record_arg_advance_flush,
1346 rs6000_darwin64_record_arg_advance_recurse,
1347 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
1348 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
1349 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
1350 rs6000_mixed_function_arg, rs6000_psave_function_arg,
1351 rs6000_finish_function_arg, rs6000_function_arg,
1352 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
1353 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
1354 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
1355 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
1356 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
1357 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
1358 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
1359 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
1360 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
1361 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
1362 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
1363 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
1364 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
1365 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
1366 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
1367 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
1368 get_element_number, altivec_expand_vec_set_builtin,
1369 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
1370 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
1371 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
1372 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
1373 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
1374 rs6000_expand_builtin, rs6000_vector_type,
1375 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
1376 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
1377 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
1379 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
1380 cpu_supports_info, builtin_hash_struct, builtin_hasher,
1381 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
1382 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
1383 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
1384 init_cumulative_args, rs6000_promote_function_mode,
1385 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
1386 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
1387 rs6000_function_arg_boundary, rs6000_parm_offset,
1388 rs6000_parm_start, rs6000_arg_size,
1389 rs6000_darwin64_record_arg_advance_flush,
1390 rs6000_darwin64_record_arg_advance_recurse,
1391 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
1392 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
1393 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
1394 rs6000_mixed_function_arg, rs6000_psave_function_arg,
1395 rs6000_finish_function_arg, rs6000_function_arg,
1396 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
1397 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
1398 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
1399 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
1400 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
1401 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
1402 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
1403 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
1404 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
1405 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
1406 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
1407 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
1408 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
1409 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
1410 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
1411 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
1412 get_element_number, altivec_expand_vec_set_builtin,
1413 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
1414 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
1415 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
1416 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
1417 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
1418 rs6000_expand_builtin, rs6000_vector_type,
1419 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
1420 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
1421 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
1422 to here from rs6000.c.
1423 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
1424 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
1425 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
1426 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
1427 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
1428 rs6000_return_in_memory, rs6000_return_in_msb,
1429 rs6000_pass_by_reference, setup_incoming_varargs,
1430 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
1431 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
1432 rs6000_function_arg_padding, rs6000_function_arg,
1433 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
1434 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
1435 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
1436 rs6000_passes_long_double, rs6000_passes_vector,
1437 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
1438 altivec_builtin_mask_for_load) Add declarations.
1439 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
1440 * config/config.gcc: Add new source file rs6000-call.c to garbage
1441 collector and extra_objs.
1443 2019-07-19 Jeff Law <law@redhat.com>
1445 PR tree-optimization/86061
1446 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
1447 strncpy. Drop some trivial dead code.
1448 (maybe_trim_memstar_call): Handle strncpy.
1450 2019-07-19 Richard Biener <rguenther@suse.de>
1452 PR tree-optimization/91211
1453 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
1454 memset encoding size.
1456 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
1459 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
1461 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
1464 * ipa-inline.c (recursive_inlining): Fix limits check.
1466 2019-07-19 Richard Biener <rguenther@suse.de>
1468 PR tree-optimization/91200
1469 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
1470 no PHI nodes in middle-bb.
1472 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
1474 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
1476 * config/aarch64/aarch64-option-extensions.def: Likewise.
1478 2019-07-19 Jakub Jelinek <jakub@redhat.com>
1481 * function.c (insert_temp_slot_address): Store into the hash table
1482 a copy of address to avoid RTL sharing issues.
1484 2019-07-19 Richard Biener <rguenther@suse.de>
1486 PR tree-optimization/91207
1488 2019-07-17 Richard Biener <rguenther@suse.de>
1490 PR tree-optimization/91178
1491 * tree-vect-stmts.c (get_group_load_store_type): For SLP
1492 loads with a gap larger than the vector size always use
1494 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
1495 avoid loading vectors that are only contained in the gap
1496 and thus are not needed.
1498 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
1500 * config/i386/i386.md (*addqi_2_slp): Remove.
1501 (*<code>qi_2_slp): Ditto.
1503 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
1505 * config/rs6000/predicates.md (prefixed_mem_operand): Call
1506 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
1507 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
1508 Rename function from rs6000_prefixed_address.
1509 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
1511 (TARGET_TOC): Likewise.
1512 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
1514 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
1516 (TARGET_TOC): Likewise.
1517 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
1519 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
1521 (TARGET_TOC): Likewise.
1522 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
1523 check to require -mcmodel=medium for pc-relative addressing.
1524 (create_TOC_reference): Add assertion for TARGET_TOC.
1525 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
1527 (rs6000_emit_move): Likewise.
1528 (TOC_alias_set): Rename TOC alias set static variable from 'set'
1530 (get_TOC_alias_set): Likewise.
1531 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
1533 (rs6000_can_eliminate): Likewise.
1534 (rs6000_prefixed_address_mode_p): Rename function from
1535 rs6000_prefixed_address.
1536 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
1537 TARGET_HAS_TOC and not pc-relative.
1538 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
1539 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
1541 (TARGET_TOC): Likewise.
1542 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
1545 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
1548 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
1549 for operand 0. Do not use (match_dup) to match operand 1 with
1550 operand 0. Add check in insn constraint that either input operand
1551 matches operand 0. Use SWI12 mode iterator to also handle
1553 (*and<mode>_1_slp): Ditto.
1554 (*<code>qi_1_slp): Ditto.
1555 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
1556 Do not use (match_dup) to match operand 1 with operand 0. Add
1557 check in insn constraint that operand 1 matches operand 0.
1558 Use SWI12 mode iterator to also handle HImode operands.
1559 (*ashl<mode>3_1_slp): Ditto.
1560 (*<shift_insn><mode>3_1_slp): Ditto.
1561 (*<rotate_insn><mode>3_1_slp): Ditto.
1563 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
1565 * config/arm/arm-builtins.c
1566 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
1567 (arm_expand_unop_builtin): Likewise.
1568 * config/arm/crypto.md
1569 (crypto_sha1h): Convert from define_insn to define_expand.
1570 (crypto_<crypto_pattern>): Likewise.
1571 (crypto_sha1h_lb): New define_insn.
1572 (crypto_<crypto_pattern>_lb): Likewise.
1574 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
1577 * config/arm/arm_neon.h
1578 (vsha1h_u32): Refactor.
1579 (vsha1cq_u32): Likewise.
1580 (vsha1pq_u32): Likewise.
1581 (vsha1mq_u32): Likewise.
1582 * config/arm/crypto.md:
1583 (crypto_sha1h): Remove zero extend, correct vec select.
1584 (crypto_sha1c): Correct vec select.
1585 (crypto_sha1m): Likewise.
1586 (crypto_sha1p): Likewise.
1588 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
1590 * config/arm/predicates.md (arm_borrow_operation): New predicate.
1591 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
1592 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
1593 (subdi_zesidi_zesidi): Likewise.
1594 (negdi2_compare, negdi2_insn): Likewise.
1595 (negdi_extensidi): Likewise.
1596 (negdi_zero_extendsidi): Likewise.
1597 (arm_cmpdi_insn): Likewise.
1598 (subsi3_carryin): Use arm_borrow_operation.
1599 (subsi3_carryin_const): Likewise.
1600 (subsi3_carryin_const0): Likewise.
1601 (subsi3_carryin_compare): Likewise.
1602 (subsi3_carryin_compare_const): Likewise.
1603 (subsi3_carryin_compare_const0): Likewise.
1604 (subsi3_carryin_shift): Likewise.
1605 (rsbsi3_carryin_shift): Likewise.
1606 (negsi2_carryin_compare): Likewise.
1608 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
1610 PR tree-optimization/91137
1611 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
1612 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
1613 Init, use and fini the above new field.
1614 (determine_base_object_1): New function.
1615 (determine_base_object): Reimplement using walk_tree.
1617 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
1619 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
1620 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
1621 CLEANUP_FORCE_FAST_DCE is set.
1622 * ifcvt.c (rest_of_handle_if_conversion): Pass
1623 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
1624 if-conversion succeeded.
1626 2019-07-18 Richard Biener <rguenther@suse.de>
1628 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
1629 branches to make code less indented.
1631 2019-07-17 Alexandre Oliva <oliva@adacore.com>
1634 * attribs.c (decls_mismatched_attributes): Simplify the logic
1635 that avoids duplicates and false positives.
1637 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
1639 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
1640 data into data section when generating PIC code.
1641 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
1642 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
1643 generating code for SOM targets earlier than HP-UX 11. Otherwise,
1644 return 2 for SOM and 0 for other targets.
1646 2019-07-17 Jeff Law <law@redhat.com>
1648 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
1649 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
1650 avoid unexpected switch statement fallthru.
1652 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
1654 * config/i386/i386.md (*add<dwi>3_doubleword):
1655 Remove redundant constraints.
1656 (*add<mode>_1): Ditto.
1659 (*addqi_1_slp): Ditto.
1660 (*add<mode>_2): Ditto.
1661 (*addv<mode>4): Ditto.
1662 (*sub<dwi>3_doubleword): Ditto.
1663 (*sub<mode>_1): Ditto.
1664 (*subqi_1_slp): Ditto.
1665 (*sub<mode>_2): Ditto.
1666 (*subv<mode>4): Ditto.
1667 (*sub<mode>_3): Ditto.
1668 (@add<mode>3_carry): Ditto.
1669 (@sub<mode>3_carry): Ditto.
1670 (*add<mode>3_cc_overflow_1): Ditto.
1671 (*add<mode>3_zext_cc_overflow_2): Ditto.
1673 (*and<mode>_1): Ditto.
1675 (*andqi_1_slp): Ditto.
1677 (*andqi_2_maybe_si): Ditto.
1678 (*and<mode>_2): Ditto.
1679 (*andqi_2_slp): Ditto.
1680 (*<code><mode>_1): Ditto.
1681 (*<code>qi_1): Ditto.
1682 (*<code>qi_1_slp): Ditto.
1683 (*<code><mode>_2): Ditto.
1684 (*<code>qi_2_slp): Ditto.
1686 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
1688 * alias.c (record_component_aliases): Do not simplify pointed-to
1691 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
1693 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
1694 partial reg stall on alternative 2.
1696 2019-07-17 Richard Biener <rguenther@suse.de>
1698 PR tree-optimization/91178
1699 * tree-ssa.c (release_defs_bitset): Iterate from higher to
1700 lower SSA names to avoid quadratic behavior in the common case.
1701 * tree-data-ref.c (split_constant_offset): Add limit argument
1702 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
1703 (split_constant_offset_1): Add limit argument and use it to
1704 limit SSA def walking. Optimize the common plus/minus case.
1706 2019-07-17 Richard Biener <rguenther@suse.de>
1708 PR tree-optimization/91178
1709 * tree-vect-stmts.c (get_group_load_store_type): For SLP
1710 loads with a gap larger than the vector size always use
1712 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
1713 avoid loading vectors that are only contained in the gap
1714 and thus are not needed.
1716 2019-07-17 Richard Biener <rguenther@suse.de>
1718 PR tree-optimization/91180
1719 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
1720 computation for memset partial defs.
1722 2019-07-17 Jakub Jelinek <jakub@redhat.com>
1724 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
1725 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
1726 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
1727 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
1728 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
1729 * omp-grid.c (grid_process_grid_body,
1730 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
1731 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
1732 == GF_OMP_FOR_KIND_SIMD.
1733 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
1734 check_omp_nesting_restrictions, scan_omp_1_stmt,
1735 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
1736 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
1737 omp_find_scan): Likewise.
1738 * omp-expand.c (expand_omp_for): Likewise.
1739 * omp-general.c (omp_extract_for_data): Likewise.
1741 PR tree-optimization/91157
1742 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
1743 a vector boolean with scalar mode.
1744 (expand_vector_condition): Handle first operand being a vector boolean
1746 (expand_vector_operations_1): For comparisons, don't bail out early
1747 if the return type is vector boolean with scalar mode, but comparison
1748 operand type is not.
1750 2019-07-17 Richard Biener <rguenther@suse.de>
1752 PR tree-optimization/91181
1753 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
1756 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
1758 * config/i386/i386.md (*testdi_1): Match CCZmode for
1759 constants that might have the SImode sign bit set.
1760 (*testqi_1_maybe_si): Remove "!" constraint modifier.
1761 Use correct constraints for pentium pairing.
1762 (*test<mode>_1): Ditto.
1764 2019-07-16 Jeff Law <law@redhat.com>
1766 PR rtl-optimization/91173
1767 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
1768 SSA_NAME with a constant value, fold its value into the offset
1769 and clear the base before calling gen_addr_rtx.
1771 2019-07-16 Jakub Jelinek <jakub@redhat.com>
1773 PR rtl-optimization/91164
1774 * dse.c (rest_of_handle_dse): If dead edges have been purged,
1775 invalidate dominance info.
1777 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
1779 * read-md.h (md_reader::record_potential_iterator_use): Add a
1780 file_location parameter.
1781 * read-rtl.c (attribute_use::loc): New field.
1782 (map_attr_string): Take a file_location parameter. Report cases
1783 in which attributes map to multiple distinct values.
1784 (apply_attribute_uses): Update call accordingly.
1785 (md_reader::handle_overloaded_name): Likewise.
1786 (md_reader::apply_iterator_to_string): Likewise. Skip empty
1788 (record_attribute_use): Take a file_location parameter.
1789 Initialize attribute_use::loc.
1790 (md_reader::record_potential_iterator_use): Take a file_location
1791 parameter. Update call to record_attribute_use.
1792 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
1793 (rtx_reader::read_rtx_code): Likewise.
1794 (rtx_reader::read_rtx_operand): Likewise. Record a location
1795 for implicitly-expanded empty strings.
1797 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
1799 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
1800 Use file_location instead of separate fields.
1801 (md_reader::set_md_ptr_loc): Take a file_location instead of a
1802 separate filename and line number.
1803 * read-md.c (ptr_loc): As above.
1804 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
1805 (md_reader::fprint_md_ptr_loc): Likewise.
1806 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
1807 instead of a separate filename and line number.
1808 (md_reader::read_string): Update call accordingly.
1810 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
1812 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
1813 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
1814 leaving the choice between SFDF and P implicit.
1815 (*mov<mode>_update2): Likewise.
1816 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
1817 rather than leaving the choice betweem IBM128 and GPR implicit.
1818 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
1819 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
1821 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
1822 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
1823 * config/rs6000/vsx.md
1824 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
1825 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
1826 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
1827 and VSX_EXTRACT_I implicit.
1829 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
1831 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
1832 Explicitly use <MOVEP1:MODE> for the mode attribute.
1834 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
1837 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
1839 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
1842 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
1845 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
1847 * config/i386/i386.md (@test<mode>_ccno_1):
1848 Rename from test<mode>_ccno_1.
1849 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
1850 (*testqi_1_maybe_si): Remove modrm attribute.
1851 (*test<mode>_1): Ditto.
1852 * config/i386/i386-expand.c (ix86_split_idivmod): Use
1853 gen_test_ccno_1 and gen_extend_insn.
1855 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
1857 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
1860 2019-07-15 Richard Biener <rguenther@suse.de>
1863 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
1864 node make sure to replace all uses with something valid.
1866 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
1868 PR tree-optimization/88497
1869 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
1870 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
1871 function undistribute_bitref_for_vector.
1872 (undistribute_bitref_for_vector): New function.
1873 (cleanup_vinfo_map): Likewise.
1874 (sort_by_mach_mode): Likewise.
1876 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
1878 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
1879 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
1880 and testdi_ccno_1 using SWI48 mode attribute.
1881 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
1882 x86_64_szext_general_operand.
1883 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
1884 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
1885 instead of genera_operand mode attribute.
1887 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
1889 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
1890 fopen and fclose to their respective types.
1891 (DotFn.invoke): Ditto.
1893 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
1895 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
1896 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
1897 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
1898 (array_index_predicate): Remove.
1899 (analyze_function_body): Account cost for variable ofsetted array
1901 (estimate_node_size_and_time): Do not compute array index hint.
1902 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
1903 (inline_read_section): Do not read array index hint.
1904 (ipa_fn_summary_write): Do not write array index hint.
1905 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
1906 * ipa-cp.c (hint_time_bonus): Remove.
1907 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
1908 (ipa_fnsummary): Remove array_index.
1909 * ipa-inline.c (want_inline_small_function_p): Do not use
1911 (edge_badness): Likewise.
1912 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
1914 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
1917 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
1918 superfluous "builtin function" phrasing.
1920 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
1922 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
1924 (aliasing_component_refs_walk): Break out from ...
1925 (aliasing_component_refs_p): ... here.
1927 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
1930 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
1931 "builtin function" phrasing.
1933 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1936 * recog.h (temporary_volatile_ok): New class.
1937 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
1938 volatile_ok temporarily to true using temporary_volatile_ok.
1939 * expr.c (emit_block_move_via_cpymem): Likewise.
1940 * optabs.c (maybe_legitimize_operand): Likewise.
1942 2019-07-13 Jakub Jelinek <jakub@redhat.com>
1944 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
1945 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
1946 uses inside of order(concurrent) constructs.
1947 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
1948 OMP_CLAUSE_ORDER is seen.
1949 * omp-low.c (struct omp_context): Add order_concurrent member.
1950 (scan_sharing_clauses): Set ctx->order_concurrent if
1951 OMP_CLAUSE_ORDER is seen.
1952 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
1953 of simd order(concurrent). Diagnose constructs not allowed inside of
1954 for order(concurrent).
1955 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
1956 complaining about static double setjmp (double); or class static
1957 methods or non-global namespace setjmps.
1958 (omp_runtime_api_call): New function.
1959 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
1960 order(concurrent) loops.
1962 2019-07-12 Martin Sebor <msebor@redhat.com>
1964 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
1965 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
1966 * tree-vrp.c (vrp_prop::check_mem_ref): Use
1967 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
1969 2019-07-12 Jan Hubicka <jh@suse.cz>
1971 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
1972 (indirect_refs_may_alias_p): ... here.
1973 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
1974 mem refs in the access paths.
1976 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
1978 PR tree-optimization/89430
1979 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
1980 store elimination for local variable without address escape.
1982 2019-07-12 Jeff Law <law@redhat.com>
1984 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
1985 for the ".far" section.
1987 2019-07-12 Richard Biener <rguenther@suse.de>
1989 PR tree-optimization/91145
1990 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
1993 2019-07-12 Alexandre Oliva <oliva@adacore.com>
1995 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
1996 rather than this_state as the lowering context for the ELSE
1997 seq in a GIMPLE_EH_ELSE.
1999 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
2001 * vector-builder.h (vector_builder::elt): Allow already-supplied
2002 elements to be read back before building is complete.
2004 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
2006 PR rtl-optimization/91136
2007 * df-core.c (ACCESSING REFS): Fix typos in comment.
2008 * resource.c (mark_target_live_reg): Add artificial defs that occur at
2009 the beginning of the block to the initial set of live registers.
2011 2019-07-12 Richard Biener <rguenther@suse.de>
2013 * fold-const.h (get_array_ctor_element_at_index): Adjust.
2014 * fold-const.c (get_array_ctor_element_at_index): Add
2015 ctor_idx output parameter informing the caller where in
2016 the constructor the element was (not) found. Add early exit
2017 for when the ctor is sorted.
2018 * gimple-fold.c (fold_array_ctor_reference): Support constant
2019 folding across multiple array elements.
2021 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
2023 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
2024 doesn't have location, set the current location to the function's end.
2026 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
2028 * config/aarch64/aarch64.md (*compare_condjump<mode>)
2029 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
2030 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
2031 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
2032 * config/aarch64/aarch64-simd.md
2033 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
2034 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
2035 * config/aarch64/aarch64-sve.md
2036 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
2037 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
2039 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
2041 * doc/md.texi: Document that @ patterns can have different
2042 numbers of operands.
2043 * genemit.c (handle_overloaded_gen): Handle this case.
2044 * genopinit.c (handle_overloaded_gen): Likewise.
2045 * gensupport.c (replace_operands_with_dups): Iterate over
2046 the new rtx's format rather than the old one's.
2048 2019-07-12 Jakub Jelinek <jakub@redhat.com>
2050 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
2051 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
2052 order clause entries.
2053 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
2054 * tree-pretty-print.c (dump_omp_clause): Likewise.
2055 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
2057 * omp-low.c (scan_sharing_clauses): Likewise.
2058 * tree-nested.c (convert_nonlocal_omp_clauses,
2059 convert_local_omp_clauses): Likewise.
2061 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
2063 * gcc/cfgrtl.c (print_rtl_with_bb): Emit a hint if the
2064 fallthrough target of current basic block isn't the placed
2067 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
2070 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
2071 (_mm512_storeu_epi64): Likewise.
2072 (_mm512_loadu_epi32): Likewise.
2073 (_mm512_storeu_epi32): Likewise.
2074 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
2075 (_mm_storeu_epi64): Likewise.
2076 (_mm256_storeu_epi32): Likewise.
2077 (_mm_storeu_epi32): Likewise.
2079 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
2081 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
2083 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
2085 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
2088 2019-07-11 Jakub Jelinek <jakub@redhat.com>
2091 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
2092 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
2093 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
2094 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
2095 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
2096 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
2098 (ufix_truncv2dfv2si2<mask_name>): Change into ...
2099 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
2100 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
2102 (sse2_cvttpd2dq<mask_name>): Change into ...
2103 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
2104 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
2105 (*sse2_cvtpd2dq<mask_name>): Change into ...
2106 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
2107 Add "C" constraint to const0_operand.
2108 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
2109 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
2113 * config/i386/i386-builtin-types.def
2114 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
2115 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
2116 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
2117 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
2118 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
2119 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
2120 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
2121 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
2122 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
2123 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
2124 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
2125 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
2126 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
2127 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
2128 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
2129 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
2130 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
2131 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
2132 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
2133 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
2134 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
2135 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
2136 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
2137 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
2138 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
2139 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
2140 __builtin_ia32_vpdpbusd_v4si_maskz,
2141 __builtin_ia32_vpdpbusds_v16si_mask,
2142 __builtin_ia32_vpdpbusds_v16si_maskz,
2143 __builtin_ia32_vpdpbusds_v8si_mask,
2144 __builtin_ia32_vpdpbusds_v8si_maskz,
2145 __builtin_ia32_vpdpbusds_v4si_mask,
2146 __builtin_ia32_vpdpbusds_v4si_maskz,
2147 __builtin_ia32_vpdpwssd_v16si_mask,
2148 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
2149 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
2150 __builtin_ia32_vpdpwssd_v4si_maskz,
2151 __builtin_ia32_vpdpwssds_v16si_mask,
2152 __builtin_ia32_vpdpwssds_v16si_maskz,
2153 __builtin_ia32_vpdpwssds_v8si_mask,
2154 __builtin_ia32_vpdpwssds_v8si_maskz,
2155 __builtin_ia32_vpdpwssds_v4si_mask,
2156 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
2157 suffixed types rather than *_INT.
2158 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
2159 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
2160 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
2161 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
2162 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
2163 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
2165 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
2167 * tree-vrp.c (intersect_ranges): If we know the intersection is
2168 empty, there is no need to conservatively add anything else to
2171 2019-07-11 Richard Biener <rguenther@suse.de>
2174 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
2175 when the object is volatile and we have not cleared it even though
2176 there are no nonzero elements.
2178 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
2180 * config/rs6000/predicates.md (cint34_operand): Update
2181 SIGNED_34BIT_OFFSET_P call.
2182 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
2183 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
2184 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
2185 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
2186 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
2188 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
2189 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
2190 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
2191 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
2192 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
2194 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
2196 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
2197 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
2198 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
2199 (DEF_MIN_OSX_VERSION): New.
2201 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
2203 * fold-const.c (fold_relational_const): Fix folding of
2204 vector-to-scalar NE_EXPRs.
2205 (test_vector_folding): Add more tests.
2207 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
2210 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
2211 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
2212 (vec_setv2di_internal): Reexpress as...
2213 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
2214 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
2215 rather than gen_neon_vset_lane<mode>.
2217 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
2220 * lra-constraints.c (process_alt_operands): Don't match user
2221 defined regs only if they are early clobbers.
2223 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
2225 * wide-int.h (wi::lshift): Reject negative values for the fast path.
2227 2019-07-10 Richard Biener <rguenther@suse.de>
2229 PR tree-optimization/91126
2230 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
2231 native encoding offset for BYTES_BIG_ENDIAN.
2232 (vn_reference_lookup_3): Likewise.
2234 2019-07-10 Richard Biener <rguenther@suse.de>
2236 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
2237 LHS whenever possible.
2239 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
2241 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
2242 from ...; work also on duplicated types.
2243 (nonoverlapping_component_refs_since_match): ... here
2244 (ncr_type_uid): Break out from ...
2245 (ncr_compar): ... here; look for TYPE_UID of canonical type if
2247 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
2248 the types and nonoverlapping_component_refs_p_1 to disambiguate.
2250 2019-07-09 Martin Sebor <msebor@redhat.com>
2252 PR tree-optimization/90989
2253 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
2254 optimization to just single character stores.
2256 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
2258 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
2259 Swap operands only once.
2261 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
2263 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
2264 for both call instructions.
2266 2019-07-09 John Darrington <john@darrington.wattle.id.au>
2268 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
2269 rather than GET_MODE_BITSIZE to better handle partial integer modes.
2271 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
2273 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
2274 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
2275 function from rs6000-logue.c back to rs6000.c.
2276 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
2278 2019-07-09 Martin Sebor <msebor@redhat.com>
2281 * auto-profile.c: Change class-key of PODs to struct and others
2283 * basic-block.h: Same.
2284 * bitmap.c (bitmap_alloc): Same.
2286 * builtins.c (expand_builtin_prefetch): Same.
2287 (expand_builtin_interclass_mathfn): Same.
2288 (expand_builtin_strlen): Same.
2289 (expand_builtin_mempcpy_args): Same.
2290 (expand_cmpstr): Same.
2291 (expand_builtin___clear_cache): Same.
2292 (expand_ifn_atomic_bit_test_and): Same.
2293 (expand_builtin_thread_pointer): Same.
2294 (expand_builtin_set_thread_pointer): Same.
2295 * caller-save.c (setup_save_areas): Same.
2296 (replace_reg_with_saved_mem): Same.
2297 (insert_restore): Same.
2298 (insert_save): Same.
2299 (add_used_regs): Same.
2300 * cfg.c (get_bb_copy): Same.
2301 (set_loop_copy): Same.
2304 * cfgexpand.c (alloc_stack_frame_space): Same.
2305 (add_stack_var): Same.
2306 (add_stack_var_conflict): Same.
2307 (add_scope_conflicts_1): Same.
2308 (update_alias_info_with_stack_vars): Same.
2309 (expand_used_vars): Same.
2310 * cfghooks.c (redirect_edge_and_branch_force): Same.
2311 (delete_basic_block): Same.
2313 (make_forwarder_block): Same.
2314 (force_nonfallthru): Same.
2315 (duplicate_block): Same.
2316 (lv_flush_pending_stmts): Same.
2318 * cfgloop.c (flow_loops_cfg_dump): Same.
2319 (flow_loop_nested_p): Same.
2320 (superloop_at_depth): Same.
2321 (get_loop_latch_edges): Same.
2322 (flow_loop_dump): Same.
2323 (flow_loops_dump): Same.
2324 (flow_loops_free): Same.
2325 (flow_loop_nodes_find): Same.
2326 (establish_preds): Same.
2327 (flow_loop_tree_node_add): Same.
2328 (flow_loop_tree_node_remove): Same.
2329 (flow_loops_find): Same.
2330 (find_subloop_latch_edge_by_profile): Same.
2331 (find_subloop_latch_edge_by_ivs): Same.
2332 (mfb_redirect_edges_in_set): Same.
2333 (form_subloop): Same.
2334 (merge_latch_edges): Same.
2335 (disambiguate_multiple_latches): Same.
2336 (disambiguate_loops_with_multiple_latches): Same.
2337 (flow_bb_inside_loop_p): Same.
2339 (get_loop_body_with_size): Same.
2340 (get_loop_body): Same.
2341 (fill_sons_in_loop): Same.
2342 (get_loop_body_in_dom_order): Same.
2343 (get_loop_body_in_custom_order): Same.
2344 (release_recorded_exits): Same.
2345 (get_loop_exit_edges): Same.
2346 (num_loop_branches): Same.
2347 (remove_bb_from_loops): Same.
2348 (find_common_loop): Same.
2349 (delete_loop): Same.
2350 (cancel_loop): Same.
2351 (verify_loop_structure): Same.
2352 (loop_preheader_edge): Same.
2353 (loop_exit_edge_p): Same.
2354 (single_exit): Same.
2355 (loop_exits_to_bb_p): Same.
2356 (loop_exits_from_bb_p): Same.
2357 (get_loop_location): Same.
2358 (record_niter_bound): Same.
2359 (get_estimated_loop_iterations_int): Same.
2360 (max_stmt_executions_int): Same.
2361 (likely_max_stmt_executions_int): Same.
2362 (get_estimated_loop_iterations): Same.
2363 (get_max_loop_iterations): Same.
2364 (get_max_loop_iterations_int): Same.
2365 (get_likely_max_loop_iterations): Same.
2366 * cfgloop.h (simple_loop_desc): Same.
2370 (loop_iterator::next): Same.
2371 (loop_outermost): Same.
2372 * cfgloopanal.c (mark_irreducible_loops): Same.
2373 (num_loop_insns): Same.
2374 (average_num_loop_insns): Same.
2375 (expected_loop_iterations_unbounded): Same.
2376 (expected_loop_iterations): Same.
2377 (mark_loop_exit_edges): Same.
2378 (single_likely_exit): Same.
2379 * cfgloopmanip.c (fix_bb_placement): Same.
2380 (fix_bb_placements): Same.
2381 (remove_path): Same.
2382 (place_new_loop): Same.
2384 (scale_loop_frequencies): Same.
2385 (scale_loop_profile): Same.
2386 (create_empty_if_region_on_edge): Same.
2387 (create_empty_loop_on_edge): Same.
2390 (fix_loop_placements): Same.
2391 (copy_loop_info): Same.
2392 (duplicate_loop): Same.
2393 (duplicate_subloops): Same.
2394 (loop_redirect_edge): Same.
2395 (can_duplicate_loop_p): Same.
2396 (duplicate_loop_to_header_edge): Same.
2397 (mfb_keep_just): Same.
2398 (has_preds_from_loop): Same.
2399 (create_preheader): Same.
2400 (create_preheaders): Same.
2401 (lv_adjust_loop_entry_edge): Same.
2402 (loop_version): Same.
2403 * cfgloopmanip.h: Same.
2405 * cgraphbuild.c: Same.
2406 * combine.c (make_extraction): Same.
2407 * config/i386/i386-features.c: Same.
2408 * config/i386/i386-features.h: Same.
2409 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
2410 (ix86_emit_outlined_ms2sysv_restore): Same.
2411 (ix86_noce_conversion_profitable_p): Same.
2412 (ix86_init_cost): Same.
2413 (ix86_simd_clone_usable): Same.
2414 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
2416 * coretypes.h: Same.
2417 * data-streamer-in.c (string_for_index): Change class-key of PODs
2418 to struct and others to class.
2419 (streamer_read_indexed_string): Same.
2420 (streamer_read_string): Same.
2421 (bp_unpack_indexed_string): Same.
2422 (bp_unpack_string): Same.
2423 (streamer_read_uhwi): Same.
2424 (streamer_read_hwi): Same.
2425 (streamer_read_gcov_count): Same.
2426 (streamer_read_wide_int): Same.
2427 * data-streamer.h (streamer_write_bitpack): Same.
2428 (bp_unpack_value): Same.
2429 (streamer_write_char_stream): Same.
2430 (streamer_write_hwi_in_range): Same.
2431 (streamer_write_record_start): Same.
2432 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
2433 (add_cross_iteration_register_deps): Same.
2434 (build_intra_loop_deps): Same.
2435 * df-core.c (df_analyze): Same.
2436 (loop_post_order_compute): Same.
2437 (loop_inverted_post_order_compute): Same.
2438 * df-problems.c (df_rd_alloc): Same.
2439 (df_rd_simulate_one_insn): Same.
2440 (df_rd_local_compute): Same.
2441 (df_rd_init_solution): Same.
2442 (df_rd_confluence_n): Same.
2443 (df_rd_transfer_function): Same.
2445 (df_rd_dump_defs_set): Same.
2446 (df_rd_top_dump): Same.
2447 (df_lr_alloc): Same.
2448 (df_lr_reset): Same.
2449 (df_lr_local_compute): Same.
2451 (df_lr_confluence_n): Same.
2453 (df_lr_top_dump): Same.
2454 (df_lr_verify_transfer_functions): Same.
2455 (df_live_alloc): Same.
2456 (df_live_reset): Same.
2457 (df_live_init): Same.
2458 (df_live_confluence_n): Same.
2459 (df_live_finalize): Same.
2460 (df_live_free): Same.
2461 (df_live_top_dump): Same.
2462 (df_live_verify_transfer_functions): Same.
2463 (df_mir_alloc): Same.
2464 (df_mir_reset): Same.
2465 (df_mir_init): Same.
2466 (df_mir_confluence_n): Same.
2467 (df_mir_free): Same.
2468 (df_mir_top_dump): Same.
2469 (df_word_lr_alloc): Same.
2470 (df_word_lr_reset): Same.
2471 (df_word_lr_init): Same.
2472 (df_word_lr_confluence_n): Same.
2473 (df_word_lr_free): Same.
2474 (df_word_lr_top_dump): Same.
2475 (df_md_alloc): Same.
2476 (df_md_simulate_one_insn): Same.
2477 (df_md_reset): Same.
2480 (df_md_top_dump): Same.
2481 * df-scan.c (df_insn_delete): Same.
2482 (df_insn_rescan): Same.
2483 (df_notes_rescan): Same.
2484 (df_sort_and_compress_mws): Same.
2485 (df_install_mws): Same.
2486 (df_refs_add_to_chains): Same.
2487 (df_ref_create_structure): Same.
2488 (df_ref_record): Same.
2489 (df_def_record_1): Same.
2490 (df_find_hard_reg_defs): Same.
2491 (df_uses_record): Same.
2492 (df_get_conditional_uses): Same.
2493 (df_get_call_refs): Same.
2494 (df_recompute_luids): Same.
2495 (df_get_entry_block_def_set): Same.
2496 (df_entry_block_defs_collect): Same.
2497 (df_get_exit_block_use_set): Same.
2498 (df_exit_block_uses_collect): Same.
2499 (df_mws_verify): Same.
2500 (df_bb_verify): Same.
2501 * df.h (df_scan_get_bb_info): Same.
2502 * doc/tm.texi: Same.
2503 * dse.c (record_store): Same.
2505 * emit-rtl.c (const_fixed_hasher::equal): Same.
2506 (set_mem_attributes_minus_bitpos): Same.
2507 (change_address): Same.
2508 (adjust_address_1): Same.
2509 (offset_address): Same.
2511 * except.c (dw2_build_landing_pads): Same.
2512 (sjlj_emit_dispatch_table): Same.
2513 * explow.c (allocate_dynamic_stack_space): Same.
2514 (emit_stack_probe): Same.
2515 (probe_stack_range): Same.
2516 * expmed.c (store_bit_field_using_insv): Same.
2517 (store_bit_field_1): Same.
2518 (store_integral_bit_field): Same.
2519 (extract_bit_field_using_extv): Same.
2520 (extract_bit_field_1): Same.
2521 (emit_cstore): Same.
2522 * expr.c (emit_block_move_via_cpymem): Same.
2523 (expand_cmpstrn_or_cmpmem): Same.
2524 (set_storage_via_setmem): Same.
2525 (emit_single_push_insn_1): Same.
2526 (expand_assignment): Same.
2527 (store_constructor): Same.
2528 (expand_expr_real_2): Same.
2529 (expand_expr_real_1): Same.
2532 * function.c (try_fit_stack_local): Same.
2533 (assign_stack_local_1): Same.
2534 (assign_stack_local): Same.
2535 (cut_slot_from_list): Same.
2536 (insert_slot_to_list): Same.
2537 (max_slot_level): Same.
2538 (move_slot_to_level): Same.
2539 (temp_address_hasher::equal): Same.
2540 (remove_unused_temp_slot_addresses): Same.
2541 (assign_temp): Same.
2542 (combine_temp_slots): Same.
2543 (update_temp_slot_address): Same.
2544 (preserve_temp_slots): Same.
2547 * gcc-rich-location.h: Same.
2549 * genattrtab.c (check_attr_test): Same.
2550 (check_attr_value): Same.
2551 (convert_set_attr_alternative): Same.
2552 (convert_set_attr): Same.
2554 (copy_boolean): Same.
2555 (get_attr_value): Same.
2556 (expand_delays): Same.
2557 (make_length_attrs): Same.
2559 (make_alternative_compare): Same.
2560 (simplify_test_exp): Same.
2561 (tests_attr_p): Same.
2562 (get_attr_order): Same.
2563 (clear_struct_flag): Same.
2565 (compares_alternatives_p): Same.
2568 (find_attrs_to_cache): Same.
2569 (write_test_expr): Same.
2570 (walk_attr_value): Same.
2571 (write_attr_get): Same.
2572 (eliminate_known_true): Same.
2573 (write_insn_cases): Same.
2574 (write_attr_case): Same.
2575 (write_attr_valueq): Same.
2576 (write_attr_value): Same.
2577 (write_dummy_eligible_delay): Same.
2578 (next_comma_elt): Same.
2580 (make_internal_attr): Same.
2581 (copy_rtx_unchanging): Same.
2582 (gen_insn_reserv): Same.
2583 (check_tune_attr): Same.
2584 (make_automaton_attrs): Same.
2586 * genextract.c (gen_insn): Same.
2587 (VEC_char_to_string): Same.
2588 * genmatch.c (print_operand): Same.
2590 (parser::parse_operation): Same.
2591 (parser::parse_capture): Same.
2592 (parser::parse_c_expr): Same.
2593 (parser::parse_simplify): Same.
2595 * genoutput.c (output_operand_data): Same.
2596 (output_get_insn_name): Same.
2597 (compare_operands): Same.
2598 (place_operands): Same.
2599 (process_template): Same.
2600 (validate_insn_alternatives): Same.
2601 (validate_insn_operands): Same.
2603 (note_constraint): Same.
2604 * genpreds.c (write_one_predicate_function): Same.
2605 (add_constraint): Same.
2606 (process_define_register_constraint): Same.
2607 (write_lookup_constraint_1): Same.
2608 (write_lookup_constraint_array): Same.
2609 (write_insn_constraint_len): Same.
2610 (write_reg_class_for_constraint_1): Same.
2611 (write_constraint_satisfied_p_array): Same.
2612 * genrecog.c (optimize_subroutine_group): Same.
2613 * gensupport.c (process_define_predicate): Same.
2614 (queue_pattern): Same.
2615 (remove_from_queue): Same.
2616 (process_rtx): Same.
2617 (is_predicable): Same.
2618 (change_subst_attribute): Same.
2619 (subst_pattern_match): Same.
2620 (alter_constraints): Same.
2621 (alter_attrs_for_insn): Same.
2622 (shift_output_template): Same.
2623 (alter_output_for_subst_insn): Same.
2624 (process_one_cond_exec): Same.
2626 (process_define_cond_exec): Same.
2627 (mnemonic_htab_callback): Same.
2628 (gen_mnemonic_attr): Same.
2629 (read_md_rtx): Same.
2631 * gimple-loop-interchange.cc (dump_reduction): Same.
2632 (dump_induction): Same.
2633 (loop_cand::~loop_cand): Same.
2634 (free_data_refs_with_aux): Same.
2635 (tree_loop_interchange::interchange_loops): Same.
2636 (tree_loop_interchange::map_inductions_to_loop): Same.
2637 (tree_loop_interchange::move_code_to_inner_loop): Same.
2638 (compute_access_stride): Same.
2639 (compute_access_strides): Same.
2640 (proper_loop_form_for_interchange): Same.
2641 (tree_loop_interchange_compute_ddrs): Same.
2642 (prune_datarefs_not_in_loop): Same.
2643 (prepare_data_references): Same.
2644 (pass_linterchange::execute): Same.
2645 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
2646 (unroll_jam_possible_p): Same.
2648 (adjust_unroll_factor): Same.
2649 (tree_loop_unroll_and_jam): Same.
2650 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
2651 (loop_versioning::expensive_stmt_p): Same.
2652 (loop_versioning::version_for_unity): Same.
2653 (loop_versioning::dump_inner_likelihood): Same.
2654 (loop_versioning::find_per_loop_multiplication): Same.
2655 (loop_versioning::analyze_term_using_scevs): Same.
2656 (loop_versioning::record_address_fragment): Same.
2657 (loop_versioning::analyze_expr): Same.
2658 (loop_versioning::analyze_blocks): Same.
2659 (loop_versioning::prune_conditions): Same.
2660 (loop_versioning::merge_loop_info): Same.
2661 (loop_versioning::add_loop_to_queue): Same.
2662 (loop_versioning::decide_whether_loop_is_versionable): Same.
2663 (loop_versioning::make_versioning_decisions): Same.
2664 (loop_versioning::implement_versioning_decisions): Same.
2665 * gimple-ssa-evrp-analyze.c
2666 (evrp_range_analyzer::record_ranges_from_phis): Same.
2667 * gimple-ssa-store-merging.c (split_store::split_store): Same.
2668 (count_multiple_uses): Same.
2669 (split_group): Same.
2670 (imm_store_chain_info::output_merged_store): Same.
2671 (pass_store_merging::process_store): Same.
2672 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
2673 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
2675 (alloca_call_type): Same.
2676 (pass_walloca::execute): Same.
2677 * gimple-streamer-in.c (input_phi): Same.
2678 (input_gimple_stmt): Same.
2679 * gimple-streamer.h: Same.
2680 * godump.c (go_force_record_alignment): Same.
2681 (go_format_type): Same.
2682 (go_output_type): Same.
2683 (go_output_fndecl): Same.
2684 (go_output_typedef): Same.
2685 (keyword_hash_init): Same.
2686 (find_dummy_types): Same.
2687 * graph.c (draw_cfg_nodes_no_loops): Same.
2688 (draw_cfg_nodes_for_loop): Same.
2689 * hard-reg-set.h (hard_reg_set_iter_next): Same.
2691 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
2692 * hsa-dump.c (dump_hsa_cfun): Same.
2693 * hsa-gen.c (gen_function_def_parameters): Same.
2694 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
2695 * input.c (dump_line_table_statistics): Same.
2698 * internal-fn.c (get_multi_vector_move): Same.
2699 (expand_load_lanes_optab_fn): Same.
2700 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
2701 (expand_GOMP_SIMT_EXIT): Same.
2702 (expand_GOMP_SIMT_LAST_LANE): Same.
2703 (expand_GOMP_SIMT_ORDERED_PRED): Same.
2704 (expand_GOMP_SIMT_VOTE_ANY): Same.
2705 (expand_GOMP_SIMT_XCHG_BFLY): Same.
2706 (expand_GOMP_SIMT_XCHG_IDX): Same.
2707 (expand_addsub_overflow): Same.
2708 (expand_neg_overflow): Same.
2709 (expand_mul_overflow): Same.
2710 (expand_call_mem_ref): Same.
2711 (expand_mask_load_optab_fn): Same.
2712 (expand_scatter_store_optab_fn): Same.
2713 (expand_gather_load_optab_fn): Same.
2714 * ipa-cp.c (ipa_get_parm_lattices): Same.
2715 (print_all_lattices): Same.
2716 (ignore_edge_p): Same.
2717 (build_toporder_info): Same.
2718 (free_toporder_info): Same.
2719 (push_node_to_stack): Same.
2720 (ipcp_lattice<valtype>::set_contains_variable): Same.
2721 (set_agg_lats_to_bottom): Same.
2722 (ipcp_bits_lattice::meet_with): Same.
2723 (set_single_call_flag): Same.
2724 (initialize_node_lattices): Same.
2725 (ipa_get_jf_ancestor_result): Same.
2726 (ipcp_verify_propagated_values): Same.
2727 (propagate_scalar_across_jump_function): Same.
2728 (propagate_context_across_jump_function): Same.
2729 (propagate_bits_across_jump_function): Same.
2730 (ipa_vr_operation_and_type_effects): Same.
2731 (propagate_vr_across_jump_function): Same.
2732 (set_check_aggs_by_ref): Same.
2733 (set_chain_of_aglats_contains_variable): Same.
2734 (merge_aggregate_lattices): Same.
2735 (agg_pass_through_permissible_p): Same.
2736 (propagate_aggs_across_jump_function): Same.
2737 (call_passes_through_thunk_p): Same.
2738 (propagate_constants_across_call): Same.
2739 (devirtualization_time_bonus): Same.
2740 (good_cloning_opportunity_p): Same.
2741 (context_independent_aggregate_values): Same.
2742 (gather_context_independent_values): Same.
2743 (perform_estimation_of_a_value): Same.
2744 (estimate_local_effects): Same.
2745 (value_topo_info<valtype>::add_val): Same.
2746 (add_all_node_vals_to_toposort): Same.
2747 (value_topo_info<valtype>::propagate_effects): Same.
2748 (ipcp_propagate_stage): Same.
2749 (ipcp_discover_new_direct_edges): Same.
2750 (same_node_or_its_all_contexts_clone_p): Same.
2751 (cgraph_edge_brings_value_p): Same.
2752 (gather_edges_for_value): Same.
2753 (create_specialized_node): Same.
2754 (find_more_scalar_values_for_callers_subset): Same.
2755 (find_more_contexts_for_caller_subset): Same.
2756 (copy_plats_to_inter): Same.
2757 (intersect_aggregates_with_edge): Same.
2758 (find_aggregate_values_for_callers_subset): Same.
2759 (cgraph_edge_brings_all_agg_vals_for_node): Same.
2760 (decide_about_value): Same.
2761 (decide_whether_version_node): Same.
2762 (spread_undeadness): Same.
2763 (identify_dead_nodes): Same.
2764 (ipcp_store_vr_results): Same.
2765 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
2766 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
2767 (redirect_to_unreachable): Same.
2768 (edge_set_predicate): Same.
2769 (evaluate_conditions_for_known_args): Same.
2770 (evaluate_properties_for_edge): Same.
2771 (ipa_fn_summary_t::duplicate): Same.
2772 (ipa_call_summary_t::duplicate): Same.
2773 (dump_ipa_call_summary): Same.
2774 (ipa_dump_fn_summary): Same.
2775 (eliminated_by_inlining_prob): Same.
2776 (set_cond_stmt_execution_predicate): Same.
2777 (set_switch_stmt_execution_predicate): Same.
2778 (compute_bb_predicates): Same.
2779 (will_be_nonconstant_expr_predicate): Same.
2780 (phi_result_unknown_predicate): Same.
2781 (analyze_function_body): Same.
2782 (compute_fn_summary): Same.
2783 (estimate_edge_devirt_benefit): Same.
2784 (estimate_edge_size_and_time): Same.
2785 (estimate_calls_size_and_time): Same.
2786 (estimate_node_size_and_time): Same.
2787 (remap_edge_change_prob): Same.
2788 (remap_edge_summaries): Same.
2789 (ipa_merge_fn_summary_after_inlining): Same.
2790 (ipa_fn_summary_generate): Same.
2791 (inline_read_section): Same.
2792 (ipa_fn_summary_read): Same.
2793 (ipa_fn_summary_write): Same.
2794 * ipa-fnsummary.h: Same.
2795 * ipa-hsa.c (ipa_hsa_read_section): Same.
2796 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
2797 * ipa-icf.c (sem_function::param_used_p): Same.
2798 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
2799 * ipa-inline.c (edge_badness): Same.
2800 (inline_small_functions): Same.
2801 * ipa-polymorphic-call.c
2802 (ipa_polymorphic_call_context::stream_out): Same.
2803 * ipa-predicate.c (predicate::remap_after_duplication): Same.
2804 (predicate::remap_after_inlining): Same.
2805 (predicate::stream_out): Same.
2806 * ipa-predicate.h: Same.
2807 * ipa-profile.c (ipa_profile_read_summary): Same.
2808 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
2809 (count_formal_params): Same.
2810 (ipa_dump_param): Same.
2811 (ipa_alloc_node_params): Same.
2812 (ipa_print_node_jump_functions_for_edge): Same.
2813 (ipa_print_node_jump_functions): Same.
2814 (ipa_load_from_parm_agg): Same.
2815 (get_ancestor_addr_info): Same.
2816 (ipa_compute_jump_functions_for_edge): Same.
2817 (ipa_analyze_virtual_call_uses): Same.
2818 (ipa_analyze_stmt_uses): Same.
2819 (ipa_analyze_params_uses_in_bb): Same.
2820 (update_jump_functions_after_inlining): Same.
2821 (try_decrement_rdesc_refcount): Same.
2822 (ipa_impossible_devirt_target): Same.
2823 (update_indirect_edges_after_inlining): Same.
2824 (combine_controlled_uses_counters): Same.
2825 (ipa_edge_args_sum_t::duplicate): Same.
2826 (ipa_write_jump_function): Same.
2827 (ipa_write_indirect_edge_info): Same.
2828 (ipa_write_node_info): Same.
2829 (ipa_read_edge_info): Same.
2830 (ipa_prop_read_section): Same.
2831 (read_replacements_section): Same.
2832 * ipa-prop.h (ipa_get_param_count): Same.
2833 (ipa_get_param): Same.
2834 (ipa_get_type): Same.
2835 (ipa_get_param_move_cost): Same.
2836 (ipa_set_param_used): Same.
2837 (ipa_get_controlled_uses): Same.
2838 (ipa_set_controlled_uses): Same.
2839 (ipa_get_cs_argument_count): Same.
2840 * ipa-pure-const.c (analyze_function): Same.
2841 (pure_const_read_summary): Same.
2843 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
2844 * ipa-split.c (test_nonssa_use): Same.
2845 (dump_split_point): Same.
2846 (dominated_by_forbidden): Same.
2847 (split_part_set_ssa_name_p): Same.
2848 (find_split_points): Same.
2849 * ira-build.c (finish_loop_tree_nodes): Same.
2850 (low_pressure_loop_node_p): Same.
2851 * ira-color.c (ira_reuse_stack_slot): Same.
2853 * ira.c (setup_reg_equiv): Same.
2854 (print_insn_chain): Same.
2856 * loop-doloop.c (doloop_condition_get): Same.
2858 (record_reg_sets): Same.
2859 (doloop_optimize): Same.
2860 * loop-init.c (loop_optimizer_init): Same.
2861 (fix_loop_structure): Same.
2862 * loop-invariant.c (merge_identical_invariants): Same.
2863 (compute_always_reached): Same.
2865 (may_assign_reg_p): Same.
2866 (find_invariants_bb): Same.
2867 (find_invariants_body): Same.
2868 (replace_uses): Same.
2869 (can_move_invariant_reg): Same.
2870 (free_inv_motion_data): Same.
2871 (move_single_loop_invariants): Same.
2872 (change_pressure): Same.
2873 (mark_ref_regs): Same.
2874 (calculate_loop_reg_pressure): Same.
2875 * loop-iv.c (biv_entry_hasher::equal): Same.
2876 (iv_extend_to_rtx_code): Same.
2877 (check_iv_ref_table_size): Same.
2878 (clear_iv_info): Same.
2879 (latch_dominating_def): Same.
2880 (iv_get_reaching_def): Same.
2881 (iv_constant): Same.
2887 (get_biv_step): Same.
2889 (analyzed_for_bivness_p): Same.
2891 (iv_analyze_biv): Same.
2892 (iv_analyze_expr): Same.
2893 (iv_analyze_def): Same.
2894 (iv_analyze_op): Same.
2896 (iv_analyze_result): Same.
2898 (eliminate_implied_conditions): Same.
2899 (simplify_using_initial_values): Same.
2900 (shorten_into_mode): Same.
2901 (canonicalize_iv_subregs): Same.
2902 (determine_max_iter): Same.
2903 (check_simple_exit): Same.
2904 (find_simple_exit): Same.
2905 (get_simple_loop_desc): Same.
2906 * loop-unroll.c (report_unroll): Same.
2907 (decide_unrolling): Same.
2908 (unroll_loops): Same.
2909 (loop_exit_at_end_p): Same.
2910 (decide_unroll_constant_iterations): Same.
2911 (unroll_loop_constant_iterations): Same.
2912 (compare_and_jump_seq): Same.
2913 (unroll_loop_runtime_iterations): Same.
2914 (decide_unroll_stupid): Same.
2915 (unroll_loop_stupid): Same.
2916 (referenced_in_one_insn_in_loop_p): Same.
2917 (reset_debug_uses_in_loop): Same.
2918 (analyze_iv_to_split_insn): Same.
2919 * lra-eliminations.c (lra_debug_elim_table): Same.
2920 (setup_can_eliminate): Same.
2922 (lra_get_elimination_hard_regno): Same.
2923 (lra_eliminate_regs_1): Same.
2924 (eliminate_regs_in_insn): Same.
2925 (update_reg_eliminate): Same.
2926 (init_elimination): Same.
2927 (lra_eliminate): Same.
2929 * lra-lives.c (initiate_live_solver): Same.
2930 * lra-remat.c (create_remat_bb_data): Same.
2931 * lra-spills.c (lra_spill): Same.
2932 * lra.c (lra_set_insn_recog_data): Same.
2933 (lra_set_used_insn_alternative_by_uid): Same.
2934 (init_reg_info): Same.
2935 (expand_reg_info): Same.
2936 * lto-cgraph.c (output_symtab): Same.
2937 (read_identifier): Same.
2938 (get_alias_symbol): Same.
2940 (input_varpool_node): Same.
2943 (input_cgraph_1): Same.
2945 (input_symtab): Same.
2946 (input_offload_tables): Same.
2947 (output_cgraph_opt_summary): Same.
2948 (input_edge_opt_summary): Same.
2949 (input_cgraph_opt_section): Same.
2950 * lto-section-in.c (lto_free_raw_section_data): Same.
2951 (lto_create_simple_input_block): Same.
2952 (lto_free_function_in_decl_state_for_node): Same.
2953 * lto-streamer-in.c (lto_tag_check_set): Same.
2954 (lto_location_cache::revert_location_cache): Same.
2955 (lto_location_cache::input_location): Same.
2956 (lto_input_location): Same.
2957 (stream_input_location_now): Same.
2958 (lto_input_tree_ref): Same.
2959 (lto_input_eh_catch_list): Same.
2960 (input_eh_region): Same.
2961 (lto_init_eh): Same.
2962 (make_new_block): Same.
2964 (fixup_call_stmt_edges): Same.
2965 (input_struct_function_base): Same.
2966 (input_function): Same.
2967 (lto_read_body_or_constructor): Same.
2968 (lto_read_tree_1): Same.
2969 (lto_read_tree): Same.
2970 (lto_input_scc): Same.
2971 (lto_input_tree_1): Same.
2972 (lto_input_toplevel_asms): Same.
2973 (lto_input_mode_table): Same.
2974 (lto_reader_init): Same.
2975 (lto_data_in_create): Same.
2976 * lto-streamer-out.c (output_cfg): Same.
2977 * lto-streamer.h: Same.
2978 * modulo-sched.c (duplicate_insns_of_cycles): Same.
2979 (generate_prolog_epilog): Same.
2980 (mark_loop_unsched): Same.
2981 (dump_insn_location): Same.
2982 (loop_canon_p): Same.
2983 (sms_schedule): Same.
2984 * omp-expand.c (expand_omp_for_ordered_loops): Same.
2985 (expand_omp_for_generic): Same.
2986 (expand_omp_for_static_nochunk): Same.
2987 (expand_omp_for_static_chunk): Same.
2988 (expand_omp_simd): Same.
2989 (expand_omp_taskloop_for_inner): Same.
2990 (expand_oacc_for): Same.
2991 (expand_omp_atomic_pipeline): Same.
2992 (mark_loops_in_oacc_kernels_region): Same.
2993 * omp-offload.c (oacc_xform_loop): Same.
2994 * omp-simd-clone.c (simd_clone_adjust): Same.
2995 * optabs-query.c (get_traditional_extraction_insn): Same.
2996 * optabs.c (expand_vector_broadcast): Same.
2997 (expand_binop_directly): Same.
2998 (expand_twoval_unop): Same.
2999 (expand_twoval_binop): Same.
3000 (expand_unop_direct): Same.
3001 (emit_indirect_jump): Same.
3002 (emit_conditional_move): Same.
3003 (emit_conditional_neg_or_complement): Same.
3004 (emit_conditional_add): Same.
3005 (vector_compare_rtx): Same.
3006 (expand_vec_perm_1): Same.
3007 (expand_vec_perm_const): Same.
3008 (expand_vec_cond_expr): Same.
3009 (expand_vec_series_expr): Same.
3010 (maybe_emit_atomic_exchange): Same.
3011 (maybe_emit_sync_lock_test_and_set): Same.
3012 (expand_atomic_compare_and_swap): Same.
3013 (expand_atomic_load): Same.
3014 (expand_atomic_store): Same.
3015 (maybe_emit_op): Same.
3016 (valid_multiword_target_p): Same.
3017 (create_integer_operand): Same.
3018 (maybe_legitimize_operand_same_code): Same.
3019 (maybe_legitimize_operand): Same.
3020 (create_convert_operand_from_type): Same.
3021 (can_reuse_operands_p): Same.
3022 (maybe_legitimize_operands): Same.
3023 (maybe_gen_insn): Same.
3024 (maybe_expand_insn): Same.
3025 (maybe_expand_jump_insn): Same.
3026 (expand_insn): Same.
3027 * optabs.h (create_expand_operand): Same.
3028 (create_fixed_operand): Same.
3029 (create_output_operand): Same.
3030 (create_input_operand): Same.
3031 (create_convert_operand_to): Same.
3032 (create_convert_operand_from): Same.
3035 * predict.c (optimize_insn_for_speed_p): Same.
3036 (optimize_loop_for_size_p): Same.
3037 (optimize_loop_for_speed_p): Same.
3038 (optimize_loop_nest_for_speed_p): Same.
3039 (get_base_value): Same.
3040 (predicted_by_loop_heuristics_p): Same.
3041 (predict_extra_loop_exits): Same.
3042 (predict_loops): Same.
3043 (predict_paths_for_bb): Same.
3044 (predict_paths_leading_to): Same.
3045 (propagate_freq): Same.
3046 (pass_profile::execute): Same.
3048 * profile-count.c (profile_count::differs_from_p): Same.
3049 (profile_probability::differs_lot_from_p): Same.
3050 * profile-count.h: Same.
3051 * profile.c (branch_prob): Same.
3052 * regrename.c (free_chain_data): Same.
3053 (mark_conflict): Same.
3054 (create_new_chain): Same.
3055 (merge_overlapping_regs): Same.
3056 (init_rename_info): Same.
3057 (merge_chains): Same.
3058 (regrename_analyze): Same.
3059 (regrename_do_replace): Same.
3060 (scan_rtx_reg): Same.
3061 (record_out_operands): Same.
3062 (build_def_use): Same.
3063 * regrename.h: Same.
3065 * reload1.c (init_reload): Same.
3066 (maybe_fix_stack_asms): Same.
3067 (copy_reloads): Same.
3068 (count_pseudo): Same.
3069 (count_spilled_pseudo): Same.
3071 (find_reload_regs): Same.
3072 (select_reload_regs): Same.
3073 (spill_hard_reg): Same.
3074 (fixup_eh_region_note): Same.
3075 (set_reload_reg): Same.
3076 (allocate_reload_reg): Same.
3077 (compute_reload_subreg_offset): Same.
3078 (reload_adjust_reg_for_icode): Same.
3079 (emit_input_reload_insns): Same.
3080 (emit_output_reload_insns): Same.
3081 (do_input_reload): Same.
3082 (inherit_piecemeal_p): Same.
3084 * sanopt.c (maybe_get_dominating_check): Same.
3085 (maybe_optimize_ubsan_ptr_ifn): Same.
3086 (can_remove_asan_check): Same.
3087 (maybe_optimize_asan_check_ifn): Same.
3088 (sanopt_optimize_walker): Same.
3089 * sched-deps.c (add_dependence_list): Same.
3090 (chain_to_prev_insn): Same.
3091 (add_insn_mem_dependence): Same.
3092 (create_insn_reg_set): Same.
3093 (maybe_extend_reg_info_p): Same.
3094 (sched_analyze_reg): Same.
3095 (sched_analyze_1): Same.
3096 (get_implicit_reg_pending_clobbers): Same.
3097 (chain_to_prev_insn_p): Same.
3098 (deps_analyze_insn): Same.
3099 (deps_start_bb): Same.
3100 (sched_free_deps): Same.
3102 (init_deps_reg_last): Same.
3104 * sched-ebb.c: Same.
3105 * sched-int.h: Same.
3106 * sched-rgn.c (add_branch_dependences): Same.
3107 (concat_insn_mem_list): Same.
3109 (sched_rgn_compute_dependencies): Same.
3110 * sel-sched-ir.c (reset_target_context): Same.
3111 (copy_deps_context): Same.
3112 (init_id_from_df): Same.
3113 (has_dependence_p): Same.
3114 (change_loops_latches): Same.
3115 (bb_top_order_comparator): Same.
3116 (make_region_from_loop_preheader): Same.
3117 (sel_init_pipelining): Same.
3118 (get_loop_nest_for_rgn): Same.
3119 (make_regions_from_the_rest): Same.
3120 (sel_is_loop_preheader_p): Same.
3121 * sel-sched-ir.h (inner_loop_header_p): Same.
3122 (get_all_loop_exits): Same.
3124 * sese.c (sese_build_liveouts): Same.
3125 (sese_insert_phis_for_liveouts): Same.
3126 * sese.h (defined_in_sese_p): Same.
3127 * sreal.c (sreal::stream_out): Same.
3129 * streamer-hooks.h: Same.
3130 * target-globals.c (save_target_globals): Same.
3131 * target-globals.h: Same.
3134 * targhooks.c (default_has_ifunc_p): Same.
3135 (default_empty_mask_is_expensive): Same.
3136 (default_init_cost): Same.
3137 * targhooks.h: Same.
3139 * tree-affine.c (aff_combination_mult): Same.
3140 (aff_combination_expand): Same.
3141 (aff_combination_constant_multiple_p): Same.
3142 * tree-affine.h: Same.
3143 * tree-cfg.c (build_gimple_cfg): Same.
3144 (replace_loop_annotate_in_block): Same.
3145 (replace_uses_by): Same.
3147 (dump_cfg_stats): Same.
3148 (gimple_duplicate_sese_region): Same.
3149 (gimple_duplicate_sese_tail): Same.
3150 (move_block_to_fn): Same.
3151 (replace_block_vars_by_duplicates): Same.
3152 (move_sese_region_to_fn): Same.
3153 (print_loops_bb): Same.
3155 (print_loops): Same.
3157 (debug_loops): Same.
3159 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
3160 (chrec_fold_multiply_poly_poly): Same.
3161 (chrec_evaluate): Same.
3162 (chrec_component_in_loop_num): Same.
3163 (reset_evolution_in_loop): Same.
3164 (is_multivariate_chrec): Same.
3165 (chrec_contains_symbols): Same.
3166 (nb_vars_in_chrec): Same.
3167 (chrec_convert_1): Same.
3168 (chrec_convert_aggressive): Same.
3169 * tree-chrec.h: Same.
3170 * tree-core.h: Same.
3171 * tree-data-ref.c (dump_data_dependence_relation): Same.
3172 (canonicalize_base_object_address): Same.
3173 (data_ref_compare_tree): Same.
3174 (prune_runtime_alias_test_list): Same.
3175 (get_segment_min_max): Same.
3176 (create_intersect_range_checks): Same.
3177 (conflict_fn_no_dependence): Same.
3178 (object_address_invariant_in_loop_p): Same.
3179 (analyze_ziv_subscript): Same.
3180 (analyze_siv_subscript_cst_affine): Same.
3181 (analyze_miv_subscript): Same.
3182 (analyze_overlapping_iterations): Same.
3183 (build_classic_dist_vector_1): Same.
3184 (add_other_self_distances): Same.
3185 (same_access_functions): Same.
3186 (build_classic_dir_vector): Same.
3187 (subscript_dependence_tester_1): Same.
3188 (subscript_dependence_tester): Same.
3189 (access_functions_are_affine_or_constant_p): Same.
3190 (get_references_in_stmt): Same.
3191 (loop_nest_has_data_refs): Same.
3192 (graphite_find_data_references_in_stmt): Same.
3193 (find_data_references_in_bb): Same.
3194 (get_base_for_alignment): Same.
3195 (find_loop_nest_1): Same.
3196 (find_loop_nest): Same.
3197 * tree-data-ref.h (dr_alignment): Same.
3198 (ddr_dependence_level): Same.
3199 * tree-if-conv.c (fold_build_cond_expr): Same.
3200 (add_to_predicate_list): Same.
3201 (add_to_dst_predicate_list): Same.
3202 (phi_convertible_by_degenerating_args): Same.
3203 (idx_within_array_bound): Same.
3204 (all_preds_critical_p): Same.
3205 (pred_blocks_visited_p): Same.
3206 (predicate_bbs): Same.
3207 (build_region): Same.
3208 (if_convertible_loop_p_1): Same.
3209 (is_cond_scalar_reduction): Same.
3210 (predicate_scalar_phi): Same.
3211 (remove_conditions_and_labels): Same.
3212 (combine_blocks): Same.
3213 (version_loop_for_if_conversion): Same.
3214 (versionable_outer_loop_p): Same.
3215 (ifcvt_local_dce): Same.
3216 (tree_if_conversion): Same.
3217 (pass_if_conversion::gate): Same.
3218 * tree-if-conv.h: Same.
3219 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
3220 * tree-loop-distribution.c (bb_top_order_cmp): Same.
3222 (stmt_has_scalar_dependences_outside_loop): Same.
3223 (copy_loop_before): Same.
3224 (create_bb_after_loop): Same.
3225 (const_with_all_bytes_same): Same.
3226 (generate_memset_builtin): Same.
3227 (generate_memcpy_builtin): Same.
3228 (destroy_loop): Same.
3229 (build_rdg_partition_for_vertex): Same.
3230 (compute_access_range): Same.
3231 (data_ref_segment_size): Same.
3232 (latch_dominated_by_data_ref): Same.
3233 (compute_alias_check_pairs): Same.
3234 (fuse_memset_builtins): Same.
3235 (finalize_partitions): Same.
3236 (find_seed_stmts_for_distribution): Same.
3237 (prepare_perfect_loop_nest): Same.
3238 * tree-parloops.c (lambda_transform_legal_p): Same.
3239 (loop_parallel_p): Same.
3240 (reduc_stmt_res): Same.
3241 (add_field_for_name): Same.
3242 (create_call_for_reduction_1): Same.
3243 (replace_uses_in_bb_by): Same.
3244 (transform_to_exit_first_loop_alt): Same.
3245 (try_transform_to_exit_first_loop_alt): Same.
3246 (transform_to_exit_first_loop): Same.
3248 (gen_parallel_loop): Same.
3249 (gather_scalar_reductions): Same.
3250 (get_omp_data_i_param): Same.
3251 (try_create_reduction_list): Same.
3252 (oacc_entry_exit_single_gang): Same.
3253 (parallelize_loops): Same.
3254 * tree-pass.h: Same.
3255 * tree-predcom.c (determine_offset): Same.
3256 (last_always_executed_block): Same.
3257 (split_data_refs_to_components): Same.
3258 (suitable_component_p): Same.
3259 (valid_initializer_p): Same.
3260 (find_looparound_phi): Same.
3261 (insert_looparound_copy): Same.
3262 (add_looparound_copies): Same.
3263 (determine_roots_comp): Same.
3264 (predcom_tmp_var): Same.
3265 (initialize_root_vars): Same.
3266 (initialize_root_vars_store_elim_1): Same.
3267 (initialize_root_vars_store_elim_2): Same.
3268 (finalize_eliminated_stores): Same.
3269 (initialize_root_vars_lm): Same.
3270 (remove_stmt): Same.
3271 (determine_unroll_factor): Same.
3272 (execute_pred_commoning_cbck): Same.
3273 (base_names_in_chain_on): Same.
3274 (combine_chains): Same.
3275 (pcom_stmt_dominates_stmt_p): Same.
3276 (try_combine_chains): Same.
3277 (prepare_initializers_chain_store_elim): Same.
3278 (prepare_initializers_chain): Same.
3279 (prepare_initializers): Same.
3280 (prepare_finalizers_chain): Same.
3281 (prepare_finalizers): Same.
3282 (insert_init_seqs): Same.
3283 * tree-scalar-evolution.c (loop_phi_node_p): Same.
3284 (compute_overall_effect_of_inner_loop): Same.
3285 (add_to_evolution_1): Same.
3286 (add_to_evolution): Same.
3287 (follow_ssa_edge_binary): Same.
3288 (follow_ssa_edge_expr): Same.
3289 (backedge_phi_arg_p): Same.
3290 (follow_ssa_edge_in_condition_phi_branch): Same.
3291 (follow_ssa_edge_in_condition_phi): Same.
3292 (follow_ssa_edge_inner_loop_phi): Same.
3293 (follow_ssa_edge): Same.
3294 (analyze_evolution_in_loop): Same.
3295 (analyze_initial_condition): Same.
3296 (interpret_loop_phi): Same.
3297 (interpret_condition_phi): Same.
3298 (interpret_rhs_expr): Same.
3299 (interpret_expr): Same.
3300 (interpret_gimple_assign): Same.
3301 (analyze_scalar_evolution_1): Same.
3302 (analyze_scalar_evolution): Same.
3303 (analyze_scalar_evolution_for_address_of): Same.
3304 (get_instantiated_value_entry): Same.
3305 (loop_closed_phi_def): Same.
3306 (instantiate_scev_name): Same.
3307 (instantiate_scev_poly): Same.
3308 (instantiate_scev_binary): Same.
3309 (instantiate_scev_convert): Same.
3310 (instantiate_scev_not): Same.
3311 (instantiate_scev_r): Same.
3312 (instantiate_scev): Same.
3313 (resolve_mixers): Same.
3314 (initialize_scalar_evolutions_analyzer): Same.
3315 (scev_reset_htab): Same.
3317 (derive_simple_iv_with_niters): Same.
3318 (simple_iv_with_niters): Same.
3319 (expression_expensive_p): Same.
3320 (final_value_replacement_loop): Same.
3321 * tree-scalar-evolution.h (block_before_loop): Same.
3322 * tree-ssa-address.h: Same.
3323 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
3324 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
3325 (record_edge_info): Same.
3326 * tree-ssa-live.c (var_map_base_fini): Same.
3327 (remove_unused_locals): Same.
3328 * tree-ssa-live.h: Same.
3329 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
3330 (pass_ch_vect::execute): Same.
3331 (pass_ch::process_loop_p): Same.
3332 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
3333 (movement_possibility): Same.
3334 (outermost_invariant_loop): Same.
3336 (determine_max_movement): Same.
3337 (invariantness_dom_walker::before_dom_children): Same.
3338 (move_computations): Same.
3339 (may_move_till): Same.
3340 (force_move_till_op): Same.
3341 (force_move_till): Same.
3342 (memref_free): Same.
3343 (record_mem_ref_loc): Same.
3344 (set_ref_stored_in_loop): Same.
3345 (mark_ref_stored): Same.
3346 (sort_bbs_in_loop_postorder_cmp): Same.
3347 (sort_locs_in_loop_postorder_cmp): Same.
3348 (analyze_memory_references): Same.
3349 (mem_refs_may_alias_p): Same.
3350 (find_ref_loc_in_loop_cmp): Same.
3351 (rewrite_mem_ref_loc::operator): Same.
3352 (first_mem_ref_loc_1::operator): Same.
3353 (sm_set_flag_if_changed::operator): Same.
3354 (execute_sm_if_changed_flag_set): Same.
3356 (hoist_memory_references): Same.
3357 (ref_always_accessed::operator): Same.
3358 (refs_independent_p): Same.
3359 (record_dep_loop): Same.
3360 (ref_indep_loop_p_1): Same.
3361 (ref_indep_loop_p): Same.
3362 (can_sm_ref_p): Same.
3363 (find_refs_for_sm): Same.
3364 (loop_suitable_for_sm): Same.
3365 (store_motion_loop): Same.
3366 (store_motion): Same.
3367 (fill_always_executed_in): Same.
3368 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
3369 (estimated_unrolled_size): Same.
3370 (loop_edge_to_cancel): Same.
3371 (remove_exits_and_undefined_stmts): Same.
3372 (remove_redundant_iv_tests): Same.
3373 (unloop_loops): Same.
3374 (estimated_peeled_sequence_size): Same.
3375 (try_peel_loop): Same.
3376 (canonicalize_loop_induction_variables): Same.
3377 (canonicalize_induction_variables): Same.
3378 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
3380 (stmt_after_inc_pos): Same.
3381 (contains_abnormal_ssa_name_p): Same.
3382 (niter_for_exit): Same.
3385 (find_givs_in_bb): Same.
3386 (find_induction_variables): Same.
3387 (find_interesting_uses_cond): Same.
3388 (outermost_invariant_loop_for_expr): Same.
3389 (idx_find_step): Same.
3390 (add_candidate_1): Same.
3391 (add_iv_candidate_derived_from_uses): Same.
3392 (alloc_use_cost_map): Same.
3393 (prepare_decl_rtl): Same.
3394 (generic_predict_doloop_p): Same.
3395 (computation_cost): Same.
3396 (determine_common_wider_type): Same.
3397 (get_computation_aff_1): Same.
3398 (get_use_type): Same.
3399 (determine_group_iv_cost_address): Same.
3401 (difference_cannot_overflow_p): Same.
3402 (may_eliminate_iv): Same.
3403 (determine_set_costs): Same.
3404 (cheaper_cost_pair): Same.
3405 (compare_cost_pair): Same.
3406 (iv_ca_cand_for_group): Same.
3407 (iv_ca_recount_cost): Same.
3408 (iv_ca_set_remove_invs): Same.
3409 (iv_ca_set_no_cp): Same.
3410 (iv_ca_set_add_invs): Same.
3411 (iv_ca_set_cp): Same.
3412 (iv_ca_add_group): Same.
3414 (iv_ca_compare_deps): Same.
3415 (iv_ca_delta_reverse): Same.
3416 (iv_ca_delta_commit): Same.
3417 (iv_ca_cand_used_p): Same.
3418 (iv_ca_delta_free): Same.
3422 (iv_ca_extend): Same.
3423 (iv_ca_narrow): Same.
3424 (iv_ca_prune): Same.
3425 (cheaper_cost_with_cand): Same.
3426 (iv_ca_replace): Same.
3427 (try_add_cand_for): Same.
3428 (get_initial_solution): Same.
3429 (try_improve_iv_set): Same.
3430 (find_optimal_iv_set_1): Same.
3431 (create_new_iv): Same.
3432 (rewrite_use_compare): Same.
3433 (remove_unused_ivs): Same.
3434 (determine_scaling_factor): Same.
3435 * tree-ssa-loop-ivopts.h: Same.
3436 * tree-ssa-loop-manip.c (create_iv): Same.
3437 (compute_live_loop_exits): Same.
3438 (add_exit_phi): Same.
3439 (add_exit_phis): Same.
3440 (find_uses_to_rename_use): Same.
3441 (find_uses_to_rename_def): Same.
3442 (find_uses_to_rename_in_loop): Same.
3443 (rewrite_into_loop_closed_ssa): Same.
3444 (check_loop_closed_ssa_bb): Same.
3445 (split_loop_exit_edge): Same.
3447 (ip_normal_pos): Same.
3448 (copy_phi_node_args): Same.
3449 (gimple_duplicate_loop_to_header_edge): Same.
3450 (can_unroll_loop_p): Same.
3451 (determine_exit_conditions): Same.
3452 (scale_dominated_blocks_in_loop): Same.
3453 (niter_for_unrolled_loop): Same.
3454 (tree_transform_and_unroll_loop): Same.
3455 (rewrite_all_phi_nodes_with_iv): Same.
3456 * tree-ssa-loop-manip.h: Same.
3457 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
3458 (number_of_iterations_ne): Same.
3459 (assert_no_overflow_lt): Same.
3460 (assert_loop_rolls_lt): Same.
3461 (number_of_iterations_lt): Same.
3462 (adjust_cond_for_loop_until_wrap): Same.
3463 (tree_simplify_using_condition): Same.
3464 (simplify_using_initial_conditions): Same.
3465 (simplify_using_outer_evolutions): Same.
3466 (loop_only_exit_p): Same.
3467 (ssa_defined_by_minus_one_stmt_p): Same.
3468 (number_of_iterations_popcount): Same.
3469 (number_of_iterations_exit): Same.
3470 (find_loop_niter): Same.
3471 (finite_loop_p): Same.
3472 (chain_of_csts_start): Same.
3473 (get_val_for): Same.
3474 (loop_niter_by_eval): Same.
3475 (derive_constant_upper_bound_ops): Same.
3476 (do_warn_aggressive_loop_optimizations): Same.
3477 (record_estimate): Same.
3478 (get_cst_init_from_scev): Same.
3479 (record_nonwrapping_iv): Same.
3480 (idx_infer_loop_bounds): Same.
3481 (infer_loop_bounds_from_ref): Same.
3482 (infer_loop_bounds_from_array): Same.
3483 (infer_loop_bounds_from_pointer_arith): Same.
3484 (infer_loop_bounds_from_signedness): Same.
3485 (bound_index): Same.
3486 (discover_iteration_bound_by_body_walk): Same.
3487 (maybe_lower_iteration_bound): Same.
3488 (estimate_numbers_of_iterations): Same.
3489 (estimated_loop_iterations): Same.
3490 (estimated_loop_iterations_int): Same.
3491 (max_loop_iterations): Same.
3492 (max_loop_iterations_int): Same.
3493 (likely_max_loop_iterations): Same.
3494 (likely_max_loop_iterations_int): Same.
3495 (estimated_stmt_executions_int): Same.
3496 (max_stmt_executions): Same.
3497 (likely_max_stmt_executions): Same.
3498 (estimated_stmt_executions): Same.
3499 (stmt_dominates_stmt_p): Same.
3500 (nowrap_type_p): Same.
3501 (loop_exits_before_overflow): Same.
3502 (scev_var_range_cant_overflow): Same.
3503 (scev_probably_wraps_p): Same.
3504 (free_numbers_of_iterations_estimates): Same.
3505 * tree-ssa-loop-niter.h: Same.
3506 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
3507 (idx_analyze_ref): Same.
3508 (analyze_ref): Same.
3509 (gather_memory_references_ref): Same.
3510 (mark_nontemporal_store): Same.
3511 (emit_mfence_after_loop): Same.
3512 (may_use_storent_in_loop_p): Same.
3513 (mark_nontemporal_stores): Same.
3514 (should_unroll_loop_p): Same.
3515 (volume_of_dist_vector): Same.
3516 (add_subscript_strides): Same.
3517 (self_reuse_distance): Same.
3518 (insn_to_prefetch_ratio_too_small_p): Same.
3519 * tree-ssa-loop-split.c (split_at_bb_p): Same.
3520 (patch_loop_exit): Same.
3521 (find_or_create_guard_phi): Same.
3522 (easy_exit_values): Same.
3523 (connect_loop_phis): Same.
3524 (connect_loops): Same.
3525 (compute_new_first_bound): Same.
3527 (tree_ssa_split_loops): Same.
3528 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
3529 (is_maybe_undefined): Same.
3530 (tree_may_unswitch_on): Same.
3531 (simplify_using_entry_checks): Same.
3532 (tree_unswitch_single_loop): Same.
3533 (tree_unswitch_loop): Same.
3534 (tree_unswitch_outer_loop): Same.
3535 (empty_bb_without_guard_p): Same.
3536 (used_outside_loop_p): Same.
3537 (get_vop_from_header): Same.
3538 (hoist_guard): Same.
3539 * tree-ssa-loop.c (gate_oacc_kernels): Same.
3540 (get_lsm_tmp_name): Same.
3541 * tree-ssa-loop.h: Same.
3542 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
3543 (build_and_add_sum): Same.
3544 (no_side_effect_bb): Same.
3546 (linearize_expr): Same.
3547 (should_break_up_subtract): Same.
3548 (linearize_expr_tree): Same.
3549 * tree-ssa-scopedtables.c: Same.
3550 * tree-ssa-scopedtables.h: Same.
3551 * tree-ssa-structalias.c (condense_visit): Same.
3552 (label_visit): Same.
3553 (dump_pred_graph): Same.
3554 (perform_var_substitution): Same.
3555 (move_complex_constraints): Same.
3556 (remove_preds_and_fake_succs): Same.
3557 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
3558 (determine_bb_domination_status): Same.
3559 (duplicate_thread_path): Same.
3560 (thread_through_all_blocks): Same.
3561 * tree-ssa-threadupdate.h: Same.
3562 * tree-streamer-in.c (streamer_read_string_cst): Same.
3563 (input_identifier): Same.
3564 (unpack_ts_type_common_value_fields): Same.
3565 (unpack_ts_block_value_fields): Same.
3566 (unpack_ts_translation_unit_decl_value_fields): Same.
3567 (unpack_ts_omp_clause_value_fields): Same.
3568 (streamer_read_tree_bitfields): Same.
3569 (streamer_alloc_tree): Same.
3570 (lto_input_ts_common_tree_pointers): Same.
3571 (lto_input_ts_vector_tree_pointers): Same.
3572 (lto_input_ts_poly_tree_pointers): Same.
3573 (lto_input_ts_complex_tree_pointers): Same.
3574 (lto_input_ts_decl_minimal_tree_pointers): Same.
3575 (lto_input_ts_decl_common_tree_pointers): Same.
3576 (lto_input_ts_decl_non_common_tree_pointers): Same.
3577 (lto_input_ts_decl_with_vis_tree_pointers): Same.
3578 (lto_input_ts_field_decl_tree_pointers): Same.
3579 (lto_input_ts_function_decl_tree_pointers): Same.
3580 (lto_input_ts_type_common_tree_pointers): Same.
3581 (lto_input_ts_type_non_common_tree_pointers): Same.
3582 (lto_input_ts_list_tree_pointers): Same.
3583 (lto_input_ts_vec_tree_pointers): Same.
3584 (lto_input_ts_exp_tree_pointers): Same.
3585 (lto_input_ts_block_tree_pointers): Same.
3586 (lto_input_ts_binfo_tree_pointers): Same.
3587 (lto_input_ts_constructor_tree_pointers): Same.
3588 (lto_input_ts_omp_clause_tree_pointers): Same.
3589 (streamer_read_tree_body): Same.
3590 * tree-streamer.h: Same.
3591 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
3592 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
3593 (vect_analyze_possibly_independent_ddr): Same.
3594 (vect_analyze_data_ref_dependence): Same.
3595 (vect_compute_data_ref_alignment): Same.
3596 (vect_enhance_data_refs_alignment): Same.
3597 (vect_analyze_data_ref_access): Same.
3598 (vect_check_gather_scatter): Same.
3599 (vect_find_stmt_data_reference): Same.
3600 (vect_create_addr_base_for_vector_ref): Same.
3601 (vect_setup_realignment): Same.
3602 (vect_supportable_dr_alignment): Same.
3603 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
3604 (adjust_phi_and_debug_stmts): Same.
3605 (vect_set_loop_mask): Same.
3606 (add_preheader_seq): Same.
3607 (vect_maybe_permute_loop_masks): Same.
3608 (vect_set_loop_masks_directly): Same.
3609 (vect_set_loop_condition_masked): Same.
3610 (vect_set_loop_condition_unmasked): Same.
3611 (slpeel_duplicate_current_defs_from_edges): Same.
3612 (slpeel_add_loop_guard): Same.
3613 (slpeel_can_duplicate_loop_p): Same.
3614 (create_lcssa_for_virtual_phi): Same.
3616 (vect_update_ivs_after_vectorizer): Same.
3617 (vect_gen_vector_loop_niters_mult_vf): Same.
3618 (slpeel_update_phi_nodes_for_loops): Same.
3619 (slpeel_update_phi_nodes_for_guard1): Same.
3620 (find_guard_arg): Same.
3621 (slpeel_update_phi_nodes_for_guard2): Same.
3622 (slpeel_update_phi_nodes_for_lcssa): Same.
3623 (vect_do_peeling): Same.
3624 (vect_create_cond_for_alias_checks): Same.
3625 (vect_loop_versioning): Same.
3626 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
3627 (vect_inner_phi_in_double_reduction_p): Same.
3628 (vect_analyze_scalar_cycles_1): Same.
3629 (vect_fixup_scalar_cycles_with_patterns): Same.
3630 (vect_get_loop_niters): Same.
3631 (bb_in_loop_p): Same.
3632 (vect_get_max_nscalars_per_iter): Same.
3633 (vect_verify_full_masking): Same.
3634 (vect_compute_single_scalar_iteration_cost): Same.
3635 (vect_analyze_loop_form_1): Same.
3636 (vect_analyze_loop_form): Same.
3637 (vect_active_double_reduction_p): Same.
3638 (vect_analyze_loop_operations): Same.
3639 (neutral_op_for_slp_reduction): Same.
3640 (vect_is_simple_reduction): Same.
3641 (vect_model_reduction_cost): Same.
3642 (get_initial_def_for_reduction): Same.
3643 (get_initial_defs_for_reduction): Same.
3644 (vect_create_epilog_for_reduction): Same.
3645 (vectorize_fold_left_reduction): Same.
3646 (vectorizable_reduction): Same.
3647 (vectorizable_induction): Same.
3648 (vectorizable_live_operation): Same.
3649 (loop_niters_no_overflow): Same.
3650 (vect_get_loop_mask): Same.
3651 (vect_transform_loop_stmt): Same.
3652 (vect_transform_loop): Same.
3653 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
3654 (vect_determine_precisions): Same.
3655 (vect_pattern_recog_1): Same.
3656 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
3657 * tree-vect-stmts.c (stmt_vectype): Same.
3658 (process_use): Same.
3659 (vect_init_vector_1): Same.
3660 (vect_truncate_gather_scatter_offset): Same.
3661 (get_group_load_store_type): Same.
3662 (vect_build_gather_load_calls): Same.
3663 (vect_get_strided_load_store_ops): Same.
3664 (vectorizable_simd_clone_call): Same.
3665 (vectorizable_store): Same.
3666 (permute_vec_elements): Same.
3667 (vectorizable_load): Same.
3668 (vect_transform_stmt): Same.
3669 (supportable_widening_operation): Same.
3670 * tree-vectorizer.c (vec_info::replace_stmt): Same.
3671 (vec_info::free_stmt_vec_info): Same.
3672 (vect_free_loop_info_assumptions): Same.
3673 (vect_loop_vectorized_call): Same.
3674 (set_uid_loop_bbs): Same.
3675 (vectorize_loops): Same.
3676 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
3677 * tree.c (add_tree_to_fld_list): Same.
3678 (fld_type_variant_equal_p): Same.
3679 (fld_decl_context): Same.
3680 (fld_incomplete_type_of): Same.
3681 (free_lang_data_in_binfo): Same.
3682 (need_assembler_name_p): Same.
3683 (find_decls_types_r): Same.
3684 (get_eh_types_for_runtime): Same.
3685 (find_decls_types_in_eh_region): Same.
3686 (find_decls_types_in_node): Same.
3687 (assign_assembler_name_if_needed): Same.
3688 * value-prof.c (stream_out_histogram_value): Same.
3689 * value-prof.h: Same.
3690 * var-tracking.c (use_narrower_mode): Same.
3691 (prepare_call_arguments): Same.
3692 (vt_expand_loc_callback): Same.
3693 (resolve_expansions_pending_recursion): Same.
3694 (vt_expand_loc): Same.
3695 * varasm.c (const_hash_1): Same.
3696 (compare_constant): Same.
3697 (tree_output_constant_def): Same.
3698 (simplify_subtraction): Same.
3699 (get_pool_constant): Same.
3700 (output_constant_pool_2): Same.
3701 (output_constant_pool_1): Same.
3702 (mark_constants_in_pattern): Same.
3703 (mark_constant_pool): Same.
3704 (get_section_anchor): Same.
3705 * vr-values.c (compare_range_with_value): Same.
3706 (vr_values::extract_range_from_phi_node): Same.
3707 * vr-values.h: Same.
3708 * web.c (unionfind_union): Same.
3711 2019-07-09 Martin Sebor <msebor@redhat.com>
3714 * align.h: Change class-key from class to struct and vice versa
3715 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
3716 * alloc-pool.h: Same.
3717 * asan.c (shadow_mem_size): Same.
3718 * auto-profile.c: Same.
3719 * basic-block.h: Same.
3721 * cfgexpand.c (set_rtl): Same.
3722 (expand_one_stack_var_at): Same.
3726 * config/i386/i386.h: Same.
3727 * df-problems.c (df_print_bb_index): Same.
3729 * df.h (df_single_use): Same.
3730 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
3731 (layout::annotation_line_showed_range_p): Same.
3732 (get_printed_columns): Same.
3733 (correction::ensure_terminated): Same.
3734 (line_corrections::~line_corrections): Same.
3737 * dump-context.h: Same.
3739 * dwarf2out.c: Same.
3740 * edit-context.c: Same.
3741 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
3743 * function.c (assign_stack_local): Same.
3746 * gcov.c (block_info::block_info): Same.
3747 * genattrtab.c: Same.
3748 * genextract.c: Same.
3749 * genmatch.c (comparison_code_p): Same.
3750 (id_base::id_base): Same.
3751 (decision_tree::print): Same.
3752 * genoutput.c: Same.
3753 * genpreds.c (write_one_predicate_function): Same.
3754 * genrecog.c (validate_pattern): Same.
3755 (find_operand_positions): Same.
3756 (optimize_subroutine_group): Same.
3757 (merge_pattern_transition::merge_pattern_transition): Same.
3758 (merge_pattern_info::merge_pattern_info): Same.
3759 (merge_state_result::merge_state_result): Same.
3760 (merge_into_state): Same.
3761 * gensupport.c: Same.
3762 * gensupport.h: Same.
3763 * ggc-common.c (init_ggc_heuristics): Same.
3764 * ggc-tests.c (test_union): Same.
3765 * gimple-loop-interchange.cc (dump_induction): Same.
3766 * gimple-loop-versioning.cc: Same.
3767 * gimple-match.h (gimple_match_cond::any_else): Same.
3768 * gimple-ssa-backprop.c: Same.
3769 * gimple-ssa-sprintf.c: Same.
3770 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
3772 (store_immediate_info::store_immediate_info): Same.
3773 (merged_store_group::apply_stores): Same.
3774 (get_location_for_stmts): Same.
3775 * gimple-ssa-strength-reduction.c: Same.
3776 * gimple-ssa-warn-alloca.c: Same.
3777 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
3778 * godump.c (go_type_decl): Same.
3779 * hash-map-tests.c (test_map_of_strings_to_int): Same.
3781 * hash-set-tests.c (test_set_of_strings): Same.
3783 * hsa-common.h: Same.
3784 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
3785 * input.c (assert_loceq): Same.
3788 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
3789 * ipa-fnsummary.h: Same.
3790 * ipa-inline.h: Same.
3792 * ipa-split.c (visit_bb): Same.
3793 * ira-int.h (minmax_set_iter_next): Same.
3794 * loop-invariant.c: Same.
3796 * lra-eliminations.c: Same.
3798 * lra-lives.c (mark_regno_dead): Same.
3799 * lra-remat.c: Same.
3800 * lra-spills.c: Same.
3801 * lto-streamer.h: Same.
3802 * mem-stats.h: Same.
3803 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
3804 * omp-low.c (omp_clause_aligned_alignment): Same.
3805 * optabs-query.h (get_vcond_eq_icode): Same.
3807 * opts.c (wrap_help): Same.
3809 * predict.c (predict_paths_leading_to_edge): Same.
3810 * pretty-print.h: Same.
3811 * profile-count.h: Same.
3813 * read-rtl-function.c: Same.
3816 * regrename.c: Same.
3817 * regrename.h: Same.
3820 * rtl.h (costs_add_n_insns): Same.
3822 * sched-int.h: Same.
3823 * sel-sched-ir.h: Same.
3825 * sese.h (vec_find): Same.
3827 * target-globals.h: Same.
3828 * tree-affine.c (aff_combination_find_elt): Same.
3829 * tree-affine.h: Same.
3830 * tree-data-ref.h: Same.
3831 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
3832 * tree-predcom.c: Same.
3833 * tree-scalar-evolution.c (find_var_scev_info): Same.
3834 * tree-ssa-alias.h: Same.
3835 * tree-ssa-ccp.c: Same.
3836 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
3837 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
3838 (rewrite_mem_refs): Same.
3839 (execute_sm_if_changed): Same.
3840 (hoist_memory_references): Same.
3841 * tree-ssa-loop-ivopts.c (operator<=): Same.
3842 * tree-ssa-loop.h: Same.
3843 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
3844 * tree-ssa-structalias.c: Same.
3845 * tree-switch-conversion.h (cluster::cluster): Same.
3846 (simple_cluster::simple_cluster): Same.
3847 * tree-vect-patterns.c (type_conversion_p): Same.
3848 * tree-vectorizer.c (dump_stmt_cost): Same.
3849 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
3850 * tree.c (protected_set_expr_location): Same.
3851 * tree.h (desired_pro_or_demotion_p): Same.
3852 (fndecl_built_in_p): Same.
3853 * unique-ptr-tests.cc: Same.
3854 * var-tracking.c (delete_variable_part): Same.
3855 * varasm.c (assemble_real): Same.
3856 (tree_output_constant_def): Same.
3858 * wide-int-bitmask.h: Same.
3859 * wide-int.h (decompose): Same.
3861 2019-07-09 Richard Biener <rguenther@suse.de>
3863 PR tree-optimization/91114
3864 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
3865 find a vector type isn't fatal.
3867 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
3869 * config/aarch64/aarch64-simd.md
3870 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
3871 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
3872 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
3873 (*aarch64_crypto_aese_fused,
3874 *aarch64_crypto_aesd_fused): Update to new definition.
3875 * config/aarch64/aarch64.c
3876 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
3878 2019-07-09 Richard Biener <rguenther@suse.de>
3880 * gimple-match.h (gimple_match_op::resimplify): New.
3881 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
3882 gimple_resimplify4, gimple_resimplify5): Remove.
3883 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
3884 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
3886 (gimple_match_op::resimplify): New.
3887 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
3888 according to availability. Use gimple_match_op::resimplify.
3890 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
3892 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
3894 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
3896 * config/arm/crypto.md:
3897 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
3898 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
3899 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
3900 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
3902 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
3903 * config/arm/aarch-common-protos.h
3904 (aarch_crypto_can_dual_issue): Remove.
3905 * config/arm/aarch-common.c
3906 (aarch_crypto_can_dual_issue): Likewise.
3907 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
3908 * config/arm/cortex-a53.md: Likewise.
3909 * config/arm/cortex-a57.md: Likewise.
3910 * config/arm/iterators.md:
3911 (CRYPTO_BINARY): Redefine.
3912 (CRYPTO_UNARY): Removed.
3913 (CRYPTO_AES, CRYPTO_AESMC): New.
3915 2019-07-09 Richard Biener <rguenther@suse.de>
3917 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
3918 (vn_reference_lookup_3): If the main ref has no access path recorded
3919 but orig_ref has use it to do access-path based disambiguation.
3920 (vn_reference_lookup_pieces): Adjust.
3921 (vn_reference_lookup): Pass down original ref if we valueized.
3923 2019-07-09 Martin Liska <mliska@suse.cz>
3925 * doc/extend.texi: Document influence on loop
3928 2019-07-09 Martin Liska <mliska@suse.cz>
3930 * lto-compress.c (lto_normalized_zstd_level): Do not use
3931 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
3932 of libzstd. One can use 0 as a default compression level.
3934 2019-07-09 Martin Liska <mliska@suse.cz>
3936 * doc/invoke.texi: Add link from -fprofile-dir option.
3937 Use better wording for 'gcno filename'.
3939 2019-07-08 Martin Sebor <msebor@redhat.com>
3943 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
3945 (args_loc_t): New type.
3946 (args_loc_t, locmap_t): same.
3947 (diag_returned_locals): New function.
3948 (is_addr_local): Same.
3949 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
3950 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
3951 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
3953 2019-07-08 Jakub Jelinek <jakub@redhat.com>
3955 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
3956 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
3957 and casts in offset when different, both through gimple stmts
3958 and through trees. Rewritten using loops to minimize code duplication
3961 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
3963 * emit-rtl.c (set_insn_locations): New function moved from...
3964 * function.c (set_insn_locations): ...here.
3965 * ira-emit.c (emit_moves): Propagate location of the first instruction
3966 to the inserted move instructions.
3967 * reg-stack.c (compensate_edge): Set the location if the sequence is
3968 inserted on the edge.
3969 * rtl.h (set_insn_locations): Declare.
3971 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
3973 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
3974 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
3977 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
3979 PR rtl-optimization/88233
3980 * common.opt (fsplit-wide-types-early): New option.
3981 * common/config/rs6000/rs6000-common.c
3982 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
3984 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
3985 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
3986 flag_split_wide_types_early.
3987 (pass_data_lower_subreg3): New.
3988 (pass_lower_subreg3): New.
3989 (make_pass_lower_subreg3): New.
3990 * passes.def (pass_lower_subreg2): Move after the loop passes.
3991 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
3992 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
3993 the pass pipeline; its previous place is taken by ...
3994 (make_pass_lower_subreg3): ... this.
3996 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
3998 * config/s390/s390.c (s390_shift_truncation_mask): Define.
3999 (TARGET_SHIFT_TRUNCATION_MASK): Define.
4001 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
4003 * config/s390/constraints.md: Add new jsc constraint.
4004 * config/s390/predicates.md: New predicates.
4005 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
4006 * config/s390/s390.c (s390_valid_shift_count): New function.
4007 (print_shift_count_operand): Use s390_valid_shift_count.
4008 (print_operand): Likewise.
4009 * config/s390/s390.md: Use new predicate.
4010 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
4011 * config/s390/vector.md: Use new predicate.
4013 2019-07-08 Joern Rennecke <joern.rennecke@riscy-ip.com>
4015 Avoid clash with system header declaration.
4016 * testsuite/gcc.dg/vect/slp-reduc-sad.c (uint32_t):
4017 Remove unused declaration.
4019 2019-07-08 Andrew Waterman <andrew@sifive.com>
4020 Jim Wilson <jimw@sifive.com>
4022 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
4023 bitsize instead of BITS_PER_WORD.
4026 2019-07-08 Martin Liska <mliska@suse.cz>
4028 * collect2.c (defined): Revert to before r254460.
4029 (scan_prog_file): Revert to before r254460.
4031 2019-07-08 Richard Biener <rguenther@suse.de>
4033 PR tree-optimization/83518
4034 * tree-ssa-sccvn.c: Include splay-tree.h.
4035 (struct pd_range, struct pd_data): New.
4036 (struct vn_walk_cb_data): Add data to track partial definitions.
4037 (vn_walk_cb_data::~vn_walk_cb_data): New.
4038 (vn_walk_cb_data::push_partial_def): New.
4039 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
4040 (vn_reference_lookup_2): When partial defs are registered give up.
4041 (vn_reference_lookup_3): Track partial defs for memset and
4042 constructor zeroing and for defs from constants.
4044 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
4046 * doc/install.texi (bootstrap-Og): Document.
4048 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
4050 * config/riscv/pic.md (*local_pic_load_s<mode>)
4051 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
4052 referenced by <mode>, giving...
4053 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
4054 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
4055 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
4056 use <X:MODE> for the mode attribute.
4058 2019-07-07 Jeff Law <law@redhat.com>
4060 PR tree-optimization/91090
4061 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
4062 in handling of ranges to simplify switch statements.
4064 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
4066 * config/darwin.c (darwin_override_options): Make a final check on PIC
4069 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
4071 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
4074 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
4077 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
4078 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
4079 instead of matching them to "l" output operands.
4081 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
4083 * config/mips/mips.c (mips_split_move): Zero-initialize addr
4084 and check whether addr.reg is nonnull before using it.
4086 2019-07-06 Jakub Jelinek <jakub@redhat.com>
4088 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
4089 ctx->for_simd_scan_phase simd copy the outer var to the privatized
4090 variable(s). For conditional lastprivate look through outer
4091 GIMPLE_OMP_SCAN context.
4092 (lower_omp_1): For conditional lastprivate look through outer
4093 GIMPLE_OMP_SCAN context.
4095 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
4096 member to combined_into_simd_safelen1.
4097 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
4098 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
4099 clauses if ctx->combined_into_simd_safelen1 put statements after the
4100 predicate conditionalized block rather than into it.
4102 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
4104 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
4106 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
4107 Make the choice of <mode> explicit, giving...
4108 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
4110 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
4112 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
4113 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
4115 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
4116 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
4117 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
4118 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
4119 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
4120 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
4121 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
4122 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
4123 (*avx512f_scatterdi<mode>): Likewise.
4124 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
4126 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
4128 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
4129 specify the mode iterator referenced by <mode>, giving...
4130 (*push1_h8300hs_<QHI:mode>): ...this.
4132 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
4134 * config/gcn/gcn-valu.md
4135 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
4136 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
4137 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
4138 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
4139 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
4140 but using the _exec comparison patterns.
4141 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
4142 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
4143 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
4144 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
4145 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
4146 but using the _exec comparison patterns.
4148 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
4150 * config/arm/sync.md
4151 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
4152 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
4153 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise
4154 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
4157 2019-07-06 Jakub Jelinek <jakub@redhat.com>
4159 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
4160 (maybe_lookup_ctx): Add forward declaration.
4161 (omp_find_scan): Likewise. Walk into body of simd if composited
4162 with worksharing loop.
4163 (scan_omp_simd_scan): New function.
4164 (scan_omp_1_stmt): Call it.
4165 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
4166 ctx->for_simd_scan_phase.
4167 (lower_rec_input_clauses): Do much less work for inscan reductions
4168 in ctx->for_simd_scan_phase is_simd regions.
4169 (lower_omp_scan): Set is_simd also on simd constructs composited
4170 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
4171 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
4172 emit their body after in simd constructs composited with worksharing
4174 (lower_omp_for_scan): Handle worksharing loop composited with simd.
4176 * omp-low.c (omp_find_scan): Make static.
4177 (lower_omp_for_scan): Fix order of merge arguments in input phase of
4178 the second loop, var2 represents the first partial sum and so needs
4179 to go before rprivb[ivar].
4181 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
4183 * config/rs6000/rs6000-logue.c: Remove unused code.
4185 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
4187 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
4189 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
4192 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
4193 check with a frame laid out check.
4195 2019-07-05 Richard Biener <rguenther@suse.de>
4197 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
4198 when comparing against a store with possibly the same value.
4200 2019-07-05 Richard Biener <rguenther@suse.de>
4202 PR tree-optimization/91091
4203 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
4204 (walk_non_aliased_vuses): Likewise.
4205 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
4206 (get_continuation_for_phi): New tbaa_p parameter and pass
4208 (walk_non_aliased_vuses): Likewise.
4209 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
4210 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
4211 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
4213 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
4214 (adjust_offsets_for_equal_base_address): New function.
4215 (vn_reference_lookup_3): Use it to catch more base equivalences.
4216 Handle and pass down tbaa_p flag.
4217 (vn_reference_lookup_pieces): Adjust.
4218 (vn_reference_lookup): Remove alias-set altering, instead pass
4219 down false as tbaa_p.
4221 2019-07-05 Richard Biener <rguenther@suse.de>
4223 PR tree-optimization/91091
4224 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
4225 accesses can happen with -fno-strict-aliasing.
4227 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
4229 * tree-ssa-alias.c (alias_stats): Add
4230 nonoverlapping_component_refs_since_match_p_must_overlap.
4231 (dump_alias_stats): Print it.
4232 (nonoverlapping_component_refs_since_match_p): Add early exit.
4233 (nonoverlapping_component_refs_p): Do not account early exit.
4235 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
4237 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
4238 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
4239 (emit_eh_dispatch): Delete.
4240 (lower_catch): Emit the eh_dispatch manually and set the location of
4241 the first catch statement onto it.
4242 (lower_eh_filter): Emit the eh_dispatch manually and set location.
4243 (lower_eh_dispatch): Propagate location.
4244 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
4245 (eliminate_build): Likewise.
4247 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
4249 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
4250 phi nodes if possible.
4251 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
4252 location info on the newly created statement.
4253 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
4254 newly created increment if needed.
4256 2019-07-04 Jakub Jelinek <jakub@redhat.com>
4259 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
4260 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
4261 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
4262 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
4263 ctx->add_safelen1 is set.
4265 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
4266 GOMP_loop_start at the start of second worksharing loop in a scan.
4267 For nowait, don't emit GOMP_loop_end_nowait at the end of first
4268 worksharing loop in a scan even if there are conditional lastprivates,
4269 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
4271 2019-07-04 Jan Hubicka <jh@suse.cz>
4273 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
4274 Fix check for match in the ref walk.
4276 2019-07-04 Martin Liska <mliska@suse.cz>
4278 * tree-ssa-loop-niter.c
4279 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
4280 (estimate_numbers_of_iterations):
4281 Support __builtin_expect_with_probability for analysis
4282 of # of loop iterations.
4284 2019-07-04 Alexandre Oliva <oliva@adacore.com>
4286 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
4287 * except.c: Likewise.
4288 * expr.c (expand_expr_real_1): Reject it.
4289 * gimplify.c (gimplify_expr): Gimplify it, within
4291 * tree-dump.c (dequeue_and_dump): Dump it.
4292 * tree-pretty-print.c (dump_generic_node): Likewise.
4293 * tree.c (block_may_fallthru): Handle it.
4294 * tree.def (EH_ELSE_EXPR): Introduce it.
4295 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
4296 with GIMPLE_EH_ELSE as try/finally/else.
4298 2019-07-04 Richard Biener <rguenther@suse.de>
4301 * tree-pass.h (execute_all_ipa_transforms): Add a flag
4302 parameter whether to disable GC collection.
4303 * passes.c (execute_one_ipa_transform_pass): Likewise, and
4305 (execute_all_ipa_transforms): Likewise and pass it down.
4306 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
4307 collection from applying IPA transforms.
4308 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
4309 from applying IPA transforms.
4311 2019-07-04 Richard Biener <rguenther@suse.de>
4313 PR tree-optimization/90911
4314 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
4315 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
4316 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
4317 scalar_loop_scaling.
4318 (vect_transform_loop): Scale scalar loop profile if needed.
4319 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
4320 the loop copy from if-conversion adjust edge probabilities
4321 and scale the vectorized loop body profile, queue the scalar
4322 profile for updating after peeling.
4324 2019-07-04 Jan Hubicka <jh@suse.cz>
4326 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
4327 parameters; return early for must-alias.
4328 (indirect_ref_may_alias_decl_p): Likewise; when establishing
4329 outer types match, try nonoverlapping_component_refs
4330 if must-alias is not obvious.
4331 (indirect_refs_may_alias_p): Likewise.
4332 (refs_may_alias_p_2): Likewise.
4334 2019-07-04 Richard Biener <rguenther@suse.de>
4336 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
4338 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
4340 (struct vn_walk_cb_data): New callback data struct.
4341 (vn_reference_lookup_2): Adjust.
4342 (vn_reference_lookup_3): Likewise.
4343 (vn_reference_lookup_pieces): Likewise.
4344 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
4345 (visit_reference_op_load): Adjust.
4347 2019-07-04 Jakub Jelinek <jakub@redhat.com>
4349 PR tree-optimization/91063
4350 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
4351 stmt from stmts sequence before calling vect_init_vector_1.
4354 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4357 * fwprop.c (reg_single_def_p): New function.
4358 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
4359 (forward_propagate_into): New parameter reg_prop_only
4360 with default value false.
4361 Propagate def's src into loop only if SET_SRC and SET_DEST
4362 of def_set have single definitions.
4363 Likewise if reg_prop_only is set to true.
4364 (fwprop): New param fwprop_addr_p.
4365 Integrate fwprop_addr into fwprop.
4366 (fwprop_addr): Remove.
4367 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
4369 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
4370 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
4371 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
4373 2019-07-04 Jakub Jelinek <jakub@redhat.com>
4375 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
4376 in worksharing loop scans.
4378 PR tree-optimization/91074
4379 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
4382 PR rtl-optimization/90756
4383 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
4386 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
4388 * config/aarch64/aarch64.md: Remove redundant constraints from
4389 define_expand but keep some patterns untouched if they are
4390 specially selected by TARGET_SECONDARY_RELOAD hook.
4391 * config/aarch64/aarch64-sve.md: Likewise.
4392 * config/aarch64/atomics.md: Remove redundant constraints from
4394 * config/aarch64/aarch64-simd.md: Likewise.
4396 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
4398 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
4399 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
4400 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
4402 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
4405 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
4407 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
4408 (STARTFILE_SPEC): Split crt3 into a separate spec.
4409 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
4410 (DARWIN_CRT2_SPEC): New.
4411 (DARWIN_CRT3_SPEC): New.
4412 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
4413 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
4414 (DARWIN_CRT3_SPEC): New.
4416 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
4418 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
4419 Change the RTL attribute "length" from "4" to "*" to allow the
4420 length attribute to be adjusted automatically for prefixed load,
4421 store, and add immediate instructions.
4422 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
4424 (extendsi<mode>2, EXTSI iterator): Likewise.
4425 (movsi_internal1): Likewise.
4426 (movsi_from_sf): Likewise.
4427 (movdi_from_sf_zero_ext): Likewise.
4428 (mov<mode>_internal): Likewise.
4429 (movcc_internal1, QHI iterator): Likewise.
4430 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
4431 (movsf_from_si): Likewise.
4432 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
4433 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
4434 (mov<mode>, FMOVE128 iterator): Likewise.
4435 (movdi_internal64): Likewise.
4436 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
4438 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
4439 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
4440 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
4441 (vsx_splat_v4sf): Likewise.
4443 2019-07-03 Mark Wielaard <mark@klomp.org>
4446 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
4447 DW_AT_addr_base if there is actually a .debug_addr section with
4449 (output_addr_table): Add DWARF5 table header generation here after
4450 checking there are actually any addresses from...
4451 (dwarf2out_finish): ...here.
4452 * testsuite/g++.dg/pr90981.C: New test.
4454 2019-07-03 Richard Biener <rguenther@suse.de>
4457 * match.pd (vec_perm -> bit_insert): Fix element read from
4460 2019-07-03 Martin Liska <mliska@suse.cz>
4462 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
4463 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
4465 * generic-match-head.c: Include dbgcnt.h.
4466 * gimple-match-head.c: Likewise.
4468 2019-07-03 Martin Liska <mliska@suse.cz>
4470 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
4471 (GCOV_COUNTER_V_TOPN): New.
4472 (GCOV_COUNTER_V_INDIR): Use _topn.
4473 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
4474 (GCOV_TOPN_VALUES): New.
4475 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
4476 (GCOV_TOPN_VALUES_COUNTERS): New.
4477 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
4479 (gimple_init_gcov_profiler): Rename variables from one_value
4481 (gimple_gen_one_value_profiler): Remove.
4482 (gimple_gen_topn_values_profiler): New function.
4483 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
4484 names instead of SINGLE_VALUE.
4485 (stream_out_histogram_value): Likewise.
4486 (stream_in_histogram_value): Likewise.
4487 (get_most_common_single_value): Likewise.
4488 (gimple_divmod_fixed_value_transform): Likewise.
4489 (gimple_stringops_transform): Likewise.
4490 (gimple_divmod_values_to_profile): Likewise.
4491 (gimple_stringops_values_to_profile): Likewise.
4492 (gimple_find_values_to_profile): Likewise.
4493 * value-prof.h (enum hist_type): Rename to TOPN.
4494 (gimple_gen_one_value_profiler): Remove.
4495 (gimple_gen_topn_values_profiler): New.
4497 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
4499 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
4500 if it has the DW_AT_data_member_location attribute.
4502 2019-07-03 Richard Biener <rguenther@suse.de>
4504 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
4507 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
4509 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
4510 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
4511 (tlsdesc_small_sve_<mode>): Likewise.
4513 2019-07-03 Martin Liska <mliska@suse.cz>
4515 * Makefile.in: Define ZSTD_LIB.
4516 * common.opt: Adjust compression level
4517 to support also zstd levels.
4518 * config.in: Regenerate.
4519 * configure: Likewise.
4520 * configure.ac: Add --with-zstd and --with-zstd-include options
4522 * doc/install.texi: Mention zstd dependency.
4523 * gcc.c: Print supported LTO compression algorithms.
4524 * lto-compress.c (lto_normalized_zstd_level): Likewise.
4525 (lto_compression_zstd): Likewise.
4526 (lto_uncompression_zstd): Likewise.
4527 (lto_end_compression): Dispatch in between zlib and zstd.
4528 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
4529 (lto_uncompression_zlib): Make it static.
4530 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
4531 * lto-section-in.c (lto_get_section_data): Pass info
4532 about used compression.
4533 * lto-streamer-out.c: By default use zstd when possible.
4534 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
4535 (TV_IPA_LTO_COMPRESS): Likewise for compression.
4537 2019-07-03 Martin Liska <mliska@suse.cz>
4539 * lto-section-in.c (lto_get_section_data): Add "lto" section.
4540 * lto-section-out.c (lto_destroy_simple_output_block): Never
4541 compress LTO_section_lto section.
4542 * lto-streamer-out.c (produce_asm): Do not set major_version
4544 (lto_output_toplevel_asms): Likewise.
4545 (produce_lto_section): New function.
4546 (lto_output): Call produce_lto_section.
4547 (lto_write_mode_table): Do not set major_version and
4549 (produce_asm_for_decls): Likewise.
4550 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
4552 (struct lto_header): Remove.
4553 (struct lto_section): New struct.
4554 (struct lto_simple_header): Do not inherit from lto_header.
4555 (struct lto_file_decl_data): Add lto_section_header field.
4557 2019-07-03 Martin Liska <mliska@suse.cz>
4559 * lra-eliminations.c (eliminate_regs_in_insn): Remove
4561 * reg-stack.c (check_asm_stack_operands): Likewise.
4562 * tree-ssa-structalias.c (create_function_info_for): Likewise.
4563 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
4564 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
4567 2019-07-03 Martin Liska <mliska@suse.cz>
4569 PR tree-optimization/90892
4570 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
4571 in string constants.
4573 2019-07-03 Martin Liska <mliska@suse.cz>
4576 * multiple_target.c (create_dispatcher_calls): Add to comdat
4577 group only if set for ifunc.
4579 2019-07-03 Martin Liska <mliska@suse.cz>
4582 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
4583 Define local_object_name in outer scope in order to handle
4584 use-after-scope issue.
4586 2019-07-03 Martin Liska <mliska@suse.cz>
4588 * common.opt: Add fprofile-note.
4589 * coverage.c (coverage_init): Append the option
4591 * doc/invoke.texi: Document -fprofile-note.
4593 2019-07-03 Jakub Jelinek <jakub@redhat.com>
4595 PR tree-optimization/91033
4596 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
4597 vect_analyze_data_refs): Add bool * arguments.
4598 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
4599 if failure is due to scatter/gather, set *fatal to false if non-NULL.
4600 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
4601 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
4602 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
4603 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
4604 vect_analyze_data_refs caller.
4606 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
4608 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
4609 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
4610 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
4611 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
4612 OMP_CLAUSE__SCANTEMP_ entry.
4613 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
4614 * tree-pretty-print.c (dump_omp_clause): Likewise.
4615 * tree-nested.c (convert_nonlocal_omp_clauses,
4616 convert_local_omp_clauses): Likewise.
4617 * omp-general.h (struct omp_for_data): Add have_scantemp and
4618 have_nonctrl_scantemp members.
4619 * omp-general.c (omp_extract_for_data): Initialize them.
4620 * omp-low.c (struct omp_context): Add scan_exclusive member.
4621 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
4622 result again with GF_OMP_FOR_KIND_MASK. Initialize also
4623 ctx->scan_exclusive.
4624 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
4625 of !ctx->scan_inclusive.
4626 (lower_rec_input_clauses): Simplify gimplification of dtors using
4627 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
4628 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
4629 loops. Don't add barrier for reduction_omp_orig_ref if
4630 ctx->scan_??xclusive.
4631 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
4632 (lower_omp_scan): Use ctx->scan_exclusive instead
4633 of !ctx->scan_inclusive. Handle worksharing loops with inscan
4634 reductions. Use new_vard != new_var instead of repeated
4635 omp_is_reference calls.
4636 (omp_find_scan, lower_omp_for_scan): New functions.
4637 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
4639 * omp-expand.c (expand_omp_scantemp_alloc): New function.
4640 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
4641 and fd->have_scantemp.
4643 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
4644 on worksharing loop propagate it as shared clause to containing
4647 * omp-expand.c (expand_omp_for_static_nochunk,
4648 expand_omp_for_static_chunk): For nowait worksharing loop with
4649 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
4652 2019-07-02 Joern Rennecke <joern.rennecke@riscy-ip.com>
4655 * testsuite/gcc.dg/plugin/start_unit_plugin.c: Register a root tab
4656 to reference fake_var.
4658 2019-07-02 qing zhao <qing.zhao@oracle.com>
4660 PR preprocessor/90581
4661 * doc/cppopts.texi: Add document for -fmax-include-depth.
4662 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
4664 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
4666 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
4667 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
4668 (mmx_packssdw): Ditto.
4669 (mmx_punpckhbw): Ditto.
4670 (mmx_punpcklbw): Ditto.
4671 (mmx_punpckhwd): Ditto.
4672 (mmx_punpcklwd): Ditto.
4673 (mmx_punpckhdq): Ditto.
4674 (mmx_punpckldq): Ditto.
4675 (*vec_dupv4hi): Ditto.
4676 (*vec_dupv2si): Ditto.
4677 (mmx_pmovmskb): Ditto.
4678 * config/i386/sse.md (sse_cvtpi2ps): Use
4679 TARGET_SSE2 && SSE_REG_P in split condition.
4680 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
4681 TARGET_SSSE3 && SSE_REGNO_P in split condition.
4682 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
4683 (ssse3_pshufbv8qi3): Ditto.
4684 (ssse3_palignrdi): Ditto.
4686 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
4688 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
4689 with inlined save and restore.
4691 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
4693 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
4694 to be inserted on single successor edge of the entry block. Then call
4695 commit_edge_insertions instead of inserting the instructions manually.
4696 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
4697 RTL expansion and rebuild jump labels chain.
4699 2019-07-02 Richard Biener <rguenther@suse.de>
4701 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
4703 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
4705 * tree.c (build_common_tree_nodes): Initialize them.
4706 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
4707 Make declarations comments.
4708 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
4709 chrec_known): Remove definitions.
4710 (initialize_scalar_evolutions_analyzer): Remove.
4711 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
4712 * tree-streamer.c (preload_common_nodes): Do not preload
4713 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
4715 2019-07-02 Jan Hubicka <jh@suse.cz>
4717 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
4720 2019-07-02 Jan Hubicka <jh@suse.cz>
4722 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
4724 (nonoverlapping_component_refs_since_match_p): ... this one;
4725 handle also non-decl bases; return -1 if search gave up.
4726 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
4727 nonoverlapping_component_refs_of_decl_p_no_alias to
4728 nonoverlapping_component_refs_since_match_p_may_alias,
4729 nonoverlapping_component_refs_since_match_p_no_alias.
4730 (dump_alias_stats): Update dumping.
4731 (aliasing_matching_component_refs_p): Break out from ...;
4732 dispatch to nonoverlapping_component_refs_for_decl_p
4733 and nonoverlapping_component_refs_since_match_p.
4734 (aliasing_component_refs_p): ... here; call
4735 nonoverlapping_component_refs_p in scenarios where we can not
4736 precisely determine base match.
4737 (decl_refs_may_alias_p): Use
4738 nonoverlapping_component_refs_since_match_p.
4739 (indirect_ref_may_alias_decl_p): Do not call
4740 nonoverlapping_component_refs_p.
4741 (indirect_refs_may_alias_p): Likewise.
4743 2019-07-02 Jan Hubicka <jh@suse.cz>
4745 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
4746 to clobber of return value.
4748 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4750 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
4751 for is_neon_type instructions that have not already been categorized.
4753 2019-07-02 Richard Biener <rguenther@suse.de>
4755 PR tree-optimization/58483
4756 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
4757 for MEM_REF base hashing.
4758 (equal_mem_array_ref_p): Likewise for base comparison.
4760 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4762 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
4764 (signbit<mode>2): Use that name. Simplify.
4766 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
4769 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
4770 Tune heuristic from PR71016 to allow MIN / MAX.
4771 * testsuite/gcc.dg/tree-ssa/pr66726-4.c: New testcase.
4773 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4775 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
4777 (abs<mode>2): Use that name. Simplify.
4779 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4781 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
4783 (neg<mode>2): Use that name. Simplify.
4785 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4787 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
4789 (abs<mode>2): Use that name. Simplify.
4791 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4793 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
4795 (neg<mode>2): Use that name. Simplify.
4797 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
4799 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
4800 ("enabled" attribute): Handle sse_noavx isa attribute.
4801 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
4802 Use TARGET_SSE && SSE_REGNO_P in split condition.
4803 (*vec_dupv2sf): Ditto.
4805 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4807 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
4809 (floatsi<mode>2): Use that name. Simplify.
4811 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4813 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
4815 (extenddf<mode>2_vsx): Make this a parameterized name.
4816 (extenddf<mode>2): Use those names. Simplify.
4818 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4820 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
4822 (eh_return): Use that name. Simplify.
4824 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4826 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
4827 (doloop_end): Use that name. Simplify.
4829 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4831 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
4833 (indirect_jump): Use that name. Simplify.
4835 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4837 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
4839 (abs<mode>2): Use that name. Simplify.
4841 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4843 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
4845 (fix_trunc<mode>si2): Use that name. Simplify.
4847 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4849 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
4850 (allocate_stack): Use that name. Simplify.
4852 2019-07-01 Martin Sebor <msebor@redhat.com>
4855 * hash-map.h (hash_map::put): On insertion invoke element ctor.
4856 (hash_map::get_or_insert): Same. Reformat comment.
4857 * hash-set.h (hash_set::add): On insertion invoke element ctor.
4858 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
4859 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
4860 * hash-table.h (hash_table::operator=): Prevent copy assignment.
4861 (hash_table::hash_table (const hash_table&)): Use copy ctor
4862 instead of assignment to copy elements.
4864 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
4865 John David Anglin <danglin@gcc.gnu.org>
4868 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
4869 using saved frame pointer.
4871 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
4874 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
4875 Add frame clobber and schedule blockage.
4877 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
4879 * doc/invoke.texi (Link Options): Further editorial changes to
4880 -flinker-output docs.
4882 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4884 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
4885 Load both operands of a PLUS into registers separately.
4887 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
4889 * config/s390/vector.md: Fix shift count operand printing.
4891 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
4893 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
4895 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
4897 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
4898 Use recog_data to test for an output operand.
4900 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
4902 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
4903 exclude any others that are disparaged or that are bound to need
4905 (ira_get_dup_out_num): Expand comment.
4907 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
4909 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
4910 constraint string for each operand/alternative combo. Only handle
4911 '%' at the start of constraint strings, and look for it outside
4914 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
4916 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
4917 alternative_mask instead of HARD_REG_SET to represent a
4918 bitmask of alternatives.
4919 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
4920 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
4922 2019-07-01 Martin Liska <mliska@suse.cz>
4924 * edit-context.c (test_applying_fixits_unreadable_file): Do not
4925 use () for a constructor call.
4926 (test_applying_fixits_line_out_of_range): Likewise.
4927 * ggc-page.c (alloc_page): Use (void *) for %p printf format
4929 (free_page): Likewise.
4931 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
4933 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
4934 parameter names to match usage (no functional change).
4935 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
4937 2019-07-01 Richard Biener <rguenther@suse.de>
4939 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
4941 (pass_fre::execute): Honor it.
4942 * passes.def: Adjust pass_fre invocations to allow iterating,
4943 add non-iterating pass_fre before late threading/dom.
4945 2019-07-01 Richard Biener <rguenther@suse.de>
4947 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
4948 TARGET_MEM_REF handling to also handle address-taken ones.
4950 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
4952 * doc/sourcebuild.texi (Effective-Target Keywords, Other
4953 hardware attributes): Document avx512vp2intersect.
4955 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
4957 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
4958 (abs<mode>2): New expander.
4959 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
4960 Use CODE_FOR_ssse3_absv8qi2.
4961 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
4962 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
4964 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
4966 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
4967 to sse, sse_noavx and avx. Update all uses.
4969 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
4971 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
4972 (*mmx_<plusminus_insn><mode>3): Ditto.
4973 (*mmx_mulv4hi3"): Ditto.
4974 (*mmx_smulv4hi3_highpart): Ditto.
4975 (*mmx_umulv4hi3_highpart): Ditto.
4976 (*mmx_pmaddwd): Ditto.
4977 (*sse2_umulv1siv1di3): Ditto.
4978 (*mmx_<code>v4hi3): Ditto.
4979 (*mmx_<code>v8qi3): Ditto.
4980 (mmx_ashr<mode>3): Ditto.
4981 ("mmx_<shift_insn><mode>3): Ditto.
4982 (*mmx_eq<mode>3): Ditto.
4983 (mmx_gt<mode>3): Ditto.
4984 (mmx_andnot<mode>3): Ditto.
4985 (*mmx_<code><mode>3): Ditto.
4986 (*mmx_pinsrw): Ditto.
4987 (*mmx_pextrw): Ditto.
4988 (mmx_pshufw_1): Ditto.
4989 (*mmx_uavgv8qi3): Ditto.
4990 (*mmx_uavgv4hi3): Ditto.
4991 ("mmx_psadbw): Ditto.
4992 * config/i386/sse.md (sse_cvtps2pi): Ditto.
4993 (sse_cvttps2pi): Ditto.
4994 (ssse3_pmaddubsw): Ditto.
4995 (*ssse3_pmulhrswv4hi3): Ditto.
4996 (ssse3_psign<mode>3): Ditto.
4998 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
5000 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
5001 adjustment for bit-fields to all aggregate types.
5003 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
5005 * config/rs6000/predicates.md (pcrel_address): Use
5006 SYMBOL_REF_LOCAL_P to determine if a label is local.
5007 (pcrel_external_address): New predicate.
5008 (non_prefixed_mem_operand): Delete, predicate not used.
5009 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
5010 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
5012 (SYMBOL_REF_PCREL_P): Likewise.
5015 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
5017 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
5018 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
5019 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
5021 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
5023 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
5024 override on extra_headers.
5026 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
5028 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
5029 * config/darwin-driver.c (darwin_default_min_version): Remove newline
5031 (darwin_driver_init): Likewise.
5033 2019-06-28 Jan Beulich <jbeulich@suse.com>
5035 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
5036 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
5037 Eliminate redundant alternative.
5039 2019-06-28 Jan Beulich <jbeulich@suse.com>
5041 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
5042 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
5045 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
5047 * config/arc/arc.c (arc_rtx_costs): All short instructions are
5048 having a lower cost regardless of the speed option.
5050 2019-06-28 Jan Beulich <jbeulich@suse.com>
5052 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
5053 vector_operand plus, on both alternatives, "Bm" constraint.
5055 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
5057 * config/arm/arm.md: Remove redundant constraints from
5058 define_expand but leave reload_inm and reload_outm patterns
5059 untouched since they need special constraints to work.
5060 * config/arm/arm-fixed.md: Remove redundant constraints from
5062 * config/arm/iwmmxt.md: Likewise.
5063 * config/arm/neon.md: Likewise.
5064 * config/arm/sync.md: Likewise.
5065 * config/arm/thumb1.md: Likewise.
5066 * config/arm/vec-common.md: Likewise.
5068 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
5070 * doc/install.texi: Document --disable-tm-clone-registry.
5072 2019-06-27 Jakub Jelinek <jakub@redhat.com>
5075 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
5078 PR tree-optimization/91010
5079 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
5080 return true. Otherwise, don't call operand_equal_p if offset1 or
5081 offset2 is NULL and just return false.
5083 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
5085 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
5086 user-specified float mode choice for kernel mode code.
5088 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
5090 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
5093 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
5095 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
5096 use longcall for 64b code.
5098 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
5100 * builtins.c (get_memory_rtx): Fix comment.
5101 * optabs.def (movmem_optab): Change to cpymem_optab.
5102 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
5103 (emit_block_move_hints): Change movmem to cpymem.
5104 * defaults.h: Change movmem to cpymem.
5105 * targhooks.c (get_move_ratio): Change movmem to cpymem.
5106 (default_use_by_pieces_infrastructure_p): Ditto.
5107 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
5108 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
5110 * config/aarch64/aarch64.h: Change movmem to cpymem.
5111 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
5112 * config/alpha/alpha.h: Change movmem to cpymem in comment.
5113 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
5115 * config/arc/arc-protos.h: Change movmem to cpymem.
5116 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
5117 * config/arc/arc.h: Change movmem to cpymem in comment.
5118 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
5119 * config/arm/arm-protos.h: Change movmem to cpymem in names.
5120 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
5121 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
5122 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
5123 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
5124 * config/avr/avr-protos.h: Change movmem to cpymem.
5125 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
5126 avr_out_movmem): Change movmem to cpymem.
5127 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
5128 Change movmem to cpymem.
5129 * config/bfin/bfin-protos.h: Change movmem to cpymem.
5130 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
5131 Change movmem to cpymem.
5132 * config/bfin/bfin.h: Change movmem to cpymem in comment.
5133 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
5134 * config/c6x/c6x-protos.h: Change movmem to cpymem.
5135 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
5136 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
5137 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
5138 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
5139 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
5140 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
5141 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
5142 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
5143 expand_small_cpymem_or_setmem,
5144 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
5145 expand_set_or_cpymem_constant_prologue,
5146 ix86_expand_set_or_cpymem): Change movmem to cpymem.
5147 * config/i386/i386-protos.h: Change movmem to cpymem.
5148 * config/i386/i386.h: Change movmem to cpymem in comment.
5149 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
5150 (setmem<mode>): Change expansion function name.
5151 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
5152 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
5153 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
5154 * config/m32c/m32c-protos.h: Change movmem to cpymem.
5155 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
5156 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
5157 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
5159 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
5160 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
5161 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
5162 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
5163 Change movmem to cpymem.
5164 * config/mips/mips.h: Change movmem to cpymem.
5165 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
5166 * config/nds32/nds32-memory-manipulation.c
5167 (nds32_expand_movmemsi_loop_unknown_size,
5168 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
5169 nds32_expand_movmemsi_unroll,
5170 nds32_expand_movmemsi): Change movmem to cpymem.
5171 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
5172 * config/nds32/nds32-protos.h: Change movmem to cpymem.
5173 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
5174 (pa_adjust_insn_length): Change call to compute_movmem_length.
5175 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
5176 movmemdi, movmemdi_prereload,
5177 movmemdi_postreload): Change movmem to cpymem.
5178 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
5179 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
5180 * config/riscv/riscv.c: Change movmem to cpymem in comment.
5181 * config/riscv/riscv.h: Change movmem to cpymem.
5182 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
5183 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
5184 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
5186 * config/s390/s390-protos.h: Change movmem to cpymem.
5187 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
5188 s390_expand_insv): Change movmem to cpymem.
5189 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
5190 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
5191 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
5192 * config/sparc/sparc.h: Change movmem to cpymem in comment.
5193 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
5194 for nonexistent function.
5195 * config/vax/vax.h: Change movmem to cpymem in comment.
5196 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
5197 * config/visium/visium.h: Change movmem to cpymem in comment.
5198 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
5199 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
5200 * doc/md.texi: Change movmem to cpymem and update description to match.
5201 * doc/rtl.texi: Change movmem to cpymem.
5202 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
5203 * doc/tm.texi: Regenerate.
5205 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
5207 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
5208 -fvariable-expansion-in-unroller by default.
5209 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
5212 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
5215 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
5216 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
5218 * config.gcc(rs6000-*-*): Define target_gtfiles.
5220 2019-06-27 Jan Hubicka <jh@suse.cz>
5222 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
5223 (add_type_duplicate): When odr hash is not allocated, to nothing.
5224 (odr_based_tbaa_p): New function.
5225 (set_type_canonical_for_odr_type): New function.
5226 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
5227 set_type_canonical_for_odr_type): New.
5228 * tree.c (gimple_canonical_types_compatible_p): ODR types with
5229 ODR based TBAA are not equivalent to non-ODR types.
5231 2019-06-27 Martin Liska <mliska@suse.cz>
5233 PR tree-optimization/90974
5234 PR rtl-optimization/90975
5235 PR rtl-optimization/90976
5237 PR tree-optimization/91017
5238 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
5240 * lra.c (lra_set_insn_recog_data): Remove a leftover from
5241 initial commit of IRA.
5242 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
5244 * tree-vect-loop.c (vect_create_epilog_for_reduction):
5245 Remove unused mode1.
5246 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
5249 2019-06-27 Jakub Jelinek <jakub@redhat.com>
5252 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
5253 instead of register_operand for operands[1], add m to its constraints
5254 if operands[2] uses "C" constraint. Ensure in condition that if
5255 operands[2] is not 0, then operands[1] is not a MEM. For last two
5256 alternatives, use unaligned loads instead of aligned if operands[1] is
5259 2019-06-27 Martin Liska <mliska@suse.cz>
5261 * asan.c (asan_emit_allocas_unpoison): Remove obviously
5263 * bt-load.c (move_btr_def): Likewise.
5264 * builtins.c (expand_builtin_apply_args_1): Likewise.
5265 (expand_builtin_apply): Likewise.
5266 * cfgexpand.c (expand_asm_stmt): Likewise.
5267 (construct_init_block): Likewise.
5268 * cfghooks.c (verify_flow_info): Likewise.
5269 * cfgloopmanip.c (remove_path): Likewise.
5270 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
5271 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
5272 * combine.c (simplify_if_then_else): Likewise.
5273 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
5274 (choose_basereg): Likewise.
5275 (ix86_expand_prologue): Likewise.
5276 (ix86_preferred_output_reload_class): Likewise.
5277 * cselib.c (cselib_record_sets): Likewise.
5278 * df-scan.c (df_scan_alloc): Likewise.
5279 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
5280 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
5281 * emit-rtl.c (try_split): Likewise.
5282 * graphite-scop-detection.c (assign_parameter_index_in_region):
5284 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
5285 * ira-color.c (setup_profitable_hard_regs): Likewise.
5286 * ira.c (rtx_moveable_p): Likewise.
5287 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
5288 * read-rtl.c (read_subst_mapping): Likewise.
5289 * regrename.c (scan_rtx): Likewise.
5290 * reorg.c (fill_slots_from_thread): Likewise.
5291 * tree-inline.c (tree_function_versioning): Likewise.
5292 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
5293 * tree-ssa-sink.c (statement_sink_location): Likewise.
5294 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
5295 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
5296 (vect_create_epilog_for_reduction): Likewise.
5297 * tree.c (build_nonstandard_integer_type): Likewise.
5299 2019-06-27 Richard Biener <rguenther@suse.de>
5301 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
5303 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
5305 PR tree-optimization/89772
5306 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
5307 out-of-bound accesses checking.
5309 2019-06-27 Martin Liska <mliska@suse.cz>
5311 PR tree-optimization/91014
5312 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
5313 when LHS is NULL_TREE.
5315 2019-06-27 Martin Liska <mliska@suse.cz>
5317 * symbol-summary.h (traverse): Pass
5318 argument a to the call of callback.
5319 (gt_ggc_mx): Mark arguments as unused.
5320 (gt_pch_nx): Likewise.
5322 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
5325 * gcc/loop-iv.c (find_simple_exit): Call finite_loop_p to update
5328 2019-06-26 Jeff Law <law@redhat.com>
5330 PR tree-optimization/90883
5331 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
5332 (delete_dead_or_redundant_assignment): Likewise.
5334 PR tree-optimization/90883
5335 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
5336 * tree-ssa-dse.c: Update various comments to distinguish between
5337 dead and redundant stores.
5338 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
5339 (dse_optimize_redundant_stores): New function.
5340 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
5341 Distinguish between dead and redundant calls in dump output. All
5343 (delete_dead_or_redundant_assignment): Similarly for assignments.
5344 (dse_optimize_stmt): Handle _CHK variants. For statements which
5345 store 0 into multiple memory locations, try to prove a subsequent
5348 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
5351 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
5352 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
5354 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
5356 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
5357 (branch_islands): New extern.
5358 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
5359 * config/rs6000/rs6000.c: .. here.
5361 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
5363 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
5364 (powerpc*-*-*) ... to here.
5366 2019-06-26 Jeff Law <law@redhat.com>
5368 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
5369 memcpy, memmove and memset builtins.
5370 (maybe_trim_memstar_call): Likewise.
5372 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
5374 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
5376 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
5378 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
5380 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
5382 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
5384 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
5386 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
5389 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
5391 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
5393 2019-06-26 Richard Biener <rguenther@suse.de>
5396 * tree-inline.c (remap_ssa_name): Copy SSA range info.
5398 2019-06-26 Richard Biener <rguenther@suse.de>
5400 * lto-streamer.h (lto_bitmap_alloc): Remove.
5401 (lto_bitmap_free): Likewise.
5402 * lto-streamer.c (lto_bitmap_alloc): Remove.
5403 (lto_bitmap_free): Likewise.
5404 (lto_obstack): Likewise.
5405 (lto_obstack_initialized): Likewise.
5406 * lto-streamer-out.c (lto_output): Use own obstack for local
5407 bitmap, free it consistently.
5409 2019-06-26 Jakub Jelinek <jakub@redhat.com>
5412 * config/i386/sse.md
5413 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
5414 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
5415 insns if operands[2] is misaligned_operand.
5417 2019-06-26 Li Jia He <helijia@linux.ibm.com>
5419 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
5421 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
5424 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
5426 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
5428 2019-06-26 Martin Liska <mliska@suse.cz>
5430 PR tree-optimization/90973
5431 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
5432 epilogue_cost_vec instead of prologue_cost_vec for
5435 2019-06-26 Martin Liska <mliska@suse.cz>
5437 * bb-reorder.c (connect_better_edge_p): Add missing else
5438 statement in the middle of if-else statements.
5440 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
5441 H.J. Lu <hongjiu.lu@intel.com>
5442 Olga Makhotina <olga.makhotina@intel.com>
5444 * common/config/i386/i386-common.c
5445 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
5446 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
5447 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
5448 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
5449 (ix86_handle_option): Handle -mavx512vp2intersect.
5450 * config/i386/avx512vp2intersectintrin.h: New.
5451 * config/i386/avx512vp2intersectvlintrin.h: New.
5452 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
5453 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5455 * config/i386/i386-builtin-types.def: Add new types.
5456 * config/i386/i386-builtin.def: Add new builtins.
5457 * config/i386/i386-builtins.c: (enum processor_features): Add
5458 F_AVX512VP2INTERSECT.
5459 (static const _isa_names_table isa_names_table): Ditto.
5460 * config/i386/i386-c.c (ix86_target_macros_internal): Define
5461 __AVX512VP2INTERSECT__.
5462 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
5463 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
5464 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
5465 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
5466 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
5467 * config/i386/i386-options.c (ix86_target_string): Add
5468 -mavx512vp2intersect.
5469 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
5470 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
5471 P2HImode and P2QImode.
5472 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
5473 number for P2QImode and P2HImode.
5474 (ix86_regmode_natural_size): New function.
5475 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
5476 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
5477 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
5478 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
5479 * config/i386/i386.opt: Add -mavx512vp2intersect.
5480 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
5481 avx512vp2intersectvlintrin.h.
5482 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
5483 (define_mode_iterator VI48_AVX512VP2VL): New.
5484 (avx512vp2intersect_2intersect<mode>,
5485 avx512vp2intersect_2intersectv16si): New define_insn patterns.
5486 * config.gcc: Add avx512vp2intersectvlintrin.h and
5487 avx512vp2intersectintrin.h to extra_headers.
5488 * doc/invoke.texi: Document -mavx512vp2intersect.
5490 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
5492 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
5494 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
5496 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
5497 savres_routine_syms, savres_routine_name, morestack_ref,
5498 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
5499 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
5500 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
5501 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
5502 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
5503 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
5504 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
5505 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
5506 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
5507 get_stack_clash_protection_probe_interval,
5508 get_stack_clash_protection_guard_size,
5509 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
5510 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
5511 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
5512 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
5513 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
5514 gen_frame_mem_offset, rs6000_savres_routine_name,
5515 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
5516 ptr_regno_for_savres, rs6000_emit_savres_rtx,
5517 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
5518 rs6000_global_entry_point_prologue_needed_p,
5519 rs6000_get_separate_components, rs6000_components_for_bb,
5520 rs6000_disqualify_components, rs6000_emit_prologue_components,
5521 rs6000_emit_epilogue_components, rs6000_set_handled_components,
5522 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
5523 rs6000_output_savres_externs, rs6000_output_function_prologue,
5524 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
5525 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
5526 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
5527 rs6000_output_function_epilogue, gen_add3_const,
5528 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
5529 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
5531 (machine_function): Moved to rs6000.h.
5532 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
5534 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
5535 savres_routine_syms, savres_routine_name, morestack_ref,
5536 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
5537 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
5538 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
5539 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
5540 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
5541 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
5542 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
5543 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
5544 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
5545 get_stack_clash_protection_probe_interval,
5546 get_stack_clash_protection_guard_size,
5547 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
5548 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
5549 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
5550 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
5551 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
5552 gen_frame_mem_offset, rs6000_savres_routine_name,
5553 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
5554 ptr_regno_for_savres, rs6000_emit_savres_rtx,
5555 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
5556 rs6000_global_entry_point_prologue_needed_p,
5557 rs6000_get_separate_components, rs6000_components_for_bb,
5558 rs6000_disqualify_components, rs6000_emit_prologue_components,
5559 rs6000_emit_epilogue_components, rs6000_set_handled_components,
5560 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
5561 rs6000_output_savres_externs, rs6000_output_function_prologue,
5562 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
5563 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
5564 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
5565 rs6000_output_function_epilogue, gen_add3_const,
5566 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
5567 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
5568 to here from rs6000.c.
5569 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
5570 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
5571 quad_address_offset_p) Moved to here from rs6000.c.
5572 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
5573 * config/config.gcc: Add new source file rs6000-logue.c to garbage
5576 2019-06-25 Martin Liska <mliska@suse.cz>
5578 * hash-table.c (hashtab_chk_error): Move here from ...
5579 * hash-table.h (hashtab_chk_error): ... here.
5581 2019-06-25 Martin Liska <mliska@suse.cz>
5583 PR tree-optimization/90978
5584 * df-scan.c (df_update_entry_block_defs): Remove dead else
5586 (df_update_exit_block_uses): Likewise.
5588 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
5589 Andrew Stubbs <ams@codesourcery.com>
5591 * config.gcc (thread_file): Set to gcn for AMD GCN.
5592 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
5593 (TARGET_EMUTLS_VAR_INIT): New hook.
5595 2019-06-25 Martin Jambor <mjambor@suse.cz>
5598 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
5600 2019-06-25 Richard Biener <rguenther@suse.de>
5602 PR tree-optimization/90930
5603 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
5604 into parallel form in the last pass instance.
5606 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
5608 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
5609 (arc_legitimize_pic_address): Simplify and cleanup the function.
5610 (SYMBOLIC_CONST): Remove.
5611 (prepare_pic_move): Likewise.
5612 (prepare_move_operands): Handle complex mov cases here.
5613 (arc_legitimize_address_0): Remove call to
5614 arc_legitimize_pic_address.
5615 (arc_legitimize_address): Remove call to
5616 arc_legitimize_tls_address.
5617 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
5618 (movhi_insn): Likewise.
5620 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5622 * gcc/c-family/c-common.c (c_common_nodes_and_builtins): Define
5623 alternate "__intN__" name for "__intN" types.
5624 * gcc/c/c-parser.c (c_parse_init): Create keyword for "__intN__" type.
5625 * gcc/cp/lex.c (init_reswords): Likewise.
5626 * gcc/config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
5628 * gcc/cp/cp-tree.h (cp_decl_specifier_seq): New bitfield "int_n_alt".
5629 * gcc/c/c-decl.c (declspecs_add_type): Don't pedwarn about "__intN" ISO
5630 C incompatibility if alternate "__intN__" form is used.
5631 * gcc/cp/decl.c (grokdeclarator): Likewise.
5632 * gcc/cp/parser.c (cp_parser_simple_type_specifier): Set
5633 decl_specs->int_n_alt if "__intN__" form is used.
5634 * gcc/gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
5635 format of "__intN" types for UINTMAX_TYPE.
5636 * gcc/brig/brig-lang.c (brig_build_c_type_nodes): Accept "__intN__"
5637 format of "__intN" types for SIZE_TYPE.
5638 * gcc/lto/lto-lang.c (lto_build_c_type_nodes): Likewise.
5639 * gcc/stor-layout.c (initialize_sizetypes): Accept "__intN__"
5640 format of "__intN" types for SIZETYPE.
5641 * gcc/tree.c (build_common_tree_nodes): Accept "__intN__"
5642 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
5643 * gcc/doc/invoke.texi: Document that __intN__ disables pedantic
5646 2019-06-25 Jan Hubicka <jh@suse.cz>
5648 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
5649 base2_alias_set is non-zero before doing TBAA based disambiguation.
5651 2019-06-25 Martin Liska <mliska@suse.cz>
5653 PR tree-optimization/90973
5654 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
5655 of prologue and epilogue.
5657 2019-06-24 Jan Hubicka <jh@suse.cz>
5659 * ipa-utils.h (type_with_linkage_p): Verify that type is
5661 (odr_type_p): Remove extra return.
5662 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
5663 hash STRING_FLAG only for arrays and integers.
5664 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
5666 * tree-streamer-out.c (pack_ts_type_common_value_fields):
5668 * print-tree.c (print_node): Print cxx-odr-p
5670 * tree.c (need_assembler_name_p): Also check that type
5672 (verify_type_variant): Update verification of SRING_FLAG;
5673 also check CXX_ODR_P.
5674 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
5675 (TYPE_STRING_FLAG): Use it.
5676 (TYPE_CXX_ODR_P): New macro.
5677 * dwarf2out.c (gen_array_type_die): First check that type
5678 is an array and then test string flag.
5680 2019-06-24 Richard Biener <rguenther@suse.de>
5682 PR tree-optimization/90972
5683 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
5684 in common code, dealing with STRING_CST properly.
5686 2019-06-24 Richard Biener <rguenther@suse.de>
5688 PR tree-optimization/90930
5689 PR tree-optimization/90316
5690 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
5693 2019-06-24 Martin Sebor <msebor@redhat.com>
5695 * tree-pretty-print.h: Remove unnecessary punctuation characters
5697 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
5699 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
5701 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
5702 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
5703 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
5705 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
5707 * config/rs6000/darwin.h: Handle GCC target pragma.
5709 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
5711 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
5713 2019-06-22 Jeff Law <law@redhat.com>
5715 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5717 2019-06-22 Jan Hubicka <jh@suse.cz>
5719 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
5720 give up on bitfields; continue searching for different refs
5723 2019-06-21 Jakub Jelinek <jakub@redhat.com>
5725 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
5726 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
5727 containing the offset as possible simd lane access. Look through
5728 widening conversion. Move the
5729 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
5731 2019-06-21 Richard Biener <rguenther@suse.de>
5733 PR tree-optimization/90930
5734 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
5735 flag on new stmts to avoid re-processing them.
5737 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
5739 PR c++/90875 - added -Wswitch-outside-range option
5740 * doc/invoke.texi (Wswitch-outside-range): Document.
5742 2019-06-21 Jeff Law <law@redhat.com>
5744 PR tree-optimization/90949
5745 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
5746 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
5748 2019-06-21 Richard Biener <rguenther@suse.de>
5751 * dwarf2out.c (prune_unused_types_walk): Always consider
5752 function-local extern declarations as used.
5754 2019-06-21 Richard Biener <rguenther@suse.de>
5756 PR tree-optimization/90913
5757 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
5758 the scalar variant of if-conversion versioning.
5760 2019-06-21 Jakub Jelinek <jakub@redhat.com>
5762 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
5763 create another "omp scan inscan exclusive" array if
5764 !ctx->scan_inclusive.
5765 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
5766 (lower_omp_scan): Likewise.
5767 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
5768 2-bit bitfield for simd_lane_access_p member.
5769 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
5770 aux == (void *)-4 as simd lane access.
5771 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
5772 comment with permutations to show the canonical permutation order.
5773 (vectorizable_scan_store): Handle exclusive scan.
5774 (vectorizable_store): Call vectorizable_scan_store even for
5775 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
5777 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
5778 "omp simd array" arrays with one byte elements.
5780 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
5782 * config/alpha/alpha.md (@unaligned_store<mode>):
5783 Rename from unaligned_store<mode>.
5784 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
5785 * config/alpha/sync.md (@load_locked_<mode>): Rename
5786 from load_locked_<mode>.
5787 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
5788 (@atomic_compare_and_swap<mode>_1): Rename
5789 from atomic_compare_and_swap<mode>_1.
5790 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
5791 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
5792 Use gen_reload_in_aligned and gen_unaligned_store.
5793 (emit_load_locked): Remove.
5794 (emit_store_conditional): Ditto.
5795 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
5796 (alpha_split_compare_and_swap): Ditto.
5797 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
5798 (alpha_split_compare_and_swap_12): Use gen_load_locked
5799 and gen_store_conditional.
5800 (alpha_split_atomic_exchange): Ditto.
5801 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
5802 (alpha_split_atomic_exchange_12): Use gen_load_locked
5803 and gen_store_conditional.
5805 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
5807 * config/aarch64/aarch64-errata.h: New file.
5808 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
5809 (CA53_ERR_843419_SPEC): Delete.
5810 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
5811 * config/aarch64/aarch64-linux.h: Likewise.
5812 * config/aarch64/aarch64-netbsd.h: Likewise.
5813 * config/aarch64/aarch64-freebsd.h: Likewise.
5815 2019-06-20 Marek Polacek <polacek@redhat.com>
5817 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
5819 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
5821 * config/rs6000/rs6000.md (isa attribute): Add support for
5822 for a future processor.
5824 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
5827 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
5828 standard scalar operation pattern for V2DF.
5829 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
5830 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
5831 (*ieee_<ieee_maxmin><mode>3): Likewise.
5832 (vec_setv2df_0): Likewise.
5834 2019-06-20 Jan Hubicka <jh@suse.cz>
5836 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
5837 parameter; it has no use in gimple memory model.
5838 (indirect_ref_may_alias_decl_p): Update.
5840 2019-06-20 Martin Liska <mliska@suse.cz>
5842 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
5845 2019-06-20 Jakub Jelinek <jakub@redhat.com>
5847 * tree-vect-stmts.c (enum scan_store_kind): New type.
5848 (scan_store_can_perm_p): Change last argument from int * to
5849 vec<enum scan_store_kind> *, record precisely which permutations
5850 need whole vector left shift or that plus VEC_COND_EXPR.
5851 (vectorizable_scan_store): Adjust caller, use whole vector left shift
5852 and additional VEC_COND_EXPR only for those iterations that need it.
5854 2019-06-20 Alexandre Oliva <oliva@adacore.com>
5856 * config.gcc: Fix ARM --with-fpu checking and error message.
5858 2019-06-19 Marek Polacek <polacek@redhat.com>
5860 PR c++/60364 - noreturn after first decl not diagnosed.
5861 * attribs.c (get_attribute_namespace): No longer static.
5862 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
5864 (attr_noreturn_exclusions): Make it extern.
5865 * attribs.h (get_attribute_namespace): Declare.
5866 * tree-inline.c (function_attribute_inlinable_p): Use
5869 2019-06-19 Martin Sebor <msebor@redhat.com>
5871 PR tree-optimization/90626
5872 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
5874 PR tree-optimization/90626
5875 * tree-ssa-strlen.c (strxcmp_unequal): New function.
5876 (handle_builtin_string_cmp): Call it.
5878 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
5880 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
5881 and DARWIN_NOPIE_SPEC.
5882 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
5883 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
5884 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
5885 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
5886 (DARWIN_EXPORT_DYNAMIC): Delete.
5887 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
5888 and pie options processing to darwin.h.
5889 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
5891 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
5893 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
5894 in computing the number of options to be moved.
5896 2019-06-19 Maya Rashish <coypu@sdf.org>
5898 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
5899 (CLEAR_INSN_CACHE) Use it.
5901 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
5903 * config/i386/i386.md (cmpstrnsi): Remove dead code.
5905 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
5908 * builtins.c (expand_builtin_setjmp_setup): Save
5909 hard_frame_pointer_rtx.
5910 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
5912 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
5914 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
5916 (remove_reg_equal_offset_note): Remove unused function.
5917 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
5919 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5920 (arc_builtin_setjmp_frame_value): Remove function.
5921 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5922 (avr_builtin_setjmp_frame_value): Remove function.
5923 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5924 (ix86_builtin_setjmp_frame_value): Remove function.
5925 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
5926 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5927 (sparc_builtin_setjmp_frame_value): Remove function.
5928 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5929 (vax_builtin_setjmp_frame_value): Remove function.
5930 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
5931 pointer if has_nonlocal_label.
5933 2019-06-19 Jakub Jelinek <jakub@redhat.com>
5935 * doc/md.texi: Document vec_shl_<mode> pattern.
5936 * optabs.def (vec_shl_optab): New optab.
5937 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
5938 argument, if == vec_shl_optab, check for left whole vector shift
5939 pattern rather than right shift.
5940 (expand_vec_perm_const): Add vec_shl_optab support.
5941 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
5943 * tree-vect-generic.c (lower_vec_perm): Support permutations which
5944 can be handled by vec_shl_optab.
5945 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
5946 (check_scan_store): Use it.
5947 (vectorizable_scan_store): If target can't do normal permutations,
5948 try to use whole vector left shifts and if needed a VEC_COND_EXPR
5950 * config/i386/sse.md (vec_shl_<mode>): New expander.
5952 * omp-low.c (lower_rec_input_clauses): Handle references properly
5954 (lower_omp_scan): Likewise.
5956 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5958 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
5959 mem_mode is BLKmode.
5961 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
5964 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
5965 pointer adjustment for the case of no callee-saved registers and
5966 stack frame bigger than 128 bytes.
5968 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
5971 * omp-low.c (check_omp_nesting_restrictions): Handle
5972 GF_OMP_TARGET_KIND_OACC_DECLARE.
5974 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
5976 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
5977 (@add<mode>3_carry): Rename from add<mode>3_carry.
5978 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
5979 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
5980 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
5981 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
5982 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
5983 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
5984 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
5985 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
5986 (cmpstrnsi): Use gen_cmp_1.
5987 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
5988 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
5989 (@umonitor_<mode>): Rename from umonitor_<mode>.
5990 * config/i386/i386-expand.c (ix86_expand_copysign):
5991 Use gen_copysign3_const and gen_copysign3_var.
5992 (ix86_expand_xorsign): Use gen_xorsign3_1.
5993 (ix86_expand_branch): Use gen_sub3_carry_ccc,
5994 gen_sub3_carry_ccgz and gen_cmp1.
5995 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
5996 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
5997 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
5998 (ix86_split_lshr): Ditto.
5999 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
6001 2019-06-18 Jason Merrill <jason@redhat.com>
6003 * tree.c (build_constructor): Add MEM_STAT_DECL.
6005 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
6007 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
6008 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
6009 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
6010 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
6011 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
6012 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
6013 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
6014 Use CC_NZC instead of CC.
6015 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
6016 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
6017 (aarch64_print_operand): Handle E_CC_NZCmode.
6018 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
6019 of gen_set_clobber_cc.
6021 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
6023 * config/aarch64/aarch64-sve.md: Tabify file.
6025 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
6027 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
6028 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
6029 * config/aarch64/aarch64-sve.md: Use it.
6031 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
6033 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
6034 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
6035 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
6036 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
6037 (aarch64_expand_sve_vec_cmp_int): Use it.
6038 (aarch64_expand_sve_vec_cmp_float): Likewise.
6039 * config/aarch64/aarch64-sve.md: Likewise throughout.
6041 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
6042 Kugan Vivekanandarajah <kuganv@linaro.org>
6044 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
6045 (*cond_<optab><mode>_z): Fold into...
6046 (*cond_<optab><mode>_any): ...here. Also handle cases in which
6047 operand 4 can be tied to operand 0 (either inherently or via RA).
6049 2019-06-18 Richard Biener <rguenther@suse.de>
6052 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
6053 as if optimized away.
6055 2019-06-18 Tom de Vries <tdevries@suse.de>
6057 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
6058 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
6059 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
6061 (define_insn "@set_softstack_<mode>"): ... this.
6062 (define_insn "omp_simt_enter_<mode>"): Rename to ...
6063 (define_insn "@omp_simt_enter_<mode>"): ... this.
6064 (define_insn "omp_simt_exit_<mode>"): Rename to ...
6065 (define_insn "@omp_simt_exit_<mode>"): ... this.
6067 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
6069 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
6070 vf parameter. Restore the previous iv step of nscalars_step,
6071 but give it iv_type rather than compare_type. Tweak code order
6072 to match the comments.
6073 (vect_set_loop_condition_masked): Update accordingly.
6074 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
6075 for iv_precision. Tweak comment formatting.
6077 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
6079 * config/darwin.c: Strip trailing whitespace.
6081 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
6083 * config/darwin.c (darwin_emit_unwind_label): New default to false.
6084 (darwin_override_options): Set darwin_emit_unwind_label as needed.
6086 2019-06-18 Martin Jambor <mjambor@suse.cz>
6089 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
6090 caller does not have flag_ipa_cp set.
6092 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
6094 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
6095 from "*fold_left_plus_<mode>", updated operands order.
6096 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
6097 * internal-fn.c (mask_fold_left_direct): New define.
6098 (expand_mask_fold_left_optab_fn): Likewise.
6099 (direct_mask_fold_left_optab_supported_p): Likewise.
6100 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
6101 * optabs.def (mask_fold_left_plus_optab): New optab.
6102 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
6103 masked internal_fn for a reduction ifn.
6104 (vectorize_fold_left_reduction): Add support for masking reductions.
6106 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
6109 * target.def (predict_doloop_p): New hook.
6110 * targhooks.h (default_predict_doloop_p): New declaration.
6111 * targhooks.c (default_predict_doloop_p): New function.
6112 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
6113 * doc/tm.texi: Regenerate.
6114 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
6115 (TARGET_PREDICT_DOLOOP_P): New macro.
6116 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
6118 2019-06-17 Jakub Jelinek <jakub@redhat.com>
6120 * omp-low.c (struct omp_context): Add scan_inclusive field.
6121 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
6123 (struct omplow_simd_context): Add lastlane member.
6124 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
6125 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
6127 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
6128 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
6129 (lower_omp_scan): New function.
6130 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
6131 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
6132 check 3rd argument if present rather than 2nd.
6133 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
6134 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
6136 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
6137 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
6139 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
6140 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
6141 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
6143 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
6144 IFN_GOMP_SIMD_LANE argument.
6145 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
6146 encoded ->aux value.
6147 * tree-vect-stmts.c: Include attribs.h.
6148 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
6149 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
6151 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
6152 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
6154 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
6157 * config/i386/i386.md (*nabstf2_1): New insn pattern.
6158 (*nabs<mode>2_1): Ditto.
6159 (nabs sse-reg splitter): New splitter.
6160 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
6162 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
6165 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
6168 2019-06-17 Tom de Vries <tdevries@suse.de>
6170 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
6171 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
6172 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
6174 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
6176 (define_insn "omp_simt_enter_insn"): Rename to ...
6177 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
6178 match_operand 0, 1 and 2, as well as the unspec_volatile result.
6179 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
6180 gen_omp_simt_enter_si.
6181 (define_expand "omp_simt_exit"): New.
6182 (define_insn "omp_simt_exit"): Rename to ...
6183 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
6186 2019-06-17 Matthew Green <mrg@eterna.com.au>
6187 Maya Rashish <coypu@sdf.org>
6189 * config.gcc (aarch64*-*-netbsd*): New target.
6190 * config/aarch64/aarch64-netbsd.h: New file.
6191 * config/aarch64/t-aarch64-netbsd: Likewise.
6193 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
6195 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
6196 the access path from base to first VIEW_CONVERT_EXPR or
6199 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
6201 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
6202 access path on BIT_FIELD_REFs.
6204 2019-06-17 Martin Liska <mliska@suse.cz>
6207 * ipa-utils.h (odr_type_p): Remove dead code.
6209 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6211 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
6212 alternative Solaris 11.4 format.
6213 * configure: Regenerate.
6215 2019-06-17 Tom de Vries <tdevries@suse.de>
6217 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
6218 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
6220 (define_insn "call_value_insn"): Rename to ...
6221 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
6223 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
6226 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
6229 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
6230 frame clobbers and schedule block.
6231 (builtin_longjmp): Likewise.
6233 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6235 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
6236 describe how to perform MSPABI compliant 64-bit shift.
6237 * config/msp430/msp430.md (ashldi3): New define_expand.
6238 (ashrdi3): New define_expand.
6239 (lshrdi3): New define_expand.
6241 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6243 * doc/sourcebuild.texi: Document new effective target keyword
6246 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
6248 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
6249 indirect_refs_may_alias_p): Revert accidental commits.
6251 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
6252 at the end of structures.
6254 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
6256 * config/darwin.c (machopic_indirect_call_target): Use renamed
6257 darwin_picsymbol_stubs to decide on output.
6258 (darwin_override_options): Handle darwin_picsymbol_stubs.
6259 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
6260 (LD64_VERSION): Revise default.
6261 * config/darwin.opt: (mpic-symbol-stubs): New option.
6262 (darwin_picsymbol_stubs): New variable.
6263 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
6264 rename to TARGET_MACHO_PICSYM_STUBS.
6265 * config/i386/i386.c (output_pic_addr_const): Likewise.
6266 * config/i386/i386.h Likewise.
6267 * config/rs6000/darwin.h: Likewise.
6268 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
6269 darwin_picsymbol_stubs.
6271 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
6273 * config/darwin.opt (prebind, noprebind, seglinkedit,
6274 noseglinkedit): Add RejectNegative.
6276 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
6278 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
6279 in my previous patch.
6281 2019-06-16 Tom de Vries <tdevries@suse.de>
6283 PR tree-optimization/89376
6284 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
6286 2019-06-15 Maya Rashish <coypu@sdf.org>
6288 * doc/invoke.texi (Spec Files): Update location of the
6291 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
6293 * doc/extend.texi (Common Function Attributes): Clarify
6294 no_sanitize. Fix grammar.
6296 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
6298 * tree-ssa-alias.c (alias_stats): Add
6299 nonoverlapping_component_refs_p_may_alias,
6300 nonoverlapping_component_refs_p_no_alias,
6301 nonoverlapping_component_refs_of_decl_p_may_alias,
6302 nonoverlapping_component_refs_of_decl_p_no_alias.
6303 (dump_alias_stats): Dump them.
6304 (nonoverlapping_component_refs_of_decl_p): Add stats.
6305 (nonoverlapping_component_refs_p): Add stats; do not stop on first
6308 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
6310 * config/i386/i386.md (and<mode>3): Generate zero-extends for
6311 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
6313 (*anddi3_doubleword): Split before reload. Merge with
6314 anddi->zext pre-reload splitter.
6315 (*andndi3_doubleword): Split before reload.
6316 (*<code>di3_doubleword): Ditto.
6317 (*one_cmpldi2_doubleword): Ditto.
6319 2019-06-15 Jakub Jelinek <jakub@redhat.com>
6322 * gimplify.c: Include omp-offload.h and context.h.
6323 (gimplify_bind_expr): Add "omp declare target" attributes
6324 to static block scope variables inside of target region or target
6327 2019-06-15 Tom de Vries <tdevries@suse.de>
6329 PR tree-optimization/90009
6330 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
6331 Return NULL if bb contains IFN_UNIQUE.
6333 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
6335 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
6336 (un): New define_mode_attr.
6337 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
6338 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
6339 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
6341 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
6343 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
6345 * config/darwin.opt: Add RejectNegative where needed, reorder
6346 and add minimal functional descriptions.
6348 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
6350 PR rtl-optimization/90765
6351 * calls.c (update_stack_alignment_for_call): New function.
6352 (expand_call): Call update_stack_alignment_for_call when
6353 outgoing parameter is passed in the stack.
6354 (emit_library_call_value_1): Likewise.
6355 * function.c (locate_and_pad_parm): Don't update
6356 stack_alignment_needed and preferred_stack_boundary.
6358 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
6361 * config/i386/i386-features.c
6362 (dimode_scalar_chain::compute_convert_gain): Replace
6363 mmxsse_to_integer with sse_to_integer.
6364 * config/i386/i386.c (ix86_register_move_cost): Verify that
6365 moves between MMX and non-MMX units require secondary memory.
6366 Correct costs of moves between SSE and integer units.
6367 * config/i386/i386.h (processor_costs): Rename cost of moving
6368 SSE register to integer to sse_to_integer. Rename cost of
6370 2019-06-14 Matt Thomas <matt@3am-software.com>
6371 Matthew Green <mrg@eterna.com.au>
6372 Nick Hudson <skrll@netbsd.org>
6373 Maya Rashish <coypu@sdf.org>
6374 Richard Earnshaw <rearnsha@arm.com>
6376 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
6377 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
6378 * config/arm/netbsd-eabi.h: New file.
6379 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
6381 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
6382 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
6383 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
6384 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
6386 2019-06-14 Richard Biener <rguenther@suse.de>
6388 * tree-loop-distribution.c (classify_partition): Return
6389 whether a reduction appeared in all partitions and do not
6390 stop builtin detection because of this.
6391 (distribute_loop): Sort a non-builtin partition last if
6392 there's a reduction in all partitions and make sure the
6393 partition prevailing as last is not a builtin.
6395 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
6398 * ipa-prop.c (add_to_agg_contents_list): New function.
6399 (clobber_by_agg_contents_list_p): Likewise.
6400 (extract_mem_content): Likewise.
6401 (get_place_in_agg_contents_list): Delete.
6402 (determine_known_aggregate_parts): Renamed from
6403 determine_locally_known_aggregate_parts. New parameter
6406 2019-06-13 Martin Sebor <msebor@redhat.com>
6408 PR tree-optimization/90662
6409 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
6412 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
6415 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
6416 dbase is not TARGET_MEM_REF.
6418 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
6420 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
6422 (and<mode>3): Use gen_extend_insn instead of indirect functions.
6423 Do not generate DImode extends for 32bit targets.
6424 (and->zext post-reload splitter): Use gen_extend_insn
6425 instead of indirect functions.
6426 (anddi->zext pre-reload splitter): New.
6427 (*zext<mode>_doubleword_and): Remove.
6428 (*zext<mode>_doubleword): Ditto.
6429 (*zextsi_doubleword): Dittto.
6431 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
6433 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
6434 Use gen_sub3_insn instead of indirect function.
6435 (ix86_expand_ashl_const): Use gen_add2_insn instead of
6437 (ix86_adjust_counter): Ditto.
6439 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
6440 Lijia He <helijia@linux.ibm.com>
6442 PR tree-optimization/77820
6443 * tree-ssa-threadedge.c
6444 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
6446 (thread_across_edge): Add call to
6447 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
6449 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
6451 * config/darwin-driver.c (validate_macosx_version_min): New.
6452 (darwin_default_min_version): Cleanup and validate supplied version.
6453 (darwin_driver_init): Likewise and push cleaned version into opts.
6455 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
6457 PR tree-optimization/90869
6458 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
6459 converts in MEM_REF referencing decl rather than view converts
6460 from decl type to MEM_REF type.
6462 2019-06-13 Richard Biener <rguenther@suse.de>
6464 PR tree-optimization/90856
6465 * tree-sra.c (build_ref_for_model): Only use
6466 build_reconstructed_reference when address-spaces are the same.
6468 2019-06-13 Jakub Jelinek <jakub@redhat.com>
6470 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
6471 wrap ei variable name in the declaration in ()s.
6472 (nvptx_single): Actually use mode_label variable. Formatting fix.
6474 2019-06-13 Richard Biener <rguenther@suse.de>
6476 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
6477 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
6478 also return the condition stmt.
6479 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
6480 loop we can version and version that, reusing the loop version
6481 created by if-conversion instead of versioning again.
6483 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
6485 * gimple-loop-versioning.cc (prune_loop_conditions): Use
6487 * tree-vrp (value_range_base::may_contain_p): Call into
6489 (value_inside_range): Make private inside value_range_base class.
6490 Take min/max from *this.
6491 (range_includes_p): Remove.
6492 * tree-vrp.h (value_range_base): Add value_inside_range.
6493 (range_includes_p): Remove.
6494 (range_includes_zero_p): Call may_contain_p.
6495 * vr-values.c (compare_range_with_value): Same.
6497 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
6499 * doc/extend.texi (ARC Function Attributes): Update info.
6501 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
6503 PR tree-optimization/89713
6504 * doc/invoke.texi (-ffinite-loops): Document new option.
6505 * common.opt (-ffinite-loops): New option.
6506 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
6507 IFN_GOACC_LOOP calls as necessary.
6508 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
6510 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
6511 IFN_GOACC_LOOP call is not used.
6512 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
6514 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6517 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
6518 compare_type is not with Pmode size, we will create an IV with
6519 Pmode size with truncated use (i.e. converted to the correct type).
6520 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
6521 (vect_iv_limit_for_full_masking): New. Factored out of
6522 vect_set_loop_condition_masked.
6523 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
6524 (vect_iv_limit_for_full_masking): Declare.
6526 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6529 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
6530 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
6531 (get_alias_ptr_type_for_ptr_address): Likewise.
6532 (add_iv_candidate_for_use): Add scaled index candidate if useful.
6533 * tree-ssa-address.c (preferred_mem_scale_factor): New.
6534 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
6537 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6539 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
6541 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
6543 * common/config/pru/pru-common.c: New file.
6544 * config.gcc: Add PRU target.
6545 * config/pru/alu-zext.md: New file.
6546 * config/pru/constraints.md: New file.
6547 * config/pru/predicates.md: New file.
6548 * config/pru/pru-opts.h: New file.
6549 * config/pru/pru-passes.c: New file.
6550 * config/pru/pru-pragma.c: New file.
6551 * config/pru/pru-protos.h: New file.
6552 * config/pru/pru.c: New file.
6553 * config/pru/pru.h: New file.
6554 * config/pru/pru.md: New file.
6555 * config/pru/pru.opt: New file.
6556 * config/pru/t-pru: New file.
6557 * doc/extend.texi: Document PRU pragmas.
6558 * doc/invoke.texi: Document PRU-specific options.
6559 * doc/md.texi: Document PRU asm constraints.
6561 2019-06-12 Martin Sebor <msebor@redhat.com>
6564 * tree-pretty-print.c (dump_mem_ref): New function. Include
6565 MEM_REF type in output when different size than operand.
6566 (dump_generic_node): Move code to dump_mem_ref and call it.
6568 2019-06-12 Martin Sebor <msebor@redhat.com>
6570 PR tree-optimization/90662
6571 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
6574 2019-06-12 Tom de Vries <tdevries@suse.de>
6576 PR tree-optimization/90009
6577 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
6579 2019-06-12 Martin Liska <mliska@suse.cz>
6581 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
6583 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
6584 * mem-stats.h (mem_alloc_description::mem_alloc_description):
6585 Do not sanitize created maps.
6587 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
6589 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
6590 value_range::singleton_p.
6591 * tree-vrp.c (value_range_constant_singleton): Remove.
6592 * tree-vrp.h (value_range_constant_singleton): Remove.
6593 * vr-values.c (vr_values::singleton): Use
6594 value_range::singleton_p.
6596 2019-06-12 Jakub Jelinek <jakub@redhat.com>
6599 * cfgexpand.c (align_local_variable): Add really_expand argument,
6600 don't SET_DECL_ALIGN if it is false.
6601 (add_stack_var): Add really_expand argument, pass it through to
6602 align_local_variable.
6603 (expand_one_stack_var_1): Pass true as really_expand to
6604 align_local_variable.
6605 (expand_one_ssa_partition): Pass true as really_expand to
6607 (expand_one_var): Pass really_expand through to add_stack_var.
6609 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
6611 * config/arm/iterators.md (VABAL): New int iterator.
6612 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
6613 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
6614 UNSPEC_VABAL_U values.
6616 2019-06-12 Martin Liska <mliska@suse.cz>
6618 * value-prof.c (stream_out_histogram_value): Only first value
6621 2019-06-12 Jakub Jelinek <jakub@redhat.com>
6624 * symtab.c (symtab_node::set_section): Allow being called on aliases
6625 as long as they aren't analyzed yet.
6627 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
6629 * config/mips/mips.c (mips_final_postscan_insn): Modify call
6630 to `mips_set_text_contents_type' to indicate whether a
6631 non-debug insn follows.
6633 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
6635 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
6636 enabling -mpcrel by default.
6637 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
6638 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
6639 that the test against -mcpu=future is done first. Then test if
6640 -mprefixed-addr is on for -mpcrel.
6641 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
6643 2019-06-11 Jakub Jelinek <jakub@redhat.com>
6646 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
6649 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
6651 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
6653 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
6655 PR c++/90449 - add -Winaccessible-base option.
6656 * doc/invoke.texi (Winaccessible-base): Document.
6658 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
6660 PR tree-optimization/62041
6661 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
6663 2019-06-11 Jason Merrill <jason@redhat.com>
6665 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
6666 * tree.c (get_tree_code_name): Likewise.
6667 * print-tree.c (print_node): Only briefly print a node with an
6670 2019-06-11 Jakub Jelinek <jakub@redhat.com>
6673 * trans-mem.c (tm_memopt_compute_available): Add assertion
6674 that blocks is not empty. Formatting fix.
6676 2019-06-11 Martin Liska <mliska@suse.cz>
6679 * hash-table.h: Extend create_gcc, add one parameter
6680 that is passed into hash_table::hash_table.
6682 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
6684 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
6686 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
6687 Emit clobber also for non-sse operations.
6688 (ix86_split_fp_absneg_operator): New function.
6689 * config/i386/i386.md (SSEMODEF): New mode iterator.
6690 (ssevecmodef): New mode attribute.
6691 (<code>tf2): Use absneg code iterator.
6692 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
6693 Add three-operand AVX alternatives.
6694 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
6695 Use absneg code iterator and X87MODEF mode iterator.
6696 (absneg fp_reg non-sse splitter): Call absneg code iterator
6697 and X87MODEF mode iterator.
6698 (absneg general_reg non-sse splitter): Use absneg code iterator
6699 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
6700 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
6701 code iterator. Add three-operand AVX alternative.
6702 (absneg sse_reg splitter): Use absneg code iterator
6703 and SSEMODEF mode iterator. Handle AVX operands.
6704 (absneg fp_reg splitter): Use absneg code iterator
6705 and MODEF mode iterator.
6706 (absneg general_reg splitter): Merge splitters using MODEF mode
6707 iterator. Use absneg code iterator. Call
6708 ix86_split_fp_absneg_operator.
6709 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
6710 Do not enable for non-sse modes before reload.
6713 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
6714 ssevecmodef mode attribute instaed of CSGNVMODE.
6715 (copysign<mode>3_const): Ditto.
6716 (copysign<mode>3_var): Ditto.
6717 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
6718 Use absneg code iterator. Simplify code using std::swap.
6719 * config/i386/predicates.md (absneg_operator): Remove.
6721 2019-06-10 Martin Sebor <msebor@redhat.com>
6723 * gimple-fold.c (get_range_strlen): Update comment that didn't
6724 make it into r267503 or related commits.
6726 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
6728 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
6729 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
6731 2019-06-10 Jakub Jelinek <jakub@redhat.com>
6733 * tree.def (OMP_SCAN): New tree code.
6734 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
6735 OMP_CLAUSE_EXCLUSIVE.
6736 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
6737 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
6738 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
6739 OMP_CLAUSE_{IN,EX}CLUSIVE.
6740 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
6741 * tree-nested.c (convert_nonlocal_reference_stmt,
6742 convert_local_reference_stmt, convert_gimple_call): Handle
6744 * tree-pretty-print.c (dump_omp_clause): Handle
6745 OMP_CLAUSE_{IN,EX}CLUSIVE.
6746 (dump_generic_node): Handle OMP_SCAN.
6747 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
6748 * gimple.h (gomp_scan): New type.
6749 (is_a_helper <gomp_scan *>::test,
6750 is_a_helper <const gomp_scan *>::test): New templates.
6751 (gimple_build_omp_scan): Declare.
6752 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
6753 gimple_omp_scan_set_clauses): New inline functions.
6754 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
6755 * gimple.c (gimple_build_omp_scan): New function.
6756 (gimple_copy): Handle GIMPLE_OMP_SCAN.
6757 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
6758 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
6759 GIMPLE_OMP_TASKGROUP.
6760 (dump_gimple_omp_scan): New function.
6761 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
6762 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
6763 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
6764 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
6765 (is_gimple_stmt): Handle OMP_SCAN.
6766 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
6767 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
6768 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
6769 mentioned in nested #pragma omp scan. Handle
6770 OMP_CLAUSE_{IN,EX}CLUSIVE.
6771 (gimplify_expr): Handle OMP_SCAN.
6772 * omp-low.c (check_omp_nesting_restrictions): For parent context,
6773 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
6775 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
6778 2019-06-10 Martin Liska <mliska@suse.cz>
6780 * ipa-cp.c (ignore_edge_p): New function.
6781 (build_toporder_info): Use it.
6782 * ipa-inline.c (ignore_edge_p): New function.
6783 (inline_small_functions): Use it.
6784 * ipa-pure-const.c (ignore_edge_for_nothrow):
6785 Verify opt_for_fn for caller and callee.
6786 (ignore_edge_for_pure_const): Likewise.
6787 * ipa-reference.c (ignore_edge_p): Extend to check
6789 * ipa-utils.c (searchc): Refactor.
6790 * ipa-utils.h: Fix coding style.
6792 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
6794 * config/arc/arc.c (arc_rtx_costs): Update costs.
6796 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
6798 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
6799 (arc_split_ior): Likewise.
6800 (arc_check_mov_const): Likewise.
6801 (arc_split_mov_const): Likewise.
6802 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
6803 (arc_rtx_costs): Replace check Crr with Cax constraint.
6804 (prepare_move_operands): Cleanup, remove unused code.
6805 (arc_split_ior): New function.
6806 (arc_check_ior_const): Likewise.
6807 (arc_split_mov_const): Likewise.
6808 (arc_check_mov_const): Likewise.
6809 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
6810 in define_insn_and_split pattern.
6812 (mulsi3_v2): Add new matching variant.
6813 (andsi3_i): Cleanup pattern.
6814 (rotrsi3_cnt1): Update pattern.
6815 (rotrsi3_cnt8): New pattern.
6816 (ashlsi2_cnt8): Likewise.
6817 (ashlsi2_cnt16): Likewise.
6818 * config/arc/constraints.md (C0p): Update constraint.
6823 2019-06-10 Martin Liska <mliska@suse.cz>
6825 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
6826 Update coding style.
6827 (sem_item_optimizer::dump_cong_classes):
6828 Print how many items are in a non-singular class. Improve
6831 2019-06-10 Martin Liska <mliska@suse.cz>
6833 * value-prof.c (dump_histogram_value): Change dump format.
6834 (gimple_mod_subtract_transform): Remove legacy comment.
6836 2019-06-10 Martin Liska <mliska@suse.cz>
6838 * value-prof.c (dump_histogram_value): Print histogram values
6841 2019-06-10 Martin Liska <mliska@suse.cz>
6843 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
6844 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
6845 * ipa-profile.c (ipa_profile_generate_summary):
6846 Use get_most_common_single_value.
6847 * tree-profile.c (gimple_init_gcov_profiler):
6848 Instrument with __gcov_one_value_profiler_v2
6849 and __gcov_indirect_call_profiler_v4.
6850 * value-prof.c (dump_histogram_value):
6851 Print all values for HIST_TYPE_SINGLE_VALUE.
6852 (stream_out_histogram_value): Update assert for
6854 (stream_in_histogram_value): Set number of
6855 counters for HIST_TYPE_SINGLE_VALUE.
6856 (get_most_common_single_value): New.
6857 (gimple_divmod_fixed_value_transform):
6858 Use get_most_common_single_value.
6859 (gimple_ic_transform): Likewise.
6860 (gimple_stringops_transform): Likewise.
6861 (gimple_find_values_to_profile): Set number
6862 of counters for HIST_TYPE_SINGLE_VALUE.
6863 * value-prof.h (get_most_common_single_value): New.
6865 2019-06-10 Martin Liska <mliska@suse.cz>
6867 * hash-map.h: Pass default value to hash_table ctor.
6868 * hash-table.h: Add default value to call of a ctor.
6870 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
6872 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
6873 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
6875 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
6878 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
6879 Call pa_output_function_label.
6880 (TARGET_ASM_FUNCTION_PROLOGUE): define.
6881 * config/pa/pa-protos.h (pa_output_function_label): Declare.
6882 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
6884 (pa_linux_output_function_prologue): Declare.
6885 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
6886 (pa_output_function_label): New.
6887 (pa_output_function_prologue): Revise to use pa_output_function_label.
6888 (pa_linux_output_function_prologue): New.
6889 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
6891 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
6893 * tree-vrp.h (value_range_base::intersect): New.
6894 (value_range::intersect_helper): Move from here...
6895 (value_range_base::intersect_helper): ...to here.
6896 * tree-vrp.c (value_range::intersect_helper): Rename to...
6897 (value_range_base::intersect_helper): ...this, and rewrite to
6898 return a value instead of modifying THIS in place.
6899 Also, move equivalence handling...
6900 (value_range::intersect): ...here, while calling intersect_helper.
6901 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
6903 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
6905 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
6907 2019-06-07 Jakub Jelinek <jakub@redhat.com>
6909 * Makefile.in (genprogerr): Add condmd.
6910 (genprog): Remove it here.
6912 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
6914 * doc/invoke.texi (AMD GCN Options): Add gfx906.
6916 2019-06-07 Richard Biener <rguenther@suse.de>
6919 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
6920 that appear after user labels.
6922 2019-06-07 Martin Liska <mliska@suse.cz>
6924 * cselib.c (cselib_init): Disable hash table
6926 * hash-set.h: Pass new default argument to m_table.
6927 * hash-table.c: Add global variable with hash table
6929 * hash-table.h (Allocator>::hash_table): Add new argument
6931 (hashtab_chk_error): New.
6932 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
6933 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
6934 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
6936 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
6938 * common.opt (flto-odr-type-merging): Ignore.
6939 * invoke.texi (-flto-odr-type-merging): Remove.
6940 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
6941 (can_be_vtable_hashed_p): Remove.
6942 (hash_odr_vtable): Remove.
6943 (odr_vtable_hasher::hash): Remove.
6944 (types_same_for_odr): Remove.
6945 (types_odr_comparable): Remove.
6946 (odr_vtable_hasher::equal): Remove.
6947 (odr_vtable_hash_type, odr_vtable_hash): Remove.
6948 (add_type_duplicate): Do not synchronize vtable and name hashtables.
6949 (get_odr_type): Do not use vtable hash.
6950 (dump_odr_type): Remove commented out code.
6951 (build_type_inheritance_graph): Do not allocate vtable hash.
6952 (rebuild_type_inheritance_graph): Do not delete vtable hash.
6953 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
6954 (odr_type_p): Likewise.
6955 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
6958 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
6960 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
6961 immediately after same_types_for_tbaa_p returns -1 and continue
6962 looking for possible exact match; if matching types are arrays
6963 watch for partial overlaps.
6964 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
6965 (indirect_refs_may_alias_p): Do type based disambiguation first;
6968 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
6970 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
6972 2019-06-07 Martin Liska <mliska@suse.cz>
6974 * doc/invoke.texi: Remove param.
6975 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
6977 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
6978 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
6979 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
6980 * profile.c (instrument_values): Remove
6981 HIST_TYPE_INDIR_CALL_TOPN.
6982 * tree-profile.c (init_ic_make_global_vars):
6983 Always build __gcov_indirect_call only.
6984 (gimple_init_gcov_profiler): Remove usage
6985 of PARAM_INDIR_CALL_TOPN_PROFILE.
6986 (gimple_gen_ic_profiler): Likewise.
6987 * value-prof.c (dump_histogram_value): Likewise.
6988 (stream_in_histogram_value): Likewise.
6989 (gimple_indirect_call_to_profile): Likewise.
6990 (gimple_find_values_to_profile): Likewise.
6991 * value-prof.h (enum hist_type): Likewise.
6993 2019-06-07 Martin Liska <mliska@suse.cz>
6995 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
6998 2019-06-07 Martin Liska <mliska@suse.cz>
7000 PR tree-optimization/78902
7001 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
7002 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
7003 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
7004 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
7005 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
7006 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
7007 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
7008 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
7009 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
7010 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
7011 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
7012 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
7013 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
7015 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
7016 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
7017 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
7018 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
7019 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
7020 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
7021 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
7022 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
7023 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
7024 warn_unused_result attribute.
7025 (BUILT_IN_STRDUP): Likewise.
7026 (BUILT_IN_STRNDUP): Likewise.
7027 (BUILT_IN_ALLOCA): Likewise.
7028 (BUILT_IN_CALLOC): Likewise.
7029 (BUILT_IN_MALLOC): Likewise.
7030 (BUILT_IN_REALLOC): Likewise.
7032 2019-06-06 Jim Wilson <jimw@sifive.com>
7035 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
7036 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
7037 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
7039 2019-06-06 Martin Sebor <msebor@redhat.com>
7041 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
7042 (handle_builtin_malloc): Remove trailing spaces.
7043 (handle_builtin_memset): Same.
7044 (handle_builtin_memcmp): Same.
7045 (compute_string_length): Same.
7046 (determine_min_objsize): Same.
7047 (handle_builtin_string_cmp): Same.
7048 (handle_char_store): Same. Break up excessively long line.
7050 2019-06-06 Martin Jambor <mjambor@suse.cz>
7052 * tree-sra.c (build_reconstructed_reference): Drop the alignment
7055 2019-06-06 Martin Jambor <mjambor@suse.cz>
7057 * tree-sra.c (struct access): New field grp_same_access_path.
7058 (dump_access): Dump it.
7059 (build_reconstructed_reference): New function.
7060 (build_ref_for_model): Use it if possible.
7061 (path_comparable_for_same_access): New function.
7062 (same_access_path_p): Likewise.
7063 (sort_and_splice_var_accesses): Set the new flag.
7064 (analyze_access_subtree): Likewise.
7065 (propagate_subaccesses_across_link): Propagate zero value of the new
7066 flag down the access tree.
7068 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
7070 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
7071 * config/gcn/gcn.opt (gpu_type): Add gfx906.
7072 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
7073 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
7076 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7078 PR tree-optimization/90332
7079 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
7080 Handle VALS containing two vectors.
7081 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
7083 (@aarch64_combinez<mode>): ... This.
7084 (*aarch64_combinez_be<mode>): Rename to...
7085 (@aarch64_combinez_be<mode>): ... This.
7086 (vec_init<mode><Vhalf>): New define_expand.
7087 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
7089 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7091 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
7092 library functions only when not optimizing for size.
7093 (ashlsi3): Likewise.
7094 (ashrhi3): Likewise.
7095 (ashrsi3): Likewise.
7096 (lshrhi3): Likewise.
7097 (lshrsi3): Likewise.
7099 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
7101 PR rtl-optimization/88751
7102 * ira.c (ira): Use the number of the actually referenced registers
7103 when calculating the threshold.
7105 2019-06-06 Jakub Jelinek <jakub@redhat.com>
7107 * configure: Regenerate.
7109 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7111 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
7112 register if it is in memory, so the shift can be emulated with a rotate
7114 (ashrhi3): Likewise.
7115 (lshrhi3): Likewise.
7117 2019-06-06 Martin Liska <mliska@suse.cz>
7119 PR tree-optimization/87954
7120 * match.pd: Simplify mult where both arguments are 0 or 1.
7122 2019-06-06 Richard Biener <rguenther@suse.de>
7124 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
7125 put equivalences on UNDEFINED ranges.
7126 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
7127 Make sure to drop defs of stmts added during simplification
7130 2019-06-06 Richard Biener <rguenther@suse.de>
7132 * tree-ssa-structalias.c: Include tree-cfg.h.
7133 (make_heapvar): Do not make heap vars artificial.
7134 (find_func_aliases_for_builtin_call): Handle stack allocation
7136 (find_func_aliases): Delay processing of simple enough returns
7138 (set_uids_in_ptset): Adjust.
7139 (find_what_var_points_to): Likewise.
7140 (solve_constraints): Do not dump points-to sets here.
7141 (compute_points_to_sets): Post-process return statements,
7142 amending the escaped solution. Dump points-to sets afterwards.
7143 (ipa_pta_execute): Dump points-to sets.
7145 2019-06-06 Martin Liska <mliska@suse.cz>
7148 * doc/install.texi: Fix HTML headers and
7149 titles for 'Installing GCC' pages.
7151 2019-06-06 Martin Liska <mliska@suse.cz>
7153 * ipa-icf-gimple.h (dump_message_1): Remove.
7154 (dump_message): Likewise.
7155 (return_false_with_message_1): Print also file.
7156 (return_false_with_msg): Likewise.
7157 (return_with_result): Likewise.
7158 (return_with_debug): Likewise.
7159 * ipa-icf.c (sem_function::equals_private): Remove call
7162 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
7164 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
7165 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
7166 memory operand for it.
7167 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
7169 2019-06-05 Martin Sebor <msebor@redhat.com>
7171 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
7172 Adjust quoting and hyphenation.
7173 * convert.c (convert_to_real_1): Same.
7174 * gcc.c (driver_wrong_lang_callback): Same.
7175 (driver::handle_unrecognized_options): Same.
7176 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
7177 * opts-common.c (cmdline_handle_error): Same.
7178 (read_cmdline_option): Same.
7179 * opts-global.c (complain_wrong_lang): Same.
7180 (print_ignored_options): Same.
7181 (handle_common_deferred_options): Same.
7182 * pretty-print.h: Same.
7183 * print-rtl.c (debug_bb_n_slim): Same.
7184 * sched-rgn.c (make_pass_sched_fusion): Same.
7185 * tree-cfg.c (verify_gimple_assign_unary): Same.
7186 (verify_gimple_label): Same.
7187 * tree-ssa-operands.c (verify_ssa_operands): Same.
7188 * varasm.c (do_assemble_alias): Same.
7189 (assemble_alias): Same.
7191 2019-06-05 Richard Henderson <rth@twiddle.net>
7193 * config/alpha/alpha.c (direct_return): Move down after
7194 struct machine_function definition; use saved frame_size;
7196 (struct machine_function): Add sa_mask, sa_size, frame_size.
7197 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
7198 (alpha_compute_frame_layout): ... new function.
7199 (TARGET_COMPUTE_FRAME_LAYOUT): New.
7200 (alpha_initial_elimination_offset): Use saved sa_size.
7201 (alpha_vms_initial_elimination_offset): Likewise.
7202 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
7203 (alpha_expand_prologue): Use saved frame data. Merge integer
7204 and fp register save loops.
7205 (alpha_expand_epilogue): Likewise.
7206 (alpha_start_function): Use saved frame data.
7207 * config/alpha/alpha-protos.h (direct_return): Update.
7208 (alpha_sa_size): Remove.
7210 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
7212 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
7213 multiplication by a power-of-two value.
7214 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
7215 and turn the modulo operation into a masking operation.
7217 2019-06-05 Jakub Jelinek <jakub@redhat.com>
7220 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
7221 with VOIDmode inner operands.
7223 2019-06-05 Richard Biener <rguenther@suse.de>
7226 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
7227 turn an expression graph into a tree.
7229 2019-06-05 Jakub Jelinek <jakub@redhat.com>
7231 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
7233 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
7234 treat it like explicit monotonic schedule modifier.
7235 (expand_omp_for): Initialize has_lastprivate_conditional.
7236 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
7239 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
7240 references, lookup in in hash map MEM_REF operand instead of the
7242 (lower_omp_1): When looking for lastprivate conditional assignments,
7243 handle MEM_REFs with REFERENCE_TYPE operands.
7245 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
7246 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
7247 and references a VLA. Handle references to non-VLAs if is_simd
7248 all privatization clauses like reductions.
7249 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
7250 If omp_is_reference, use always omp simd arrays and set
7251 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
7252 fails, emit reference initialization.
7254 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
7257 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
7258 _mm_mask_fpclass_sd_mask): New intrinsics.
7259 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
7260 * config/i386/i386-builtin.def
7261 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
7263 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
7264 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
7265 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
7266 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
7267 case QI_FTYPE_V2SF_INT): Ditto.
7268 * config/i386/sse.md
7269 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
7270 Extended to insnstructions with mask operands.
7272 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
7274 * config/rs6000/constraints.md (define_register_constraint "wp"):
7276 (define_register_constraint "wq"): Delete.
7277 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7278 (rs6000_init_hard_regno_mode_ok): Adjust.
7279 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7280 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
7281 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
7282 (define_mode_attr VSa): Delete.
7283 (define_mode_attr VSisa): New.
7284 (rest of file): Adjust.
7285 * doc/md.texi (Machine Constraints): Adjust.
7287 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
7289 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
7290 (define_attr "enabled"): Handle those new isa values.
7292 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
7294 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
7295 (define_mode_attr VSr5): Delete.
7296 (define_mode_attr VStype_sqrt): Delete.
7297 (define_mode_iterator VSX_SPDP): Delete.
7298 (define_mode_attr VS_spdp_res): Delete.
7299 (define_mode_attr VS_spdp_insn): Delete.
7300 (define_mode_attr VS_spdp_type): Delete.
7301 (*vsx_sqrt<mode>2): Adjust.
7302 (vsx_<VS_spdp_insn>): Delete, split to...
7303 (vsx_xscvdpsp): ... this. New. And...
7304 (vsx_xvcvspdp): ... this. New. And...
7305 (vsx_xvcvdpsp): ... this. New.
7307 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
7309 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
7311 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
7312 (rest of file): Adjust.
7314 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
7316 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
7317 (vsx_extract_<mode>_var): Ditto.
7319 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
7321 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
7324 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
7326 * config/rs6000/constraints.md (define_register_constraint "ww"):
7328 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7329 (rs6000_init_hard_regno_mode_ok): Adjust.
7330 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7331 RS6000_CONSTRAINT_ww.
7332 * config/rs6000/rs6000.md: Adjust.
7333 * config/rs6000/vsx.md: Adjust.
7334 * doc/md.texi (Machine Constraints): Adjust.
7336 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
7338 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
7339 (define_mode_attr sd): New.
7340 (define_mode_attr s): New.
7341 (define_mode_attr Ftrad): Delete.
7342 (define_mode_attr Fvsx): Delete.
7343 (define_mode_attr Fs): Delete.
7344 (rest of file): Use the new mode attributes.
7345 * config.rs6000/vsx.md: Use the new mode attributes.
7347 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
7349 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
7352 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
7354 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
7355 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
7356 used with VSX_B, VSX_D, or VSX_F, with just "wa".
7358 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
7361 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
7362 C++ with strict ANSI requirements.
7364 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
7366 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
7367 computations when step is 1.
7369 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
7371 * config/rs6000/constraints.md (define_register_constraint "wf"):
7373 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7374 (rs6000_init_hard_regno_mode_ok): Adjust.
7375 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7376 RS6000_CONSTRAINT_wf.
7377 * config/rs6000/rs6000.md: Adjust.
7378 * config/rs6000/vsx.md: Adjust.
7379 * doc/md.texi (Machine Constraints): Adjust.
7381 2019-06-04 Andrew Pinski <apinski@marvell.com>
7383 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
7386 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
7388 * config/rs6000/constraints.md (define_register_constraint "wd"):
7390 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7391 (rs6000_init_hard_regno_mode_ok): Adjust.
7392 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7393 RS6000_CONSTRAINT_wd.
7394 * config/rs6000/rs6000.md: Adjust.
7395 * config/rs6000/vsx.md: Adjust.
7396 * doc/md.texi (Machine Constraints): Adjust.
7398 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
7400 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
7401 (rest of file): Adjust.
7403 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
7405 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
7406 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
7407 (vsx_splat_<mode>_reg): Adjust.
7409 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
7411 * config/rs6000/constraints.md (define_register_constraint "ws"):
7413 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7414 (rs6000_init_hard_regno_mode_ok): Adjust.
7415 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7416 RS6000_CONSTRAINT_ws.
7417 * config/rs6000/rs6000.md: Adjust.
7418 * config/rs6000/vsx.md: Adjust.
7419 * doc/md.texi (Machine Constraints): Adjust.
7421 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
7423 * config/rs6000/constraints.md (define_register_constraint "wv"):
7425 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7426 (rs6000_init_hard_regno_mode_ok): Adjust.
7427 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7428 RS6000_CONSTRAINT_wv.
7429 * config/rs6000/rs6000.md: Adjust.
7430 * config/rs6000/vsx.md: Adjust.
7431 * doc/md.texi (Machine Constraints): Adjust.
7433 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
7435 * config/rs6000/constraints.md (define_register_constraint "wi"):
7437 (define_register_constraint "wt"): Delete.
7438 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7439 (rs6000_init_hard_regno_mode_ok): Adjust.
7440 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7441 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
7442 * config/rs6000/rs6000.md: Adjust.
7443 * config/rs6000/vsx.md: Adjust.
7444 * doc/md.texi (Machine Constraints): Adjust.
7446 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
7448 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
7450 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
7451 default_elf_asm_output_external.
7453 2019-06-04 Martin Liska <mliska@suse.cz>
7455 * ipa-icf.c (INCLUDE_LIST): Remove.
7456 (sem_item_optimizer::execute): Remove call to init_wpa.
7457 * ipa-icf.h (init_wpa): Remove.
7459 2019-06-04 Jakub Jelinek <jakub@redhat.com>
7461 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
7462 conditional on combined for simd.
7463 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
7465 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
7466 constructs, don't remove lastprivate_conditional_map, but instead set
7467 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
7468 to parent construct temporaries.
7469 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
7470 like !ctx->lastprivate_conditional_map.
7471 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
7472 use up->outer context instead of up.
7473 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
7474 gimple_omp_for_combined_p.
7475 (expand_omp_for_static_nochunk): Likewise.
7476 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
7477 probably moved over into expand_omp_for_generic rather than being copied
7480 2019-06-04 Martin Liska <mliska@suse.cz>
7482 * value-prof.c (dump_histogram_value): Fix typo.
7483 (gimple_mod_subtract_transform): Likewise.
7485 2019-06-04 Richard Biener <rguenther@suse.de>
7488 * tree-chrec.c (chrec_contains_symbols): Add to visited.
7489 (tree_contains_chrecs): Likewise.
7490 (chrec_contains_symbols_defined_in_loop): Move here and avoid
7491 exponential behaivor from ...
7492 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
7494 (expression_expensive_p): Avoid exponential behavior and compute
7495 expanded size, rejecting any expansion.
7496 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
7497 (idx_contains_abnormal_ssa_name_p): Likewise.
7498 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
7499 (contains_abnormal_ssa_name_p): Simplify and use
7500 walk_tree_without_duplicates.
7502 2019-06-04 Richard Biener <rguenther@suse.de>
7504 PR tree-optimization/90738
7506 2019-06-03 Richard Biener <rguenther@suse.de>
7508 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
7509 full reference tree and record in ref->ref.
7510 (vn_reference_lookup_3): Pass in original ref to
7511 ao_ref_init_from_vn_reference.
7512 (vn_reference_lookup): Likewise.
7513 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
7514 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
7515 Handle non-decl bases in the original reference.
7517 2019-06-04 Martin Liska <mliska@suse.cz>
7519 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
7520 number of references.
7521 (sem_item_optimizer::do_congruence_step):
7522 (sem_item_optimizer::worklist_push): Dump how references
7524 (sem_item_optimizer::worklist_pop): Use heap.
7525 (sem_item_optimizer::process_cong_reduction): Likewise.
7526 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
7528 2019-06-04 Martin Liska <mliska@suse.cz>
7530 * ipa-icf.h (struct sem_usage_pair_hash): New.
7531 (sem_usage_pair_hash::hash): Likewise.
7532 (sem_usage_pair_hash::equal): Likewise.
7533 (struct sem_usage_hash): Likewise.
7534 * ipa-icf.c (sem_item::sem_item): Initialize
7535 referenced_by_count.
7536 (sem_item::add_reference): Register a reference
7537 in ref_map and not in target->usages.
7538 (sem_item::setup): Remove initialization of
7540 (sem_item::~sem_item): Remove usage of dead vectors.
7541 (sem_item::dump): Remove dump of references.
7542 (sem_item_optimizer::sem_item_optimizer): Initialize
7544 (sem_item_optimizer::read_section): Remove useless
7546 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
7547 (sem_item_optimizer::build_graph): Pass m_references
7549 (sem_item_optimizer::verify_classes): Remove usage of dead
7551 (sem_item_optimizer::traverse_congruence_split): Return true
7552 when a class is split.
7553 (sem_item_optimizer::do_congruence_step_for_index): Use
7554 hash_map for look up of (sem_item *, index). That brings
7555 significant speed up.
7556 (sem_item_optimizer::do_congruence_step): Return true
7557 when a split is done.
7558 (congruence_class::is_class_used): Use referenced_by_count.
7560 2019-06-04 Alan Modra <amodra@gmail.com>
7563 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
7566 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
7568 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
7569 * config/rs6000/rs6000.c (direct_move_p): Adjust.
7570 (rs6000_secondary_reload_simple_move): Adjust.
7571 (rs6000_opt_masks): Neuter the "mfpgpr" option.
7572 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
7573 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
7576 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
7577 (floatunssi<mode>2_lfiwzx): Adjust.
7578 (fix_trunc<mode>si2_stfiwx): Adjust.
7579 (fixuns_trunc<mode>si2_stfiwx): Adjust.
7580 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
7581 (mfpgpr): Mark as deprecated.
7582 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
7583 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
7584 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
7586 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
7588 * config/rs6000/constraints.md (define_register_constraint "wg"):
7590 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7591 RS6000_CONSTRAINT_wg.
7592 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7593 (rs6000_init_hard_regno_mode_ok): Adjust.
7594 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
7595 Delete "wg" alternatives.
7596 * doc/md.texi (Machine Constraints): Adjust.
7598 2019-06-03 Alan Modra <amodra@gmail.com>
7600 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
7601 (get_uncond_jump_length): Assert length less than INT_MAX and
7604 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
7607 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
7609 (expand_builtin_nonlocal_goto): Likewise.
7611 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
7613 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
7614 (aarch64_asm_output_external): Declare.
7615 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
7616 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
7617 (aarch64_asm_output_alias): New.
7618 (aarch64_asm_output_external): New.
7619 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
7620 (ASM_OUTPUT_EXTERNAL): Define.
7622 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
7623 * tree-vrp.h (value_range_base::nonzero_p): New.
7624 (value_range_base::set_nonnull): Rename to...
7625 (value_range_base::set_nonzero): ...this.
7626 (value_range_base::set_null): Rename to...
7627 (value_range_base::set_zero): ...this.
7628 (value_range::set_nonnull): Remove.
7629 (value_range::set_null): Remove.
7630 * tree-vrp.c (range_is_null): Remove.
7631 (range_is_nonnull): Remove.
7632 (extract_range_from_binary_expr): Use value_range_base::*zero_p
7633 instead of range_is_*null.
7634 (extract_range_from_unary_expr): Same.
7635 (value_range_base::set_nonnull): Rename to...
7636 (value_range_base::set_nonzero): ...this.
7637 (value_range::set_nonnull): Remove.
7638 (value_range_base::set_null): Rename to...
7639 (value_range_base::set_zero): ...this.
7640 (value_range::set_null): Remove.
7641 (extract_range_from_binary_expr): Rename set_*null uses to
7643 (extract_range_from_unary_expr): Same.
7644 (union_helper): Same.
7645 * vr-values.c (get_value_range): Use set_*zero instead of
7647 (vr_values::extract_range_from_binary_expr): Same.
7648 (vr_values::extract_range_basic): Same.
7650 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
7653 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
7655 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7657 * config/aarch64/iterators.md (MAX_OPP): New code attr.
7658 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
7660 (aarch64_<su>abd<mode>_3): ... This.
7661 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
7663 2019-06-03 Richard Biener <rguenther@suse.de>
7665 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
7666 full reference tree and record in ref->ref.
7667 (vn_reference_lookup_3): Pass in original ref to
7668 ao_ref_init_from_vn_reference.
7669 (vn_reference_lookup): Likewise.
7670 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
7671 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
7672 Handle non-decl bases in the original reference.
7674 2019-06-03 Martin Liska <mliska@suse.cz>
7676 * doc/generic.texi: Remove Java Trees.
7678 2019-06-03 Martin Liska <mliska@suse.cz>
7680 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
7681 returns 0 when operands are equal.
7683 2019-06-03 Richard Biener <rguenther@suse.de>
7685 PR tree-optimization/90716
7686 * tree-loop-distribution.c (destroy_loop): Process blocks in
7689 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7692 * vector-builder.h (vector_builder::count_dups): New method.
7693 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
7695 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
7696 (vec_init<mode><Vel>): New pattern.
7697 * config/aarch64/aarch64.c (emit_insr): New function.
7698 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
7699 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
7700 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
7701 (aarch64_sve_expand_vector_init): Define two overloaded functions.
7703 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
7705 PR tree-optimization/90681
7706 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
7707 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
7708 special case for SLP, but fail on non-groupped loads.
7710 2019-06-03 Martin Liska <mliska@suse.cz>
7712 * cfg.c (debug): Use TDF_DETAILS for debug and
7713 print edge info only once.
7715 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
7718 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
7720 2019-06-01 Martin Sebor <msebor@redhat.com>
7723 * tree-pretty-print.c (dump_generic_node): Add parentheses.
7725 2019-05-31 Jan Hubicka <jh@suse.cz>
7727 * alias.c: Include ipa-utils.h.
7728 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
7729 * ipa-devirt.c (prevailing_odr_type): New.
7730 * ipa-utils.h (previaling_odr_type): Declare.
7732 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
7733 Hongtao Liu <hongtao.liu@intel.com>
7736 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
7737 NOTE_INSN_DELETED_LABEL check.
7739 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
7740 Robert Suchanek <robert.suchanek@mips.com>
7742 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
7743 and 3rd operands of the fmadd/fmsub/maddv builtin.
7745 2019-05-31 Jakub Jelinek <jakub@redhat.com>
7747 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
7748 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
7749 on OMP_SIMD if not nested inside of worksharing loop that also has
7750 lastprivate conditional clause for the same decl.
7751 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
7752 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
7754 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
7756 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
7758 (lower_lastprivate_clauses): Likewise.
7759 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
7760 calling lower_rec_input_clauses.
7761 (lower_omp_for): Likewise.
7762 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
7763 clause on simd construct.
7764 * omp-expand.c (expand_omp_simd): Initialize cond_var if
7765 OMP_CLAUSE__CONDTEMP_ clause is present.
7767 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
7770 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
7773 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
7774 TEX_D32, TEX_D64 or TEX_D128.
7776 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
7778 * match.pd (~(vec?cst1:cst2)): New transformation.
7780 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
7782 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
7783 ((size_t)(A /[ex] B) CMP C): New transformation.
7785 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
7787 * doc/md.texi: Document define_insn_and_rewrite.
7788 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
7789 * gensupport.c (queue_elem): Update comment.
7790 (replace_operands_with_dups): New function.
7791 (gen_rewrite_sequence): Likewise.
7792 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
7793 * read-rtl.c (apply_subst_iterator): Likewise.
7794 (add_condition_to_rtx, named_rtx_p): Likewise.
7795 (rtx_reader::read_rtx_operand): Likewise.
7796 * config/aarch64/aarch64-sve.md
7797 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
7798 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
7799 define_insn_and_rewrite.
7800 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
7801 Remove separate define_split.
7803 2019-05-31 Jan Hubicka <jh@suse.cz>
7805 * tree-ssa-alias.c (type_has_components_p): New function.
7806 (aliasing_component_refs_p): Use it.
7808 2019-05-31 Martin Liska <mliska@suse.cz>
7810 * gdbhooks.py: Add const_tree to TreePrinter.
7812 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
7815 * common.opt (feliminate-unused-debug-symbols): Enable by default.
7816 * doc/invoke.texi (Debugging Options): Document new default of
7817 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
7819 2019-05-31 Jakub Jelinek <jakub@redhat.com>
7821 PR tree-optimization/90671
7822 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
7823 template_block used to be empty on the first call, don't use
7824 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
7825 seq with bb_seq and set it with set_bb_seq.
7827 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
7829 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
7831 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
7832 Michael Meissner <meissner@linux.ibm.com>
7834 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
7835 (prefixed_mem_operand): Likewise.
7836 (non_prefixed_mem_operand): Likewise.
7837 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
7839 * config/rs6000/rs6000.c (print_operand_address): Handle
7840 PC-relative addresses.
7841 (mode_supports_prefixed_address_p): New function.
7842 (rs6000_prefixed_address): New function.
7843 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
7844 (SYMBOL_REF_PCREL_P): Likewise.
7846 2019-05-30 Jakub Jelinek <jakub@redhat.com>
7848 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
7849 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
7850 (gimplify_omp_for): If worksharing loop with lastprivate conditional
7851 is nested inside of parallel region, add _condtemp_ clause to both.
7852 * tree-nested.c (convert_nonlocal_omp_clauses,
7853 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
7855 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
7857 * omp-general.c (omp_extract_for_data): Compute it.
7858 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
7859 (lower_rec_input_clauses): Likewise.
7860 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
7861 clause is already present, just add one further one after it.
7862 (lower_lastprivate_clauses): Handle cond_ptr with array type.
7863 (lower_send_shared_vars): Clear _condtemp_ vars.
7864 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
7865 or section or taskgroup.
7866 * omp-expand.c (determine_parallel_type): Disallow combining only if
7867 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
7868 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
7869 (expand_omp_for_generic, expand_omp_for_static_nochunk,
7870 expand_omp_for_static_chunk, expand_omp_for): Use
7871 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
7872 determine if a special set of API routines are needed and if condtemp
7873 needs to be initialized, while always initialize cond_var if
7874 fd->lastprivate_conditional is non-zero.
7876 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
7877 Michael Meissner <meissner@linux.ibm.com>
7879 * config/rs6000/constraints.md (eI): New constraint.
7880 * config/rs6000/predicates.md (cint34_operand): New predicate.
7881 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
7882 (SIGNED_34BIT_OFFSET_P): Likewise.
7883 * doc/md.texi (eI): Document constraint.
7885 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
7887 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
7889 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
7890 Michael Meissner <meissner@linux.ibm.com>
7892 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
7893 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
7894 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
7895 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
7896 (OTHER_FUTURE_MASKS): Likewise.
7897 (POWERPC_MASKS): Likewise.
7898 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
7899 specified without -mprefixed-addr or -mcpu=future. Error if
7900 -mprefixed-addr is specified without -mcpu=future.
7901 (rs6000_opt_masks): Add entry for prefixed-addr.
7902 * rs6000.opt (mprefixed-addr): New option.
7904 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
7906 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
7907 cfun->is_thunk check.
7909 2019-05-30 Jakub Jelinek <jakub@redhat.com>
7911 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
7914 2019-05-30 Martin Liska <mliska@suse.cz>
7916 * gdbinit.in: Fix 'ptc' command. Add trt
7917 that prints TREE_TYPE($).
7919 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
7920 Alan Modra <amodra@gmail.com>
7922 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
7924 (rs6000_indirect_call_template_1): ...and here.
7925 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
7926 plt16_ha, plt16_lo, mtctr indirect calls. Use
7928 (rs6000_decl_ok_for_sibcall): New function.
7929 (rs6000_function_ok_for_sibcall): Refactor.
7930 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
7931 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
7932 when pcrel. Reorganize.
7933 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
7934 * rs6000.h (rs6000_pltseq_enum): New enum.
7935 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
7936 (*pltseq_tocsave): Use rs6000_pltseq_enum.
7937 (*pltseq_plt16_ha): Likewise.
7938 (*pltseq_plt16_lo): Likewise.
7939 (*pltseq_mtctr): Likewise.
7940 (*pltseq_plt_pcrel): New insn.
7941 (*call_local_aix): Handle @notoc calls.
7942 (*call_value_local_aix): Likewise.
7943 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
7944 (*call_value_nonlocal_aix): Likewise.
7945 (*call_indirect_pcrel): New insn.
7946 (*call_value_indirect_pcrel): Likewise.
7948 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
7950 * config/i386/sse.md (*save_multiple<mode>): Rename from
7951 save_multiple<mode>.
7952 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
7953 (*restore_multiple_and_return<mode>): Rename from
7954 restore_multiple_and_return<mode>.
7955 (*restore_multiple_leave_return<mode>): Rename from
7956 restore_multiple_leave_return<mode>.
7958 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
7960 * config.gcc (rx-*-linux*): New target.
7961 * config/rx/elf.opt: New file.
7962 * config/rx/linux.h: Likewise.
7963 * config/rx/t-linux: Likewise.
7964 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
7966 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
7967 (ASM_APP_OFF): Likewise.
7968 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
7971 2019-05-29 Jan Hubicka <jh@suse.cz>
7973 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
7974 variants are pointer equivalent.
7976 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
7978 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
7979 * config/aarch64/aarch64-sve2.md: New file.
7980 (<u>avg<mode>3_floor): New pattern.
7981 (<u>avg<mode>3_ceil): Likewise.
7982 (*<sur>h<addsub><mode>): Likewise.
7983 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
7984 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
7986 2019-05-29 Jakub Jelinek <jakub@redhat.com>
7989 * optc-save-gen.awk: In cl_optimization_print, use correct condition
7990 for var_opt_string printing. In cl_optimization_print_diff, print
7991 (null) instead of invoking undefined behavior if one of the
7992 var_opt_string pointers is NULL and use && instead of first || in the
7993 guarding condition. For var_target_other options, handle const char *
7994 target variables similarly to const char * optimize node variables.
7996 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
7998 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
7999 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
8000 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
8001 Add autib1716 and pacib1716 initialisation.
8002 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
8003 for autib1716 and pacib1716.
8004 * config/aarch64/aarch64-protos.h (aarch64_key_type,
8005 aarch64_post_cfi_startproc): Define.
8006 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
8007 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
8008 aarch64_handle_pac_ret_protection): Set default sign key to A.
8009 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
8010 aarch64_expand_prologue): Add check for b-key.
8011 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
8012 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
8013 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
8014 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
8015 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
8016 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
8017 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
8018 * config/aarch64/aarch64.md (do_return): Add check for b-key.
8019 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
8020 pauth_hint_num_a with pauth_hint_num.
8021 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
8022 pauth_hint_num_a with pauth_hint_num.
8023 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
8024 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
8025 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
8026 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
8027 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
8028 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
8029 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
8030 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
8031 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
8032 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
8033 UNSPEC_AUTIA1716 respectively.
8034 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
8035 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
8036 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
8037 * doc/invoke.texi (-mbranch-protection): Add b-key type.
8038 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
8039 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
8041 2019-05-29 Jakub Jelinek <jakub@redhat.com>
8043 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
8044 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
8045 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
8046 explicit clause on combined parallel into implicit shared clause.
8047 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
8048 and firstprivate if the decl has one too from combined parallel to
8049 the worksharing construct.
8051 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
8052 Michael Meissner <meissner@linux.ibm.com>
8054 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
8056 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
8058 * rtl.h (LABEL_REF_P): New #define.
8060 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
8062 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
8064 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
8066 * internal-fn.c: Marked mask_load_direct as vectorizable.
8067 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
8068 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
8069 combined even if masks different with allow_slp_p param.
8070 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
8071 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
8072 dissolve SLP-only vectorizable groups when SLP has been discarded.
8073 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
8074 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
8076 (vect_build_slp_tree_1): Fixed comment typo.
8077 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
8078 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
8080 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
8082 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
8084 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8086 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
8087 Remove obsolete use_thunk reference.
8088 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
8089 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
8090 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
8091 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
8092 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
8093 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
8094 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
8095 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
8096 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
8098 2019-05-28 Nathan Sidwell <nathan@acm.org>
8100 * tree.h (IDENTIFIER_ANON_P): New.
8101 (anon_aggrname_format, anon_aggname_p): Don't declare.
8102 (make_anon_name): Declare.
8103 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
8104 (hash_tree): Likewise.
8105 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
8106 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
8107 (anon_cnt, make_anon_name): New.
8109 2019-05-28 Martin Liska <mliska@suse.cz>
8112 * opts-global.c (decode_options): Print help for all
8113 help_option_arguments.
8114 * opts.c (print_help): Add new argument.
8115 (common_handle_option): Remember all values into
8116 help_option_arguments.
8117 * opts.h (print_help): Add new argument.
8119 2019-05-28 Martin Liska <mliska@suse.cz>
8122 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
8123 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
8124 (func_checker::compare_bb): Call compare_loops.
8126 2019-05-27 Jakub Jelinek <jakub@redhat.com>
8128 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
8129 on sections construct.
8130 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
8132 (lower_omp_sections): Handle lastprivate conditional.
8133 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
8134 lastprivate_conditional_map.
8135 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
8137 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
8138 critical, taskgroup and section regions when looking for a region
8139 with non-NULL lastprivate_conditional_map.
8141 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
8143 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
8144 (*ix86_gen_sub3): Ditto.
8145 (*ix86_gen_sub3_carry): Ditto.
8146 (*ix86_gen_one_cmpl2): Ditto.
8147 (*ix86_gen_andsp): Ditto.
8148 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
8149 (gen_and2_insn): New static function.
8150 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
8151 Use gen_add3_insn instead of ix86_gen_add3.
8152 (ix86_expand_split_stack_prologue): Use gen_add2_insn
8153 instead of ix86_gen_add3.
8154 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
8155 Use gen_sub3_insn instead of ix86_gen_sub3.
8156 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
8157 instead of ix86_gen_add3.
8158 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
8159 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
8160 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
8161 * config/i386/i386-options.c (ix86_option_override_internal):
8162 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
8163 ix86_gen_one_cmpl2 and ix86_gen_andsp.
8165 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
8167 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
8168 and DW_OP_GNU_const_index opcodes.
8170 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
8172 * config/i386/i386.h (STACK_SIZE_MODE): Define.
8174 2019-05-27 Richard Biener <rguenther@suse.de>
8176 PR tree-optimization/90637
8177 * tree-ssa-sink.c (statement_sink_location): Honor the
8178 computed sink location for single-uses.
8180 2019-05-27 Richard Biener <rguenther@suse.de>
8183 * match.pd (vec_perm): Avoid clobbering op0 when not generating
8186 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
8188 * config/i386/i386.md (@sub<mode>3_carry): Rename
8189 from sub<mode>3_carry.
8190 (@leave_<mode>): New expander.
8191 (*leave): Rename from leave.
8192 (*leave_rex64): Rename from leave_rex64.
8193 (@monitorx_<mode>): Rename from monitorx_<mode>.
8194 (@clzero_<mode>): Rename from clzero_<mode>.
8195 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
8196 from sse3_monitor_<mode>.
8197 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
8198 (*ix86_gen_leave): Ditto.
8199 (*ix86_gen_monitor): Ditto.
8200 (*ix86_gen_monitorx): Ditto.
8201 (*ix86_gen_clzero): Ditto.
8202 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
8203 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
8204 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
8205 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
8206 Use gen_sse3_monitor instead of ix86_gen_monitor.
8207 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
8208 instead of ix86_gen_monitorx.
8209 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
8210 instead of ix86_gen_clzero.
8211 * config/i386/i386-options.c (ix86_option_override_internal):
8212 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
8213 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
8215 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
8217 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
8218 Rename from tls_global_dynamic_64_<mode>.
8219 (@tls_local_dynamic_base_64_<mode>): Rename from
8220 tls_local_dynamic_base_64_<mode>.
8221 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
8222 Remove indirect function.
8223 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
8224 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
8225 instead of ix86_gen_tls_global_dynamic_64.
8226 Use gen_tls_local_dynamic_base_64 instead of
8227 ix86_gen_tls_local_dynamic_base_64.
8228 * config/i386/i386-options.c (ix86_option_override_internal):
8229 Do not initialize ix86_gen_tls_global_dynamic_64 and
8230 ix86_gen_tls_local_dynamic_base_64.
8232 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
8234 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
8235 Rename from pro_epilogue_adjust_stack_<mode>_add.
8236 (@pro_epilogue_adjust_stack_sub_<mode>)
8237 Rename from pro_epilogue_adjust_stack_<mode>_sub.
8238 (@allocate_stack_worker_probe_<mode>):
8239 Rename from allocate_stack_worker_probe_<mode>.
8240 (allocate_stack): Use gen_allocate_stack_worker_probe.
8241 (probe_stack): Use gen_probe_stack_1.
8242 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
8243 (@adjust_stack_and_probe_<mode>): Rename from
8244 adjust_stack_and_probe<mode>.
8245 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
8246 (stack_protect_set): Use gen_stack_protect_set_1.
8247 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
8248 (stack_protect_test): Use gen_stack_protect_test_1.
8249 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
8250 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
8251 Remove indirect function.
8252 (*ix86_gen_adjust_stack_and_probe): Ditto.
8253 (*ix86_gen_probe_stack_range): Ditto.
8254 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
8255 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
8256 (ix86_adjust_stack_and_probe_stack_clash): Use
8257 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
8258 (ix86_adjust_stack_and_probe): Ditto.
8259 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
8260 of ix86_gen_probe_stack_range.
8261 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
8262 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
8263 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
8264 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
8265 CODE_FOR_stack_protect_test_{si,di}.
8266 * config/i386/i386-options.c (ix86_option_override_internal):
8267 Do not initialize ix86_gen_allocate_stack_worker,
8268 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
8270 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
8272 * doc/invoke.texi (Link Options): Many editorial changes around
8275 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8277 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
8278 pre-Solaris 11 referene and most Studio compiler details.
8280 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
8283 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
8284 DImode to SImode in floating-point registers on 64-bit target.
8285 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
8286 register_operand in xmpyu patterns.
8288 2019-05-24 Jakub Jelinek <jakub@redhat.com>
8290 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
8291 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
8292 OMP_CLAUSE__REDUCTEMP_.
8293 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
8294 OMP_CLAUSE__CONDTEMP_.
8295 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
8296 * tree-pretty-print.c (dump_omp_clause): Likewise.
8297 * tree-nested.c (convert_nonlocal_omp_clauses,
8298 convert_local_omp_clauses): Likewise.
8299 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
8300 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
8301 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
8303 (gimplify_omp_for): Warn and disable conditional modifier from
8304 lastprivate on loop iterators.
8305 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
8307 * omp-general.c (omp_extract_for_data): Initialize it.
8308 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
8310 (delete_omp_context): Delete it.
8311 (lower_lastprivate_conditional_clauses): New function.
8312 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
8313 handle lastprivate conditional clauses.
8314 (lower_reduction_clauses): Add CLIST argument, emit it into
8315 the critical section if any.
8316 (lower_omp_sections): Adjust lower_lastprivate_clauses and
8317 lower_reduction_clauses callers.
8318 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
8319 to lower_lastprivate_clauses.
8320 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
8321 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
8322 clist into a critical section if not emitted there already by
8323 lower_reduction_clauses.
8324 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
8326 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
8327 conditional variables.
8328 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
8330 (expand_omp_for_generic, expand_omp_for_static_nochunk,
8331 expand_omp_for_static_chunk): Handle lastprivate conditional.
8332 (expand_omp_for): Handle fd.lastprivate_conditional like
8335 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
8337 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
8338 kernel does not exit cleanly.
8339 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
8341 2019-05-24 Jason Merrill <jason@redhat.com>
8344 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
8346 2019-05-24 Richard Biener <rguenther@suse.de>
8349 * tree-loop-distribution.c (struct partition): Add location
8351 (partition_alloc): Initialize all fields.
8352 (generate_memset_builtin): Use the location recorded in the
8353 partition for the generated call.
8354 (generate_memcpy_builtin): Likewise.
8355 (classify_partition): Record the location of a single store
8356 as location for the partition.
8358 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
8360 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
8363 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
8366 * common/config/aarch64/aarch64-common.c
8367 (aarch64_rewrite_selected_cpu): Change local temporary variable
8368 type from unsigned long to uint64_t.
8369 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
8370 aarch64_get_extension_string_for_isa_flags): Change declaration to
8371 match new definition by replacing unsigned long with uint64_t.
8373 2019-05-24 Jakub Jelinek <jakub@redhat.com>
8376 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
8377 gen_attr_type just once instead of 4-7 times. Formatting fixes.
8378 Handle stack_protect_test_<mode> codegen similarly to corresponding
8381 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
8383 * config/i386/darwin.h: Reject -mfentry*.
8384 * doc/sourcebuild.texi: Document mfentry target support.
8386 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
8388 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
8389 Rename to rs6000_global_entry_point_prologue_needed_p. Return
8390 false for PC-relative functions.
8391 (rs6000_output_function_prologue): Change called function name to
8392 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
8393 name,1" for PC-relative functions.
8394 (rs6000_elf_declare_function_name): Change called function name to
8395 rs6000_global_entry_point_prologue_needed_p.
8397 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
8400 * config/i386/i386.c (gen_rtx_cost):
8401 Use ix86_tune_cost instead of ix86_cost.
8403 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
8404 Michael Meissner <meissner@linux.ibm.com>
8405 Segher Boessenkool <segher@kernel.crashing.org>
8407 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
8409 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
8410 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
8411 (rs6000_fndecl_pcrel_p): Likewise.
8412 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
8413 error if -mpcrel is requested without -mcpu=future.
8414 (rs6000_opt_masks): Add entry for pcrel.
8415 (rs6000_fndecl_pcrel_p): New function.
8416 (rs6000_pcrel_p): Likewise.
8417 * config/rs6000/rs6000.opt (mpcrel): New option.
8418 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
8420 2019-05-23 Jan Hubicka <jh@suse.cz>
8421 Martin Liska <mliska@suse.cz>
8423 PR tree-optimization/90576
8424 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
8426 (aliasing_component_refs_p): Fix three way size compare conditional;
8427 give up earlier in case we can not decide on equivalence.
8429 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
8430 Michael Meissner <meissner@linux.ibm.com>
8431 Segher Boessenkool <segher@kernel.crashing.org>
8433 * config.gcc: Add future cpu.
8434 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
8435 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
8437 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
8438 (RS6000_CPU): New instantiation for future cpu.
8439 * config/rs6000/rs6000-opts.h (enum processor_type): Add
8441 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
8442 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
8443 * config/rs6000/rs6000-tables.opt: Regenerate.
8444 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
8445 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
8446 (rs6000_machine_from_flags): Handle future cpu.
8447 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
8448 PROCESSOR_POWER9 for now.
8449 (rs6000_adjust_cost): Likewise.
8450 (rs6000_issue_rate): Likewise.
8451 (rs6000_register_move_cost): Likewise.
8452 (rs6000_opt_masks): Add entry for future.
8453 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
8454 (MASK_FUTURE): New #define.
8455 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
8456 * config/rs6000/rs6000.opt (mfuture): New target option.
8457 * doc/invoke.texi (mcpu): Add future cpu.
8459 2019-05-23 Martin Liska <mliska@suse.cz>
8462 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
8463 operation points to a temporary (pointed via tree_to_wide_ref)
8464 that is out of scope after the &.
8466 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
8469 * doc/extend.texi (Function Names): Add missing word.
8471 2019-05-23 Richard Biener <rguenther@suse.de>
8473 PR tree-optimization/88440
8474 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
8476 * tree-loop-distribution.c (generate_memset_builtin): Fold the
8478 (generate_memcpy_builtin): Likewise.
8479 (distribute_loop): Pass in whether to only distribute patterns.
8480 (prepare_perfect_loop_nest): Also allow size optimization.
8481 (pass_loop_distribution::execute): When optimizing a loop
8482 nest for size allow pattern replacement.
8484 2019-05-23 Jakub Jelinek <jakub@redhat.com>
8487 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
8490 2019-05-23 Martin Liska <mliska@suse.cz>
8493 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
8494 expression similarly to gimplify_decl_expr.
8496 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8498 * cse.c (cse_dump_path): s/dump_file/f.
8500 2019-05-22 David Malcolm <dmalcolm@redhat.com>
8503 * diagnostic-format-json.cc: Include "selftest.h".
8504 (json_from_expanded_location): Only add "file" key for non-NULL
8506 (json_from_location_range): Don't add "start" and "finish"
8507 children if they are UNKNOWN_LOCATION.
8508 (selftest::test_unknown_location): New selftest.
8509 (selftest::test_bad_endpoints): New selftest.
8510 (selftest::diagnostic_format_json_cc_tests): New function.
8511 * json.cc (json::object::get): New function.
8512 (selftest::test_object_get): New selftest.
8513 (selftest::json_cc_tests): Call it.
8514 * json.h (json::object::get): New decl.
8515 * selftest-run-tests.c (selftest::run_tests): Call
8516 selftest::diagnostic_format_json_cc_tests.
8517 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
8520 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
8521 Andrew Stubbs <amd@codesourcery.com>
8523 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
8524 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
8525 (kernel): Rename to...
8526 (main_kernel): ... this.
8527 (load_image): Load _init_array and _fini_array kernels.
8528 (run): Add argument for kernel to run.
8529 (main): Run init_array_kernel before main_kernel, and
8530 fini_array_kernel after.
8531 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
8532 amdgpu_hsa_kernel attribute on functions.
8533 (gcn_disable_constructors): Delete.
8534 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
8535 * config/gcn/crt0.c (size_t): Define.
8536 (_init_array, _fini_array): New.
8537 (__preinit_array_start, __preinit_array_end,
8538 __init_array_start, __init_array_end,
8539 __fini_array_start, __fini_array_end): Declare weak references.
8541 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
8543 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
8545 2019-05-22 Jason Merrill <jason@redhat.com>
8547 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
8549 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
8552 * config/i386/i386-options.c (ix86_init_machine_status): Set
8553 stack_frame_required to true.
8554 * config/i386/i386.c (ix86_get_frame_size): New function.
8555 (ix86_frame_pointer_required): Replace get_frame_size with
8556 ix86_get_frame_size.
8557 (ix86_compute_frame_layout): Likewise.
8558 (ix86_find_max_used_stack_alignment): Changed to void. Set
8559 stack_frame_required.
8560 (ix86_finalize_stack_frame_flags): Always call
8561 ix86_find_max_used_stack_alignment. Replace get_frame_size with
8562 ix86_get_frame_size.
8563 * config/i386/i386.h (machine_function): Add stack_frame_required.
8565 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
8567 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
8569 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
8571 * common/config/aarch64/aarch64-common.c
8572 (struct aarch64_option_extension, struct processor_name_to_arch,
8573 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
8574 aarch64_contains_opt,
8575 aarch64_get_extension_string_for_isa_flags): Change type of
8576 variables storing flags to uint64_t.
8577 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
8578 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
8579 * config/aarch64/aarch64.c (struct processor,
8580 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
8581 aarch64_validate_march, aarch64_override_options,
8582 aarch64_option_print, aarch64_handle_attr_isa_flags,
8583 aarch64_declare_function_name, aarch64_start_file): Make flag
8585 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
8586 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
8587 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
8588 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
8589 * config/aarch64/driver-aarch64.c
8590 (struct aarch64_arch_extension, struct aarch64_core_data,
8591 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
8592 flag variables uint64_t.
8593 * doc/invoke.texi: Add documentation for new arguments.
8595 2019-05-22 Richard Biener <rguenther@suse.de>
8597 * alias.c (ao_ref_from_mem): Move stack-slot sharing
8599 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
8601 2019-05-22 Martin Liska <mliska@suse.cz>
8604 * doc/extend.texi: Document the change.
8606 2019-05-22 Richard Biener <rguenther@suse.de>
8608 PR tree-optimization/90450
8609 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
8610 (mem_ref_hasher::equal): Check it.
8611 (mem_ref_alloc): Initialize it.
8612 (gather_mem_refs_stmt): Set it.
8614 2019-05-22 Richard Biener <rguenther@suse.de>
8616 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
8618 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
8621 2019-05-22 Alan Modra <amodra@gmail.com>
8623 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
8624 (ASM_CPU_SPEC): Conditionally add -many.
8625 * config/rs6000/rs6000.c (rs6000_machine): New static var.
8626 (rs6000_machine_from_flags, emit_asm_machine): New functions..
8627 (rs6000_file_start): ..extracted from here, and modified to
8629 (rs6000_output_function_prologue): Emit .machine as necessary.
8630 * testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c: Don't use
8632 * testsuite/gcc.dg/vect/O3-pr70130.c: Disable default options
8633 added by check_vect_support_and_set_flags.
8634 * testsuite/gcc.dg/vect/pr48765.c: Likewise.
8635 * testsuite/gfortran.dg/vect/pr45714-b.f: Likewise.
8637 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
8640 * ira-lives.c (process_bb_node_lives): Consider defs
8641 for a call insn to be die before the call, not after.
8643 * function.c (assign_parm_setup_block): Raise alignment of
8644 stacked parameter only for STRICT_ALIGNMENT targets.
8646 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
8648 * config/rs6000/constraints.md (define_register_constraint "wz"):
8650 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8651 RS6000_CONSTRAINT_wz.
8652 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8653 (rs6000_init_hard_regno_mode_ok): Adjust.
8654 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
8655 * doc/md.texi (Machine Constraints): Adjust.
8657 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
8659 * config/rs6000/constraints.md (define_register_constraint "wl"):
8661 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8662 RS6000_CONSTRAINT_wl.
8663 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8664 (rs6000_init_hard_regno_mode_ok): Adjust.
8665 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
8666 * doc/md.texi (Machine Constraints): Adjust.
8668 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
8670 * config/rs6000/constraints.md (define_register_constraint "wm"):
8672 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8673 RS6000_CONSTRAINT_wm.
8674 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8675 (rs6000_init_hard_regno_mode_ok): Adjust.
8676 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
8677 * doc/md.texi (Machine Constraints): Adjust.
8679 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
8681 * config/rs6000/constraints.md (define_register_constraint "wk"):
8683 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8684 RS6000_CONSTRAINT_wk.
8685 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8686 (rs6000_init_hard_regno_mode_ok): Adjust.
8687 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
8688 * doc/md.texi (Machine Constraints): Adjust.
8690 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
8692 * config/rs6000/constraints.md (define_register_constraint "wj"):
8694 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8695 RS6000_CONSTRAINT_wj.
8696 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8697 (rs6000_init_hard_regno_mode_ok): Adjust.
8698 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
8700 * config/rs6000/vsx.md: Ditto.
8701 * doc/md.texi (Machine Constraints): Adjust.
8703 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
8705 * config/rs6000/constraints.md (define_register_constraint "wh"):
8707 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8708 RS6000_CONSTRAINT_wh.
8709 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8710 (rs6000_init_hard_regno_mode_ok): Adjust.
8711 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
8712 * doc/md.texi (Machine Constraints): Adjust.
8714 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
8717 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
8718 Avoid calling gen_lowpart with CONST operand.
8720 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
8722 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
8723 field template_last_to_copy.
8724 (ssa_create_duplicates): Set it, and use it. Attempt to
8725 preserve more debug stmts.
8727 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
8729 * config/i386/sse.md (VF1_AVX2): New mode iterator.
8730 (signbit<mode>2): New expander
8732 2019-05-21 James Clarke <jrtc27@jrtc27.com>
8735 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
8736 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
8738 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
8740 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
8741 %ebx and %ecx bafore calling cpuid with leaf 1 or
8742 non-constant leaf argument.
8744 2019-05-21 Alan Modra <amodra@gmail.com>
8747 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
8748 power9 direct move cost.
8749 * testsuite/gcc.target/powerpc/fold-vec-splats-floatdouble.c:
8750 Correct comments and rename functions to suit parameters.
8752 2019-05-21 Richard Biener <rguenther@suse.de>
8755 * fold-const.c (fold_read_from_vector): New function.
8756 * fold-const.h (fold_read_from_vector): Declare.
8757 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
8758 single-element insert permutations. Canonicalize selector
8759 further and fix issue with last commit.
8761 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
8763 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
8764 parameter with default value false to declaration.
8765 (split_edges_for_insertion): New inline function. Wrapper for
8766 split_critical_edges with for_edge_insertion_p = true.
8767 * tree-cfg.c (split_critical_edges): Don't split non-critical
8768 edges if for_edge_insertion_p is false. Fix whitespace.
8769 * tree-ssa-pre.c (pass_pre::execute): Call
8770 split_edges_for_insertion instead of split_critical_edges.
8771 * gcc/tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
8772 * gcc/tree-ssa-sink.c (pass_sink_code::execute): Ditto.
8773 (pass_data_sink_code): Update function name in the comment.
8775 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
8777 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
8778 around is_value_included_in that knows how to handle BIT_AND_EXPR.
8779 (is_pred_expr_subset_of): Use the new function. Handle more cases where
8780 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
8783 2019-05-21 Martin Liska <mliska@suse.cz>
8785 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
8787 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
8788 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
8790 * config/rs6000/rs6000.c (rs6000_option_override_internal):
8792 (rs6000_function_arg): Likewise.
8793 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
8794 (rs6000_expand_ternop_builtin): Use interval syntax.
8795 (get_element_number): Likewise.
8796 (altivec_expand_builtin): Likewise.
8797 (rs6000_get_function_versions_dispatcher): Quote target_clones.
8799 2019-05-20 Jakub Jelinek <jakub@redhat.com>
8803 * function.h (struct function): Add calls_eh_return member.
8804 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
8805 gimplifying __builtin_eh_return call.
8806 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
8808 (expand_call_inline): Or in src_cfun->calls_eh_return into
8809 dst_cfun->calls_eh_return.
8810 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
8811 cfun->calls_eh_return.
8812 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
8813 * lto-streamer-out.c (output_struct_function_base): Write
8816 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
8818 PR rtl-optimization/43147
8819 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
8820 IX86_BUILTIN_SHUFPD.
8822 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
8824 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
8825 (refs_may_alias_p_1): ... here; update stats.
8826 (refs_may_alias_p): Do not update stats here.
8828 2019-05-20 Richard Biener <rguenther@suse.de>
8830 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
8831 doesn't produce pointers.
8832 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
8833 the first operand points to.
8835 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
8837 * tree-ssa-alias.c (compare_sizes): New function.
8838 (sompare_type_sizes): New function
8839 (aliasing_component_refs_p): Use it.
8840 (indirect_ref_may_alias_decl_p): Likewise.
8842 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8844 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
8846 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8848 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
8849 (LIBLSAN_EARLY_SPEC): Likewise.
8850 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
8852 2019-05-20 Martin Liska <mliska@suse.cz>
8854 * config/i386/i386.c (ix86_libc_has_fast_function):
8855 Add ATTRIBUTE_UNUSED for the argument.
8857 2019-05-20 Richard Biener <rguenther@suse.de>
8859 * gimple-match-head.c: Include vec-perm-indices.h.
8860 * generic-match-head.c: Likewise.
8861 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
8863 * fold-const.c (fold_vec_perm): Export.
8864 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
8865 (match.pd): ...here.
8867 2019-05-20 Jakub Jelinek <jakub@redhat.com>
8869 * cfgloop.h (struct loop): Add simdlen member.
8870 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
8871 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
8872 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
8873 as new argument to autovectorize_vector_sizes target hook. If
8874 loop->simdlen, pick up vector size where the vectorization factor
8875 is equal to loop->simd, and if there is none, fall back to the first
8877 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
8879 * omp-low.c (omp_clause_aligned_alignment): Likewise.
8880 * omp-general.c (omp_max_vf): Likewise.
8881 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
8882 * tree-vect-slp.c (vect_slp_bb): Likewise.
8883 * target.def (autovectorize_vector_sizes): Add ALL argument and
8885 * doc/tm.texi: Adjust documentation.
8886 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
8887 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
8888 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
8890 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
8891 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
8892 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
8893 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
8894 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
8895 preferred vector size is not 512-bit or 256-bit, just put those
8896 unpreferred ones last.
8898 2019-05-20 Martin Liska <mliska@suse.cz>
8900 * targhooks.c (default_libc_has_fast_function): New function.
8901 * targhooks.h (default_libc_has_fast_function): Likewise.
8903 2019-05-20 Martin Liska <mliska@suse.cz>
8906 * builtins.c (expand_builtin_memory_copy_args): When having a
8907 target with fast mempcpy implementation do now use memcpy.
8908 * config/i386/i386.c (ix86_libc_has_fast_function): New.
8909 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
8910 * doc/tm.texi: Likewise.
8911 * doc/tm.texi.in: Likewise.
8913 * expr.c (emit_block_move_hints): Add 2 new arguments.
8914 * expr.h (emit_block_move_hints): Bail out when libcall
8915 to memcpy would be used.
8917 2019-05-20 Martin Liska <mliska@suse.cz>
8919 * profile-count.c: Add vertical spacing in order
8920 to separate functions.
8921 * profile-count.h: Likewise.
8923 2019-05-20 Martin Liska <mliska@suse.cz>
8925 * profile-count.h: Do not use full qualified
8927 * profile-count.c (profile_count::to_frequency): Likewise.
8929 2019-05-20 Martin Liska <mliska@suse.cz>
8931 * profile-count.h (enum profile_quality): Use capital letters
8932 for enum value names. Use the adjusted names.
8933 * profile-count.c: Use the adjusted names.
8935 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
8937 * config/rs6000/constraints.md (define_register_constraint "wH"):
8939 (define_register_constraint "wI"): Delete.
8940 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8941 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
8942 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8943 (rs6000_init_hard_regno_mode_ok): Adjust.
8944 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
8945 resp. "d", or with "wa" as appropriate, all with "p8v".
8946 * config/rs6000/vsx.md: Ditto.
8947 * doc/md.texi (Machine Constraints): Adjust.
8949 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
8951 * config/rs6000/constraints.md (define_register_constraint "wy"):
8953 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8954 RS6000_CONSTRAINT_wy.
8955 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8956 (rs6000_init_hard_regno_mode_ok): Adjust.
8957 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
8958 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
8959 (define_mode_attr Fisa): New.
8960 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
8961 * doc/md.texi (Machine Constraints): Adjust.
8963 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
8965 * config/rs6000/constraints.md (define_register_constraint "wu"):
8967 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8968 RS6000_CONSTRAINT_wu.
8969 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8970 (rs6000_init_hard_regno_mode_ok): Adjust.
8971 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
8973 (define_mode_attr Fa): Delete.
8974 * config/rs6000/vsx.md: Ditto.
8975 * doc/md.texi (Machine Constraints): Adjust.
8977 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
8979 * config/rs6000/constraints.md (define_register_constraint "wJ"):
8981 (define_register_constraint "wK"): Delete.
8982 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8983 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
8984 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8985 (rs6000_init_hard_regno_mode_ok): Adjust.
8986 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
8987 Replace "wK" constraint by "wH" with "p9v".
8988 * config/rs6000/vsx.md: Ditto.
8989 * doc/md.texi (Machine Constraints): Adjust.
8991 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
8993 * config/rs6000/constraints.md (define_register_constraint "wb"):
8995 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8996 RS6000_CONSTRAINT_wb.
8997 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8998 (rs6000_init_hard_regno_mode_ok): Adjust.
8999 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
9000 * config/rs6000/vsx.md: Ditto.
9001 * doc/md.texi (Machine Constraints): Adjust.
9003 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
9005 * config/rs6000/constraints.md (define_register_constraint "wo"):
9007 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9008 RS6000_CONSTRAINT_wo.
9009 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9010 (rs6000_init_hard_regno_mode_ok): Adjust.
9011 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
9012 * config/rs6000/altivec.md: Ditto.
9013 * doc/md.texi (Machine Constraints): Adjust.
9015 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
9017 * config/darwin-c.c (darwin_register_objc_includes): Do not
9018 prepend the sysroot when building gnu-runtime header search
9021 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
9023 * config/darwin.c (darwin_file_end): Use switch_to_section ()
9024 instead of direct output of the asm.
9026 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
9028 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
9029 argument to be type bool (was int before).
9030 (rs6000_emit_epilogue): Simplify some code. Declare some variables
9031 at first use. Use type bool for some variables. Fix a theoretical
9032 eh_return bug for svr4.
9034 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
9036 * config/rs6000/rs6000.md (isa): New attribute.
9037 (enabled): New attribute.
9039 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
9041 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
9042 assemble_start_function and assemble_end_function.
9044 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
9047 * omp-general.c (oacc_verify_routine_clauses): Change formal
9048 parameters. Add checking if already marked with an OpenACC
9049 'routine' directive. Adjust all users.
9052 * omp-general.c (oacc_build_routine_dims): Move some of its
9054 (oacc_verify_routine_clauses): ... this new function.
9055 * omp-general.h (oacc_verify_routine_clauses): New prototype.
9057 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
9059 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
9060 formating of picbase labels to match other ports.
9062 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
9064 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
9065 in the generated code.
9067 2019-05-16 Martin Sebor <msebor@redhat.com>
9069 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
9070 identifiers, keywords, operators, and types in diagnostics. Correct
9071 quoting, spelling, and sentence capitalization issues.
9072 (expand_builtin_atomic_is_lock_free): Same.
9073 (fold_builtin_next_arg): Same.
9074 * cfgexpand.c (expand_one_var): Same.
9075 (tree_conflicts_with_clobbers_p): Same.
9076 (expand_asm_stmt): Same.
9077 (verify_loop_structure): Same.
9078 * cgraphunit.c (process_function_and_variable_attributes): Same.
9079 * collect-utils.c (collect_execute): Same.
9080 * collect2.c (maybe_run_lto_and_relink): Same.
9081 (is_lto_object_file): Same.
9082 (scan_prog_file): Same.
9083 * convert.c (convert_to_real_1): Same.
9084 * dwarf2out.c (dwarf2out_begin_prologue): Same.
9085 * except.c (verify_eh_tree): Same.
9086 * gcc.c (execute): Same.
9087 (eval_spec_function): Same.
9088 (run_attempt): Same.
9089 (driver::set_up_specs): Same.
9090 (compare_debug_auxbase_opt_spec_function): Same.
9091 * gcov-tool.c (unlink_gcda_file): Same.
9094 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
9095 * gimplify.c (gimplify_asm_expr): Same.
9096 (gimplify_adjust_omp_clauses): Same.
9097 * hsa-gen.c (gen_hsa_addr_insns): Same.
9098 (gen_hsa_insns_for_load): Same.
9099 (gen_hsa_cmp_insn_from_gimple): Same.
9100 (gen_hsa_insns_for_operation_assignment): Same.
9101 (gen_get_level): Same.
9102 (gen_hsa_alloca): Same.
9103 (omp_simple_builtin::generate): Same.
9104 (gen_hsa_atomic_for_builtin): Same.
9105 (gen_hsa_insns_for_call): Same.
9106 * input.c (dump_location_info): Same.
9107 * ipa-devirt.c (compare_virtual_tables): Same.
9108 * ira.c (ira_setup_eliminable_regset): Same.
9109 * lra-assigns.c (lra_assign): Same.
9110 * lra-constraints.c (lra_constraints): Same.
9111 * lto-streamer-in.c (lto_input_mode_table): Same.
9112 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
9113 (merge_and_complain): Same.
9114 (compile_offload_image): Same.
9115 (compile_images_for_offload_targets): Same.
9116 (debug_objcopy): Same.
9119 * opts.c (print_specific_help): Same.
9120 (parse_no_sanitize_attribute): Same.
9122 (handle_param): Same.
9123 * plugin.c (add_new_plugin): Same.
9124 (parse_plugin_arg_opt): Same.
9125 (try_init_one_plugin): Same.
9126 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
9127 operators, and types in diagnostics. Correct quoting and spelling
9129 * read-rtl-function.c (parse_edge_flag_token): Same.
9130 (function_reader::parse_enum_value): Same.
9131 * reg-stack.c (check_asm_stack_operands): Same.
9132 * regcprop.c (validate_value_data): Same.
9133 * sched-rgn.c (make_pass_sched_fusion): Same.
9134 * stmt.c (check_unique_operand_names): Same.
9135 * targhooks.c (default_target_option_pragma_parse): Same.
9136 * tlink.c (recompile_files): Same.
9137 * toplev.c (process_options): Same.
9139 * trans-mem.c (diagnose_tm_1): Same.
9140 (ipa_tm_scan_irr_block): Same.
9141 (ipa_tm_diagnose_transaction): Same.
9142 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
9143 format a tree code name in a diagnostic.
9144 (verify_types_in_gimple_min_lval): Same.
9145 (verify_types_in_gimple_reference): Same.
9146 (verify_gimple_call): Same.
9147 (verify_gimple_assign_unary): Same.
9148 (verify_gimple_assign_binary): Same.
9149 (verify_gimple_assign_ternary): Same.
9150 (verify_gimple_assign_single): Same.
9151 (verify_gimple_switch): Same.
9152 (verify_gimple_label): Same.
9153 (verify_gimple_phi): Same.
9154 (verify_gimple_in_seq): Same.
9155 (verify_eh_throw_stmt_node): Same.
9156 (collect_subblocks): Same.
9157 (gimple_verify_flow_info): Same.
9158 (do_warn_unused_result): Same.
9159 * tree-inline.c (expand_call_inline): Same.
9160 * tree-into-ssa.c (update_ssa): Same.
9161 * tree.c (tree_int_cst_elt_check_failed): Same.
9162 (tree_vec_elt_check_failed): Same.
9163 (omp_clause_operand_check_failed): Same.
9164 (verify_type_variant): Same.
9165 (verify_type): Same.
9166 * value-prof.c (verify_histograms): Same.
9167 * varasm.c (assemble_start_function): Same.
9169 2019-05-16 Martin Sebor <msebor@redhat.com>
9171 * config/i386/i386-expand.c (get_element_number): Quote keywords
9172 and other internal names in diagnostics. Adjust other diagnostic
9173 formatting issues noted by -Wformat-diag.
9174 * config/i386/i386-features.c
9175 (ix86_mangle_function_version_assembler_name): Same.
9176 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
9177 * config/i386/i386.c (ix86_function_type_abi): Same.
9178 (ix86_function_ms_hook_prologue): Same.
9179 (classify_argument): Same.
9180 (ix86_expand_prologue): Same.
9181 (ix86_md_asm_adjust): Same.
9182 (ix86_memmodel_check): Same.
9184 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
9186 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
9187 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
9190 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
9193 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
9194 intrinsics without SSE/SSE2/SSSE3.
9195 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
9197 (*mmx_uavgv8qi3): Likewise.
9199 2019-05-17 Richard Biener <rguenther@suse.de>
9201 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
9202 VEC_PERM_EXPR as __VEC_PERM with -gimple.
9204 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
9206 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
9207 vec_sldw insn pattern.
9209 2019-05-17 Richard Biener <rguenther@suse.de>
9211 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
9213 2019-05-17 Martin Liska <mliska@suse.cz>
9216 * toplev.c (output_stack_usage): With LTO and sanitizer it
9217 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
9218 has no file location.
9220 2019-05-16 Jakub Jelinek <jakub@redhat.com>
9223 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
9224 sz0 is equal to sz1, instead return false in that case.
9226 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
9227 has non-constant expression, force sctx.lane and use two
9228 argument IFN_GOMP_SIMD_LANE instead of single argument.
9229 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
9230 two argument IFN_GOMP_SIMD_LANE without lhs.
9231 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
9233 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
9235 (LOOP_REQUIRES_VERSIONING): Or in
9236 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
9237 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
9239 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
9240 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
9241 from simd if clause if needed.
9243 2019-05-16 Richard Biener <rguenther@suse.de>
9245 * tree-affine.c (expr_to_aff_combination): New function split
9247 (tree_to_aff_combination): ... here.
9248 (aff_combination_expand): Avoid building a GENERIC tree.
9250 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
9252 * cgraphunit.c (cgraph_node::expand_thunk): Remove
9253 assemble_start_function and assemble_end_function calls.
9254 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
9255 assemble_start_function and assemble_end_function.
9256 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
9257 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
9258 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
9259 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
9260 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
9261 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
9262 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
9263 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
9264 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
9265 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
9266 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
9267 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
9269 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
9270 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
9271 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
9272 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
9273 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
9274 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
9275 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
9276 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
9277 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
9278 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
9279 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
9280 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
9281 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
9282 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
9284 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
9285 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
9286 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
9288 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
9290 * tree-ssa-alias.c (alias_stats): Add
9291 aliasing_component_refs_p_may_alias and
9292 aliasing_component_refs_p_no_alias.
9293 (dump_alias_stats): Print aliasing_component_refs_p stats.
9294 (aliasing_component_refs_p): Update stats.
9296 2019-05-16 Martin Liska <mliska@suse.cz>
9299 * multiple_target.c (expand_target_clones): Do not allow
9300 target_clones being used with a symbol that is an alias.
9302 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
9304 PR tree-optimization/90394
9305 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
9306 positives rather than ICE for cases where (code2 == NE_EXPR
9307 && code1 == BIT_AND_EXPR).
9309 2019-05-16 Jakub Jelinek <jakub@redhat.com>
9312 * tree-core.h (struct tree_decl_common): Document
9313 decl_nonshareable_flag for PARM_DECLs.
9314 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
9315 * calls.c (expand_call): Don't try tail call if caller
9316 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
9317 passed on the stack and callee needs to pass any arguments on the
9319 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
9320 else if instead of series of mutually exclusive ifs. Handle
9321 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
9322 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
9324 * lto-streamer.h (LTO_major_version): Bump to 9.
9326 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
9328 PR tree-optimization/90106
9329 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
9330 new parameter as new internal function call, also move it to new
9332 (use_internal_fn): Pass internal function call to
9333 shrink_wrap_one_built_in_call_with_conds.
9335 2019-05-15 Jakub Jelinek <jakub@redhat.com>
9337 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
9339 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
9340 safelen_int and set loop->dont_vectorize.
9342 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9345 * config/i386/i386-builtin.def: Enable MMX intrinsics with
9347 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
9349 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
9350 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
9351 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
9354 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9357 * config/i386/mmx.md (*vec_dupv2sf): Changed to
9358 define_insn_and_split to support SSE emulation.
9359 (*vec_extractv2sf_0): Likewise.
9360 (*vec_extractv2sf_1): Likewise.
9361 (*vec_extractv2si_0): Likewise.
9362 (*vec_extractv2si_1): Likewise.
9363 (*vec_extractv2si_zext_mem): Likewise.
9364 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
9365 (vec_extractv2sf_1 splitter): Likewise.
9366 (vec_extractv2sfsf): Likewise.
9367 (vec_setv2si): Likewise.
9368 (vec_extractv2si_1 splitter): Likewise.
9369 (vec_extractv2sisi): Likewise.
9370 (vec_setv4hi): Likewise.
9371 (vec_extractv4hihi): Likewise.
9372 (vec_setv8qi): Likewise.
9373 (vec_extractv8qiqi): Likewise.
9374 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
9375 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
9376 (vec_extractv2sisi): Likewise.
9377 (vec_extractv4hihi): Likewise.
9378 (vec_extractv8qiqi): Likewise.
9379 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
9380 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
9381 (vec_initv2sisi): Likewise.
9382 (vec_initv4hihi): Likewise.
9383 (vec_initv8qiqi): Likewise.
9384 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
9385 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
9386 (vec_setv4hi): Likewise.
9387 (vec_setv8qi): Likewise.
9389 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9392 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
9393 TARGET_MMX_WITH_SSE.
9394 (MMXMODE:*mov<mode>_internal): Likewise.
9395 (MMXMODE:movmisalign<mode>): Likewise.
9397 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
9400 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
9401 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
9402 (sse2_cvtpd2pi): Ditto.
9403 (sse2_cvttpd2pi): Ditto.
9404 (*vec_concatv2sf_sse4_1): Ditto.
9405 (*vec_concatv2sf_sse): Ditto.
9406 (*vec_concatv2si_sse4_1): Ditto.
9407 (*vec_concatv2si): Ditto.
9408 (*vec_concatv4si_0): Ditto.
9409 (*vec_concatv2di_0): Ditto.
9411 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9414 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
9416 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9419 * config/i386/sse.md (ssse3_palignrdi): Changed to
9420 define_insn_and_split to support SSE emulation.
9422 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9425 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
9427 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9430 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
9431 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
9434 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9437 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
9438 or TARGET_MMX_WITH_SSE.
9439 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
9441 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9444 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
9446 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9449 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
9450 Changed to define_insn_and_split to support SSE emulation.
9452 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9455 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
9456 Changed to define_insn_and_split to support SSE emulation.
9458 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9461 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
9462 (*mmx_<emms>): This.
9463 (mmx_<emms>): New expander.
9465 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9468 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
9470 (*sse2_umulv1siv1di3): Add SSE2 emulation.
9472 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9475 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
9477 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9480 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
9482 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9485 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
9486 TARGET_MMX_WITH_SSE.
9487 (*mmx_uavgv4hi3): Add SSE emulation.
9489 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9492 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
9493 and TARGET_MMX_WITH_SSE.
9494 (*mmx_uavgv8qi3): Add SSE emulation.
9496 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9499 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
9500 maskmovdqu for __MMX_WITH_SSE__.
9502 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9505 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
9506 TARGET_MMX and TARGET_MMX_WITH_SSE.
9507 (*mmx_umulv4hi3_highpart): Add SSE emulation.
9509 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9512 * config/i386/mmx.md (mmx_pmovmskb): Changed to
9513 define_insn_and_split to support SSE emulation.
9515 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9518 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
9519 and TARGET_MMX_WITH_SSE.
9520 (mmx_<code>v8qi3): Likewise.
9521 (smaxmin:<code>v4hi3): New.
9522 (umaxmin:<code>v8qi3): Likewise.
9523 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
9524 (umaxmin:*mmx_<code>v8qi3): Likewise.
9526 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9529 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
9530 TARGET_MMX_WITH_SSE.
9531 (*mmx_pinsrw): Add SSE emulation.
9533 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9536 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
9538 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9541 * config/i386/sse.md (sse_cvtpi2ps): Changed to
9542 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
9545 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9548 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
9549 (sse_cvttps2pi): Likewise.
9551 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9554 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
9555 TARGET_MMX_WITH_SSE.
9556 (mmx_pshufw_1): Add SSE emulation.
9557 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
9558 TARGET_MMX_WITH_SSE to support SSE emulation.
9560 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9563 * config/i386/constraints.md (Yw): New constraint.
9564 * config/i386/mmx.md (*vec_dupv2si): Changed to
9565 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
9566 support SSE emulation.
9568 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9571 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
9572 TARGET_MMX_WITH_SSE.
9573 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
9575 (mmx_gt<mode>3): Likewise.
9577 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9580 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
9581 TARGET_MMX_WITH_SSE. Add SSE support.
9583 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9586 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
9587 TARGET_MMX_WITH_SSE.
9588 (any_logic:<code><mode>3): New.
9589 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
9592 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9595 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
9596 TARGET_MMX_WITH_SSE. Add SSE emulation.
9597 (mmx_<shift_insn><mode>3): Likewise.
9599 (<shift_insn><mode>3): Likewise.
9601 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9604 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
9605 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
9607 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9610 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
9611 TARGET_MMX_WITH_SSE.
9612 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
9615 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9618 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
9619 TARGET_MMX_WITH_SSE.
9621 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
9624 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9627 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
9628 (plusminus:mmx_<plusminus_insn><mode>3): Check
9629 TARGET_MMX_WITH_SSE.
9630 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
9631 (<plusminus_insn><mode>3): New.
9632 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
9633 (*mmx_<plusminus_insn><mode>3): Likewise.
9635 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9638 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
9639 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
9641 * config/i386/mmx.m (mmx_punpckhbw): Changed to
9642 define_insn_and_split to support SSE emulation.
9643 (mmx_punpcklbw): Likewise.
9644 (mmx_punpckhwd): Likewise.
9645 (mmx_punpcklwd): Likewise.
9646 (mmx_punpckhdq): Likewise.
9647 (mmx_punpckldq): Likewise.
9649 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9650 Uros Bizjak <ubizjak@gmail.com>
9653 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
9655 (ix86_split_mmx_pack): Likewise.
9656 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
9658 (ix86_split_mmx_pack): Likewise.
9659 * config/i386/i386.md (mmx_isa): New.
9660 (enabled): Also check mmx_isa.
9661 * config/i386/mmx.md (any_s_truncate): New code iterator.
9662 (s_trunsuffix): New code attr.
9663 (mmx_packsswb): Removed.
9664 (mmx_packssdw): Likewise.
9665 (mmx_packuswb): Likewise.
9666 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
9667 MMX packsswb/packuswb with SSE2.
9668 (mmx_packssdw): Likewise.
9669 * config/i386/predicates.md (register_mmxmem_operand): New.
9671 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9674 * config/i386/i386-c.c (ix86_target_macros_internal): Define
9675 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
9676 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
9677 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
9678 (ix86_vector_mode_supported_p): Likewise.
9679 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
9681 2019-05-15 Martin Liska <mliska@suse.cz>
9684 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
9687 2019-05-15 Richard Biener <rguenther@suse.de>
9689 * tree-into-ssa.c (pass_build_ssa::execute): Run
9690 update_address_taken before going into SSA.
9692 2019-05-15 Richard Biener <rguenther@suse.de>
9694 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
9695 as __BIT_FIELD_REF with type with -gimple.
9697 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
9699 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
9700 semantically equivalent branches (left over after prior refactorings).
9702 2019-05-15 Richard Biener <rguenther@suse.de>
9704 PR tree-optimization/88828
9705 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
9708 2019-05-14 Richard Biener <rguenther@suse.de>
9710 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
9711 as __VIEW_CONVERT with -gimple.
9713 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
9716 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
9719 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
9721 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
9722 define_split to become a define_insn_and_split.
9724 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
9726 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
9728 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
9729 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
9730 (sibcall_epilogue): Adjust.
9733 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9735 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
9736 to unsupported ones.
9737 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
9738 * config.host: Likewise.
9739 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
9740 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
9741 __svr4__]: Remove "brand" fallback.
9742 [!KSTAT_DATA_STRING]: Remove.
9743 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
9745 (comdat_group): Likewise.
9746 (set_have_as_tls): Likewise.
9747 (gcc_cv_target_dl_iterate_phdr): Likewise.
9748 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
9749 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
9750 * configure: Regenerate.
9751 * doc/install.texi: Simplify Solaris target triplets.
9752 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
9753 (Specific, *-*-solaris2*): Document Solaris 10 removal.
9754 Remove Solaris 10 references.
9755 Remove obsolete Solaris bug reference.
9756 (Specific, sparc-sun-solaris2.10): Remove.
9758 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
9760 * config/i386/i386.md (any_div): New code iterator.
9761 (paired_mod): New code attribute.
9762 (sgnprefix): Handle DIV and UDIV RTXes.
9764 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
9765 and udivmod<mode>4 patterns using any_div code iterator.
9766 (divmod splitters): Macroize splitters using any_div code iterator.
9767 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
9768 (*udivmodsi4_pow2_zext_2): Ditto.
9769 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
9770 and *udivmod<mode>4_noext patterns using any_div code iterator.
9771 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
9772 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
9773 patterns using any_div code iterator.
9774 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
9775 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
9776 patterns using any_div code iterator.
9777 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
9778 udivmodhiqi3 patterns using any_extend code iterator.
9780 2019-05-14 Richard Biener <rguenther@suse.de>
9781 H.J. Lu <hongjiu.lu@intel.com>
9783 PR tree-optimization/88828
9784 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
9785 permuting in a single non-constant element not extracted
9788 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
9790 * internal-fn.def (SIGNBIT): New.
9791 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
9793 (signbitv4sf2): Likewise.
9795 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
9798 * config/mips/mips.c (mips_split_move): Skip forward SRC into
9799 next insn when the SRC reg is dead.
9801 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
9803 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
9804 (alloc_cand_and_find_basis): Ditto.
9805 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
9806 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
9807 (create_add_imm_cand, slsr_process_cast): Ditto.
9808 (slsr_process_copy, replace_mult_candidate): Ditto.
9809 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
9810 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
9811 (pass_strength_reduction::execute): Init the first NULL element.
9813 2019-05-13 Nathan Sidwell <nathan@acm.org>
9815 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
9816 (run_attempt): Reformat line break.
9818 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
9821 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
9822 data registers in sibcall epilogues.
9823 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
9825 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
9828 * configure.ac (--enable-frame-pointer):
9829 Disable by default for cygwin and mingw.
9830 * configure: Regenerate.
9832 2019-05-13 Nathan Sidwell <nathan@acm.org>
9834 * dwarf2out.c (breakout_comdat_types): Move comment to correct
9836 (const_ok_for_output_1): Balance parens around #if/#else/#endif
9837 (gen_member_die): Move abstract origin check earlier. Only VARs
9838 can be static_inline_p. Simplify splicing control flow.
9840 2019-05-13 Richard Biener <rguenther@suse.de>
9842 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
9844 (vect_build_slp_tree_1): Likewise.
9846 2019-05-13 Richard Biener <rguenther@suse.de>
9848 PR tree-optimization/90402
9849 * tree-if-conv.c (tree_if_conversion): Value number only
9850 the loop body by making the latch an exit of the region
9852 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
9854 (do_rpo_vn): Deal with multiple edges into the entry block
9855 that are not backedges inside the region by skipping PHIs
9858 2019-05-13 Richard Biener <rguenther@suse.de>
9860 PR tree-optimization/90316
9861 * tree-ssa-pre.c (insert_aux): Fold into ...
9862 (insert): ... this function. Use a RPO walk to reduce the
9863 number of required iterations.
9865 2019-05-13 Martin Liska <mliska@suse.cz>
9867 PR tree-optimization/90416
9868 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
9869 string instead of passing the second part as va_arg argument.
9871 2019-05-13 Martin Liska <mliska@suse.cz>
9873 PR gcov-profile/90380
9874 * gcov.c (handle_cycle): Do not support zero cycle count,
9875 it should not be possible.
9876 (path_contains_zero_cycle_arc): New function.
9877 (circuit): Ignore zero cycle arc counts.
9879 2019-05-13 Martin Liska <mliska@suse.cz>
9881 PR gcov-profile/90380
9882 * gcov.c (enum loop_type): Remove the enum and
9884 (handle_cycle): Assert that we should not reach
9886 (circuit): Use loop_found instead of a tri-state loop_type.
9887 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
9890 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
9893 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
9894 (ix86_output_indirect_branch_via_reg): Use output mechanism
9895 accounting for __USER_LABEL_PREFIX__.
9896 (ix86_output_indirect_branch_via_push): Likewise.
9897 (ix86_output_function_return): Likewise.
9898 (ix86_output_indirect_function_return): Likewise.
9900 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
9902 * doc/md.texi: Document use of code attributes in rtx patterns.
9903 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
9904 * read-rtl.c (find_code): Split out search loops into...
9905 (maybe_find_code): ...this new function.
9906 (check_code_iterator): Make the error message more informative.
9907 (check_code_attribute): New function.
9908 (rtx_reader::rtx_alloc_for_name): Likewise.
9909 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
9910 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
9911 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
9912 <max_opp> directly as an rtx code instead of via a match_operator.
9913 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
9914 (<su>abd<mode>_3): Update accordingly.
9916 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
9918 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
9919 is given, print the state of the EH "save world" computation for
9922 2019-05-11 Jakub Jelinek <jakub@redhat.com>
9925 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
9926 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
9928 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
9930 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
9931 Use pinsrd for TARGET_SSE4_1.
9932 * config/i386/sse.md (movdi_to_sse): Ditto.
9934 2019-05-10 Richard Biener <rguenther@suse.de>
9936 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
9937 (do_rpo_vn): Initialize next_value_id.
9939 2019-05-10 Martin Liska <mliska@suse.cz>
9941 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
9944 2019-05-10 Jakub Jelinek <jakub@redhat.com>
9946 PR tree-optimization/90385
9947 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
9948 arguments of the exit phis.
9951 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
9952 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
9954 (copy_tree_body_r): Likewise.
9955 (copy_fn): Set id.do_not_fold to true.
9957 2019-05-10 Martin Liska <mliska@suse.cz>
9959 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
9960 Reapply changes from r269790.
9962 2019-05-10 Martin Liska <mliska@suse.cz>
9965 * doc/invoke.texi: New params.
9966 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
9967 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
9968 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
9970 * tree-switch-conversion.h (struct jump_table_cluster):
9973 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
9975 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
9977 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
9979 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
9981 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
9983 PR rtl-optimization/88879
9984 * sel-sched.c (sel_target_adjust_priority): Remove assert.
9986 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
9989 * config/arm/arm.c (callee_saved_reg_p): Move before
9990 thumb_find_work_register.
9991 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
9992 thumb_find_work_register. Only call df_get_live_out once.
9993 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
9994 (thumb_find_work_register): Use
9995 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
9996 algorithms to locate a spare call clobbered reg.
9998 2019-05-09 Martin Liska <mliska@suse.cz>
10000 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
10001 and MAX_EXPR in GIMPLE FE format.
10003 2019-05-09 Martin Liska <mliska@suse.cz>
10005 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
10006 * gimple-pretty-print.c (dump_gimple_bb_header):
10008 (pp_cfg_jump): Dump edge probability.
10009 * profile-count.c (profile_quality_as_string): Simplify
10010 with a static array.
10011 (parse_profile_quality): New function.
10012 (profile_count::dump): Simplify with a static array.
10013 (profile_count::from_gcov_type): Add new argument.
10014 * profile-count.h (parse_profile_quality): Likewise.
10015 * predict.h (set_hot_bb_threshold): New.
10016 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
10018 * predict.c (get_hot_bb_threshold): Set from the new param.
10019 (set_hot_bb_threshold): New.
10021 2019-05-09 Richard Biener <rguenther@suse.de>
10023 PR tree-optimization/90395
10024 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
10025 rewrite vector stores that throw internally.
10027 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
10029 * cif-code.def (CHKP): Remove.
10032 * configure.ac (--enable-frame-pointer): Disable by default for
10034 * configure: Regenerate.
10036 2019-05-09 Alan Modra <amodra@gmail.com>
10039 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
10040 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
10041 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
10042 cost for general <-> vsx when direct moves are available.
10043 Cost union classes at minimal cost for any reg in the class.
10044 Correct calculation for moves between vsx, float, and altivec.
10045 Don't return a low cost for moves between special regs. Don't
10046 use hard coded register numbers.
10047 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
10048 (rs6000_ira_change_pseudo_allocno_class): New function.
10049 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
10050 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
10052 (movsi_internal1): Don't disparage vector alternatives.
10053 (mov<mode>_internal): Likewise, excepting alternative that
10055 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
10056 we <- b alternative.
10058 2019-05-08 Jakub Jelinek <jakub@redhat.com>
10061 PR tree-optimization/89060
10062 * tree-ssa-live.h (live_vars_map): New typedef.
10063 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
10064 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
10065 (struct compute_live_vars_data): New type.
10066 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
10067 live_vars_at_stmt, destroy_live_vars): New functions.
10068 * tree-tailcall.c: Include tree-ssa-live.h.
10069 (live_vars, live_vars_vec): New global variables.
10070 (find_tail_calls): Perform variable life analysis before punting.
10071 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
10072 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
10074 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
10075 Perform variable life analysis to select variables that really need
10077 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
10078 instead set id->eh_landing_pad_dest and assert it is the same.
10079 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
10081 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
10082 Richard Earnshaw <rearnsha@arm.com>
10085 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
10087 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
10088 (thumb1_compute_save_core_reg_mask): Don't force a spare work
10089 register if both the epilogue and prologue can use call-clobbered
10091 (thumb1_unexpanded_epilogue): Use
10092 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
10093 picking temporaries for restoring high regs to match that of the
10094 prologue where possible.
10095 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
10096 the list of work registers. Detect if the return address is still live
10097 at the end of the prologue and avoid using it for a work register if so.
10098 If the return address is not live, add LR to the list of pushable regs
10099 after the first pass.
10101 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
10103 PR tree-optimization/90078
10104 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
10105 (INFTY): Increase the value for infinite cost.
10106 (struct comp_cost): Promote type of members to int64_t.
10107 (infinite_cost): Don't set complexity in initialization.
10108 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
10109 overflows to infinite_cost.
10110 (adjust_setup_cost): Promote type of parameter and cost computation
10112 (struct ainc_cost_data, struct iv_ca): Promote type of member to
10114 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
10115 cost computation to int64_t.
10116 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
10117 int64_t's format specifier in dump.
10119 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
10121 PR tree-optimization/90240
10122 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
10123 with respect to scaling factor pre-computed for each basic block.
10124 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
10125 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
10126 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
10127 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
10128 live range for array of loop's basic blocks. Cleanup aux field of
10129 loop's basic blocks.
10131 2019-05-08 Jakub Jelinek <jakub@redhat.com>
10133 PR tree-optimization/90356
10134 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
10136 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
10138 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
10139 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
10140 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
10141 (ix86_handle_option): Handle -mavx512bf16.
10142 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
10144 * config/i386/avx512bf16vlintrin.h: New.
10145 * config/i386/avx512bf16intrin.h: New.
10146 * config/i386/cpuid.h (bit_AVX512BF16): New.
10147 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
10148 * config/i386/i386-builtin-types.def: Add new types.
10149 * config/i386/i386-builtin.def: Add new builtins.
10150 * config/i386/i386-c.c (ix86_target_macros_internal): Define
10152 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
10153 (ix86_option_override_internal): Handle BF16.
10154 (ix86_valid_target_attribute_inner_p): Ditto.
10155 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
10156 * config/i386/i386-builtin.c (enum processor_features): Add
10158 (static const _isa_names_table isa_names_table): Ditto.
10159 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
10160 (PTA_AVX512BF16): Ditto.
10161 * config/i386/i386.opt: Add -mavx512bf16.
10162 * config/i386/immintrin.h: Include avx512bf16intrin.h
10163 and avx512bf16vlintrin.h.
10164 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
10165 avx512f_cvtneps2bf16_<mode><mask_name>,
10166 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
10167 * config/i386/subst.md (mask_half): Add new subst.
10168 * doc/invoke.texi: Document -mavx512bf16.
10170 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
10172 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
10173 Delete declaration.
10174 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
10175 (rs6000_debug_legitimize_reload_address): Delete.
10176 (rs6000_legitimize_reload_address_ptr): Delete.
10177 (rs6000_option_override_internal): Adjust.
10178 (mem_operand_gpr): Adjust comment.
10179 (legitimate_lo_sum_address_p): Ditto.
10180 (rs6000_legitimize_reload_address): Delete.
10181 (rs6000_debug_legitimize_reload_address): Delete.
10182 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
10184 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
10187 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
10188 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
10189 to compute vector element selector for both constant and variable
10192 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
10194 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
10195 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
10196 ashrdi3_cvt using SWI48 mode iterator.
10198 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10200 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
10201 (aarch64_<su>abd<mode>_3): Likewise.
10202 (*aarch64_<su>abd<mode>_3): New define_insn.
10203 (<sur>sad<vsi2qi>): New define_expand.
10204 * config/aarch64/iterators.md: Added MAX_OPP attribute.
10205 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
10206 (build_vect_cond_expr): Likewise.
10208 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
10210 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
10211 clobbers outside of accessible_reg_set.
10212 * config/i386/i386.c (ix86_conditional_register_usage):
10213 Disable register sets by clearing corresponding bits in
10214 accessible_reg_set. Do not set corresponding bits in fixed_regs,
10215 call_used_regs and don't clear corresponding reg_names array members.
10217 2019-05-07 Richard Biener <rguenther@suse.de>
10219 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
10220 not specified still compute a comp_vectype for invariant
10223 2019-05-07 Richard Biener <rguenther@suse.de>
10225 PR tree-optimization/90316
10226 * tree-ssa-pre.c (translate_vuse_through_block): When
10227 same_valid is NULL do not bother to search for a virtual
10229 (phi_translate_1): When operands changed we cannot keep
10230 the same value-number so do not bother to ask whether
10231 that's possible from translate_vuse_through_block.
10233 2019-05-07 Martin Liska <mliska@suse.cz>
10235 * bitmap.c (bitmap_register): Come up with
10236 alloc_descriptor_max_uid and assign it for
10238 (register_overhead): Use get_descriptor as
10240 (release_overhead): New.
10241 (bitmap_elem_to_freelist): Call it.
10242 (bitmap_elt_clear_from): Likewise.
10243 (bitmap_obstack_free): Likewise.
10244 (bitmap_move): Sensitively release memory.
10245 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
10246 (bitmap_initialize): Initialize alloc_descriptor to zero.
10247 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
10249 2019-05-07 Richard Biener <rguenther@suse.de>
10251 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
10252 we build a SLP node. Remove max_size and limiting.
10253 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
10255 2019-05-07 Richard Biener <rguenther@suse.de>
10257 PR tree-optimization/90316
10258 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
10259 limit by reference.
10260 (walk_non_aliased_vuses): Take walking limit argument.
10261 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
10262 walking if it is reached instead of just counting.
10263 (get_continuation_for_phi): Likewise.
10264 (walk_non_aliased_vuses): Likewise, instead of leaving counter
10265 limiting to the callback.
10266 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
10267 (vn_reference_lookup_3): Likewise.
10268 (vn_reference_lookup_pieces): Likewise.
10269 (vn_reference_lookup): Likewise.
10270 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
10271 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
10272 (avail_exprs_stack::lookup_avail_expr): Likewise.
10274 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
10276 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
10277 for comparaible types in the second direction even if first one
10278 hits incomparable type.
10280 2019-05-07 Richard Biener <rguenther@suse.de>
10283 * lto-wrapper.c (debug_objcopy): Use the original filename
10284 including archive offset for the filename used for -save-temps.
10286 2019-05-07 Li Jia He <helijia@linux.ibm.com>
10288 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
10291 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
10292 Hongtao Liu <hongtao.liu@intel.com>
10296 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
10297 Modified, original implementation isn't correct.
10299 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
10301 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
10302 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
10303 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
10304 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
10305 (FRAME_POINTER_REGNUM): Change numbering.
10306 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
10307 (alt_reg_names): Adjust.
10308 (rs6000_conditional_register_usage): Don't mark hard register 64 as
10310 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
10311 (DWARF_FRAME_REGISTERS): Delete.
10312 (DWARF2_FRAME_REG_OUT): Fix whitespace.
10313 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
10315 (REG_ALLOC_ORDER): Adjust.
10316 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
10317 (REG_CLASS_CONTENTS): Adjust.
10318 (RETURN_ADDR_RTX): Change comment.
10319 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
10321 (REGISTER_NAMES): Adjust.
10322 (ADDITIONAL_REGISTER_NAMES): Adjust.
10323 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
10325 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
10327 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
10329 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
10330 (DWARF_FRAME_REGISTERS): Adjust.
10331 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
10333 (REG_ALLOC_ORDER): Adjust.
10334 (enum reg_class): Delete SPR_REGS.
10335 (REG_CLASS_NAMES): Delete SPR_REGS.
10336 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
10337 (REGISTER_NAMES): Adjust.
10338 (ADDITIONAL_REGISTER_NAMES): Adjust.
10339 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
10340 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
10341 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
10342 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
10343 (htm_spr_regno): Delete.
10344 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
10346 (rs6000_dbx_register_number): Adjust.
10348 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
10350 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
10352 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
10354 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
10355 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
10357 2019-05-06 Jakub Jelinek <jakub@redhat.com>
10359 PR tree-optimization/88709
10360 PR tree-optimization/90271
10361 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
10362 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
10363 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
10365 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
10366 of the store merging group is larger than
10367 PARAM_STORE_MERGING_MAX_SIZE parameter.
10368 (split_group): Add bzero_first argument. If set, always emit first
10369 the first store which must be = {} of the whole area and then for the
10370 rest of the stores consider all zero bytes as paddings.
10371 (imm_store_chain_info::output_merged_store): Check if first store
10372 is = {} of the whole area and if yes, determine which setting of
10373 bzero_first for split_group gives smaller number of stores. Adjust
10374 split_group callers.
10375 (lhs_valid_for_store_merging_p): Allow decls.
10376 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
10378 (pass_store_merging::process_store): Likewise.
10380 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
10383 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
10384 handling of V1TImode.
10386 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
10389 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
10390 and enable_frame_pointer ...
10391 * configure.ac: ... here. Update help strings for
10392 --enable-frame-pointer.
10393 * configure: Regenerate.
10394 * config/i386/i386-options.c (ix86_option_override_internal): Remove
10395 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
10396 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
10397 (USE_X86_64_FRAME_POINTER): Ditto.
10399 2019-05-06 Martin Liska <mliska@suse.cz>
10401 * config.gcc: Append to target_gtfiles and fix indentation.
10403 2019-05-06 Richard Biener <rguenther@suse.de>
10405 PR tree-optimization/90358
10406 * tree-vect-stmts.c (get_group_load_store_type): Properly
10407 detect unused upper half of load.
10408 (vectorizable_load): Likewise.
10410 2019-05-06 Richard Biener <rguenther@suse.de>
10412 PR tree-optimization/88828
10413 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
10414 (simplify_vector_constructor): ...here. Handle constants in
10417 2019-05-06 Richard Biener <rguenther@suse.de>
10419 PR tree-optimization/90328
10420 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
10421 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
10422 is valid in the loop nest before using it.
10423 (initialize_data_dependence_relation): Adjust.
10424 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
10425 loop as loop-nest to dr_may_alias_p.
10427 2019-05-06 Richard Biener <rguenther@suse.de>
10429 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
10431 2019-05-06 Richard Biener <rguenther@suse.de>
10433 PR tree-optimization/90316
10434 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
10435 compute target on demand.
10436 (get_continuation_for_phi): Remove code walking stmts to
10437 get to a target virtual operand which could end up being
10440 2019-05-06 Martin Liska <mliska@suse.cz>
10443 * config/i386/i386-options.c (ix86_option_override_internal): Error only
10444 when -mabi is selected to a non-default version.
10446 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
10447 Martin Liska <mliska@suse.cz>
10449 * Makefile.in: Add lto-dump.texi.
10450 * cgraph.h: Add new functions get_visibility_string and
10451 get_symtab_type_string.
10452 * doc/gcc.texi: Include lto-dump section.
10453 * doc/lto-dump.texi: New file.
10454 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
10455 (parse_dump_option): Factor out this function.
10456 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
10457 (parse_dump_option): Export the function.
10458 * symtab.c (symtab_node::get_visibility_string): New function.
10459 (symtab_node::get_symtab_type_string): Likewise.
10461 2019-05-06 Martin Liska <mliska@suse.cz>
10463 * config/i386/i386-builtins.c: New file.
10464 * config/i386/i386-builtins.h: New file.
10465 * config/i386/i386-expand.c: New file.
10466 * config/i386/i386-expand.h: New file.
10467 * config/i386/i386-features.c: New file.
10468 * config/i386/i386-features.h: New file.
10469 * config/i386/i386-options.c: New file.
10470 * config/i386/i386-options.h: New file.
10471 * config.gcc: Add new files into extra_objs and
10473 * config/i386/i386.c: Split content of the file
10474 into newly introduced files.
10475 * config/i386/i386.h: Declare common variables
10477 * config/i386/t-i386: Define dependencies for new files.
10479 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
10482 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
10483 Restrict 'all' variant to 32-bit configurations.
10484 (unaligned_loadhiu): Likewise.
10485 (unaligned_storehi): Likewise.
10486 (unaligned_storesi): Likewise.
10487 (unaligned_loadhis): Disable when compiling for thumb1.
10489 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
10491 PR tree-optimization/90269
10492 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
10495 2019-05-03 Martin Liska <mliska@suse.cz>
10497 * hash-map.h: Add is_empty function.
10498 * hash-set.h: Likewise.
10499 * hash-table.h: Likewise.
10500 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
10501 elements () == 0 (and similar usages).
10502 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
10503 * gimplify.c (gimplify_bind_expr): Likewise.
10504 (gimplify_switch_expr): Likewise.
10505 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
10506 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
10507 * postreload-gcse.c (dump_hash_table): Likewise.
10508 (gcse_after_reload_main): Likewise.
10509 * predict.c (combine_predictions_for_bb): Likewise.
10510 * tree-parloops.c (reduction_phi): Likewise.
10511 (separate_decls_in_region): Likewise.
10512 (transform_to_exit_first_loop): Likewise.
10513 (gen_parallel_loop): Likewise.
10514 (gather_scalar_reductions): Likewise.
10515 (try_create_reduction_list): Likewise.
10516 * var-tracking.c (dump_vars): Likewise.
10517 (emit_notes_for_changes): Likewise.
10518 (vt_emit_notes): Likewise.
10520 2019-05-03 Richard Biener <rguenther@suse.de>
10522 PR tree-optimization/90316
10523 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
10526 2019-05-03 Richard Biener <rguenther@suse.de>
10528 * tree-vect-stmts.c (get_group_load_store_type): Avoid
10529 peeling for gaps by loading only lower halves of vectors
10531 (vectorizable_load): Likewise.
10533 2019-05-03 Richard Biener <rguenther@suse.de>
10535 PR middle-end/89518
10536 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
10538 2019-05-03 Richard Biener <rguenther@suse.de>
10540 PR middle-end/87314
10541 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
10542 Handle STRING_CST vs DECL or STRING_CST.
10544 2019-05-03 Richard Biener <rguenther@suse.de>
10546 PR tree-optimization/88963
10547 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
10548 vector loads feeding only BIT_FIELD_REFs to component
10549 loads. Rewrite stores fed by CONSTRUCTORs to component
10552 2019-05-03 Jakub Jelinek <jakub@redhat.com>
10554 * opts.h (finish_options): Remove lang_mask argument.
10555 (print_help, help_option_argument): Declare.
10556 * opts.c (print_help): Remove forward declaration, no longer static.
10557 (finish_options): Remove lang_mask argument, don't call print_help
10559 * opts-global.c (decode_options): Adjust finish_option caller, call
10562 PR tree-optimization/90303
10563 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
10564 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
10566 2019-05-03 Richard Biener <rguenther@suse.de>
10568 PR tree-optimization/89698
10569 * gimple-fold.c (canonicalize_constructor_val): Early out
10570 for constants, handle unfolded INTEGER_CSTs as they appear in
10571 C++ virtual table ctors.
10573 2019-05-03 Richard Biener <rguenther@suse.de>
10575 * passes.c (execute_function_todo): Remove dead code.
10577 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
10579 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
10580 the internal register number, for any "real" register.
10582 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
10584 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
10585 correct numbers for TFHAR, TFIAR, TEXASR.
10587 2019-05-02 Richard Biener <rguenther@suse.de>
10589 PR tree-optimization/89653
10590 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
10591 update-address-taken before the pass.
10592 * passes.def (pass_tree_loop_init): Put comment before it.
10594 2019-05-02 Richard Biener <rguenther@suse.de>
10596 PR tree-optimization/89509
10597 * tree-ssa-structalias.c (compute_dependence_clique): Look
10598 at the first subvar when determining whether it is restrict.
10600 2019-05-02 Richard Biener <rguenther@suse.de>
10602 PR tree-optimization/90273
10603 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
10604 useless debug stmts.
10606 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10608 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
10610 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
10612 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
10613 VEC_COND_EXPR be inserted to emulate a conditional internal function.
10614 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
10615 (vectorizable_reduction): Use the functions above to vectorize in a
10616 fully masked loop codes that don't have a conditional internal
10619 2019-05-02 Martin Liska <mliska@suse.cz>
10621 * cgraphclones.c: Call valid_attribute_p with 1 for
10623 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
10624 it's for target attribute.
10625 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
10626 Add new boolean argument.
10627 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
10629 (ix86_valid_target_attribute_tree): Pass target_clone_attr
10630 to ix86_valid_target_attribute_inner_p.
10631 (ix86_valid_target_attribute_p): Pass flags argument to
10632 ix86_valid_target_attribute_inner_p.
10633 (get_builtin_code_for_version): Use 0 as it's target attribute.
10635 2019-05-02 Martin Liska <mliska@suse.cz>
10637 * gcc.c (process_command): Add dummy file only
10639 * opts-global.c (decode_options): Pass lang_mask.
10640 * opts.c (print_help): New function.
10641 (finish_options): Print --help if help_option_argument
10643 (common_handle_option): Factor out content of OPT__help_
10645 * opts.h (finish_options): Add new argument.
10647 2019-05-02 Martin Liska <mliska@suse.cz>
10650 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
10651 With -minline-all-stringops use inline expansion using 4B loop.
10652 * doc/invoke.texi: Document the change of
10653 -minline-all-stringops.
10655 2019-05-01 Jeff Law <law@redhat.com>
10657 PR tree-optimization/88797
10658 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
10659 PHI feeds a conditional on the RHS of an assignment.
10661 2019-04-30 Andrew Waterman <andrew@sifive.com>
10662 Jim Wilson <jimw@sifive.com>
10664 * config/riscv/constraints.md (L): New.
10665 * config/riscv/predicates.md (lui_operand): New.
10666 (sfb_alu_operand): New.
10667 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
10668 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
10669 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
10670 * config/riscv/risc.md (type): Add sfb_alu.
10671 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
10672 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
10673 (branch_zero<mode>): Delete.
10674 (mov<mode>cc): New.
10675 (mov<GPR:mode><X:mode>cc): Likewise.
10676 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
10678 2019-04-30 Nathan Sidwell <nathan@acm.org>
10680 * tree.h (MARK_TS_EXP): New.
10682 2019-04-30 Martin Liska <mliska@suse.cz>
10684 * opts.c (enable_warning_as_error): Provide hints
10685 for unknown options.
10687 2019-04-30 Martin Liska <mliska@suse.cz>
10690 * doc/invoke.texi: Add missing dash for gas-locview-support
10691 and gno-as-locview-support.
10693 2019-04-30 Jakub Jelinek <jakub@redhat.com>
10696 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
10697 whitespace at the start of target attribute string.
10699 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10702 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
10703 Define __ARM_FEATURE_ATOMICS.
10705 2019-04-30 Martin Liska <mliska@suse.cz>
10707 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
10708 into built_in_function enum. Remove code for endp == 2 and
10709 use BUILT_IN_* constants.
10710 (gimple_fold_builtin): Call the function with fcode.
10712 2019-04-30 Martin Liska <mliska@suse.cz>
10714 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
10715 DECL_FUNCTION_CODE into ix86_builtins enum before
10716 the switch statement.
10718 2019-04-30 Jakub Jelinek <jakub@redhat.com>
10720 PR tree-optimization/89475
10721 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
10724 2019-04-30 Martin Liska <mliska@suse.cz>
10726 PR translation/90274
10727 * opts.c (print_filtered_help): Wrap string in _(...).
10729 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
10731 PR tree-optimization/90240
10733 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
10735 PR tree-optimization/90078
10736 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
10737 checks for infinite_cost overflow.
10739 2019-04-29 Jeff Law <law@redhat.com>
10741 * passes.def: Move -Wrestrict pass after copy propagation.
10743 2019-04-29 Maya Rashish <coypu@sdf.org>
10745 * config.gcc (default_gnu_indirect_function): Default to yes
10746 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
10747 sparc*-*-netbsd*, x86_64-*-netbsd*.
10749 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
10751 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
10752 where cond2 is NE_EXPR.
10753 (is_value_included_in): Update comment.
10755 2019-04-29 Richard Biener <rguenther@suse.de>
10757 PR tree-optimization/90278
10758 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
10759 EH on comparison simplification.
10761 2019-04-29 Jason Merrill <jason@redhat.com>
10763 PR c++/82081 - tail call optimization breaks noexcept
10764 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
10765 nothrow function to a might-throw function into a tail call.
10767 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
10769 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
10770 (DDR_INNER_LOOP): Likewise.
10771 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
10772 (initialize_data_dependence_relation): Likewise.
10773 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
10775 2019-04-29 Jakub Jelinek <jakub@redhat.com>
10777 PR rtl-optimization/90257
10778 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
10782 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
10786 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
10789 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
10792 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
10794 * lra-spills.c (lra_final_code_change): Remove useless move insns.
10796 2019-04-29 Richard Biener <rguenther@suse.de>
10798 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
10801 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
10803 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
10804 varasm.h, and netbsd-protos.h.
10806 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
10809 * config/i386/i386-protos.h (ix86_data_alignment): Change
10810 the second argument type to unsigned int.
10811 * config/i386/i386.c (ix86_data_alignment): Change "align"
10812 argument type to unsigned int.
10814 2019-04-27 Martin Liska <mliska@suse.cz>
10816 PR middle-end/90258
10817 * opt-suggestions.c (option_proposer::build_option_suggestions):
10818 When get_valid_option_values returns empty values, add the
10819 misspelling candidate.
10821 2019-04-26 Jim Wilson <jimw@sifive.com>
10823 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
10825 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
10826 Pass orig_mode to riscv_build_integer.
10827 (riscv_split_integer): Pass mode to riscv_move_integer.
10828 (riscv_legitimize_const_move): Likewise.
10829 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
10830 promoted_mode. Replace force_reg call with code to load constant into
10831 promoted reg and then subreg it for the store.
10832 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
10833 riscv_move_integer.
10835 2018-04-26 Eugene Sharygin <eush@ispras.ru>
10837 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
10840 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
10842 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
10843 commentary about the encoding of precision.
10845 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
10847 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
10848 * config/i386/t-freebsd64: New file.
10849 * config.gcc: Add the t-freebsd64 for multilib support.
10851 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
10853 * doc/extend.texi (vector_size): Add missing comma after @xref.
10855 2019-04-25 Jakub Jelinek <jakub@redhat.com>
10857 * BASE-VER: Set to 10.0.0.
10859 2019-04-25 Richard Biener <rguenther@suse.de>
10861 PR middle-end/89765
10862 * gimplify.c (gimplify_expr): Avoid turning a lvalue
10863 VIEW_CONVERT_EXPR into one operating on an rvalue.
10865 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
10868 * config/i386/i386.c (feature_priority): Moved to file scope.
10869 (processor_features): Likewise.
10870 (processor_model): Likewise.
10871 (_arch_names_table): Likewise.
10872 (arch_names_table): Likewise.
10873 (_feature_list): Removed.
10874 (feature_list): Likewise.
10875 (_isa_names_table): Moved to file scope. Add priority.
10876 (isa_names_table): Likewise.
10877 (get_builtin_code_for_version): Replace feature_list with
10878 isa_names_table. Update error message for P_ZERO priority.
10880 2019-04-25 Richard Biener <rguenther@suse.de>
10882 * tree-pass.h (make_pass_phi_only_cprop): Remove.
10883 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
10885 2019-04-24 Jeff Law <law@redhat.com>
10887 PR tree-optimization/90037
10888 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
10889 * passes.def: Replace all instance of phi-only cprop with the
10890 lattice propagator. Move propagation pass from after erroneous
10891 path isolation to before erroneous path isolation.
10892 * tree-ssa-phionlycprop.c: Remove.
10894 2019-04-24 Richard Biener <rguenther@suse.de>
10896 PR middle-end/90213
10897 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
10898 by size and BITS_PER_UNIT on poly-wide-ints.
10900 2019-04-25 Richard Biener <rguenther@suse.de>
10902 PR middle-end/90194
10903 * match.pd: Add pattern to simplify view-conversion of an
10906 2019-04-24 Clement Chigot <clement.chigot@atos.net>
10908 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
10909 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
10910 for Go on 32 bit AIX.
10911 * config/rs6000/aix72.h: Likewise.
10913 2019-04-24 Jakub Jelinek <jakub@redhat.com>
10916 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
10917 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
10919 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
10922 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
10923 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
10924 for restored hard frame pointer.
10925 (s390_sched_dependencies_evaluation): Implement new target hook.
10926 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
10928 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
10930 * config/arc/arc-options.def: Fix typos and spelling mistakes.
10931 * config/arc/arc.c (arc_init): Cleanup warning message.
10932 (arc_override_options): Likewise.
10934 2019-04-24 Jakub Jelinek <jakub@redhat.com>
10937 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
10938 a register if both if_true and if_false are MEMs.
10940 PR tree-optimization/90208
10941 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
10942 after labels of new_bb, not before them.
10944 PR tree-optimization/90211
10945 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
10946 which are not SSA_NAMEs.
10948 2018-04-23 Sudakshina Das <sudi.das@arm.com>
10950 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
10952 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
10954 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
10956 PR rtl-optimization/87979
10957 * modulo-sched.c (sms_schedule): Start ii value "mii" should
10960 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
10962 PR rtl-optimization/84032
10963 * modulo-sched.c (ps_insn_find_column): Change condition so that
10964 branch will always be the last insn in a row inside partial
10967 2019-04-23 Richard Biener <rguenther@suse.de>
10970 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
10971 dest_single_pred_p argument.
10972 (remove_forwarder_block): Adjust.
10973 (remove_forwarder_block_with_phi): Likewise.
10975 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10976 Bernd Edlinger <bernd.edlinger@hotmail.de>
10977 Jakub Jelinek <jakub@redhat.com>
10980 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
10981 if used with general-regs-only.
10982 (arm_conditional_register_usage): Don't add non-general regs if
10984 (arm_valid_target_attribute_rec): Handle general-regs-only.
10985 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
10987 (TARGET_HARD_FLOAT_SUB): Define.
10988 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
10989 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
10990 (TARGET_REALLY_IWMMXT2): Likewise.
10991 * config/arm/arm.opt: Add -mgeneral-regs-only.
10992 * doc/extend.texi: Document ARM general-regs-only target.
10993 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
10995 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
10997 PR tree-optimization/90078
10998 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
10999 checks for infinite_cost overflow.
11001 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
11003 PR tree-optimization/90021
11004 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
11005 and check univariate against it.
11006 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
11007 * tree-data-ref.c (add_other_self_distances): Pass new argument.
11009 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
11013 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
11016 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
11019 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
11021 * lra-spills.c (lra_final_code_change): Remove useless move insns.
11023 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
11025 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
11026 names using operand format, rather than hard-wired.
11027 (speculation_barrier): Likewise.
11029 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
11031 PR tree-optimization/88055
11032 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
11033 (gen_one_condition): Use it if !HONOR_NANS.
11035 2019-04-19 Jakub Jelinek <jakub@redhat.com>
11037 PR middle-end/90139
11038 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
11039 assign_temp instead of gen_reg_rtx.
11041 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
11043 PR translation/90118
11044 * config/aarch64/aarch64.c (aarch64_override_options_internal):
11045 Add missing space before %<.
11047 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
11049 PR rtl-optimization/87871
11050 * ira-lives.c (make_object_dead): Don't add conflicts to
11051 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
11053 2019-04-18 Martin Sebor <msebor@redhat.com>
11055 PR middle-end/89797
11056 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
11057 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
11058 assuming type size fits in SHWI.
11060 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
11063 * ipa-inline.c (flatten_function): New parameter UPDATE.
11064 (ipa_inline, early_inliner): Use it.
11066 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
11068 * fold-const.c (int_const_binop): Return early on failure.
11070 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
11072 PR middle-end/85164
11073 * combine.c (force_int_to_mode): Cast the argument rather than
11074 the result of known_alignment.
11075 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
11077 2019-04-18 Richard Biener <rguenther@suse.de>
11080 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
11082 (remove_forwarder_block): ... here.
11083 (remove_forwarder_block_with_phi): Also move debug stmts here.
11085 2019-04-18 Jakub Jelinek <jakub@redhat.com>
11087 PR translation/79183
11088 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
11089 inform where appropriate.
11091 2019-04-18 Richard Biener <rguenther@suse.de>
11093 * tree.c (get_qualified_type): Put found type variants at the
11094 head of the variant list.
11096 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
11098 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
11100 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
11103 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
11104 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
11105 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
11106 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
11107 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
11109 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
11111 * ira-conflicts.c (print_allocno_conflicts): Always print something,
11112 even for allocno's with no conflicts.
11113 (print_conflicts): Print an extra newline.
11115 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
11117 * auto-inc-dec.c (attempt_change): Set the alignment of the
11118 temporary memory to that of the original.
11120 2019-04-17 Joao Moreira <jmoreira@suse.de>
11122 * targhooks.c (default_print_patchable_function_entry): Emit
11123 __patchable_function_entries section with writable flags to allow
11124 relocation resolution.
11126 2019-04-17 Jonny Grant <jg@jguk.org>
11128 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
11130 2019-04-17 Jakub Jelinek <jakub@redhat.com>
11132 PR middle-end/90095
11133 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
11134 on lowpart SUBREGs.
11136 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
11138 * config/arc/arc.c (arc_init): Format diagnostic string.
11139 (arc_override_options): Likewise.
11140 (check_if_valid_regno_const): Likewise.
11141 (arc_reorg): Likewise.
11143 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
11146 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
11148 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
11150 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
11151 (*movdi_update1): Use Pmode.
11152 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
11153 (movdi_<mode>_update_stack): Rename to ...
11154 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
11156 (*movsi_update1): Use Pmode.
11157 (*movsi_update2): Use Pmode.
11158 (movsi_update): Rename to ...
11159 (movsi_<mode>_update): ... this. Use Pmode.
11160 (movsi_update_stack): Fix condition.
11161 (*movhi_update1): Use Pmode. Fix argument to
11162 avoiding_indexed_address_p.
11163 (*movhi_update2): Ditto.
11164 (*movhi_update3): Ditto.
11165 (*movhi_update4): Ditto.
11166 (*movqi_update1): Ditto.
11167 (*movqi_update2): Ditto.
11168 (*movqi_update3): Ditto.
11169 (*movsf_update1, *movdf_update1): Merge, rename to...
11170 (*mov<mode>_update1): This. Use Pmode. Fix argument to
11171 avoiding_indexed_address_p. Add "size" attribute.
11172 (*movsf_update2, *movdf_update2): Merge, rename to...
11173 (*mov<mode>_update2): This. Ditto.
11174 (*movsf_update3): Use Pmode. Fix argument to
11175 avoiding_indexed_address_p.
11176 (*movsf_update4): Ditto.
11177 (allocate_stack): Simplify condition. Adjust pattern names.
11179 2019-04-17 Jakub Jelinek <jakub@redhat.com>
11182 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
11183 whitespace at the start of target attribute string.
11185 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
11188 * config/rs6000/power9.md: Add store forwarding bypass.
11190 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
11193 * valtrack.c (dead_debug_insert_temp): Reset debug references
11194 to the return value of a call being removed.
11196 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
11198 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
11199 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
11200 implement target hook.
11201 (arc_memory_move_cost): New function.
11202 (TARGET_REGISTER_MOVE_COST): Define.
11203 (TARGET_MEMORY_MOVE_COST): Likewise.
11204 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
11205 (MEMORY_MOVE_COST): Likewise.
11207 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
11209 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
11210 (sibcall_value_insn): Likewise.
11211 * config/arc/constraints.md (Rs5): Remove.
11213 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
11215 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
11216 for last two fake registers.
11217 (arc_conditional_register_usage): Make sure fake frame and arg
11218 pointer regs are in general regs class.
11219 (FRAME_POINTER_MASK): Remove.
11220 (RETURN_ADDR_MASK): Remove.
11221 (arc_must_save_register): Use hard frame regnum.
11222 (frame_restore_reg): Use hard_frame_pointer_rtx.
11223 (arc_save_callee_saves): Likewise.
11224 (arc_restore_callee_saves): Likewise.
11225 (arc_save_callee_enter): Likewise.
11226 (arc_restore_callee_leave): Likewise.
11227 (arc_save_callee_milli): Likewise.
11228 (arc_eh_return_address_location): Likewise.
11229 (arc_check_multi): Use hard frame regnum.
11230 (arc_can_eliminate): Likewise.
11231 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
11232 for register allocator.
11233 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
11234 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
11235 (FRAME_POINTER_REGNUM): Change it to a fake register.
11236 (HARD_FRAME_POINTER_REGNUM): Defined.
11237 (ARG_POINTER_REGNUM): Change it to a new fake register.
11238 (ELIMINABLE_REGS): Update.
11239 (REGISTER_NAMES): Update names.
11240 * config/arc/arc.md (LP_START): Remove.
11241 (LP_END): Likewise.
11242 (shift_si3_loop): Update pattern.
11244 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
11246 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
11247 to avoid delay slot scheduling.
11248 (arc_must_save_register): Don't save SP.
11249 * config/arc/arc.md (stack_tie): Remove.
11250 (UNSPEC_ARC_STKTIE): Likewise.
11252 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
11253 Shiva Chen <shiva0217@gmail.com>
11255 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
11256 code gen with large shift amount.
11258 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
11260 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
11263 2019-04-16 Jakub Jelinek <jakub@redhat.com>
11266 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
11267 print -m64/-mx32/-m32 if it is true.
11268 (ix86_debug_options, ix86_function_specific_print): Pass true as
11269 ADD_ABI_P to ix86_target_string.
11270 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
11271 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
11272 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
11274 PR rtl-optimization/90082
11275 * dce.c (can_delete_call): New function.
11276 (deletable_insn_p, mark_insn): Use it.
11278 PR tree-optimization/90090
11279 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
11281 (is_division_by_square): Likewise. Formatting fix.
11283 2019-04-16 Richard Biener <rguenther@suse.de>
11285 PR tree-optimization/56049
11286 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
11287 equality check if alias-set zero will prevail.
11289 2019-04-15 Jeff Law <law@redhat.com>
11291 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
11292 size and alignment as unsigned.
11294 2019-04-15 Richard Biener <rguenther@suse.de>
11297 * tree-loop-distribution.c (destroy_loop): Preserve correct
11300 2019-04-15 Richard Biener <rguenther@suse.de>
11302 PR tree-optimization/90071
11303 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
11304 abnormal operands from def stmts.
11306 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
11308 PR rtl-optimization/89794
11309 * combine.c (count_auto_inc): New function.
11310 (try_combine): Count how many auto_inc expressions there were in the
11311 original instructions. Ensure we have the same number in the new
11312 instructions. Remove the code that tried to ensure auto_inc side
11313 effects on i1 and i0 are not lost.
11315 2019-04-15 Richard Biener <rguenther@suse.de>
11318 * tree.h (auto_var_p): Declare.
11319 * tree.c (auto_var_p): New function, split out from ...
11320 (auto_var_in_fn_p): ... here.
11321 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
11323 (new_var_info): Initialize it.
11324 (set_uids_in_ptset): Also set the shadow variable uid if required.
11325 (ipa_pta_execute): Postprocess points-to solutions assigning
11326 shadow variable uids for locals that may reach their containing
11327 function recursively.
11328 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
11329 assert but instead check whether the points-to solution is
11332 2019-04-15 Martin Jambor <mjambor@suse.cz>
11335 * cgraph.c (clone_of_p): Loop over clone chain for each step in
11338 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
11340 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
11342 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
11343 Kito Cheng <kito.cheng@gmail.com>
11344 Shiva Chen <shiva0217@gmail.com>
11346 * config/nds32/nds32-md-auxiliary.c
11347 (nds32_legitimize_pic_address): Use new PIC pattern.
11348 (nds32_legitimize_tls_address): Use new TLS pattern.
11349 (nds32_output_symrel): New.
11350 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
11351 (nds32_alloc_relax_group_id): Ditto.
11352 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
11353 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
11355 (nds32_group_tls_insn): Ditto.
11356 (nds32_group_float_insns): Ditto.
11357 * config/nds32/nds32.md (tls_le): New.
11360 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
11362 * configure: Add nds32 target for dwarf2 debug_line checking.
11363 * configure.ac: Regenerated.
11365 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
11368 * ipa-devirt.c (skip_in_fields_list_p): New.
11369 (odr_types_equivalent_p): Use it.
11371 2019-04-13 Jakub Jelinek <jakub@redhat.com>
11374 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
11375 instead of strncmp when checking for thumb and arm. Formatting fixes.
11377 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
11379 * doc/install.texi: Document --with-target-system-zlib.
11381 2019-04-12 Martin Sebor <msebor@redhat.com>
11387 * targhooks.c (default_vector_alignment): Avoid assuming
11388 argument fits in SHWI.
11389 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
11390 a shift expression.
11391 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
11393 2019-04-12 Jakub Jelinek <jakub@redhat.com>
11395 PR rtl-optimization/89965
11396 * dce.c: Include rtl-iter.h.
11397 (struct check_argument_load_data): New type.
11398 (check_argument_load): New function.
11399 (find_call_stack_args): Check for loads from stack slots still tracked
11400 in sp_bytes and punt if any is found.
11402 * config/mips/loongson-mmiintrin.h: Fix up #error message.
11404 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
11406 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
11407 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
11409 2019-04-12 Martin Liska <mliska@suse.cz>
11411 PR middle-end/89970
11412 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
11414 (separate_attrs): Handle multiple 'default's.
11415 (expand_target_clones): Rework error handling code.
11417 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
11420 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
11421 mode of vector rather than mode of destination for move instruction.
11422 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
11423 Use QI inner mode with V16QI vector mode.
11425 2019-04-12 Jakub Jelinek <jakub@redhat.com>
11428 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
11429 "invalid %%t operand" in output_operand_lossage message.
11431 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
11433 * config/s390/predicates.md (permute_pattern_operand): New
11435 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
11436 operand for the permute pattern.
11437 ("*vec_perm<mode>"): New insn definition.
11438 ("bswap<mode>"): Generate the permute pattern operand in the
11439 expander and perform the operand reloads for pre arch13 level
11441 ("*bswap<mode>_emu"): Rename to ...
11442 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
11443 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
11444 Add the USE operand for the permute pattern.
11445 ("*vec_set_bswap_vec<mode>"): Likewise.
11447 2019-04-12 Jakub Jelinek <jakub@redhat.com>
11450 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
11451 and gcc_unreachable if it fails, just call tree_to_uhwi which
11452 verifies that too. Test TREE_CHAIN instead of list_length > 1.
11453 Start warning message with a lower-case letter. Formatting fixes.
11455 PR rtl-optimization/90026
11456 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
11457 successors, look for BARRIERs inside of the whole BB_FOOTER chain
11458 rather than just at the start of it. If e->src BB_FOOTER is not NULL
11459 in cfglayout mode, use emit_barrier_after_bb.
11461 2018-04-11 Steve Ellcey <sellcey@marvell.com>
11463 PR rtl-optimization/87763
11464 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
11467 2019-04-11 Tom de Vries <tdevries@suse.de>
11469 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
11470 max macro using statement expression.
11472 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
11474 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
11475 * xcoffout.c (xcoff_private_rodata_section_name): Define.
11476 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
11477 read_only_private_data_section using xcoff_private_rodata_section_name.
11478 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
11480 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
11483 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
11485 2019-04-11 Jakub Jelinek <jakub@redhat.com>
11487 PR rtl-optimization/89965
11488 * dce.c (sp_based_mem_offset): New function.
11489 (find_call_stack_args): Use sp_based_mem_offset.
11491 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
11493 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
11495 2019-04-11 Richard Biener <rguenther@suse.de>
11497 PR tree-optimization/90020
11498 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
11499 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
11500 * tree-ssa-pre.c (compute_avail): Use it to not put
11501 possibly trapping references after a call that might not
11502 return into EXP_GEN.
11503 * gcse.c (compute_hash_table_work): Do not elide
11504 marking a block containing a call if the call might not
11507 2019-04-11 Richard Biener <rguenther@suse.de>
11509 PR tree-optimization/90018
11510 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
11511 Test both SLP and interleaving variants.
11513 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
11515 * config/s390/8561.md: New file.
11516 * config/s390/driver-native.c (s390_host_detect_local_cpu):
11517 Add arch13 cpu model.
11518 * config/s390/s390-opts.h (enum processor_type): Likewise.
11519 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
11520 (s390_get_unit_mask): Likewise.
11521 (s390_is_fpd): Likewise.
11522 (s390_is_fxd): Likewise.
11523 * config/s390/s390.h (s390_tune_attr): Likewise.
11524 * config/s390/s390.md: Include arch13 pipeline description.
11525 * config/s390/s390.opt: Add arch13.
11527 2018-04-10 Steve Ellcey <sellcey@marvell.com>
11529 PR rtl-optimization/87763
11530 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
11532 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
11534 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
11536 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
11537 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
11538 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
11539 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
11541 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
11543 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
11544 "Although" in -fipa-icf documentation.
11546 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
11547 of using multiple -g options.
11549 2019-04-10 Martin Liska <mliska@suse.cz>
11551 PR gcov-profile/89959
11552 * doc/gcov.texi: Make documentation of -x option
11555 2019-04-10 Richard Biener <rguenther@suse.de>
11557 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
11559 (DR_GROUP_SAME_DR_STMT): Remove.
11560 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
11561 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
11562 replace with assert.
11563 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
11564 (vect_record_grouped_load_vectors): Remove unreachable code.
11566 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
11569 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
11570 obsolete reference to N.
11572 2019-04-10 Jakub Jelinek <jakub@redhat.com>
11574 PR middle-end/90025
11575 * expr.c (store_expr): Set properly size on the MEM passed to
11579 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
11580 with strlen in between hostsz-3 and hostsz-1 inclusive when no
11581 translation is needed, and when translation is needed, only append
11582 ... if the string length is hostsz or more bytes long. Avoid using
11585 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
11588 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
11589 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
11591 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
11592 differences directly.
11593 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
11595 2019-04-09 Jakub Jelinek <jakub@redhat.com>
11597 PR translation/90011
11598 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
11600 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
11602 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
11603 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
11604 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
11605 trailing space from -gsplit-dwarf diagnostics.
11607 PR tree-optimization/89998
11608 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
11609 instead of integer_type_node if possible, don't add ranges if return
11610 type is not compatible with int.
11611 * gimple-fold.c (gimple_fold_builtin_sprintf,
11612 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
11615 2019-04-09 Martin Liska <mliska@suse.cz>
11617 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
11618 * doc/install.texi: Document the new config.
11620 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
11622 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
11623 use gimple_expr_type for load and store calls. Skip over the
11624 condition argument in a conditional internal function.
11625 Protect use of TREE_INT_CST_LOW.
11627 2019-04-09 Jakub Jelinek <jakub@redhat.com>
11630 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
11631 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
11632 trailing period from it too.
11634 2019-04-08 wu yuan <wuyuan5@huawei.com>
11636 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
11637 * config/aarch64/aarch64.md : Add "tsv110.md"
11638 * config/aarch64/tsv110.md: New file.
11640 2019-04-08 Richard Biener <rguenther@suse.de>
11642 PR tree-optimization/90006
11643 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
11646 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
11649 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
11651 (fma_root_node): Likewise.
11652 (func_fma_steering): Likewise.
11654 2019-04-08 Jakub Jelinek <jakub@redhat.com>
11656 PR rtl-optimization/89865
11657 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
11659 PR rtl-optimization/89865
11660 * config/i386/i386.md
11661 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
11662 numbers not to clash with the additional operands[4].
11663 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
11664 with extra register copy in the middle.
11666 2019-04-08 Martin Liska <mliska@suse.cz>
11668 PR gcov-profile/89961
11669 * doc/gcov.texi: Document data_file.
11670 * gcov.c (generate_results): Add data_info into JSON output.
11672 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
11674 PR tree-optimization/89725
11675 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
11676 loop's chrec as invariant symbol.
11677 * tree-chrec.h (chrec_contains_symbols): New parameter.
11678 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
11679 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
11680 function of loops not in DDR's loop_nest.
11681 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
11683 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
11686 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
11689 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
11692 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
11693 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
11695 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
11697 * sched-deps.c (sched_macro_fuse_insns): Check return value of
11698 targetm.fixed_condition_code_regs.
11700 2019-04-05 Richard Biener <rguenther@suse.de>
11704 * tree-cfgcleanup.c (remove_forwarder_block): Always move
11705 debug bind stmts but reset them if they are not valid at the
11708 2019-04-05 Martin Liska <mliska@suse.cz>
11710 PR translation/89936
11711 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
11712 order to wrap keywords or arguments.
11713 * collect2.c (main): Likewise.
11714 (scan_prog_file): Likewise.
11715 (scan_libraries): Likewise.
11716 * common/config/riscv/riscv-common.c
11717 (riscv_subset_list::parsing_subset_version): Likewise.
11718 (riscv_subset_list::parse_std_ext): Likewise.
11719 * config/aarch64/aarch64.c (aarch64_override_options_internal):
11721 * config/arm/arm.c (arm_option_override): Likewise.
11722 * config/cris/cris.c (cris_print_operand): Likewise.
11723 * config/darwin-c.c (darwin_pragma_options): Likewise.
11724 (darwin_pragma_unused): Likewise.
11725 (darwin_pragma_ms_struct): Likewise.
11726 * config/ft32/ft32.c (ft32_print_operand): Likewise.
11727 * config/i386/i386.c (print_reg): Likewise.
11728 (ix86_print_operand): Likewise.
11729 * config/i386/xm-djgpp.h: Likewise.
11730 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
11731 * config/m32c/m32c.c (m32c_option_override): Likewise.
11732 * config/msp430/msp430.c (msp430_option_override): Likewise.
11733 * config/nds32/nds32.c (nds32_option_override): Likewise.
11734 * config/nvptx/mkoffload.c (main): Likewise.
11735 * config/rx/rx.c (rx_print_operand): Likewise.
11736 (valid_psw_flag): Likewise.
11737 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
11738 (vms_pragma_nomember_alignment): Likewise.
11739 (vms_pragma_extern_model): Likewise.
11740 * lto-wrapper.c (compile_offload_image): Likewise.
11741 * omp-offload.c (oacc_parse_default_dims): Likewise.
11742 * symtab.c (symtab_node::verify_base): Likewise.
11743 * tlink.c (recompile_files): Likewise.
11744 (start_tweaking): Likewise.
11745 * tree-profile.c (parse_profile_filter): Likewise.
11747 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
11749 PR tree-optimization/89956
11750 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
11751 multiple negates of the same value.
11753 2019-04-04 Martin Sebor <msebor@redhat.com>
11755 PR middle-end/89957
11756 PR middle-end/89911
11757 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
11758 have the same precision since the function crashes otherwise.
11759 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
11760 has non-zero arguments.
11762 2019-04-04 Martin Sebor <msebor@redhat.com>
11764 PR middle-end/89934
11765 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
11766 out if the number of arguments is less than expected.
11768 2019-04-04 Jeff Law <law@redhat.com>
11770 PR rtl-optimization/89399
11771 * ree.c (combine_set_extension): Use single_set rather than
11772 digging into PATTERN for items on the candidate list.
11773 (combine_reaching_defs): Likewise.
11775 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
11777 PR rtl-optimization/46590
11778 * loop-invariant.c (find_defs): Move df_remove_problem and
11779 df_process_deferred_rescans to move_invariants.
11780 Move df_live_add_problem and df_live_set_all_dirty calls
11781 to move_invariants.
11782 (move_invariants): Likewise.
11783 (move_loop_invariants): Likewise, making the df_live calls
11784 conditional on -O. Remove the problem again if we added it
11787 2019-04-03 qing zhao <qing.zhao@oracle.com>
11789 PR tree-optimization/89730
11790 * ipa-inline.c (can_inline_edge_p): Delete the checking for
11791 -flive-patching=inline-only-static.
11792 (can_inline_edge_by_limits_p): Add the checking for
11793 -flive-patching=inline-only-static and grant always_inline
11794 even when -flive-patching=inline-only-static is specified.
11796 2019-04-03 Jeff Law <law@redhat.com>
11798 PR rtl-optimization/81025
11799 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
11801 2019-04-03 Richard Biener <rguenther@suse.de>
11803 PR tree-optimization/84101
11804 * tree-vect-stmts.c: Include explow.h for hard_function_value,
11805 regs.h for hard_regno_nregs.
11806 (cfun_returns): New helper.
11807 (vect_model_store_cost): When vectorizing a store to a decl
11808 we return and the function ABI returns in a multi-reg location
11809 account for the possible spilling that will happen.
11811 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
11813 * config/s390/s390.c (s390_legitimate_address_p): Reject long
11814 displacement addresses for vector mode operands.
11816 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
11818 * config/arc/arc.c (GMASK_LEN): Define.
11819 (arc_restore_callee_saves): Restore first blink when
11822 2019-04-03 Sudakshina Das <sudi.das@arm.com>
11824 * doc/extend.texi: Add deprecated comment on sign-return-address
11825 function attribute and add mbranch-protection.
11826 * doc/invoke.texi: Add bti to the options for mbranch-protection.
11828 2019-04-03 Richard Biener <rguenther@suse.de>
11831 * lto-wrapper.c (run_gcc): Avoid implicit rules making
11832 the all target phony.
11834 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
11838 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
11839 Return false for variable DImode shifts.
11840 (dimode_scalar_chain::compute_convert_gain): Do not handle
11841 register count operand in variable DImode shifts.
11842 (dimode_scalar_chain::make_vector_copies): Remove support to copy
11843 count argument of a variable shift instruction to a vector register.
11844 (dimode_scalar_chain::convert_reg): Remove support to convert
11845 count argument of a variable shift instruction.
11847 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
11849 PR rtl-optimization/84206
11850 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
11851 iterating over loop headers.
11853 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
11855 PR rtl-optimization/85876
11856 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
11857 beyond the original fence.
11859 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
11861 * config.gcc: Mark spu* targets as deprecated/obsolete.
11863 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11865 * config/s390/s390-builtin-types.def: New builtin function type
11866 definitions. Remove unused types.
11867 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
11868 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
11869 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
11870 overloaded builtins.
11871 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
11872 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
11873 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
11874 (vec_double, vec_signed, vec_unsigned): Define to use the new
11875 overloaded builtins.
11876 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
11879 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11881 * config/s390/s390-builtin-types.def: New builtin function type
11883 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
11884 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
11885 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
11886 (s390_vstrszh, s390_vstrszf): New low-level builtins.
11887 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
11888 constant definitions.
11889 * config/s390/vecintrin.h (vec_search_string_cc)
11890 (vec_search_string_until_zero_cc): New builtin name definitions.
11891 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
11893 ("vec_vstrs<mode>"): New insn definition.
11895 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11897 * config/s390/s390-builtin-types.def: Add new builtin function
11899 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
11900 New overloaded builtins.
11901 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
11903 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
11904 (UNSPEC_VEC_SLDBYTE): ... this.
11905 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
11906 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
11908 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
11909 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
11910 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
11912 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11914 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
11915 New insn definition.
11916 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
11917 * config/s390/vector.md (V_HW_HSD): ... here.
11919 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11921 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
11922 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
11923 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
11924 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
11925 New insn definitions.
11927 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11929 * config/s390/s390-builtin-types.def: Add new builtin function type.
11930 * config/s390/s390-builtins.def: Add overloaded builtin
11931 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
11932 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
11933 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
11934 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
11935 ("eltswap<mode>"): New expander.
11936 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
11939 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11941 * config/s390/s390-builtin-types.def: Add new builtin function types.
11942 * config/s390/s390-builtins.def: Add overloaded builtin
11943 s390_vec_revb. Add low-level builtins for vlbr and vstbr
11945 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
11946 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
11947 ("bswap<mode>"): New expander.
11948 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
11950 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11952 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
11953 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
11954 vector builtin version number in __VEC__.
11956 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11958 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
11960 (SFSI): New mode attribute.
11961 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
11962 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
11964 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
11965 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
11966 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
11967 ("floatsi<mode>2"): Add wcefb instruction.
11969 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11971 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
11972 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
11974 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
11975 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
11976 support 32 bit fp-int conversions. Rename to ...
11977 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
11978 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
11979 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
11980 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
11983 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11985 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
11986 if-then-else constructs if we can use the select instruction.
11987 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
11989 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11991 * config/s390/s390.md ("*popcountdi_arch13_cc")
11992 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
11994 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
11995 Append _z196 to make it ...
11996 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
11997 ("popcounthi2_z196"): ... this.
11998 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
11999 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
12001 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
12003 * config/s390/s390.c (s390_canonicalize_comparison): Convert
12004 certain compares for arch13 in order to make use of the condition
12005 code result produced by the new instructions.
12006 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
12007 nxrk, and nxgrk instruction patterns.
12008 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
12009 (inv_no): Add new code iterator together with some attributes.
12010 ("*andc_split_<mode>"): Disable splitter for arch13.
12011 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
12012 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
12013 ("*<ANDOR:bitops_name>c<GPR:mode>")
12014 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
12015 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
12016 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
12017 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
12019 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
12021 * common/config/s390/s390-common.c (processor_flags_table): New
12023 * config.gcc: Support arch13 with the --with-arch= configure flag.
12024 * config/s390/driver-native.c (s390_host_detect_local_cpu):
12025 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
12026 * config/s390/s390.c (s390_get_sched_attrmask)
12027 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
12028 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
12029 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
12030 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
12031 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
12033 * config/s390/s390.opt: Support arch13 as processor type in
12034 command line options.
12036 2019-04-02 Martin Liska <mliska@suse.cz>
12038 PR translation/89912
12039 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
12040 Fix param description of graphite-max-arrays-per-scop.
12042 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
12044 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
12045 (ASAN_CC1_SPEC): Use it in 64-bit mode.
12046 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
12048 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
12050 PR rtl-optimization/85412
12051 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
12052 sel_sched_region_1, not after.
12054 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
12056 PR rtl-optimization/86928
12057 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
12058 compute_live if necessary.
12059 (sel_redirect_edge_and_branch): Likewise.
12061 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
12063 PR rtl-optimization/89865
12064 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
12065 register if it is a part of small class.
12067 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
12069 PR rtl-optimization/87273
12070 * sel-sched-ir.c (merge_fences): Remove assert.
12072 2019-04-01 Richard Biener <rguenther@suse.de>
12074 PR tree-optimization/46590
12075 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
12076 (dom_walker::m_reachability): Add in place of...
12077 (dom_walker::m_skip_unreachable_blocks): ...this.
12078 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
12079 Move complex initialization ...
12080 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
12081 lazily and initialize edge flags on each invocation.
12082 (dom_walker::bb_reachable): Use m_reachability.
12084 2019-04-01 Martin Liska <mliska@suse.cz>
12087 * opt-suggestions.c (option_proposer::build_option_suggestions):
12088 Add variant without any argument in order to provide better
12091 2019-04-01 Richard Biener <rguenther@suse.de>
12094 * gimple.c: Include langhooks.h.
12095 (gimple_get_alias_set): Treat enumeral types as the underlying
12098 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
12099 Eric Botcazou <ebotcazou@adacore.com>
12101 PR rtl-optimization/89862
12102 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
12103 that operates on the full registers for WORD_REGISTER_OPERATIONS
12106 2019-03-29 Jim Wilson <jimw@sifive.com>
12108 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
12109 Clear MASK_RVC and then set if C subset supported.
12111 2019-03-29 Jakub Jelinek <jakub@redhat.com>
12114 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
12115 non-addressable complit into its initializer if it is volatile.
12117 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
12119 * opts-common.c (integral_argument): Set errno properly in one case.
12121 2019-03-29 Martin Liska <mliska@suse.cz>
12123 * doc/invoke.texi: Remove -Wchkp from documentation.
12125 2019-03-29 Martin Liska <mliska@suse.cz>
12127 * dbgcnt.c (print_limit_reach): New function.
12130 2019-03-29 Martin Liska <mliska@suse.cz>
12132 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
12133 (dbg_cnt_process_opt): Parse first tokens aas
12134 dbg_cnt_process_single_pair is also using strtok.
12136 2019-03-29 Jakub Jelinek <jakub@redhat.com>
12138 PR rtl-optimization/87485
12139 * function.c (expand_function_end): Move stack_protect_epilogue
12140 before loading of return value into hard register(s).
12142 2019-03-28 Jakub Jelinek <jakub@redhat.com>
12144 PR middle-end/89621
12145 * tree-inline.h (struct copy_body_data): Add
12146 dont_remap_vla_if_no_change flag.
12147 * tree-inline.c (remap_type_3, remap_type_2): New functions.
12148 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
12149 and remap_type_2 returns false.
12150 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
12151 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
12152 only from where it is copied to nested contexts.
12154 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
12157 * config/i386/i386.md (RMW operation with LEA peephole):
12158 Use LEAMODE mode attribute instead of SWI mode iterator for
12161 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
12164 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
12165 Also process XEXP (src, 0) of a shift insn.
12167 2019-03-28 David Malcolm <dmalcolm@redhat.com>
12169 PR middle-end/89725
12170 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
12171 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
12173 2019-03-28 Jakub Jelinek <jakub@redhat.com>
12175 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
12177 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
12178 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
12179 immediately after first one with df_analyze in between, but rather
12180 process all bbs, queueing ones that need second pass in a worklist,
12181 df_analyze, process queued debug insn changes and if second pass is
12182 needed, process bbs from worklist, df_analyze, process queued debug
12185 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
12186 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
12187 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
12189 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
12192 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
12195 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
12198 * config/i386/i386.c (ix86_function_value_1): Call the newly added
12199 function for 32-bit MS_ABI.
12200 (function_value_ms_32): New function.
12202 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
12204 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
12205 (movdi): Call gen_movdi_symbol_save_scc.
12206 (gen_movdi_symbol_save_scc): New insn and split.
12208 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
12210 PR rtl-optimization/89313
12211 * function.c (matching_constraint_num): New static function.
12212 (match_asm_constraints_1): Use it. Fixup white space and comment.
12213 Don't replace inputs with non-matching constraints which conflict
12214 with early clobber outputs.
12216 2019-03-27 Jeff Law <law@redhat.com>
12219 PR rtl-optimization/87761
12220 PR rtl-optimization/89826
12221 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
12223 (pass_cprop_hardreg::execute): Call df_analyze after adding the
12224 note problem to get REG_DEAD/REG_UNUSED notes updated.
12226 2019-03-27 Richard Biener <rguenther@suse.de>
12228 PR tree-optimization/89463
12229 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
12230 queue edges to remove.
12231 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
12232 dead stmts. Delay edge removal until PHIs are removed to
12233 make debug-stmt creation not confused by seemingly degenerate
12236 2019-03-27 Alan Modra <amodra@gmail.com>
12238 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
12240 * config/rs6000/darwin.h: Likewise.
12241 * config/rs6000/rs6000.c: Likewise.
12243 2019-03-27 Alan Modra <amodra@gmail.com>
12245 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
12246 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
12248 2019-03-26 Andrew Waterman <andrew@sifive.com>
12249 Jim Wilson <jimw@sifive.com>
12251 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
12252 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
12253 (generic_idivdi, generic_fmul_single, generic_fmul_double)
12254 (generic_fdiv, generic_fsqrt): Add check for generic tune.
12255 (generic_alu): Add auipc to type list.
12256 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
12257 (riscv_microarchitecture): Declare.
12258 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
12259 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
12261 (riscv_microarchitecture): New.
12262 (sifive_7_tune_info): New.
12263 (riscv_cpu_info_table): Add microarchitecture value for rocket and
12264 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
12266 (riscv_store_data_bypass_p): New.
12267 (riscv_option_override): Set riscv_microarchitecture from
12268 cpu->microarchitecture.
12269 * config/riscv/riscv.md: Include sifive-7.md.
12272 (auipc<mode>): Change type to auipc.
12273 (restore_stack_nonlocal): New.
12274 * config/riscv/sifive-7.md: New.
12275 * doc/invoke.texi (RISC-V Options): Update mtune docs.
12277 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
12280 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
12281 Also process XEXP (src, 0) of a shift insn.
12283 2019-03-26 Richard Biener <rguenther@suse.de>
12285 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
12286 (copy_debug_stmt): Likewise.
12287 (expand_call_inline): Likewise.
12288 (copy_bb): Avoid redundant lookup & set of gimple_block.
12289 * gimple-low.c (lower_gimple_return): Likewise.
12290 (lower_builtin_setjmp): Likewise.
12292 2019-03-26 Jakub Jelinek <jakub@redhat.com>
12294 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
12295 is constant 0, turn into static const data member initialized to false.
12296 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
12297 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
12299 2019-03-26 Jason Merrill <jason@redhat.com>
12300 Jakub Jelinek <jakub@redhat.com>
12302 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
12304 (mem_alloc_description::release_object_overhead): Fix comment typos.
12305 * hash-table.h (hash_table::~hash_table): Call
12306 release_instance_overhead only if m_entries is non-NULL, otherwise
12307 call unregister_descriptor.
12309 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
12311 PR tree-optimization/81740
12312 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
12313 In case of outer loop vectorization, check for backward dependence
12314 at the inner loop if outer loop dependence is reversed.
12316 2019-03-26 Alan Modra <amodra@gmail.com>
12318 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
12319 rs6000_vector_mem init. Correct wI and wJ comment.
12321 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
12323 PR rtl-optimization/88347
12324 PR rtl-optimization/88423
12325 * sched-deps.c (sched_analyze_insn): Take into account that for
12326 tablejumps the barrier appears after a label and a jump_table_data.
12328 2019-03-25 Martin Sebor <msebor@redhat.com>
12331 * c-common.c (check_user_alignment): Rename local. Correct maximum
12332 alignment in diagnostic. Avoid assuming argument fits in SHWI,
12333 convert it to UHWI when it fits.
12335 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
12338 * dwarf2out.c (premark_used_variables): New function.
12339 (prune_unused_types_walk): Do not mark not premarked external
12341 (prune_unused_types): Call premark_used_variables.
12343 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
12345 PR rtl-optimization/89676
12346 * lra-constraints.c (curr_insn_transform): Do match reload for
12347 early clobbers when the match was successful only for different
12350 2019-03-25 Martin Sebor <msebor@redhat.com>
12352 * doc/extend.texi (Common Type Attributes): Document vector_size.
12353 (Common Variable Attributes): Mention size constraint. Correct
12355 (Vector Extensions): Use @dfn when defining bas type. Clarify
12356 base type and size constraints.
12358 2019-03-25 Richard Biener <rguenther@suse.de>
12360 PR tree-optimization/89789
12361 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
12362 changes from non-undefined back to undefined.
12364 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
12366 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
12367 heap string and a gc string, but since this variable is unknown to
12368 ggc the gc string might get reused and corrupted. Fixed by always
12369 using a heap string.
12371 2019-03-25 Richard Biener <rguenther@suse.de>
12373 PR tree-optimization/89779
12374 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
12375 to remove IV defs, delay actual removal.
12376 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
12377 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
12378 very end, properly also reset loop control IV information.
12380 2019-03-25 Richard Biener <rguenther@suse.de>
12382 PR tree-optimization/89802
12383 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
12384 move EH data to folded stmt.
12386 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
12388 * config/s390/s390-builtin-types.def: Remove few unused types and
12389 fix sort order for others.
12391 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
12393 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
12394 expected and found types with -mdebug during builtin matching.
12396 2019-03-25 Richard Biener <rguenther@suse.de>
12398 PR middle-end/89790
12399 * fold-const.c (operand_equal_p): Revert last change with
12402 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
12404 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
12405 notes for the result of the __tls_get_addr calls.
12406 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
12408 2019-03-24 Jeff Law <law@redhat.com>
12410 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
12412 PR rtl-optimization/87761
12413 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
12414 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
12416 (pass_cprop_hardreg::execute): Add df note problem and defer insn
12417 rescans. Reprocess blocks as needed, calling df_analyze before
12418 reprocessing. Always call df_analyze before fixing up debug bind
12421 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
12423 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
12426 2019-03-22 Andrew Pinski <apinski@marvell.com>
12428 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
12429 attrribute for uxtw.
12431 2019-03-26 Jeff Law <law@redhat.com>
12433 PR rtl-optimization/87761
12434 * config/mips/mips-protos.h (mips_split_move): Add new argument.
12435 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
12436 (mips_split_move): Accept new INSN argument. Try to forward SRC
12437 into the next instruction.
12438 (mips_split_move_insn): Pass INSN through to mips_split_move.
12440 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
12442 PR rtl-optimization/89676
12443 * lra-constraints.c (curr_insn_transform): Do match reload for
12444 early clobbers even if the match was successful.
12446 2019-03-22 Jakub Jelinek <jakub@redhat.com>
12449 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
12451 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
12453 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
12455 2019-03-22 Jakub Jelinek <jakub@redhat.com>
12457 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
12458 <avx512>_fmsub_<mode>_mask3<round_name>,
12459 <avx512>_fnmadd_<mode>_mask3<round_name>,
12460 <avx512>_fnmsub_<mode>_mask3<round_name>,
12461 avx512f_vmfmadd_<mode>_mask3<round_name>,
12462 avx512f_vmfmsub_<mode>_mask3<round_name>,
12463 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
12464 instead of register_operand and %v instead of v for match_operand 1.
12465 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
12466 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
12467 <round_nimm_predicate> instead of register_operand and %v instead of v
12468 for match_operand 1.
12470 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
12471 <avx512>_fmadd_<mode>_mask3<round_name>,
12472 <avx512>_fmsub_<mode>_mask<round_name>,
12473 <avx512>_fmsub_<mode>_mask3<round_name>,
12474 <avx512>_fnmadd_<mode>_mask<round_name>,
12475 <avx512>_fnmadd_<mode>_mask3<round_name>,
12476 <avx512>_fnmsub_<mode>_mask<round_name>,
12477 <avx512>_fnmsub_<mode>_mask3<round_name>,
12478 <avx512>_fmaddsub_<mode>_mask<round_name>,
12479 <avx512>_fmaddsub_<mode>_mask3<round_name>,
12480 <avx512>_fmsubadd_<mode>_mask<round_name>,
12481 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
12482 <round_nimm_predicate> instead of nonimmediate_operand.
12483 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
12484 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
12485 Use register_operand instead of <round_nimm_predicate> for the
12486 operand that needs to match output.
12487 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
12488 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
12489 Likewise. Formatting fixes.
12492 * config/i386/i386.c (enum ix86_builtins): Remove
12493 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
12494 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
12495 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
12496 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
12497 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
12498 __builtin_ia32_vfmsubss3_mask3): New builtins.
12499 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
12500 avx512f_vmfmadd_<mode>_mask3<round_name>,
12501 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
12502 *avx512f_vmfmsub_<mode>_mask<round_name>,
12503 avx512f_vmfmsub_<mode>_mask3<round_name>,
12504 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
12505 *avx512f_vmfnmadd_<mode>_mask<round_name>,
12506 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
12507 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
12508 *avx512f_vmfnmsub_<mode>_mask<round_name>,
12509 avx512f_vmfnmsub_<mode>_mask3<round_name>,
12510 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
12511 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
12512 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
12513 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
12514 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
12515 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
12516 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
12517 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
12518 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
12519 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
12520 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
12521 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
12522 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
12523 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
12524 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
12525 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
12526 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
12527 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
12528 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
12529 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
12530 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
12531 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
12533 2019-03-21 Martin Sebor <msebor@redhat.com>
12535 PR tree-optimization/89350
12536 * builtins.c (compute_objsize): Also ignore offsets whose upper
12538 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
12539 (builtin_memref::builtin_memref): Initialize new member.
12540 Allow EXPR to be null.
12541 (builtin_memref::extend_offset_range): Replace local with a member.
12542 Avoid assuming pointer offsets are unsigned.
12543 (builtin_memref::set_base_and_offset): Determine base object
12544 before computing offset range.
12545 (builtin_access::builtin_access): Handle memset.
12546 (builtin_access::generic_overlap): Replace local with a member.
12547 (builtin_access::strcat_overlap): Same.
12548 (builtin_access::overlap): Same.
12549 (maybe_diag_overlap): Same.
12550 (maybe_diag_access_bounds): Same.
12551 (wrestrict_dom_walker::check_call): Handle memset.
12552 (check_bounds_or_overlap): Same.
12554 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
12555 Jakub Jelinek <jakub@redhat.com>
12558 * tree.c (fld_type_variant, fld_incomplete_type_of,
12559 fld_process_array_type): Call fld->pset.add and don't call
12560 add_tree_to_fld_list if it returns true.
12561 (free_lang_data_in_type): Similarly with self-recursive call. Purge
12562 non-marked types from TYPE_NEXT_VARIANT list.
12563 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
12565 2019-03-21 Jakub Jelinek <jakub@redhat.com>
12567 * hash-table.h (hash_table): Add Lazy template parameter defaulted
12568 to false, if true, don't alloc_entries during construction, but defer
12569 it to the first method that needs m_entries allocated.
12570 (hash_table::hash_table, hash_table::~hash_table,
12571 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
12572 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
12573 hash_table::clear_slot, hash_table::traverse_noresize,
12574 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
12575 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
12577 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
12578 NO_INSERT instead of find_with_hash.
12579 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
12580 hash_set::m_table): Add Lazy to template params of hash_table.
12581 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
12582 * attribs.c (test_attribute_exclusions): Likewise.
12583 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
12584 hash_set. Add tests for hash_set with Lazy = true.
12586 2019-03-21 Richard Biener <rguenther@suse.de>
12588 PR tree-optimization/89779
12589 * tree.c (tree_nop_conversion): Consolidate and fix defensive
12590 checks with respect to released SSA names now having error_mark_node
12592 * fold-const.c (operand_equal_p): Likewise.
12594 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
12597 * config/s390/s390.c (global_not_special_regno_p): Move to make it
12599 (s390_optimize_register_info): Use global_not_special_regno_p to
12600 check for global regs.
12602 2019-03-20 Jakub Jelinek <jakub@redhat.com>
12605 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
12606 update this_alternative nor this_alternative_set.
12608 2019-03-19 Jim Wilson <jimw@sifive.com>
12611 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
12612 align, size, offset. Use them to handle a BLKmode reference. Update
12614 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
12616 2019-03-19 Jakub Jelinek <jakub@redhat.com>
12618 PR rtl-optimization/89768
12619 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
12620 instead of GEN_INT.
12621 (unroll_loop_runtime_iterations): Likewise.
12623 2019-03-19 Martin Sebor <msebor@redhat.com>
12625 PR tree-optimization/89644
12626 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
12627 rather than endptr as an indicator of nul-termination.
12629 PR tree-optimization/89644
12630 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
12631 arrays in determining sequence sizes in strncpy and stpncpy.
12633 2019-03-19 Martin Liska <mliska@suse.cz>
12635 PR middle-end/89737
12636 * predict.c (combine_predictions_for_bb): Empty likely_edges and
12637 unlikely_edges if there's an edge that belongs to both these sets.
12639 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
12642 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
12643 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
12644 go via a stack temporary.
12646 2019-03-19 Jakub Jelinek <jakub@redhat.com>
12649 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
12650 instead of gen_rtx_SUBREG.
12651 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
12653 2019-03-19 Richard Biener <rguenther@suse.de>
12656 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
12658 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
12662 * tree.c (free_lang_data_in_decl): Do not free context of C++
12665 2019-03-19 Jakub Jelinek <jakub@redhat.com>
12668 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
12669 subs for the first alternative except when operands[3] is 1.
12672 * gimplify.c (gimplify_asm_expr): For output argument with
12673 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
12676 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
12678 PR rtl-optimization/89753
12679 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
12680 explicit unrolling factor even more robust.
12682 2019-03-19 Jakub Jelinek <jakub@redhat.com>
12685 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
12686 compensation use x2 += 1 instead of x2 -= -1 and when honoring
12687 signed zeros, do another copysign after the compensation.
12689 2019-03-18 Martin Sebor <msebor@redhat.com>
12691 PR tree-optimization/89720
12692 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
12693 more conservatively, the same as anti-range.
12695 2019-03-18 Richard Biener <rguenther@suse.de>
12697 PR middle-end/88945
12698 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
12699 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
12700 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
12701 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
12703 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
12705 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
12706 Extend queue to 1024 entries.
12707 Add "consumed" field.
12708 (gomp_print_output): Remove print_index parameter.
12709 Add final parameter.
12710 Change limit to unsigned.
12711 Use consumed field to implement circular buffer.
12712 Detect interrupted print in final pass.
12713 Flush output at the end.
12714 (run): Update gomp_print_output usage.
12715 (main): Initialize kernargs->output_data.consumed.
12717 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
12719 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
12720 calculation of the minimum number of scalar iterations for
12721 fully-predicated loops.
12723 2019-03-18 Martin Jambor <mjambor@suse.cz>
12725 PR tree-optimization/89546
12726 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
12727 any propagation to its children took place.
12729 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
12732 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
12733 parameter, and make use of it.
12734 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
12736 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
12738 * config/arc/arc.opt (mcode-density-frame): Get the inital value
12739 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
12740 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
12741 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
12742 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
12743 match what the ops is doing.
12744 (push_multi_fp_blink): Likewise.
12745 * config/arc/arc.c (arc_override_options): Enable enter/leave when
12746 compiling for size and elf target.
12747 (arc_save_callee_enter): Adjust note to match what enter/leave
12750 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
12752 * config/arc/arc.md (tst_movb): Fix constraint.
12754 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
12756 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
12758 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
12760 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
12761 * config/arc/arc.c (arc_conditional_register_usage): Remove all
12762 reg_alloc_order references.
12763 (size_alloc_order): Define.
12764 (arc_adjust_reg_alloc_order): New function.
12765 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
12767 (ADJUST_REG_ALLOC_ORDER): Define.
12768 (HONOR_REG_ALLOC_ORDER): Likewise.
12770 2019-03-18 Richard Biener <rguenther@suse.de>
12773 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
12774 loads and stores a bit more.
12776 2019-03-18 Richard Biener <rguenther@suse.de>
12779 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
12780 load pessimization to stores as well.
12782 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
12784 PR middle-end/86979
12785 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
12786 successor, use NULL as its av set.
12788 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
12790 PR rtl-optimization/89721
12791 * lra-constraints (invariant_p): Return false if side_effects_p holds.
12793 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
12796 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12797 When handling vec_extract, use modular arithmetic to allow
12798 constant selectors greater than vector length.
12799 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
12800 V1TImode vectors to have constant selector values greater than 0.
12801 Use modular arithmetic to compute vector index.
12802 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
12803 index for in-memory vectors. Correct code generation for
12804 in-register vectors.
12805 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
12808 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
12812 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
12815 2019-03-15 Jakub Jelinek <jakub@redhat.com>
12818 * tree.c (inchash::add_expr): Strip any location wrappers.
12819 * fold-const.c (operand_equal_p): Move stripping of location wrapper
12820 after hash verification.
12823 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
12824 SIGN_EXTEND and ZERO_EXTEND.
12826 2019-03-14 Jason Merrill <jason@redhat.com>
12827 Jakub Jelinek <jakub@redhat.com>
12829 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
12830 than if is_empty (*slot).
12831 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
12832 existing elt and for elt removal.
12833 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
12834 of already removed elt.
12836 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
12839 * config/i386/i386.c (remove_partial_avx_dependency): Handle
12840 REG_EH_REGION note.
12842 2019-03-14 Martin Liska <mliska@suse.cz>
12845 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
12847 2019-03-14 Richard Biener <rguenther@suse.de>
12850 * config/i386/i386.c (make_resolver_func): Properly set
12851 DECL_CONTEXT on the RESULT_DECL.
12852 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
12854 2019-03-14 Richard Biener <rguenther@suse.de>
12856 * gimple-pretty-print.c: Include cfgloop.h.
12857 (dump_gimple_phi): Adjust.
12858 (dump_gimple_bb_header): Dump loop header for GIMPLE.
12859 (pp_cfg_jump): Adjust.
12860 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
12861 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
12862 (lower_phi_internal_fn): Remove.
12863 (verify_gimple_call): Remove IFN_PHI special-casing.
12864 (dump_function_to_file): Dump IL state.
12865 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
12866 done to deal with PHI nodes being present in non-SSA state.
12868 2019-03-14 Jakub Jelinek <jakub@redhat.com>
12871 * multiple_target.c (create_dispatcher_calls): Change
12872 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
12873 In the node->iterate_referring loop, push *ref rather than ref, call
12874 ref->remove_reference () and always pass 0 to iterate_referring.
12876 PR rtl-optimization/89679
12877 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
12878 would contain a paradoxical SUBREG.
12880 2019-03-14 Richard Biener <rguenther@suse.de>
12882 PR tree-optimization/89710
12883 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
12886 2019-03-14 Martin Liska <mliska@suse.cz>
12888 * coverage.c (coverage_begin_function): Stream also
12890 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
12891 documentation about function declaration location.
12892 * gcov-dump.c (tag_function): Print whole range
12893 of function declaration.
12894 * gcov.c (struct function_info): Add end_column field.
12895 (function_info::function_info): Initialize it.
12896 (output_json_intermediate_file): Output {start,end}_column
12898 (read_graph_file): Read end_column.
12900 2019-03-14 Richard Biener <rguenther@suse.de>
12902 PR middle-end/89698
12903 * fold-const.c (operand_equal_p): For INDIRECT_REF check
12904 that the access types are similar.
12906 2019-03-14 Jakub Jelinek <jakub@redhat.com>
12908 PR tree-optimization/89703
12909 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
12910 aren't compatible also with builtin_decl_explicit. Check pure
12911 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
12912 and BUILT_IN_STPNCPY{,_CHK}.
12914 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
12917 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
12918 addr32 prefix to VSIB address for X32.
12919 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
12921 (*avx512pf_gatherpf<mode>df_mask): Likewise.
12922 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
12923 (*avx512pf_scatterpf<mode>df_mask): Likewise.
12924 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
12925 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
12926 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
12927 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
12928 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
12929 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
12930 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
12931 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
12932 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
12933 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
12934 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
12935 (*avx512f_scatterdi<mode>): Likewise.
12937 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
12940 * lra-constraints.c (inherit_in_ebb): Update
12941 potential_reload_hard_regs along with live_hard_regs.
12943 2019-03-13 Jakub Jelinek <jakub@redhat.com>
12946 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
12948 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
12950 2019-03-13 Martin Sebor <msebor@redhat.com>
12952 PR tree-optimization/89662
12953 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
12956 2019-03-13 Richard Biener <rguenther@suse.de>
12958 PR middle-end/89677
12959 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
12960 throw FP expressions at tree-affine.
12962 2019-03-14 Richard Biener <rguenther@suse.de>
12964 * tree-pretty-print.c (dump_generic_node): For -gimple properly
12965 dump negative integer constants using _Literal (type) -num.
12967 2019-03-13 Jakub Jelinek <jakub@redhat.com>
12969 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
12970 nonlocal_value member.
12972 PR middle-end/88588
12973 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
12974 (ipa_simd_modify_function_body): Handle PHIs.
12976 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
12978 * config/s390/s390.c (s390_option_override_internal): Use more
12979 aggressive inlining parameters.
12981 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
12983 * config/s390/3906.md: New file.
12984 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
12985 (LONGRUNNING_THRESHOLD): Remove.
12986 (MAX_SCHED_MIX_SCORE): Decrease.
12987 (MAX_SCHED_MIX_DISTANCE): Decrease.
12988 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
12989 (struct s390_sched_state): New struct to hold scheduling state.
12990 (S390_SCHED_STATE_NORMAL): Remove.
12991 (S390_SCHED_STATE_CRACKED): Remove.
12992 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
12993 (s390_get_sched_attrmask): Use new attribute.
12994 (s390_get_unit_mask): Use new units.
12995 (s390_is_fpd): New function.
12996 (s390_is_fxd): New function.
12997 (s390_is_longrunning): New function.
12998 (s390_sched_score): Use new functions.
12999 (s390_sched_reorder): Likewise.
13000 (s390_sched_variable_issue): Rework and use new functions.
13001 (s390_sched_init): Use new functions.
13002 * config/s390/s390.h (s390_tune_attr): Add z14.
13003 * config/s390/s390.md: Add z14.
13005 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
13007 * config/s390/2964.md: Update pipeline description.
13008 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
13009 (LONGRUNNING_THRESHOLD): Remove.
13010 (LATENCY_FACTOR): Remove.
13011 (s390_get_unit_mask): Add unit.
13012 (s390_sched_score): Use fxd/fpd.
13013 (s390_sched_variable_issue): Use fxd/fpd.
13015 2019-03-12 Martin Liska <mliska@suse.cz>
13017 * config/i386/i386.c: Reword an error message.
13019 2019-03-12 Martin Jambor <mjambor@suse.cz>
13021 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
13022 terminate with newline.
13024 2019-03-12 Jakub Jelinek <jakub@redhat.com>
13027 * config/s390/s390.md (tabort): Use %wd instead of
13028 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
13029 letters and periods.
13030 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
13031 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
13034 PR middle-end/89663
13035 * builtins.c (expand_builtin_int_roundingfn,
13036 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
13037 gcc_unreachable if validate_arglist fails.
13039 2019-03-12 Richard Biener <rguenther@suse.de>
13041 PR tree-optimization/89664
13042 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
13043 free the occurance tree after the early out.
13045 2019-03-11 Jakub Jelinek <jakub@redhat.com>
13047 PR middle-end/89655
13049 * vr-values.c (vr_values::update_value_range): If
13050 old_vr->varying_p (), don't update it, make new_vr also VARYING
13053 2019-03-11 Martin Liska <mliska@suse.cz>
13055 * config/aarch64/aarch64.c (aarch64_override_options_internal):
13056 Fix double string quoting.
13058 2019-03-11 Martin Liska <mliska@suse.cz>
13060 * collect-utils.c (collect_wait): Wrap apostrophes
13061 in gcc internal format with %'.
13062 * collect2.c (main): Likewise.
13063 (scan_prog_file): Likewise.
13064 (scan_libraries): Likewise.
13065 * config/i386/i386.c (ix86_expand_call): Likewise.
13066 (ix86_handle_interrupt_attribute): Likewise.
13067 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
13068 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
13069 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
13070 * lto-wrapper.c (find_crtoffloadtable): Likewise.
13071 * symtab.c (symtab_node::verify_base): Likewise.
13072 * tree-cfg.c (verify_gimple_label): Likewise.
13073 * tree.c (verify_type_variant): Likewise.
13075 2019-03-11 Martin Liska <mliska@suse.cz>
13077 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
13078 in a string format message and fix GNU coding style.
13079 (expand_builtin_set_thread_pointer): Likewise.
13080 * common/config/aarch64/aarch64-common.c
13081 (aarch64_rewrite_selected_cpu): Likewise.
13082 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
13083 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
13084 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
13085 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
13086 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
13087 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
13088 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
13089 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
13090 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
13091 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
13093 * common/config/riscv/riscv-common.c
13094 (riscv_subset_list::parsing_subset_version): Likewise.
13095 (riscv_subset_list::parse_std_ext): Likewise.
13096 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
13097 (riscv_subset_list::parse): Likewise.
13098 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
13099 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
13100 (aarch64_override_options_internal): Likewise.
13101 (aarch64_validate_mcpu): Likewise.
13102 (aarch64_validate_march): Likewise.
13103 (aarch64_validate_mtune): Likewise.
13104 (aarch64_override_options): Likewise.
13105 * config/alpha/alpha.c (alpha_option_override): Likewise.
13106 * config/arc/arc.c (arc_init): Likewise.
13107 (parse_mrgf_banked_regs_option): Likewise.
13108 (arc_override_options): Likewise.
13109 (arc_expand_builtin_aligned): Likewise.
13110 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
13111 (arm_expand_builtin): Likewise.
13112 * config/arm/arm.c (arm_option_check_internal): Likewise.
13113 (arm_configure_build_target): Likewise.
13114 (arm_option_override): Likewise.
13115 (arm_options_perform_arch_sanity_checks): Likewise.
13116 (arm_handle_cmse_nonsecure_entry): Likewise.
13117 (arm_handle_cmse_nonsecure_call): Likewise.
13118 (arm_tls_referenced_p): Likewise.
13119 (thumb1_expand_prologue): Likewise.
13120 * config/avr/avr.c (avr_option_override): Likewise.
13121 * config/bfin/bfin.c (bfin_option_override): Likewise.
13122 * config/c6x/c6x.c (c6x_option_override): Likewise.
13123 * config/cr16/cr16.c (cr16_override_options): Likewise.
13124 * config/cris/cris.c (cris_option_override): Likewise.
13125 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
13126 * config/darwin-c.c (macosx_version_as_macro): Likewise.
13127 * config/darwin.c (darwin_override_options): Likewise.
13128 * config/frv/frv.c (frv_expand_builtin): Likewise.
13129 * config/h8300/h8300.c (h8300_option_override): Likewise.
13130 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
13131 (ix86_option_override_internal): Likewise.
13132 (warn_once_call_ms2sysv_xlogues): Likewise.
13133 (ix86_expand_prologue): Likewise.
13134 (split_stack_prologue_scratch_regno): Likewise.
13135 (ix86_warn_parameter_passing_abi): Likewise.
13136 * config/ia64/ia64.c (fix_range): Likewise.
13137 * config/m68k/m68k.c (m68k_option_override): Likewise.
13138 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
13139 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
13140 (mips_set_compression_mode): Likewise.
13141 * config/mmix/mmix.c (mmix_option_override): Likewise.
13142 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
13143 * config/msp430/msp430.c (msp430_option_override): Likewise.
13144 * config/nds32/nds32.c (nds32_option_override): Likewise.
13145 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
13146 (nios2_option_override): Likewise.
13147 (nios2_expand_custom_builtin): Likewise.
13148 * config/nvptx/mkoffload.c (main): Likewise.
13149 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
13150 * config/pa/pa.c (fix_range): Likewise.
13151 (pa_option_override): Likewise.
13152 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
13153 (riscv_option_override): Likewise.
13154 * config/rl78/rl78.c (rl78_option_override): Likewise.
13155 * config/rs6000/aix61.h: Likewise.
13156 * config/rs6000/aix71.h: Likewise.
13157 * config/rs6000/aix72.h: Likewise.
13158 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
13159 * config/rs6000/freebsd64.h: Likewise.
13160 * config/rs6000/linux64.h: Likewise.
13161 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
13162 (rs6000_expand_zeroop_builtin): Likewise.
13163 (rs6000_expand_mtfsb_builtin): Likewise.
13164 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
13165 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
13166 (rs6000_invalid_builtin): Likewise.
13167 (rs6000_expand_split_stack_prologue): Likewise.
13168 * config/rs6000/rtems.h: Likewise.
13169 * config/rx/rx.c (valid_psw_flag): Likewise.
13170 (rx_expand_builtin): Likewise.
13171 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
13172 * config/s390/s390.c (s390_expand_builtin): Likewise.
13173 (s390_function_profiler): Likewise.
13174 (s390_option_override_internal): Likewise.
13175 (s390_option_override): Likewise.
13176 * config/sh/sh.c (sh_option_override): Likewise.
13177 (sh_builtin_saveregs): Likewise.
13178 (sh_fix_range): Likewise.
13179 * config/sh/vxworks.h: Likewise.
13180 * config/sparc/sparc.c (sparc_option_override): Likewise.
13181 * config/spu/spu.c (spu_option_override): Likewise.
13182 (fix_range): Likewise.
13183 * config/visium/visium.c (visium_option_override): Likewise.
13184 (visium_handle_interrupt_attr): Likewise.
13185 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
13186 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
13187 (dbg_cnt_process_opt): Likewise.
13188 * dwarf2out.c (output_dwarf_version): Likewise.
13189 * except.c (expand_eh_return): Likewise.
13190 * gcc.c (defined): Likewise.
13191 (driver_handle_option): Likewise.
13192 (process_command): Likewise.
13193 (compare_files): Likewise.
13194 (driver::prepare_infiles): Likewise.
13195 (driver::do_spec_on_infiles): Likewise.
13196 (driver::maybe_run_linker): Likewise.
13197 * omp-offload.c (oacc_parse_default_dims): Likewise.
13198 * opts-global.c (handle_common_deferred_options): Likewise.
13199 * opts.c (parse_sanitizer_options): Likewise.
13200 (common_handle_option): Likewise.
13201 (enable_warning_as_error): Likewise.
13202 * passes.c (enable_disable_pass): Likewise.
13203 * plugin.c (parse_plugin_arg_opt): Likewise.
13204 (default_plugin_dir_name): Likewise.
13205 * targhooks.c (default_expand_builtin_saveregs): Likewise.
13206 (default_pch_valid_p): Likewise.
13207 * toplev.c (init_asm_output): Likewise.
13208 (process_options): Likewise.
13209 (toplev::run_self_tests): Likewise.
13210 * tree-cfg.c (verify_gimple_call): Likewise.
13211 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
13212 (tree_inlinable_function_p): Likewise.
13213 * var-tracking.c (vt_find_locations): Likewise.
13215 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
13217 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
13218 only on the else branch.
13220 2019-03-11 Martin Liska <mliska@suse.cz>
13222 * gcov.c (output_intermediate_json_line): Print function
13224 (output_json_intermediate_file): Add new argument.
13225 * doc/gcov.texi: Document the change.
13227 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
13229 PR rtl-optimization/89588
13230 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
13231 explicit unrolling factor more robust.
13233 2019-03-11 Richard Biener <rguenther@suse.de>
13235 PR tree-optimization/89649
13236 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
13237 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
13238 on the prolog and epilog loops.
13239 (vect_loop_versioning): Return copy of loop.
13240 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
13241 on the non-vectorized version of the loop.
13243 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
13246 * config/i386/sse.md (*vec_extractv2di_0_sse):
13247 Add (=r,x) alternative and corresponding splitter.
13249 2019-03-10 Martin Jambor <mjambor@suse.cz>
13251 PR tree-optimization/85762
13252 PR tree-optimization/87008
13253 PR tree-optimization/85459
13254 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
13255 it points to if there is a type changing MEM_REF. Adjust all callers.
13256 (build_accesses_from_assign): Disable total scalarization if
13257 contains_vce_or_bfcref_p returns true through the new parameter, for
13260 2019-03-09 Jakub Jelinek <jakub@redhat.com>
13263 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
13264 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
13267 * common.opt (fdiagnostics-show-labels,
13268 fdiagnostics-show-line-numbers, fdiagnostics-format=,
13269 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
13270 gas-locview-support, ginline-points, ginternal-reset-location-views):
13271 Terminate description text with a dot.
13272 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
13273 * config/mcore/mcore.opt (m210, m340): Likewise.
13274 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
13275 mnops=): Start description text with a capital letter.
13276 * config/arc/arc.opt (msize-level=): Likewise.
13277 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
13278 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
13279 mnewlib): Likewise.
13280 * config/ft32/ft32.opt (msim): Likewise.
13281 (mft32b, mcompress): Likewise. Terminate description text with a dot.
13282 (mnodiv, mnopm): Terminate description text with a dot.
13283 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
13285 * config/i386/i386.opt (prefer_vector_width, instrument_return):
13287 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
13290 PR rtl-optimization/89634
13291 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
13292 are modified in BB_END (e->src) instruction.
13294 2019-03-08 David Malcolm <dmalcolm@redhat.com>
13297 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
13298 messages more amenable to translation, and improve wording.
13300 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
13302 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
13303 ud- and du-chains between phases.
13305 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
13308 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
13309 instead of POLY_INT_CST.
13311 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
13313 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
13316 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
13321 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
13322 (_mm_storeu_si64): Ditto.
13324 2019-03-08 Martin Liska <mliska@suse.cz>
13327 * config/i386/i386.c (ix86_option_override_internal): Disable
13328 jump tables when retpolines are used.
13330 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
13333 * ipa-split.c (execute_split_functions): Do not split
13334 'noinline' or 'section' function.
13336 2019-03-08 Jakub Jelinek <jakub@redhat.com>
13339 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
13340 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
13341 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
13344 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
13345 from diagnostics. Formatting fixes.
13348 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
13349 warn_odr diagnostics.
13352 * lra-constraints.c (process_alt_operands): Avoid one space before
13353 " at the end of line and another after " on another line in a string
13355 * attribs.c (handle_dll_attribute): Likewise.
13356 * config/avr/avr-devices.c (avr_texinfo): Likewise.
13358 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
13359 warning_at or inform messages in G_() if there is no ?:.
13361 PR tree-optimization/89550
13362 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
13363 returned true. Formatting fixes.
13364 (expand_builtin_strnlen): Formatting fixes.
13365 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
13366 if warning_at returned true.
13367 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
13369 2019-03-08 Richard Biener <rguenther@suse.de>
13371 PR middle-end/89578
13372 * cfgloop.h (struct loop): Add owned_clique field.
13373 * cfgloopmanip.c (copy_loop_info): Copy it.
13374 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
13376 * tree-inline.c (copy_loops): Remap owned_clique.
13377 * lto-streamer-in.c (input_cfg): Stream owned_clique.
13378 * lto-streamer-out.c (output_cfg): Likewise.
13380 2019-03-08 Jakub Jelinek <jakub@redhat.com>
13383 * config/darwin.c: Include intl.h.
13384 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
13385 composing the message out of two separate parts.
13387 2019-03-07 Jakub Jelinek <jakub@redhat.com>
13390 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
13391 doesn't start with a capital letter and doesn't end with a dot.
13392 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
13393 with a capital letter.
13394 (ix86_mangle_function_version_assembler_name): Likewise.
13395 (ix86_generate_version_dispatcher_body): Likewise.
13396 (fold_builtin_cpu): Likewise.
13397 (get_builtin_code_for_version): Likewise. Remove extraneous space.
13398 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
13399 translators, wrap full type name in %qs.
13401 PR translation/79999
13402 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
13403 depend clause with source (or sink) modifier.
13404 * omp-expand.c (expand_omp_ordered_sink): Likewise.
13407 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
13408 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
13409 (avx512f_load<mode>_mask): New define_expand.
13410 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
13411 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
13412 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
13413 __builtin_ia32_movess_mask): New builtins.
13414 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
13415 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
13416 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
13417 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
13419 2019-03-07 Martin Jambor <mjambor@suse.cz>
13422 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
13423 for extern inline functions.
13425 2019-03-07 Martin Jambor <mjambor@suse.cz>
13428 * cgraph.h (cgraph_node): New inline method former_thunk_p.
13429 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
13430 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
13431 have multiple callees. At the end check if declarations match as
13432 opposed to cgraph_nodes.
13434 2019-03-07 Martin Liska <mliska@suse.cz>
13436 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
13437 which is equivalent to searching for this in clones chain.
13438 * symtab.c (symtab_node::verify_base): Similarly compare ASM
13439 names with a neighbour and special case first node in a chain.
13441 2019-01-25 Jason Merrill <jason@redhat.com>
13443 PR c++/80916 - spurious "static but not defined" warning.
13444 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
13445 for an internal symbol with DECL_EXTERNAL.
13447 2019-04-07 Richard Biener <rguenther@suse.de>
13449 PR middle-end/89618
13450 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
13451 * tree-inline.c (copy_loops): Simplify.
13453 2019-03-07 Martin Liska <mliska@suse.cz>
13455 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
13457 2019-03-07 Richard Biener <rguenther@suse.de>
13459 PR tree-optimization/89595
13460 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
13461 stmt iterator as reference, take boolean output parameter to
13462 indicate whether the stmt was removed and thus the iterator
13464 (dom_opt_dom_walker::before_dom_children): Re-iterate over
13465 stmts created by folding.
13467 2019-03-07 Jakub Jelinek <jakub@redhat.com>
13470 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
13473 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
13475 PR rtl-optimization/88845
13476 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
13478 * lra.c (remove_scratches_1): New function.
13479 (remove_scratches): Use it.
13480 (lra_emit_move): Likewise.
13482 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
13484 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
13485 unaligned_access variable.
13486 * config/arc/arc.c (arc_override_options): Set unaligned access
13487 default on for HS CPUs.
13488 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
13490 2019-03-06 Martin Liska <mliska@suse.cz>
13492 PR gcov-profile/89577
13493 * doc/gcov.texi: Prefer to use --coverage.
13494 * doc/sourcebuild.texi: Likewise.
13496 2019-03-02 Jason Merrill <jason@redhat.com>
13498 PR c++/86485 - -Wmaybe-unused with empty class ?:
13499 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
13501 2019-03-05 Jakub Jelinek <jakub@redhat.com>
13504 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
13507 PR middle-end/89590
13508 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
13509 exactly one argument.
13511 2019-03-05 Jakub Jelinek <jakub@redhat.com>
13512 Richard Sandiford <richard.sandiford@arm.com>
13514 PR tree-optimization/89570
13515 * match.pd (vec_cond into cond_op simplification): Don't use
13516 get_conditional_internal_fn, use as_internal_fn (cond_op).
13518 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
13521 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
13522 to decide when to split off a non-zero offset from a symbol.
13523 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
13524 in function symbols.
13526 2019-03-05 Richard Biener <rguenther@suse.de>
13528 PR tree-optimization/89594
13529 * tree-if-conv.c (pass_if_conversion::execute): Handle
13530 case where .LOOP_VECTORIZED_FUNCTION was removed.
13532 2019-03-05 Jakub Jelinek <jakub@redhat.com>
13535 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
13536 instead alloca it only when needed with the needed size.
13538 PR tree-optimization/89570
13539 * match.pd (vec_cond into cond_op simplification): Guard with
13540 vectorized_internal_fn_supported_p test and #if GIMPLE.
13542 PR tree-optimization/89566
13543 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
13544 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
13545 Punt if get_user_idx_format succeeds, but idx_format argument is
13546 not provided or doesn't have pointer type, or if idx_args is above
13547 number of provided arguments.
13549 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
13551 PR tree-optimization/89437
13552 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
13554 2019-03-04 Richard Biener <rguenther@suse.de>
13556 PR middle-end/89572
13557 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
13560 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
13562 PR tree-optimization/89487
13563 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
13564 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
13565 (distribute_loop): Don't do runtime alias check if there is non-
13566 addressable data reference.
13567 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
13568 is a register variable.
13570 2019-03-02 Jakub Jelinek <jakub@redhat.com>
13573 * config/arm/arm.md (cmpsi2_addneg): Use
13574 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
13575 If operands[2] is 0 or INT_MIN, force use of subs.
13576 (*compare_scc splitter): Use gen_int_mode.
13577 (*negscc): Likewise.
13578 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
13580 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
13581 Monk Chiang <sh.chiang04@gmail.com>
13583 * common/config/riscv/riscv-common.c: Include sstream.
13584 (riscv_subset_list::to_string): New.
13585 (riscv_arch_str): Likewise.
13586 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
13587 * config.in: Regen.
13588 * config/riscv/riscv-protos.h (riscv_arch_str): New.
13589 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
13590 (riscv_emit_attribute): New.
13591 (riscv_file_start): Emit attribute if needed.
13592 (riscv_option_override): Init riscv_emit_attribute_p.
13593 * config/riscv/riscv.opt (mriscv-attribute): New option.
13594 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
13595 * configure: Regen.
13596 * doc/install.texi: Document --with-riscv-attribute.
13597 * doc/invoke.texi: Document -mriscv-attribute.
13599 * common/config/riscv/riscv-common.c:
13600 Include config/riscv/riscv-protos.h.
13601 (INCLUDE_STRING): Defined.
13602 (RISCV_DONT_CARE_VERSION): Defined.
13603 (riscv_subset_t): Declare.
13604 (riscv_subset_t::riscv_subset_t): New.
13605 (riscv_subset_list): Declare.
13606 (riscv_subset_list::riscv_subset_list): New.
13607 (riscv_subset_list::~riscv_subset_list): Likewise.
13608 (riscv_subset_list::parsing_subset_version): Likewise.
13609 (riscv_subset_list::parse_std_ext): Likewise.
13610 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
13611 (riscv_subset_list::add): Likewise.
13612 (riscv_subset_list::lookup): Likewise.
13613 (riscv_subset_list::xlen): Likewise.
13614 (riscv_subset_list::parse): Likewise.
13615 (riscv_supported_std_ext): Likewise.
13616 (current_subset_list): Likewise.
13617 (riscv_parse_arch_string): Using riscv_subset_list::parse to
13620 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
13622 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
13623 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
13624 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
13626 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
13628 PR rtl-optimization/85899
13629 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
13630 fallthru edges leading to the exit block.
13632 2019-03-01 Tamar Christina <tamar.christina@arm.com>
13635 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
13636 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
13638 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
13640 PR tree-optimization/89535
13641 * tree-vect-stmts.c (vectorizable_call): Record the vector types
13642 for each operand. Calculate the fallback choice for mask operands
13643 and pass it to vect_get_vec_def_for_operand.
13645 2019-03-01 Richard Biener <rguenther@suse.de>
13647 PR middle-end/89541
13648 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
13649 get virtual operands.
13650 (get_expr_operands): Handle CONST_DECL like other decls.
13652 2019-03-01 Jakub Jelinek <jakub@redhat.com>
13654 PR middle-end/89503
13655 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
13656 on DECL_P and EXPR_P.
13658 2019-03-01 Richard Biener <rguenther@suse.de>
13660 PR middle-end/89497
13661 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
13662 argument, defaulted to zero.
13663 * passes.c (execute_function_todo): Pass down SSA update flags
13664 to cleanup_tree_cfg.
13665 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
13666 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
13668 (cleanup_tree_cfg): Get and pass down SSA update flags.
13670 2019-03-01 Jakub Jelinek <jakub@redhat.com>
13673 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
13674 early_lto_debug argument.
13676 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
13678 PR tree-optimization/89536
13679 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
13680 only whether bit #0 of the value is 0 instead of the entire value.
13682 2019-02-28 Marek Polacek <polacek@redhat.com>
13684 PR c++/87068 - missing diagnostic with fallthrough statement.
13685 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
13686 at the end of a seq, save its location to walk_stmt_info.
13687 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
13690 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
13693 * tree.c (find_atomic_core_type): Move ahead in file.
13694 (check_base_type): Correctly compare alignments of atomic types.
13696 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
13699 * config/i386/i386.c (get_builtin_code_for_version): Identify
13700 Westmere from PCLMUL, instead of AES.
13702 2019-02-28 Jakub Jelinek <jakub@redhat.com>
13705 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
13706 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
13709 2019-02-28 Tamar Christina <tamar.christina@arm.com>
13712 * config/aarch64/aarch64-option-extensions.def: Document it.
13713 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
13716 2019-02-28 Jakub Jelinek <jakub@redhat.com>
13719 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
13720 builtins if they don't have a single scalar floating point argument.
13723 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
13725 PR rtl-optimization/89490
13726 * varasm.c (get_block_for_section): Bail out for mergeable sections.
13727 (default_use_anchors_for_symbol_p, output_object_block): Assert the
13728 block section is not mergeable.
13730 2019-02-27 Jakub Jelinek <jakub@redhat.com>
13733 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
13734 old define_insn to ...
13735 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
13736 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
13737 Rename old define_insn to ...
13738 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
13739 (thumb2_casesi_internal_pic): New define_expand. Rename old
13741 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
13742 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
13743 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
13745 2019-02-27 Richard Biener <rguenther@suse.de>
13748 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
13750 2019-02-27 Richard Biener <rguenther@suse.de>
13752 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
13755 2019-02-27 Richard Biener <rguenther@suse.de>
13758 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
13759 parameter, prefix section name with .gnu.debuglto_ if true.
13760 (dwarf2out_finish): Pass false to output_comdat_type_unit.
13761 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
13763 2019-02-27 Richard Biener <rguenther@suse.de>
13766 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
13767 rather than on use_debug_types, doing what output_die does.
13768 (value_format): Likewise.
13770 2019-02-27 Martin Jambor <mjambor@suse.cz>
13771 Martin Sebor <msebor@redhat.com>
13773 * doc/invoke.texi (Warning Options): Reword description of
13774 -Wno-absolute-value.
13776 2019-02-27 Jakub Jelinek <jakub@redhat.com>
13778 PR tree-optimization/89280
13779 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
13780 builtin_setjmp_setup_bb): New functions.
13781 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
13782 When visiting __builtin_setjmp_setup block, queue in special
13783 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
13784 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
13785 from visited after the loop if they don't have any visited successor
13788 2018-02-26 Steve Ellcey <sellcey@marvell.com>
13790 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
13792 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
13794 2019-02-26 Jakub Jelinek <jakub@redhat.com>
13797 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
13798 with types other than sizetype/ssizetype.
13800 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
13802 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
13803 (enum sparc_processor_type): ...this.
13804 (enum sparc_code_model_type): New enumeration type.
13805 (enum sparc_memory_model_type): Tweak comments.
13806 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
13808 (mcmodel): Use sparc_code_model enumeration and variable.
13809 (sparc_code_model): New enumeration.
13810 (mdebug): Add Undocumented marker.
13811 * config/sparc/sparc.h (enum cmodel): Delete.
13812 (sparc_cmodel): Likewise.
13813 (TARGET_CM_MEDLOW): Adjust to above renaming.
13814 (TARGET_CM_MEDMID): Likewise.
13815 (TARGET_CM_MEDANY): Likewise.
13816 (TARGET_CM_EMBMEDANY): Likewise.
13817 * config/sparc/sparc.c (sparc_cmodel): Delete.
13818 (sparc_option_override): Remove string/value mapping support for the
13819 code model. Move code and memory model support to after the handling
13820 of target flags. Do private machine setup last.
13821 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
13822 (sparc_legitimize_reload_address): Likewise.
13823 (sparc_output_mi_thunk): Likewise.
13824 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
13826 2019-02-26 Jakub Jelinek <jakub@redhat.com>
13828 PR tree-optimization/89500
13829 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
13830 (handle_builtin_strlen): Remove noncst_bound variable. Always
13831 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
13832 cst if the first cst bytes starting at x are known to be non-zero,
13833 even if the string is not zero terminated. Don't try to modify
13834 *si for strnlen. Update strlen_to_stridx only for strlen or if
13835 we can prove strnlen returns the same value as strlen would.
13837 2019-02-26 Martin Liska <mliska@suse.cz>
13839 * alloc-pool.h (struct pool_usage): Remove extra
13841 * bitmap.h (struct bitmap_usage): Likewise.
13842 * ggc-common.c (struct ggc_usage): Likewise.
13843 * mem-stats.h (struct mem_usage): Likewise.
13844 (mem_alloc_description::dump): Print dash lines
13845 here and repeat header at the end of a table report.
13846 It's then more readable.
13847 * tree-phinodes.c (phinodes_print_statistics): Make
13848 horizontal alignment.
13849 * tree-ssanames.c (ssanames_print_statistics): Likewise.
13850 * vec.c (struct vec_usage): Remove extra print_dash_line.
13851 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
13853 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
13855 * doc/extend.texi (__builtin_object_size):
13856 Use @pxref instead of @xref inside parenthesis.
13857 (__builtin_has_attribute): Add missing comma after @xref.
13858 (__builtin_object_size): Ditto.
13859 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
13860 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
13863 2019-02-26 Jeff Law <law@redhat.com>
13865 PR rtl-optimization/87761
13866 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
13867 detect obviously dead insns and delete them.
13869 2019-02-26 Richard Biener <rguenther@suse.de>
13871 PR tree-optimization/89505
13872 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
13873 to handle restrict pointed-to vars with multiple subvars
13876 2019-02-26 Richard Biener <rguenther@suse.de>
13878 PR tree-optimization/89489
13879 * tree-parloops.c (create_loop_fn): Copy over last_clique.
13881 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
13883 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
13884 and move around comment.
13885 <BIT_AND_EXPR>: Likewise.
13886 <BIT_NOT_EXPR>: Add specific handling for boolean types.
13888 2019-02-26 Jakub Jelinek <jakub@redhat.com>
13891 * config/i386/i386.c (remove_partial_avx_dependency): Call
13892 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
13893 after changing possibly many instructions to use that pseudo. Fix up
13894 insertion of v4sf_const0 setter at the start of bb.
13896 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
13899 * doc/extend.texi (Variadic Pointer Args): New section.
13901 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
13902 Martin Sebor <msebor@gmail.com>
13904 * common.opt (Wattribute-alias): Likewise.
13905 * doc/invoke.texi (Option Summary): List general form of
13906 -Wattribute-alias=. List positive form of -Wmissing-attributes.
13907 (-Wmissing-attributes): Invert entry, rewrite and correct default.
13908 Add cross-references.
13909 (-Wattribute-alias): Rewrite and correct default. Mention
13910 considered attributes (same as for -Wmissing-attributes).
13912 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
13914 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
13915 (_mm_cvtpd_ps): Likewise.
13916 (_mm_cvttpd_epi32): Likewise.
13919 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
13920 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
13923 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
13925 2019-02-25 Tamar Christina <tamar.christina@arm.com>
13928 * common/config/aarch64/aarch64-common.c
13929 (struct aarch64_option_extension): Add is_synthetic.
13930 (all_extensions): Use it.
13931 (TARGET_OPTION_INIT_STRUCT): Define hook.
13932 (struct gcc_targetm_common): Moved to end.
13933 (all_extensions_by_on): New.
13934 (opt_ext_cmp, typedef opt_ext): New.
13935 (aarch64_option_init_struct): New.
13936 (aarch64_contains_opt): New.
13937 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
13938 * config/aarch64/aarch64-option-extensions.def
13939 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
13940 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
13941 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
13942 Set is_synthetic to false.
13943 (crypto): Set is_synthetic to true.
13944 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
13947 2019-02-25 Tamar Christina <tamar.christina@arm.com>
13949 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
13950 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
13951 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
13952 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
13953 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
13954 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
13955 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
13956 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
13958 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
13959 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
13960 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
13961 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
13962 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
13963 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
13964 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
13965 vfmlsl_laneq_high_f16): ... To this.
13966 * config/arm/neon.md: Update comments.
13968 2019-02-25 Tamar Christina <tamar.christina@arm.com>
13970 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
13971 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
13972 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
13973 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
13974 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
13975 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
13976 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
13977 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
13979 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
13980 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
13981 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
13982 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
13983 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
13984 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
13985 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
13986 vfmlslq_laneq_high_f16): ... To this.
13988 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
13990 PR rtl-optimization/86096
13991 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
13992 comparing mw_order values.
13994 2019-02-25 Jakub Jelinek <jakub@redhat.com>
13997 * config/arm/arm.md (*subsi3_carryin_const): Use
13998 arm_neg_immediate_operand predicate instead of
13999 arm_not_immediate_operand, "L" constraint instead of "K" and
14000 print it using %n2 instead of %B2.
14001 (*subsi3_carryin_const0): New define_insn.
14002 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
14003 instead of arm_not_operand and "I" constraint instead of "K" and
14004 print it using %n3 instead of %B2. Instead of using match_dup 2 add
14005 another match_operand and in the condition check that it is negation
14007 (*subsi3_carryin_compare_const0): New define_ins.
14008 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
14009 *subsi3_carryin_const.
14010 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
14011 split into *subsi3_carryin_compare_const0 if the highpart is zero.
14014 * config/arm.vfp.md (*negdf2_vfp): Use
14015 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
14016 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
14018 2019-02-24 Jakub Jelinek <jakub@redhat.com>
14020 PR rtl-optimization/89445
14021 * simplify-rtx.c (simplify_ternary_operation): Don't use
14022 simplify_merge_mask on operands that may trap.
14023 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
14024 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
14025 second operand is CONST_VECTOR, check if any element could be zero.
14026 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
14027 their operands can trap.
14029 2019-02-23 Martin Sebor <msebor@redhat.com>
14031 * gimple-ssa-sprintf.c (target_strtol): Rename...
14032 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
14033 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
14034 check for range error.
14036 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
14039 * opts-common.c (prune_options): Also prune joined switches
14040 with Negative and RejectNegative.
14041 * config/i386/i386.opt (march=): Add Negative(march=).
14042 (mtune=): Add Negative(mtune=).
14043 * doc/options.texi: Document Negative used together with Joined
14044 and RejectNegative.
14046 2019-02-22 Martin Sebor <msebor@redhat.com>
14048 * doc/extend.texi (Other Builtins): Add
14049 __builtin_is_constant_evaluated.
14051 2019-02-22 Richard Biener <rguenther@suse.de>
14053 PR tree-optimization/87609
14054 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
14056 2019-02-22 Jeff Law <law@redhat.com>
14058 PR rtl-optimization/87761
14059 * config/mips/mips.md: Add new combiner pattern to recognize
14060 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
14062 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
14065 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
14066 destination register in peepholes generating patterns for ADDS/SUBS.
14067 (add<mode>3_compare0,
14068 *addsi3_compare0_uxtw, add<mode>3_compareC,
14069 add<mode>3_compareV_imm, add<mode>3_compareV,
14070 *adds_<optab><ALLX:mode>_<GPI:mode>,
14071 *subs_<optab><ALLX:mode>_<GPI:mode>,
14072 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
14073 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
14074 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
14075 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
14076 sub<mode>3_compare1): Allow stack pointer for source register.
14077 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
14079 2019-02-22 Martin Sebor <msebor@redhat.com>
14081 PR tree-optimization/88993
14082 PR tree-optimization/88853
14083 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
14085 (sprintf_dom_walker::call_info::is_string_func): New helper.
14086 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
14087 for formatted string functions.
14088 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
14090 2019-02-22 Martin Sebor <msebor@redhat.com>
14093 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
14094 unreachable subexpressions.
14096 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
14097 Hongtao Liu <hongtao.liu@intel.com>
14098 Sunil K Pandey <sunil.k.pandey@intel.com>
14101 * config/i386/i386-passes.def: Add
14102 pass_remove_partial_avx_dependency.
14103 * config/i386/i386-protos.h
14104 (make_pass_remove_partial_avx_dependency): New.
14105 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
14107 (pass_data_remove_partial_avx_dependency): New.
14108 (pass_remove_partial_avx_dependency): Likewise.
14109 (make_pass_remove_partial_avx_dependency): Likewise.
14110 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
14111 (*extendsfdf2): Add avx_partial_xmm_update.
14112 (truncdfsf2): Likewise.
14113 (*float<SWI48:mode><MODEF:mode>2): Likewise.
14114 (SF/DF conversion splitters): Disabled for TARGET_AVX.
14116 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
14118 PR middle-end/85598
14119 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
14122 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
14125 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
14126 (PTA_SKYLAKE): Add PTA_AES.
14127 (PTA_GOLDMONT): Likewise.
14129 2019-02-22 Sudakshina Das <sudi.das@arm.com>
14131 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
14132 instruction if enabled.
14133 (aarch64_override_options): Remove reference to return address key.
14135 2019-02-22 Richard Biener <rguenther@suse.de>
14137 PR tree-optimization/89440
14138 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
14139 not necessary assert.
14141 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
14144 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
14145 (oacc_replace_fn_attrib_attr): ... this new function.
14146 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
14147 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
14149 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14151 * config/arm/arm-cpus.in (ares): Rename to...
14152 (neoverse-n1): ... This. Add ares as alias.
14153 * config/arm/arm-tables.opt: Regenerate.
14154 * config/arm/arm-tune.md: Likewise.
14155 * doc/invoke.txt (ARM Options): Document neoverse-n1.
14157 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14159 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
14160 * config/aarch64/aarch64-tune.md: Regenerate.
14161 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
14163 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14165 * config/aarch64/aarch64.c (ares_tunings): Rename to...
14166 (neoversen1_tunings): ... This.
14167 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
14168 (neoverse-n1): New CPU.
14169 * config/aarch64/aarch64-tune.md: Regenerate.
14170 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
14172 2019-02-22 Richard Biener <rguenther@suse.de>
14174 PR middle-end/87609
14175 * cfghooks.h (dependence_hash): New typedef.
14176 (struct copy_bb_data): New type.
14177 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
14178 (duplicate_block): Likewise.
14179 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
14180 (copy_bbs): Create and pass down copy_bb_data.
14181 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
14182 (rtl_duplicate_bb): Likewise.
14183 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
14184 remap dependence info.
14186 2019-02-22 Richard Biener <rguenther@suse.de>
14188 PR tree-optimization/87609
14189 * tree-core.h (tree_base): Document special clique values.
14190 * tree-inline.c (remap_dependence_clique): Do not use the
14191 special clique value of one.
14192 (maybe_set_dependence_info): Use clique one.
14193 (clear_dependence_clique): New callback.
14194 (compute_dependence_clique): Clear clique one from all refs
14195 before assigning it (again).
14197 2019-02-21 Martin Sebor <msebor@redhat.com>
14199 * doc/extend.texi (__clear_cache): Correct signature.
14201 2019-02-21 Ian Lance Taylor <iant@golang.org>
14204 * varasm.c (decode_addr_const): Call lookup_constant_def rather
14205 than output_constant_def.
14206 (add_constant_to_table): New static function.
14207 (output_constant_def): Call add_constant_to_table.
14208 (tree_output_constant_def): Likewise.
14210 2019-02-21 Jakub Jelinek <jakub@redhat.com>
14213 * builtins.c (fold_builtin_arith_overflow): If first two args are
14214 INTEGER_CSTs, set intres and ovfres to constants rather than calls
14217 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
14220 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
14221 error for -mindirect-branch/-mfunction-return with incompatible
14224 2019-02-21 Jakub Jelinek <jakub@redhat.com>
14227 * constraints.md (q): Remove.
14228 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
14231 2019-02-21 Martin Jambor <mjambor@suse.cz>
14234 * omp-general.c (omp_extract_for_data): Removed a duplicate call
14235 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
14236 (omp_adjust_for_condition): ...here. Added necessary parameters.
14237 * omp-general.h (omp_adjust_for_condition): Updated declaration.
14238 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
14239 proper values to new parameters of omp_adjust_for_condition.
14241 2019-02-20 Jakub Jelinek <jakub@redhat.com>
14243 PR middle-end/89412
14244 * expr.c (expand_assignment): If result is a MEM, use change_address
14245 instead of simplify_gen_subreg.
14247 2019-02-20 Jakub Jelinek <jakub@redhat.com>
14248 David Malcolm <dmalcolm@redhat.com>
14250 PR middle-end/89091
14251 * fold-const.c (decode_field_reference): Return NULL_TREE if
14252 lang_hooks.types.type_for_size returns NULL. Check it before
14253 overwriting *exp_. Use return NULL_TREE instead of return 0.
14255 2019-02-20 Jakub Jelinek <jakub@redhat.com>
14257 PR middle-end/88074
14258 PR middle-end/89415
14259 * toplev.c (do_compile): Double the emin/emax exponents to workaround
14262 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
14265 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
14266 TARGET_SSE in addition to TARGET_SSE_MATH.
14268 (ix86_excess_precision): Ditto.
14269 (ix86_float_exceptions_rounding_supported_p): Ditto.
14270 (use_rsqrt_p): Ditto.
14271 * config/i386/sse.md (rsqrt<mode>2): Ditto.
14273 2019-02-20 David Malcolm <dmalcolm@redhat.com>
14276 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
14277 linenum_arith_t when determining if two adjacent line spans are
14278 close enough to merge.
14279 (diagnostic_show_locus): Use linenum_arith_t when iterating over
14280 lines within each line_span.
14282 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
14285 * lra-constraints.c(uses_hard_regs_p): Fix handling of
14286 paradoxical SUBREGS.
14288 2019-02-20 Li Jia He <helijia@linux.ibm.com>
14291 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
14292 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
14293 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
14296 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
14298 * config/gcn/gcn.c (print_operand): Fix typo.
14300 2019-02-19 Richard Biener <rguenther@suse.de>
14302 PR middle-end/88074
14303 * toplev.c (do_compile): Initialize mpfr's exponent range
14304 based on available float modes.
14306 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
14308 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
14309 as long as the epilogue isn't completed.
14311 2019-02-18 Martin Sebor <msebor@redhat.com>
14313 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
14314 __has_cpp_attribute, and __has_include.
14316 2019-02-18 Martin Sebor <msebor@redhat.com>
14318 * doc/invoke.texi (-Wreturn-type): Correct and expand.
14320 2019-02-18 Martin Sebor <msebor@redhat.com>
14322 PR middle-end/89294
14323 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
14325 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
14327 2019-02-18 Richard Biener <rguenther@suse.de>
14329 PR tree-optimization/89296
14330 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
14331 of no-warning flag to cases that might emit the bogus warning.
14333 2019-02-18 Jakub Jelinek <jakub@redhat.com>
14336 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
14338 * config/arm/vfp.md (*movdi_vfp): Likewise.
14339 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
14340 "q" constraint for operands[0].
14343 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
14344 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
14345 pattern in a temporary buffer.
14346 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
14347 than 64-operands[2].
14350 * config/s390/s390.c (s390_indirect_branch_attrvalue,
14351 s390_indirect_branch_settings): Define unconditionally.
14352 (s390_set_current_function): Likewise, but guard the whole body except
14353 the s390_indirect_branch_settings call with
14354 #if S390_USE_TARGET_ATTRIBUTE.
14355 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
14357 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
14358 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
14359 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
14360 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
14361 HOST_WIDE_INT_1U instead of 1ULL.
14362 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
14363 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
14364 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
14365 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
14367 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
14370 2019-02-18 Martin Jambor <mjambor@suse.cz>
14372 PR tree-optimization/89209
14373 * tree-sra.c (create_access_replacement): New optional parameter
14374 reg_tree. Use it as a type if non-NULL and access type is not of
14376 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
14377 to create_access_replacement.
14378 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
14379 Check lacc is non-NULL before attempting to re-create it on the RHS.
14381 2019-02-18 Martin Liska <mliska@suse.cz>
14384 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
14386 (symbol_table::free_edge): Recycle m_summary_id.
14387 * cgraph.h (get_summary_id): New.
14388 (symbol_table::release_symbol): Set m_summary_id to -1
14390 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
14391 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
14392 function_summary to fast_function_summary.
14393 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
14394 * ipa-pure-const.c (class funct_state_summary_t):
14395 Switch from function_summary to fast_function_summary.
14396 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
14397 (class ipa_ref_opt_summary_t): Switch from function_summary
14398 to fast_function_summary.
14399 * symbol-summary.h (class function_summary_base): New class
14400 that is created from base of former function_summary.
14401 (function_summary_base::unregister_hooks): New.
14402 (class function_summary): Inherit from function_summary_base.
14403 (class call_summary_base): New class
14404 that is created from base of former call_summary.
14405 (class call_summary): Inherit from call_summary_base.
14406 (struct is_same): New.
14407 (class fast_function_summary): New summary class.
14408 (class fast_call_summary): New summary class.
14409 * vec.h (vec_safe_grow_cleared): New function.
14411 2019-02-18 Martin Liska <mliska@suse.cz>
14413 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
14414 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
14415 * doc/tm.texi: Document new target hook.
14416 * doc/tm.texi.in: Likewise.
14417 * target.def: Add new target macro.
14418 * gcc.c (find_fortran_preinclude_file): Do not search multilib
14421 2019-02-17 Alan Modra <amodra@gmail.com>
14424 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
14425 output reg on add insn.
14426 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
14428 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
14431 * config/i386/sse.md (ssedoublemode): Remove V4HI.
14432 (PMULHRSW): Likewise.
14433 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
14435 (ssse3_pmulhrswv4hi3): New expander.
14437 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
14439 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
14440 MMX. Add isa attribute.
14442 2019-02-16 Jakub Jelinek <jakub@redhat.com>
14444 PR rtl-optimization/66152
14445 * builtins.h (c_readstr): Declare.
14446 * builtins.c (c_readstr): Remove forward declaration. Add
14447 null_terminated_p argument, if false, read all bytes from the
14448 string instead of stopping after '\0'.
14449 * expr.c (string_cst_read_str): New function.
14450 (store_expr): Use string_cst_read_str instead of
14451 builtin_strncpy_read_str. Try to store by pieces the whole
14452 exp_len first, and only if that fails, split it up into
14453 store by pieces followed by clear_storage. Formatting fix.
14455 * config/i386/i386.md (*movqi_internal): Remove static from
14456 buf variable. Use output_asm_insn (buf, operands); return "";
14457 instead of return buf;.
14458 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
14459 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
14460 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
14462 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
14464 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
14465 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
14466 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
14467 (CC1_SPEC): Likewise.
14468 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
14470 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
14472 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
14473 the base address on 64-bit strict-alignment platforms.
14475 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
14477 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
14479 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
14481 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
14483 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
14485 PR rtl-optimization/88308
14486 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
14487 on copied instruction.
14489 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
14491 * final.c (insn_current_reference_address): Replace test on JUMP_P
14492 with test on jump_to_label_p.
14493 * config/visium/visium-passes.def: New file.
14494 * config/visium/t-visium (PASSES_EXTRA): Define.
14495 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
14496 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
14497 (TRAMPOLINE_ALIGNMENT): Define.
14498 * config/visium/visium.c (visium_option_override): Do not register
14499 the machine-specific reorg pass here.
14500 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
14502 (output_branch): Adjust threshold for long branch instruction.
14503 * config/visium/visium.md (cpu): Move around.
14504 (length): Adjust for the GR6.
14506 2019-02-15 Richard Biener <rguenther@suse.de>
14507 Jakub Jelinek <jakub@redhat.com>
14509 PR tree-optimization/89278
14510 * tree-loop-distribution.c: Include tree-eh.h.
14511 (generate_memset_builtin, generate_memcpy_builtin): Call
14512 rewrite_to_non_trapping_overflow on builtin->size before passing it
14513 to force_gimple_operand_gsi.
14515 2019-02-15 Jakub Jelinek <jakub@redhat.com>
14518 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
14520 * opth-gen.awk: Likewise.
14522 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
14524 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
14525 Enable MMX, SSE and SSE2 by default.
14526 * config/i386/i386.c (ix86_option_override_internal): Do not
14527 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
14529 2019-02-14 Jakub Jelinek <jakub@redhat.com>
14531 PR rtl-optimization/89354
14532 * combine.c (make_extraction): Punt if extraction_mode is narrower
14535 2019-02-14 Maya Rashish <coypu@sdf.org>
14537 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
14538 * config/netbsd-d.c: New file.
14539 * config/t-netbsd: Add netbsd-d.o
14541 2018-02-14 Steve Ellcey <sellcey@marvell.com>
14543 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
14544 affects_type_identity to true for aarch64_vector_pcs.
14545 (aarch64_comp_type_attributes): New function.
14546 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
14548 2019-02-14 Tamar Christina <tamar.christina@arm.com>
14551 * config/arm/iterators.md (ANY64): Add V4HF.
14553 2019-02-14 Martin Liska <mliska@suse.cz>
14555 PR rtl-optimization/89242
14556 * dce.c (delete_unmarked_insns): Call free_dominance_info we
14557 process a transformation.
14559 2019-02-14 Jakub Jelinek <jakub@redhat.com>
14561 PR tree-optimization/89314
14562 * fold-const.c (fold_binary_loc): Cast strlen argument to
14563 const char * before dereferencing it. Formatting fixes.
14565 PR middle-end/89284
14566 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
14568 2019-02-13 Ian Lance Taylor <iant@golang.org>
14570 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
14571 and set current index for other optimizations.
14573 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
14575 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
14576 nonimmediate_operand as operand 2 predicate.
14577 (vec_set<VF2_512_256:mode>_0): Ditto.
14578 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
14579 (*vec_concatv2si): Remove alternative 2.
14580 (*vec_concatv4si_0): Use vm constraint for alternative 0.
14581 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
14582 (vec_concatv2di): Split alternatives 4,5,6 to ...
14583 (*vec_concatv2di_0) ... new pattern.
14585 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
14588 * config/arm/arm.c (ldm_stm_operation_p) Set
14589 addr_reg_in_reglist correctly for first register.
14590 (load_multiple_sequence): Remove dead base check.
14591 (gen_ldm_seq): Correctly set write_back for Thumb-1.
14593 2019-02-13 Tamar Christina <tamar.christina@arm.com>
14596 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
14597 Expose as @aarch64_pred_mov.
14598 * config/aarch64/aarch64.c (aarch64_classify_address):
14599 Use expand_insn which legitimizes operands.
14601 2019-02-13 Martin Liska <mliska@suse.cz>
14603 * builtins.h (expand_builtin_with_bounds): Remove declaration.
14604 * calls.c (struct arg_data): Remove special_slot, pointer_arg
14605 and pointer_offset fields.
14606 (initialize_argument_information): Remove usage of dead
14608 * cgraph.h (struct cgraph_thunk_info): Remove
14609 add_pointer_bounds_args.
14610 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
14612 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
14614 * config/i386/i386.c (ix86_function_arg_advance): Remove
14616 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
14617 (def_builtin): Remove usage of dead
14619 (ix86_add_new_builtins): Likewise.
14620 * ipa-fnsummary.c (compute_fn_summary): Likewise.
14621 * ipa-icf.c (sem_function::equals_wpa): Likewise.
14622 (sem_function::init): Likewise.
14623 (sem_variable::merge): Likewise.
14624 * ipa-visibility.c (function_and_variable_visibility): Likewise.
14625 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
14626 * lto-cgraph.c (lto_output_node): Likewise.
14627 (lto_output_varpool_node): Likewise.
14628 (input_node): Likewise.
14629 (input_varpool_node): Likewise.
14630 * lto-streamer-out.c (lto_output): Likewise.
14631 * tree-inline.c (expand_call_inline): Remove usage of
14633 * tree-inline.h (struct copy_body_data): Likewise.
14634 * varpool.c (varpool_node::dump): Likewise.
14636 2019-02-13 Jakub Jelinek <jakub@redhat.com>
14638 PR middle-end/89303
14639 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
14640 into pt->vars_contains_escaped_heap instead of setting
14641 pt->vars_contains_escaped_heap to it.
14643 PR middle-end/89281
14644 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
14645 INTVAL (size), compare it to GET_MODE_MASK instead of
14646 1 << GET_MODE_BITSIZE.
14649 * config/i386/predicates.md (x86_64_immediate_operand): Allow
14650 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
14653 2019-02-13 Martin Liska <mliska@suse.cz>
14656 * cfgrtl.c (remove_barriers_from_footer): New function.
14657 (try_redirect_by_replacing_jump): Use it.
14658 (cfg_layout_redirect_edge_and_branch): Likewise.
14660 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
14662 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
14663 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
14664 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
14665 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
14666 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
14667 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
14669 * config/rs6000/rs6000.c (builtin_function_type)
14670 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
14671 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
14672 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
14673 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
14674 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
14676 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
14678 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
14679 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
14681 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
14684 * config/i386/i386.md (*movoi_internal_avx): Revert revision
14685 268678 and revision 268657.
14686 (*movti_internal): Likewise.
14688 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
14691 * config/s390/s390.c (s390_decompose_address): Update comment.
14692 (s390_check_qrst_address): Reject invalid address forms after
14695 2019-02-12 Martin Liska <mliska@suse.cz>
14698 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
14699 we need default values of funct_state for a function that
14702 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
14704 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
14705 the object to pick the size of stores on strict-alignment platforms.
14707 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
14708 (*movdi_insn_sp32): Likewise.
14709 (*movdi_insn_sp64): Likewise.
14711 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
14714 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
14715 types that needs constructiong.
14716 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
14718 2019-02-12 Richard Biener <rguenther@suse.de>
14720 PR tree-optimization/89253
14721 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
14722 duplicate the loop.
14724 2019-02-11 David Malcolm <dmalcolm@redhat.com>
14727 * input.c (selftest::test_line_offset_overflow): New selftest.
14728 (selftest::input_c_tests): Call it.
14730 2019-02-11 Martin Sebor <msebor@redhat.com>
14732 PR tree-optimization/88771
14733 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
14734 when -Wstringop-overflow is set.
14735 (builtin_memref::builtin_memref): Adjust excessive upper bound
14736 only when lower bound is not excessive.
14737 (maybe_diag_overlap): Detect and diagnose excessive bounds via
14738 -Wstringop-ovefflow.
14739 (maybe_diag_offset_bounds): Rename...
14740 (maybe_diag_access_bounds): ...to this.
14741 (check_bounds_or_overlap): Adjust for name change above.
14743 2019-02-11 Martin Sebor <msebor@redhat.com>
14746 * builtins.c (max_object_size): Move from here...
14747 * builtins.h (max_object_size): ...and here...
14748 * tree.c (max_object_size): ...to here...
14749 * tree.h (max_object_size): ...and here.
14751 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
14753 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
14754 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
14755 for correct semantics.
14757 2019-02-11 Alan Modra <amodra@gmail.com>
14759 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
14760 -mlongcall and -mpltseq.
14761 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
14762 (RS/6000 and PowerPC Options <-mpltseq>): Document.
14763 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
14764 * config/rs6000/sysv4.opt (mpltseq): New option.
14765 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
14766 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
14767 support is lacking. Don't allow -mpltseq with -mbss-plt.
14768 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
14769 -mpltseq given for ELFv1.
14770 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
14771 Only use UNSPEC_PLTSEQ for inline PLT calls.
14772 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
14773 use UNSPEC_PLTSEQ for inline PLT calls.
14774 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
14775 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
14776 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
14777 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
14778 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
14779 (pltseq_mtctr_<mode>): Likewise.
14781 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14783 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
14785 * configure: Regenerate.
14787 2019-02-11 Jakub Jelinek <jakub@redhat.com>
14790 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
14793 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
14795 * function.c (assign_parm_setup_block): Use the stored
14796 size, not the passed size, when allocating stack-space,
14797 also for a parameter with alignment larger than
14798 MAX_SUPPORTED_STACK_ALIGNMENT.
14800 2019-02-11 Martin Liska <mliska@suse.cz>
14803 * ipa-cp.c (build_toporder_info): Remove usage of a param.
14804 * ipa-inline.c (inline_small_functions): Likewise.
14805 * ipa-pure-const.c (propagate_pure_const): Likewise.
14806 (propagate_nothrow): Likewise.
14807 * ipa-reference.c (propagate): Likewise.
14808 * ipa-utils.c (struct searchc_env): Remove unused field.
14809 (searchc): Always search across AVAIL_INTERPOSABLE.
14810 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
14811 the only called IPA pure const can properly not propagate
14812 across interposable boundary.
14813 * ipa-utils.h (ipa_reduced_postorder): Remove param.
14815 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
14817 * config/nds32/nds32.md (call_internal, call_value_internal,
14818 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
14820 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
14822 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
14825 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
14827 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
14830 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
14832 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
14834 2019-02-10 Jakub Jelinek <jakub@redhat.com>
14836 PR tree-optimization/89268
14837 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
14838 if preds is non-NULL.
14840 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
14843 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
14846 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
14848 * config/nds32/nds32.md (trap): New pattern.
14850 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
14852 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
14855 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
14857 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
14860 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
14862 * ipa-visibility.c (localize_node): Also do not localize
14863 LDPR_PREVAILING_DEF_IRONLY_EXP.
14865 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
14868 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
14869 instead of type_with_linkage.
14871 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
14874 * params.def (uninlined-function-insns, uninlined-function-time,
14875 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
14876 bound so we don't get overflows.
14878 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
14880 * config/rs6000/rs6000-string.c (expand_compare_loop,
14881 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
14884 2019-02-09 Jakub Jelinek <jakub@redhat.com>
14886 PR middle-end/89246
14887 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
14888 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
14889 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
14891 2019-02-09 Alan Modra <amodra@gmail.com>
14894 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
14895 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
14898 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
14900 PR middle-end/88560
14901 * lra-constraints.c (process_alt_operands): Don't increase reject
14902 for memory when offset memory is required.
14904 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
14906 * config/s390/vector.md: Implement vector copysign.
14908 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
14910 * expr.c (expand_constructor): Correct indentations.
14912 2019-02-08 Richard Biener <rguenther@suse.de>
14914 PR tree-optimization/89247
14915 * tree-if-conv.c: Include tree-cfgcleanup.h.
14916 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
14917 (tree_if_conversion): Pass through predicate vector.
14918 (pass_if_conversion::execute): Do CFG cleanup and SSA update
14919 inline, see if any if-converted loops we refrece in
14920 LOOP_VECTORIZED calls vanished and fixup.
14921 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
14923 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
14925 * config/s390/constraints.md (jdd): New constraint.
14927 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
14930 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
14931 upper 16 vector registers without TARGET_AVX512VL.
14932 (*movti_internal): Likewise.
14934 2019-02-08 Jakub Jelinek <jakub@redhat.com>
14936 PR rtl-optimization/89234
14937 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
14938 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
14939 (copy_reg_eh_region_note_backward): Likewise.
14941 2019-02-08 Richard Biener <rguenther@suse.de>
14943 PR middle-end/89223
14944 * tree-data-ref.c (initialize_matrix_A): Fail if constant
14945 doesn't fit in HWI.
14946 (analyze_subscript_affine_affine): Handle failure from
14947 initialize_matrix_A.
14949 2019-02-08 Jakub Jelinek <jakub@redhat.com>
14951 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
14954 2019-02-07 David Malcolm <dmalcolm@redhat.com>
14956 PR tree-optimization/86637
14957 PR tree-optimization/89235
14958 * tree-vect-loop.c (optimize_mask_stores): Add an
14959 auto_purge_vect_location sentinel to ensure that vect_location is
14961 * tree-vectorizer.c
14962 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
14963 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
14964 to ensure that vect_location is purged on exit.
14965 (pass_slp_vectorize::execute): Likewise, replacing the manual
14967 * tree-vectorizer.h (class auto_purge_vect_location): New class.
14969 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14971 * config/aarch64/iterators.md (max_opp): New code_attr.
14972 (USMAX): New code iterator.
14973 * config/aarch64/predicates.md (aarch64_smin): New predicate.
14974 (aarch64_smax): Likewise.
14975 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
14976 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
14979 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
14982 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
14983 for TARGET_AVX512VL.
14984 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
14986 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
14988 * config/s390/s390-builtin-types.def: Add new types.
14989 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
14990 (s390_vec_xlw4): Make the memory operand into a const pointer.
14991 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
14993 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
14994 a new vector type with the alignment of the scalar memory operand.
14996 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
14997 Jakub Jelinek <jakub@redhat.com>
15000 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
15001 arm_count_ldrdstrd_insns): New declarations.
15002 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
15004 (valid_operands_ldrd_strd): New function.
15005 (arm_count_ldrdstrd_insns): New function.
15006 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
15007 sets instead of single DImode set and define new insns to match this.
15009 2019-02-07 Tamar Christina <tamar.christina@arm.com>
15011 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
15012 Make it a C initializer.
15014 2019-02-07 Tamar Christina <tamar.christina@arm.com>
15017 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
15019 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15021 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
15022 Use neon_dot<q> for type.
15023 (neon_<sup>dot_lane<vsi2qi>): Likewise.
15025 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15027 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
15028 Use neon_dot<q> for type.
15029 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
15030 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
15032 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
15034 PR rtl-optimization/89225
15035 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
15038 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
15040 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
15041 after restoring registers saved to allocate the frame on Windows.
15043 2019-02-06 Richard Biener <rguenther@suse.de>
15045 PR tree-optimization/89182
15046 * graphite.h (cached_scalar_evolution_in_region): Declare.
15047 * graphite.c (struct seir_cache_key): New.
15048 (struct sese_scev_hash): Likewise.
15049 (seir_cache): New global.
15050 (cached_scalar_evolution_in_region): New function.
15051 (graphite_transform_loops): Allocate and release seir_cache.
15052 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
15053 cached_scalar_evolution_in_region.
15054 * graphite-scop-detection.c (scop_detection::can_represent_loop):
15056 (scop_detection::graphite_can_represent_expr: Use
15057 cached_scalar_evolution_in_region.
15058 (scop_detection::stmt_simple_for_scop_p): Likewise.
15059 (find_params_in_bb): Likewise.
15060 (gather_bbs::before_dom_children): Likewise.
15061 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
15062 (add_loop_constraints): Likewise.
15064 2019-02-06 Jakub Jelinek <jakub@redhat.com>
15066 PR middle-end/89210
15067 * fold-const-call.c (fold_const_vec_convert): Pass true as last
15068 operand to new_unary_operation only if both element types are integral
15069 and it isn't a widening conversion. Return NULL_TREE if
15070 new_unary_operation failed.
15072 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
15075 * config/s390/s390.md: Remove load and test FP splitter.
15077 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
15080 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
15081 expand_compare_loop, expand_block_compare_gpr,
15082 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
15083 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
15084 #include "profile-count.h" and "predict.h" for types and functions
15085 needed to work with REG_BR_PROB notes.
15087 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
15090 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
15091 for the long branch case.
15093 2019-02-05 Jakub Jelinek <jakub@redhat.com>
15096 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
15097 can throw, non-call exceptions are enabled and we can't delete
15098 dead exceptions or alter cfg. Set must_clean if
15099 delete_insn_and_edges returns true, don't set it blindly for calls.
15100 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
15102 PR rtl-optimization/89195
15103 * combine.c (make_extraction): For MEMs, don't extract bytes outside
15104 of the original MEM.
15106 2019-02-05 Martin Liska <mliska@suse.cz>
15108 PR gcov-profile/89000
15109 * gcov.c (function_summary): Remove argument.
15110 (file_summary): New function.
15111 (print_usage): Replace tabs with spaces.
15112 (generate_results): Use new function file_summary.
15114 2019-02-05 Jakub Jelinek <jakub@redhat.com>
15117 * optabs.c (prepare_cmp_insn): Pass x and y to
15118 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
15120 2019-02-05 Richard Biener <rguenther@suse.de>
15122 PR middle-end/89150
15123 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
15124 (struct bitmap_element): Drop chain_prev so we properly recurse on
15125 the prev member, supporting tree views.
15126 (struct bitmap_head): GTY skip the obstack member.
15128 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
15131 * doc/extend.texi (Vector Extensions): Add an example of using vector
15132 types together with x86 intrinsics.
15134 2019-02-04 Alan Modra <amodra@gmail.com>
15136 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
15137 str[] size to 160, and comment.
15139 2019-02-04 Alan Modra <amodra@gmail.com>
15141 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
15142 (rs6000_pltseq_template): Guard output of TLS markers with
15143 TARGET_TLS_MARKERS.
15144 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
15145 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
15146 to use inline PLT sequences.
15147 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
15148 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
15149 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
15151 2019-02-04 Martin Liska <mliska@suse.cz>
15154 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
15155 out when ipa_fn_summaries does not contain entry for callee.
15157 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
15159 * config/sparc/sparc.h: Remove superfluous blank lines.
15160 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
15161 (got_register_rtx): ...this.
15162 (sparc_got): Adjust to above renaming.
15163 (sparc_tls_got): Likewise.
15164 (sparc_delegitimize_address): Likewise.
15165 (sparc_output_mi_thunk): Likewise.
15166 (sparc_init_pic_reg): Likewise.
15167 (save_local_or_in_reg_p): Fix test on the GOT register.
15168 (USE_HIDDEN_LINKONCE): Move around.
15169 (get_pc_thunk_name): Likewise.
15170 (gen_load_pcrel_sym): Likewise.
15171 (load_got_register): Likewise.
15173 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
15175 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
15176 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
15178 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
15180 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
15181 into consideration.
15183 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
15185 * config.gcc (with_nds32_lib, glibc):
15186 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
15187 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
15188 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
15190 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
15193 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
15194 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
15195 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
15196 (*rcpsf2_sse): Ditto.
15197 (*rsqrtsf2_sse): Ditto.
15198 (sse4_1_round<mode<2): Ditto.
15200 2019-02-03 Richard Biener <rguenther@suse.de>
15203 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
15206 2019-02-02 Jakub Jelinek <jakub@redhat.com>
15208 PR middle-end/87887
15209 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
15210 Punt with warning on aggregate return or argument types. Ignore
15211 type/mode checking for uniform arguments.
15213 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
15215 * combine.c (try_combine): Do not print "Can't combine" messages unless
15216 printing failed combination attempts.
15218 2019-02-01 Martin Jambor <mjambor@suse.cz>
15221 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
15222 segment and global segment variables before making them static.
15224 2019-02-01 Martin Jambor <mjambor@suse.cz>
15226 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
15227 missed optimization dump with dump_enabled_p.
15229 2019-02-01 Richard Biener <rguenther@suse.de>
15231 PR middle-end/88597
15232 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
15233 the instantiate cache.
15234 (instantiate_scev_binary): Elide second operand procesing
15235 if equal to the first.
15236 * tree-chrec.c (chrec_contains_symbols): Add visited set.
15237 (chrec_contains_undetermined): Likewise.
15238 (tree_contains_chrecs): Likewise.
15240 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
15242 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
15244 2019-02-01 Jakub Jelinek <jakub@redhat.com>
15246 PR tree-optimization/89143
15247 * wide-int-range.h (wide_int_range_absu): Declare.
15248 * wide-int-range.cc (wide_int_range_absu): New function.
15249 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
15251 PR tree-optimization/88107
15252 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
15253 instead of assertion that eh_region_outermost is non-NULL, if it
15254 is NULL, set *ALL to true and return NULL.
15255 (move_sese_region_to_fn): Adjust caller, if all is set, call
15256 duplicate_eh_regions with NULL region.
15258 2019-02-01 Richard Biener <rguenth@suse.de>
15260 PR rtl-optimization/88593
15261 * mode-switching.c (optimize_mode_switching): Free dominators before
15262 calling cleanup_cfg.
15264 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
15266 PR tree-optimization/88932
15267 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
15269 2019-01-31 Jakub Jelinek <jakub@redhat.com>
15271 PR middle-end/89137
15272 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
15273 bogus clang warning.
15275 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
15278 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
15279 alternative to avoid partial SSE register stall for TARGET_AVX.
15280 (truncdfsf2): Ditto.
15281 (sse4_1_round<mode>2): Ditto.
15283 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
15285 PR tree-optimization/89008
15286 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
15287 process anything of the form X * 0.
15289 2019-01-31 Richard Biener <rguenther@suse.de>
15291 PR tree-optimization/89135
15292 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
15293 with abnormal preds.
15295 2019-01-31 Jakub Jelinek <jakub@redhat.com>
15298 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
15299 always_inline callees into no_sanitize_address callers.
15301 2019-01-31 Richard Biener <rguenther@suse.de>
15303 PR rtl-optimization/89115
15304 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
15306 2019-01-30 Martin Sebor <msebor@redhat.com>
15309 * doc/extend.texi (cast to a union): Correct and expand.
15311 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
15313 PR rtl-optimization/87246
15314 * lra-constraints.c (simplify_operand_subreg): Reload memory
15315 in subreg if the address became invalid.
15317 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
15320 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
15321 Disable for little-endian.
15323 2019-01-30 Richard Biener <rguenther@suse.de>
15325 PR rtl-optimization/89115
15326 * opts.c (default_options_optimization): Reduce
15327 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
15328 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
15331 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
15333 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
15334 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
15335 type of vector element when vec_extract is implemented by direct
15338 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
15340 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
15342 2019-01-30 Richard Biener <rguenther@suse.de>
15344 PR tree-optimization/89111
15345 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
15346 canonicalization to appropriately sized access types.
15348 2019-01-30 Jakub Jelinek <jakub@redhat.com>
15351 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
15352 for arguments to functions that are TU-local and shouldn't be
15353 referenced by assembly.
15355 2019-01-30 Ulrich Drepper <drepper@redhat.com>
15357 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
15360 2019-01-29 Martin Sebor <msebor@redhat.com>
15363 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
15365 2019-01-29 Jakub Jelinek <jakub@redhat.com>
15369 * omp-simd-clone.c (simd_clone_clauses_extract)
15370 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
15371 OMP_CLAUSE_ALIGNED_ALIGNMENT.
15373 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
15375 * config.gcc: Force .init_array for ARC.
15377 2019-01-29 Richard Biener <rguenther@suse.de>
15380 * dwarf2out.c (collect_skeleton_dies): New helper.
15381 (copy_decls_for_unworthy_types): Call it.
15382 (build_abbrev_table): Assert we do not try to replace
15383 DW_AT_signature refs with local refs.
15385 2019-01-28 Jakub Jelinek <jakub@redhat.com>
15387 PR middle-end/89002
15388 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
15389 for lastprivate/linear IV, push gimplify context around gimplify_assign
15390 and, if it needed any temporaries, pop it into a gimple bind around the
15393 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
15395 * common.opt (-Wattribute-alias): Remove "no-" from name.
15396 Make -Wattribute-alias command line option and
15397 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
15399 2019-01-28 Jakub Jelinek <jakub@redhat.com>
15402 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
15403 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
15405 (bmi2): Add missing @opindex.
15406 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
15407 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
15408 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
15409 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
15410 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
15411 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
15412 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
15413 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
15414 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
15415 xsavec, xsaveopt and xsaves options.
15417 2019-01-28 Richard Biener <rguenther@suse.de>
15420 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
15423 2019-01-28 Richard Biener <rguenther@suse.de>
15425 PR tree-optimization/88739
15426 * tree-cfg.c (verify_types_in_gimple_reference): Verify
15427 BIT_FIELD_REFs only are applied to mode-precision operands
15428 when they are integral.
15429 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
15430 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
15431 BIT_FIELD_REFs of non-mode-precision integral operands.
15433 2019-01-27 Jakub Jelinek <jakub@redhat.com>
15436 * config/i386/sse.md
15437 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
15438 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
15439 first constants in pairs are multiples of 2. Formatting fixes.
15440 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
15441 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
15442 first constants in each quadruple are multiples of 4. Formatting fixes.
15444 2019-01-26 Martin Jambor <mjambor@suse.cz>
15447 * tree-inline.c: Include tree-cfgcleanup.h.
15448 (delete_unreachable_blocks_update_callgraph): Move...
15449 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
15450 ...here, make externally visible, make second argument bool, adjust
15452 * tree-cfgcleanup.c: Include cgraph.h.
15453 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
15455 * ipa-prop.c: Include tree-cfgcleanup.h.
15456 (ipcp_transform_function): Call
15457 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
15459 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
15461 PR rtl-optimization/88846
15462 * ira.c (process_set_for_memref_referenced_p): New.
15463 (memref_referenced_p): Add new param. Use
15464 process_set_for_memref_referenced_p. Add new switch cases.
15465 (memref_used_between_p): Pass new arg to memref_referenced_p.
15467 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
15470 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
15471 argument ABI_BREAK. Set to true if the calculated alignment has
15472 changed in gcc-9. Check bit-fields for their base type alignment.
15473 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
15474 (aarch64_function_arg_boundary): Likewise.
15475 (aarch64_gimplify_va_arg_expr): Likewise.
15477 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
15479 PR middle-end/89037
15480 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
15481 instead of accessing TREE_INT_CST_ELT directly.
15483 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
15485 * doc/sourcebuild.texi (Environment attributes): Add fenv and
15486 fenv_exceptions description.
15488 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
15490 PR rtl-optimization/87763
15491 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
15492 Allow SUBREG when matching CC_NZmode compare.
15494 2019-01-25 Richard Biener <rguenther@suse.de>
15496 PR tree-optimization/89049
15497 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
15498 Look at the pattern stmt to determine if the stmt is vectorized.
15500 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
15502 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
15503 (pred_mov<mode>): Handle all-register forms using both a new
15504 alternative and a split.
15506 2019-01-25 Richard Biener <rguenther@suse.de>
15508 PR tree-optimization/86865
15509 * graphite-scop-detection.c (scop_detection::can_represent_loop):
15510 Reject non-do-while loops.
15512 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
15514 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
15515 * config/rs6000/constraints.md (Q constraint): Use REG_P.
15516 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
15517 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
15518 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
15519 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
15520 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
15521 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
15522 vlogical_operand, gpc_reg_operand, int_reg_operand,
15523 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
15524 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
15525 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
15526 (save_world_operation, restore_world_operation, lmw_operation,
15527 stmw_operation): Use MEM_P and REG_P.
15528 (tie_operand): Use MEM_P.
15529 (vrsave_operation, crsave_operation): Use REG_P.
15530 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
15531 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
15532 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
15533 (call_operand): Use HARD_REGISTER_P.
15534 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
15536 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
15537 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
15538 quad_aligned_load_p, replace_swapped_aligned_store,
15539 recombine_lvx_pattern, replace_swapped_aligned_load,
15540 recombine_stvx_pattern): Use MEM_P.
15541 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
15542 Use MEM_P and SYMBOL_REF_P.
15543 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
15544 (insn_is_swappable_p): Use REG_P and MEM_P.
15545 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
15546 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
15548 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
15549 Use CONST_DOUBLE_P.
15550 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
15552 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
15553 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
15554 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
15555 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
15557 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
15558 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
15559 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
15560 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
15561 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
15562 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
15563 rs6000_split_logical_di): Use CONST_INT_P.
15564 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
15565 REG_P and SYMBOL_REF_P.
15566 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
15567 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
15568 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
15569 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
15570 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
15571 (small_data_operand, print_operand_address): Use CONST_INT_P and
15573 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
15574 (rs6000_init_hard_regno_mode_ok, direct_move_p):
15575 Use HARD_REGISTER_NUM_P.
15576 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
15577 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
15578 SUBREG_P and SYMBOL_REF_P.
15579 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
15580 and HARD_REGISTER_NUM_P.
15581 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
15583 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
15584 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
15586 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
15587 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
15588 find_addr_reg): Use REG_P.
15589 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
15590 (rs6000_emit_le_vsx_move): Use SUBREG_P.
15591 (offsettable_ok_by_alignment, constant_pool_expr_p,
15592 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
15593 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
15594 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
15595 rs6000_assemble_integer, create_TOC_reference,
15596 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
15597 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
15598 (rs6000_split_vec_extract_var): Use reg_or_subregno.
15599 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
15600 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
15601 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
15602 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
15603 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
15604 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
15605 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
15606 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
15607 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
15608 and cbranch<mode>4): Use CONST_INT_P.
15609 (multiple define_splits): Use REG_P and SUBREG_P.
15610 (define_expands call, call_value): Use MEM_P.
15611 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
15612 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
15613 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
15614 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
15615 and HARD_REGISTER_NUM_P.
15616 (multiple define_splits): Use HARD_REGISTER_NUM_P.
15618 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
15620 PR rtl-optimization/88948
15621 * rtl.h (prepare_copy_insn): New prototype.
15622 * gcse.c (prepare_copy_insn): New function, split out from
15623 process_insert_insn.
15624 (process_insert_insn): Use prepare_copy_insn.
15625 * store-motion.c (replace_store_insn): Use prepare_copy_insn
15626 instead of gen_move_insn.
15628 2019-01-24 Jakub Jelinek <jakub@redhat.com>
15631 * config/i386/i386.c (ix86_pic_register_p): Return true for
15632 UNSPEC_SET_GOT too.
15634 PR tree-optimization/88964
15635 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
15636 punt if HONOR_SNANS (chrec).
15638 PR middle-end/89015
15639 * tree-nested.c (convert_nonlocal_reference_stmt,
15640 convert_local_reference_stmt, convert_tramp_reference_stmt,
15641 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
15642 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
15643 or GIMPLE_OMP_TASK.
15645 PR tree-optimization/89027
15646 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
15647 for "omp simd array" variables.
15649 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
15652 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
15653 force the alignment of m_val.
15655 2019-01-24 Richard Biener <rguenther@suse.de>
15658 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
15659 When in "legacy" debug mode make sure to reset self-origins.
15661 2019-01-24 Martin Liska <mliska@suse.cz>
15663 PR gcov-profile/88994
15664 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
15665 result will be always smaller or equal to the original.
15666 * gcov.c (mangle_name): Fix else branch where we should
15667 also copy to PTR and shift the pointer.
15669 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
15671 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
15672 * vr-values.c (find_case_label_ranges): Fix a comment typo.
15674 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
15676 * common/config/i386/i386-common.c
15677 (OPTION_MASK_ISA_ENQCMD_SET,
15678 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
15679 (ix86_handle_option): Handle -menqcmd.
15680 * config.gcc (enqcmdintrin.h): New header file.
15681 * config/i386/cpuid.h (bit_ENQCMD): New bit.
15682 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
15684 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
15686 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
15687 __builtin_ia32_enqcmds): New builtins.
15688 * config/i386/i386-c.c (__ENQCMD__): New macro.
15689 * config/i386/i386-option.c (ix86_target_string): Add
15691 (ix86_valid_target_attribute_inner_p): Likewise.
15692 * config/i386/i386-expand.c
15693 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
15694 IX86_BUILTIN_ENQCMDS.
15695 * config/i386/i386.h (TARGET_ENQCMD): New.
15696 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
15697 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
15698 (movdir64b_<mode>): Parameterize to enable share expansion code
15699 with ENQCMD in function ix86_expand_builtin.
15700 * config/i386/i386.opt: Add -menqcmd.
15701 * config/i386/immintrin.h: Include enqcmdintrin.h.
15702 * config/i386/enqcmdintrin.h: New intrinsic file.
15703 * doc/invoke.texi: Add -menqcmd.
15705 2019-01-23 Bin Cheng <bin.cheng@arm.com>
15706 Steve Ellcey <sellcey@marvell.com>
15709 * recog.c (address_operand): Return false on wrong mode for address.
15710 (constrain_operands): Check for mode with 'p' constraint.
15712 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
15715 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
15716 Disparage MMX alternative.
15717 (sse2_cvtpd2pi): Ditto.
15718 (sse2_cvttpd2pi): Ditto.
15720 2019-01-23 David Malcolm <dmalcolm@redhat.com>
15723 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
15724 use-after-free of the result of
15725 aarch64_get_extension_string_for_isa_flags.
15727 2019-01-23 Jakub Jelinek <jakub@redhat.com>
15730 * doc/extend.texi: Document break and continue behavior in
15731 statement expressions.
15733 2019-01-23 Richard Biener <rguenther@suse.de>
15735 PR tree-optimization/89008
15736 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
15737 not leave another stray operand.
15739 2019-01-23 Jakub Jelinek <jakub@redhat.com>
15741 * BASE-VER: Bump to 9.0.1.
15743 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
15745 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
15746 thunk that returns by reference, use the type of the return object
15747 of the thunk instead of that of the alias to build the dereference.
15749 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
15751 * config/arc/atomic.md: Add operand to DMB instruction.
15753 2019-01-23 Jakub Jelinek <jakub@redhat.com>
15755 PR tree-optimization/88964
15756 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
15757 build_zero_cst instead of build_int_cst. Return false for loop
15758 invariants which honor signed zeros.
15760 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
15762 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
15764 2019-01-22 Jakub Jelinek <jakub@redhat.com>
15767 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
15768 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
15769 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
15771 PR middle-end/88968
15772 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
15773 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
15776 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
15777 Disable for little endian.
15779 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
15782 * config/arm/arm.c (arm_needs_double_word_align): Check
15783 DECL_BIT_FIELD_TYPE.
15785 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
15786 H.J. Lu <hongjiu.lu@intel.com>
15789 * config/i386/i386-builtin.def: Add mask2 to all builtin
15790 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
15792 * config/i386/i386.c (BDESC): Add mask2 to the definition.
15793 (BDESC_FIRST): Likewise.
15794 (define_builtin): Add an argument for mask2. Updated to handle
15795 both ix86_isa_flags and ix86_isa_flags2.
15796 (define_builtin_const): Likewise.
15797 (define_builtin_pure): Likewise.
15798 (define_builtin2): Deleted.
15799 (define_builtin_const2): Likewise.
15800 (builtin_description): Add a member, mask2.
15801 (bdesc_*): Add mask2 to builtin initializations.
15802 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
15803 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
15805 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
15807 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
15810 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
15813 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
15816 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
15817 alignment is dominated by a bitfield with 64-bit aligned base type.
15818 (arm_function_arg): Emit a warning if the alignment has changed since
15819 earlier GCC releases.
15820 (arm_function_arg_boundary): Likewise.
15821 (arm_setup_incoming_varargs): Likewise.
15823 2019-01-22 Richard Biener <rguenther@suse.de>
15825 PR tree-optimization/88862
15826 * graphite-scop-detection.c
15827 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
15829 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
15831 * doc/extend.tex (AMD GCN Function Attributes): New section.
15832 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
15833 * doc/invoke.texi (AMD GCN Options): New section.
15834 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
15836 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
15838 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
15839 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
15841 2019-01-22 Jakub Jelinek <jakub@redhat.com>
15843 PR tree-optimization/88044
15844 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
15845 is false in the first iteration, but !every_iteration, return false
15846 instead of true with niter->niter zero.
15848 PR rtl-optimization/88904
15849 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
15850 any nonequal registers before processing BB_END (b).
15853 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
15855 (expand_binop_directly, expand_doubleword_clz,
15856 expand_doubleword_popcount, expand_ctz, expand_ffs,
15857 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
15859 PR rtl-optimization/49429
15861 PR rtl-optimization/86334
15863 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
15864 addressable from here...
15865 (emit_block_op_via_libcall): ... to here.
15867 2019-01-22 Richard Biener <rguenther@suse.de>
15869 * tree-vect-loop.c (vect_analyze_loop_operations): Use
15870 auto_vec for cost vector to fix memleak.
15871 (vectorize_fold_left_reduction): Properly gather SLP defs.
15872 (vectorizable_comparison): Do not swap operands to properly
15875 2019-01-22 Alan Modra <amodra@gmail.com>
15878 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
15879 stays a reg. Allow a const_int.
15880 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
15881 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
15882 (IS_NOMARK_TLSGETADDR): Define.
15883 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
15884 (rs6000_output_tlsargs): New function.
15885 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
15886 __tls_get_addr call takes an arg.
15887 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
15888 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
15890 (call_value_nonlocal_sysv): ..or here, delete split.
15891 (tls_gdld_nomark): Delete.
15892 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
15893 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
15894 (call_value_nonlocal_sysv): Likewise.
15895 (call_value_nonlocal_sysv_secure): Likewise.
15896 (call_value_nonlocal_aix): Likewise.
15897 (call_value_indirect_aix): Likewise.
15898 (call_value_indirect_elfv2): Likewise.
15899 (call_value_local32, call_value_local64): Disable for no-mark tls.
15900 (call_value_local_aix): Likewise.
15902 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
15905 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
15906 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
15908 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
15910 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
15911 string contents as hash_map keys.
15913 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
15916 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
15917 for rvalue context. Handle rvalues correctly. Use min_align_of_type
15918 instead of TYPE_ALIGN.
15919 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
15920 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
15921 pointer from TYPE_STUB_DECL.
15923 2019-01-21 Richard Biener <rguenther@suse.de>
15925 PR tree-optimization/88934
15926 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
15927 at the possibly non-constant operand.
15928 (vect_get_constant_vectors): Adjust.
15930 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
15933 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
15934 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
15935 instead of _X86INTRIN_H_INCLUDED.
15936 * onfig/i386/clwbintrin.h: Likewise.
15937 * config/i386/pkuintrin.h: Likewise.
15938 * config/i386/prfchwintrin.h: Likewise.
15939 * config/i386/rdseedintrin.h: Likewise.
15940 * config/i386/wbnoinvdintrin.h: Likewise.
15941 * config/i386/xsavecintrin.h: Likewise.
15942 * config/i386/xsavesintrin.h: Likewise.
15943 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
15944 * config/i386/xsaveintrin.h: Likewise.
15945 * config/i386/xsaveoptintrin.h: Likewise.
15946 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
15947 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
15948 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
15949 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
15950 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
15951 * config/i386/immintrin.h: Here.
15953 2019-01-20 Martin Jambor <mjambor@suse.cz>
15956 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
15957 with aa_walk_budget.
15958 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
15959 aa_walk_budget_p parameter.
15960 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
15961 walk. Updated all callers.
15962 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
15963 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
15965 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
15966 parameter info. Extract info from fbi. Pass fbi to recursive calls
15967 and to unmodified_parm.
15968 (phi_result_unknown_predicate): New parameter fbi, removed parameter
15969 info, updated call to will_be_nonconstant_expr_predicate.
15970 (param_change_prob): New parameter fbi, limit AA walking.
15971 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
15972 calls to various above functions.
15973 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
15974 parameter. Use it to limit AA walking.
15975 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
15976 fbi, limit AA walk.
15977 (detect_type_change): New parameter fbi, pass it on to
15978 detect_type_change_from_memory_writes.
15979 (detect_type_change_ssa): Likewise.
15980 (aa_overwalked): Removed.
15981 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
15982 accordingly, adjust to the neew AA limiting scheme.
15983 (parm_ref_data_preserved_p): Likewise.
15984 (ipa_compute_jump_functions_for_edge): Adjust call to
15986 (ipa_analyze_call_uses): Likewise.
15987 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
15988 (ipa_analyze_node): Initialize aa_walk_budget.
15989 (ipcp_transform_function): Likewise.
15990 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
15991 to get_dynamic_type.
15993 2019-01-19 Jakub Jelinek <jakub@redhat.com>
15995 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
15996 outside of #if CHECKING_P code.
15998 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
16000 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
16001 New function, split out from...
16002 (loop_versioning::analyze_stride): ...here.
16003 (loop_versioning::find_per_loop_multiplication): Use gassign.
16004 (loop_versioning::analyze_term_using_scevs): Return a success code.
16005 (loop_versioning::analyze_arbitrary_term): New function.
16006 (loop_versioning::analyze_address_fragment): Use
16007 analyze_arbitrary_term if all else fails.
16009 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
16012 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
16015 2019-01-18 Richard Biener <rguenther@suse.de>
16017 PR tree-optimization/88903
16018 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
16019 scalar stmts a SLP shift amount is composed of when detecting
16022 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
16025 * config/arm/arm-cpus.in (mp): New feature.
16026 (sec): New feature.
16027 (fgroup ARMv7ve): Add mp and sec features.
16028 (arch armv7-a): Add options to allow mp and sec extensions.
16029 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
16030 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
16031 extenstions to the base architecture.
16032 (cpu cortex-a8): Add sec extension to the base architecture.
16033 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
16034 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
16035 variants down to the base v7-a varaint.
16036 * config/arm/t-multilib (v7_a_arch_variants): New variable.
16037 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
16038 of permitted extensions for -march=armv7-a and for
16039 -mcpu=generic-armv7-a.
16041 2019-01-18 Martin Liska <mliska@suse.cz>
16043 * params.def: Fix comment.
16044 * tree-profile.c (gimple_init_gcov_profiler): Bump function
16046 (gimple_gen_ic_func_profiler): Likewise.
16048 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16050 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
16051 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
16052 and put in error checks for stack protector guard options.
16053 (aarch64_stack_protect_guard): New.
16054 (TARGET_STACK_PROTECT_GUARD): Define.
16055 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
16056 (reg_stack_protect_address<mode>): New.
16057 (stack_protect_set): Adjust for SSP_GLOBAL.
16058 (stack_protect_test): Likewise.
16059 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
16060 (-mstack-protector-guard): Likewise.
16061 (-mstack-protector-guard-offset): Likewise.
16063 2019-01-18 Jakub Jelinek <jakub@redhat.com>
16065 PR tree-optimization/86214
16066 * tree-inline.h (struct copy_body_data): Add
16067 add_clobbers_to_eh_landing_pads member.
16068 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
16069 (copy_edges_for_bb): Call it if EH edge destination is <
16070 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
16071 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
16072 if flag_stack_reuse != SR_NONE and clear it afterwards.
16074 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
16077 * doc/install.texi (with-multilib-list): Document for aarch64.
16079 2019-01-18 Jakub Jelinek <jakub@redhat.com>
16082 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
16083 (("..."))) with ("...").
16085 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
16087 * doc/extend.texi (Built-in Functions for Memory Model Aware
16088 Atomic Operations): Document atomic fetch and nand.
16090 2019-01-18 Martin Liska <mliska@suse.cz>
16091 Richard Biener <rguenther@suse.de>
16093 PR middle-end/88587
16094 * cgraph.h (create_version_clone_with_body): Add new argument
16096 * cgraphclones.c (cgraph_node::create_version_clone): Add
16097 DECL_ATTRIBUTES to a newly created decl. And call
16098 valid_attribute_p so that proper cl_target_optimization_node
16099 is set for the newly created declaration.
16100 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
16102 (expand_target_clones): Do not call valid_attribute_p, it must
16104 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
16107 2019-01-17 Jakub Jelinek <jakub@redhat.com>
16110 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
16111 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
16112 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
16114 2019-01-17 Martin Sebor <msebor@redhat.com>
16116 PR middle-end/88273
16117 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
16118 Handle anti-ranges the same as no range at all.
16120 2018-01-17 Steve Ellcey <sellcey@cavium.com>
16122 * config/aarch64/aarch64.c (cgraph.h): New include.
16123 (intl.h): New include.
16124 (supported_simd_type): New function.
16125 (currently_supported_simd_type): Ditto.
16126 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
16127 (aarch64_simd_clone_adjust): Ditto.
16128 (aarch64_simd_clone_usable): Ditto.
16129 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
16130 (TARGET_SIMD_CLONE_ADJUST): Ditto.
16131 (TARGET_SIMD_CLONE_USABLE): Ditto.
16132 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
16133 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
16136 2019-01-17 Martin Sebor <msebor@redhat.com>
16138 PR tree-optimization/88800
16139 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
16140 NO_WARNING bit here. Avoid folding out-of-bounds calls.
16141 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
16142 redundant argument. Add new argument and issue diagnostics under
16143 its control. Detect out-of-bounds access even with warnings
16145 (check_bounds_or_overlap): Change return type. Add argument.
16146 (wrestrict_dom_walker::check_call): Adjust.
16147 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
16148 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
16149 check_bounds_or_overlap's return value.
16150 (handle_builtin_stxncpy): Same.
16151 (handle_builtin_strcat): Same.
16153 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
16154 Kwok Cheung Yeung <kcy@codesourcery.com>
16155 Julian Brown <julian@codesourcery.com>
16156 Tom de Vries <tom@codesourcery.com>
16158 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
16160 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
16162 * doc/sourcebuild.texi: Document dg-require-effective-target
16163 llvm_binutils and offload_gcn.
16165 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
16166 Kwok Cheung Yeung <kcy@codesourcery.com>
16167 Julian Brown <julian@codesourcery.com>
16168 Tom de Vries <tom@codesourcery.com>
16170 * doc/sourcebuild.texi: Document dg-required-effective-target
16173 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
16174 Kwok Cheung Yeung <kcy@codesourcery.com>
16175 Julian Brown <julian@codesourcery.com>
16176 Tom de Vries <tom@codesourcery.com>
16177 Jan Hubicka <hubicka@ucw.cz>
16178 Martin Jambor <mjambor@suse.cz>
16180 * config.gcc: Add amdgcn*-*-amdhsa configuration.
16181 * configure.ac: Check for dlopen.
16182 * configure: Regenerate.
16184 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
16185 Kwok Cheung Yeung <kcy@codesourcery.com>
16186 Julian Brown <julian@codesourcery.com>
16187 Tom de Vries <tom@codesourcery.com>
16188 Jan Hubicka <hubicka@ucw.cz>
16189 Martin Jambor <mjambor@suse.cz>
16191 * common/config/gcn/gcn-common.c: New file.
16192 * config/gcn/driver-gcn.c: New file.
16193 * config/gcn/gcn-builtins.def: New file.
16194 * config/gcn/gcn-hsa.h: New file.
16195 * config/gcn/gcn-modes.def: New file.
16196 * config/gcn/gcn-opts.h: New file.
16197 * config/gcn/gcn-passes.def: New file.
16198 * config/gcn/gcn-protos.h: New file.
16199 * config/gcn/gcn-run.c: New file.
16200 * config/gcn/gcn-tree.c: New file.
16201 * config/gcn/gcn.c: New file.
16202 * config/gcn/gcn.h: New file.
16203 * config/gcn/gcn.opt: New file.
16204 * config/gcn/t-gcn-hsa: New file.
16206 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
16207 Kwok Cheung Yeung <kcy@codesourcery.com>
16208 Julian Brown <julian@codesourcery.com>
16209 Tom de Vries <tom@codesourcery.com>
16210 Jan Hubicka <hubicka@ucw.cz>
16211 Martin Jambor <mjambor@suse.cz>
16213 * config/gcn/constraints.md: New file.
16214 * config/gcn/gcn-valu.md: New file.
16215 * config/gcn/gcn.md: New file.
16216 * config/gcn/predicates.md: New file.
16218 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
16220 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
16221 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
16222 (stmt_uses_0_or_null_in_undefined_way): Likewise.
16223 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
16225 2019-01-17 Tamar Christina <tamar.christina@arm.com>
16228 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
16229 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
16230 it and document registers.
16232 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16234 * config/aarch64/aarch64.c (ares_tunings): Define.
16235 * config/aarch64/aarch64-cores.def (ares): Use the above.
16237 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
16241 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
16243 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
16244 (_mm512_fixupimm_round_pd): Update parameters and builtin.
16245 (_mm512_maskz_fixupimm_round_pd): Ditto.
16246 (_mm512_fixupimm_round_ps): Ditto.
16247 (_mm512_maskz_fixupimm_round_ps): Ditto.
16248 (_mm_fixupimm_round_sd): Ditto.
16249 (_mm_maskz_fixupimm_round_sd): Ditto.
16250 (_mm_fixupimm_round_ss): Ditto.
16251 (_mm_maskz_fixupimm_round_ss): Ditto.
16252 (_mm512_fixupimm_pd): Ditto.
16253 (_mm512_maskz_fixupimm_pd): Ditto.
16254 (_mm512_fixupimm_ps): Ditto.
16255 (_mm512_maskz_fixupimm_ps): Ditto.
16256 (_mm_fixupimm_sd): Ditto.
16257 (_mm_maskz_fixupimm_sd): Ditto.
16258 (_mm_fixupimm_ss): Ditto.
16259 (_mm_maskz_fixupimm_ss): Ditto.
16260 (_mm512_mask_fixupimm_round_pd): Update builtin.
16261 (_mm512_mask_fixupimm_round_ps): Ditto.
16262 (_mm_mask_fixupimm_round_sd): Ditto.
16263 (_mm_mask_fixupimm_round_ss): Ditto.
16264 (_mm512_mask_fixupimm_pd): Ditto.
16265 (_mm512_mask_fixupimm_ps): Ditto.
16266 (_mm_mask_fixupimm_sd): Ditto.
16267 (_mm_mask_fixupimm_ss): Ditto.
16268 * config/i386/avx512vlintrin.h:
16269 (_mm256_fixupimm_pd): Update parameters and builtin.
16270 (_mm256_maskz_fixupimm_pd): Ditto.
16271 (_mm256_fixupimm_ps): Ditto.
16272 (_mm256_maskz_fixupimm_ps): Ditto.
16273 (_mm_fixupimm_pd): Ditto.
16274 (_mm_maskz_fixupimm_pd): Ditto.
16275 (_mm_fixupimm_ps): Ditto.
16276 (_mm_maskz_fixupimm_ps): Ditto.
16277 (_mm256_mask_fixupimm_pd): Update builtin.
16278 (_mm256_mask_fixupimm_ps): Ditto.
16279 (_mm_mask_fixupimm_pd): Ditto.
16280 (_mm_mask_fixupimm_ps): Ditto.
16281 * config/i386/i386-builtin-types.def: Add new types and remove
16283 * config/i386/i386-builtin.def: Update builtin definitions.
16284 * config/i386/i386.c: Handle new builtin types and remove useless ones.
16285 * config/i386/sse.md: Update VFIXUPIMM* patterns.
16286 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
16287 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
16288 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
16289 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
16290 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
16291 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
16292 * config/i386/subst.md:
16293 (round_saeonly_sd_mask_operand4): Add new subst_attr.
16294 (round_saeonly_sd_mask_op4): Ditto.
16295 (round_saeonly_expand_operand5): Ditto.
16296 (round_saeonly_expand): Update.
16298 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
16302 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
16304 * config/i386/sse.md: Combine VFIXUPIMM* patterns
16305 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
16306 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
16307 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
16308 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
16309 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
16310 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
16312 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
16316 2018-12-15 Jakub Jelinek <jakub@redhat.com>
16319 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
16320 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
16321 instead of UNSPEC_FIXUPIMM.
16323 2019-01-17 Richard Biener <rguenther@suse.de>
16326 * dwarf2out.c (want_pubnames): Never generate pubnames sections
16327 and friends for the LTO part of debug info.
16329 2019-01-17 Jakub Jelinek <jakub@redhat.com>
16331 PR tree-optimization/86214
16332 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
16335 PR rtl-optimization/88870
16336 * dce.c (deletable_insn_p): Never delete const/pure calls that can
16337 throw if we can't alter the cfg or delete dead exceptions.
16338 (mark_insn): Don't call find_call_stack_args for such calls.
16340 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
16342 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
16343 prototypes for vec_st.
16344 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
16345 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
16346 mainly on signed/unsigned long long and double.
16348 2019-01-16 David Malcolm <dmalcolm@redhat.com>
16351 * combine.c (delete_noop_moves): Convert to "bool" return,
16352 returning true if any edges are eliminated.
16353 (combine_instructions): Also return true if delete_noop_moves
16356 2019-01-16 Tamar Christina <tamar.christina@arm.com>
16358 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
16359 correct max nunits for endian swap.
16360 (aarch64_expand_fcmla_builtin): Correct subreg code.
16361 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
16362 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
16365 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
16367 * config/alpha/alpha.c (alpha_gimplify_va_arg):
16368 Handle split indirect COMPLEX_TYPE arguments.
16370 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
16373 * config/aarch64/aarch64-modes.def: Add comment about how the carry
16374 bit is set by add and compare.
16375 (CC_ADC): New CC_MODE.
16376 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
16377 to cache the code and mode of X. Adjust the shape of a CC_Cmode
16378 comparison. Add detection for CC_ADCmode.
16379 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
16381 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
16382 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
16383 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
16384 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
16385 to eliminate the need for zero-extending the operands.
16386 (add<mode>3_compareC_imm): Delete. Merge into ...
16387 (add<mode>3_compareC): ... this. Restructure the comparison to
16388 eliminate the need for zero-extending the operands.
16389 (add<mode>3_carryin): Use LTU for the overflow detection.
16390 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
16391 Reexpress comparison for overflow.
16392 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
16393 (add<mode>3_carryinC): Likewise.
16394 (add<mode>3_carryinV): Use LTU for carry between partials.
16395 * config/aarch64/predicates.md (aarch64_carry_operation): Update
16396 handling of CC_Cmode and add CC_ADCmode.
16397 (aarch64_borrow_operation): Likewise.
16399 2019-01-16 Tamar Christina <tamar.christina@arm.com>
16401 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
16402 Remove patternmode.
16403 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
16404 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
16405 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
16406 Remove endianness conversion.
16408 2019-01-16 Martin Liska <mliska@suse.cz>
16410 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
16412 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
16414 * gcc.c (add_sysrooted_hdrs_prefix): New function.
16415 (path_prefix_reset): Move up in the source file.
16416 (find_fortran_preinclude_file): Make complex search for the
16417 fortran header files.
16419 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
16421 * godump.c (go_output_typedef): When outputting a typedef, refer
16422 to the underlying type by its name and not its structure.
16424 2019-01-15 David Malcolm <dmalcolm@redhat.com>
16427 * tree.c (build_function_type): Assert that arg_types is not
16430 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
16432 PR inline-asm/52813
16433 * doc/extend.texi: Document that listing the stack pointer in the
16434 clobber list of an asm is a deprecated feature.
16435 * common.opt (Wdeprecated): Moved from c-family/c.opt.
16436 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
16437 warning instead of an error for clobbers of the stack pointer.
16438 Add a note explaining why.
16440 2019-01-15 Richard Biener <rguenther@suse.de>
16443 * dwarf2out.c (gen_member_die): Do not generate inheritance
16446 2019-01-15 Richard Biener <rguenther@suse.de>
16448 PR tree-optimization/88855
16449 * tree-if-conv.c (combine_blocks): Collect
16450 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
16452 2019-01-15 Tom de Vries <tdevries@suse.de>
16455 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
16456 lhs == NULL_TREE for gang-level reduction.
16458 2019-01-15 Richard Biener <rguenther@suse.de>
16459 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16462 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
16463 return true if SSA_NAME is already marked in visited bitmap.
16464 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
16466 2019-01-15 Jakub Jelinek <jakub@redhat.com>
16468 PR tree-optimization/88775
16469 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
16470 equal == 0 equality pointer comparisons some more if compared in
16471 integral types and either one points to an automatic var and the
16472 other to a global, or we can prove at least one points to the middle
16473 or both point to start or both point to end.
16475 2019-01-14 Andi Kleen <ak@linux.intel.com>
16477 * Makefile.in: Lower autofdo sampling rate by 10x.
16478 * Makefile.tpl: Dito.
16480 2019-01-14 Tom Honermann <tom@honermann.net>
16482 * defaults.h: Define CHAR8_TYPE.
16484 2019-01-14 Martin Sebor <msebor@redhat.com>
16487 * doc/extend.texi (Darwin Format Checks): Clarify.
16489 2019-01-14 Richard Biener <rguenther@suse.de>
16491 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
16492 whether we are in (simplify ...) or (match ...) context.
16494 2019-01-14 Jakub Jelinek <jakub@redhat.com>
16496 PR rtl-optimization/88796
16497 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
16498 * cfgexpand.c (stack_protect_prologue): Initialize
16499 crtl->stack_protect_guard_decl.
16500 * function.c (stack_protect_epilogue): Use it instead of calling
16501 targetm.stack_protect_guard again.
16502 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
16503 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
16504 crtl->stack_protect_guard_decl.
16505 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
16506 on the returned MEM_EXPR.
16508 2019-01-12 Tom de Vries <tdevries@suse.de>
16510 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
16511 vector length using -fopenacc-dim.
16513 2019-01-12 Tom de Vries <tdevries@suse.de>
16515 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
16516 lengths into account.
16518 2019-01-12 Svante Signell <svante.signell@gmail.com>
16520 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
16521 (TARGET_CAN_SPLIT_STACK): Define.
16522 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
16524 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
16526 * params.def (inline-unit-growth): Set to 40.
16528 2019-01-12 Jakub Jelinek <jakub@redhat.com>
16530 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
16532 2019-01-12 Tom de Vries <tdevries@suse.de>
16534 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
16535 region calling vector-partitionable routine, set default_vector_length
16538 2019-01-12 Tom de Vries <tdevries@suse.de>
16540 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
16541 variable default_vector_length.
16543 2019-01-12 Tom de Vries <tdevries@suse.de>
16545 PR middle-end/88703
16546 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
16547 from oacc_default_dims, as oacc_validate_dims would do it, and apply
16550 2019-01-12 Tom de Vries <tdevries@suse.de>
16552 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
16553 (nvptx_goacc_validate_dims): Add used parameter.
16554 * doc/tm.texi: Regenerate.
16555 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
16556 argument to call to targetm.goacc.validate_dims.
16557 (default_goacc_validate_dims): Add used
16559 * target.def (validate_dims): Add used parameter in DEFHOOK.
16560 * targhooks.h (default_goacc_validate_dims): Add used parameter.
16562 2019-01-11 Jakub Jelinek <jakub@redhat.com>
16564 PR middle-end/85956
16566 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
16568 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
16569 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
16570 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
16571 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
16573 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
16575 PR rtl-optimization/87305
16577 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
16578 for little endian pseudos used as paradoxical subreg.
16580 2019-01-11 Jakub Jelinek <jakub@redhat.com>
16582 PR tree-optimization/88693
16583 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
16584 for STRING_CSTs that don't contain any NUL characters in the first
16585 TREE_STRING_LENGTH bytes.
16587 2019-01-11 Alan Modra <amodra@gmail.com>
16591 * genattrtab.c (min_fn): Don't translate values.
16592 (min_attr_value): Return INT_MAX when the value can't be calculated.
16593 Return minimum among any values that can be calculated.
16594 (max_attr_value): Adjust.
16596 2019-01-11 Jakub Jelinek <jakub@redhat.com>
16598 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
16600 2019-01-11 Steve Ellcey <sellcey@marvell.com>
16602 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
16603 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
16604 (aarch64_return_call_with_max_clobbers): New function.
16605 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
16606 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
16608 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
16609 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
16610 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
16611 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
16612 * cselib.c (cselib_process_insn): Add argument to
16613 targetm.hard_regno_call_part_clobbered call.
16614 * ira-conflicts.c (ira_build_conflicts): Ditto.
16615 * ira-costs.c (ira_tune_allocno_costs): Ditto.
16616 * lra-constraints.c (inherit_reload_reg): Ditto.
16617 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
16618 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
16619 argument. Call targetm.return_call_with_max_clobbers.
16620 Add argument to targetm.hard_regno_call_part_clobbered call.
16621 (calls_have_same_clobbers_p): New function.
16622 (process_bb_lives): Add call_insn and last_call_insn variables.
16623 Pass call_insn to check_pseudos_live_through_calls.
16624 Modify if stmt to check targetm.return_call_with_max_clobbers.
16625 Update setting of flush variable.
16626 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
16628 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
16629 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
16630 targetm.hard_regno_call_part_clobbered call.
16631 * reginfo.c (choose_hard_reg_mode): Ditto.
16632 * regrename.c (check_new_reg_p): Ditto.
16633 * reload.c (find_equiv_reg): Ditto.
16634 * reload1.c (emit_reload_insns): Ditto.
16635 * sched-deps.c (deps_analyze_insn): Ditto.
16636 * sel-sched.c (init_regs_for_mode): Ditto.
16637 (mark_unavailable_hard_regs): Ditto.
16638 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
16639 * target.def (hard_regno_call_part_clobbered): Add insn argument.
16640 (return_call_with_max_clobbers): New target function.
16641 * doc/tm.texi: Regenerate.
16642 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
16643 * hooks.c (hook_bool_uint_mode_false): Change to
16644 hook_bool_insn_uint_mode_false.
16645 * hooks.h (hook_bool_uint_mode_false): Ditto.
16647 2019-01-11 Steve Ellcey <sellcey@marvell.com>
16649 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
16650 (aarch64_remove_extra_call_preserved_regs): New function.
16651 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
16652 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
16653 * doc/tm.texi: Regenerate.
16654 * final.c (get_call_reg_set_usage): Call new hook.
16655 * target.def (remove_extra_call_preserved_regs): New hook.
16656 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
16657 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
16659 2019-01-11 Jakub Jelinek <jakub@redhat.com>
16662 * passes.c (finish_optimization_passes): Call print_combine_total_stats
16663 inside of pass_combine_1 dump rather than pass_profile_1.
16665 2019-01-11 Tom de Vries <tdevries@suse.de>
16667 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
16668 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
16669 (PTX_NUM_PER_WORKER_BARRIERS): Define.
16670 (nvptx_apply_dim_limits): Prevent vector_length 64 and
16673 2019-01-11 Tom de Vries <tdevries@suse.de>
16675 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
16677 2019-01-11 Jan Beulich <jbeulich@suse.com>
16679 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
16680 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
16681 sse2_cvtsi2sd): Add {l}.
16682 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
16685 2019-01-10 Jakub Jelinek <jakub@redhat.com>
16688 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
16690 (*float<floatunssuffix>v2div2sf2): New define_insn.
16691 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
16692 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
16693 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
16694 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
16695 match_operands with "const0_operand" "C".
16697 2019-01-10 Tamar Christina <tamar.christina@arm.com>
16699 * config/aarch64/aarch64-builtins.c
16700 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
16701 (aarch64_init_simd_builtins): ...Here
16703 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
16705 PR rtl-optimization/87305
16707 (setup_live_pseudos_and_spill_after_risky_transforms): Check
16708 allocation for big endian pseudos used as paradoxical subregs and
16709 spill them if it is wrong.
16710 * lra-constraints.c (lra_constraints): Add a comment.
16712 2019-01-10 Richard Biener <rguenther@suse.de>
16714 PR tree-optimization/88792
16715 * tree-ssa-pre.c (get_representative_for): Do not return a
16718 2019-01-10 Jakub Jelinek <jakub@redhat.com>
16720 PR middle-end/84877
16722 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
16723 (assign_parm_setup_block): Do the argument slot realignment here
16726 2019-01-10 Stefan Agner <stefan@agner.ch>
16729 * config/arm/arm.c (arm_option_override_internal): Force
16730 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
16732 2019-01-10 Jakub Jelinek <jakub@redhat.com>
16735 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
16738 2019-01-10 Tamar Christina <tamar.christina@arm.com>
16740 * config/arm/arm-builtins.c
16741 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
16742 (MAC_LANE_PAIR_QUALIFIERS): New.
16743 (arm_expand_builtin_args): Use it.
16744 (arm_expand_builtin_1): Likewise.
16745 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
16746 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
16747 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
16748 * config/arm/arm_neon.h:
16749 (vcadd_rot90_f16): New.
16750 (vcaddq_rot90_f16): New.
16751 (vcadd_rot270_f16): New.
16752 (vcaddq_rot270_f16): New.
16755 (vcmla_lane_f16): New.
16756 (vcmla_laneq_f16): New.
16757 (vcmlaq_lane_f16): New.
16758 (vcmlaq_laneq_f16): New.
16759 (vcmla_rot90_f16): New.
16760 (vcmlaq_rot90_f16): New.
16761 (vcmla_rot90_lane_f16): New.
16762 (vcmla_rot90_laneq_f16): New.
16763 (vcmlaq_rot90_lane_f16): New.
16764 (vcmlaq_rot90_laneq_f16): New.
16765 (vcmla_rot180_f16): New.
16766 (vcmlaq_rot180_f16): New.
16767 (vcmla_rot180_lane_f16): New.
16768 (vcmla_rot180_laneq_f16): New.
16769 (vcmlaq_rot180_lane_f16): New.
16770 (vcmlaq_rot180_laneq_f16): New.
16771 (vcmla_rot270_f16): New.
16772 (vcmlaq_rot270_f16): New.
16773 (vcmla_rot270_lane_f16): New.
16774 (vcmla_rot270_laneq_f16): New.
16775 (vcmlaq_rot270_lane_f16): New.
16776 (vcmlaq_rot270_laneq_f16): New.
16777 (vcadd_rot90_f32): New.
16778 (vcaddq_rot90_f32): New.
16779 (vcadd_rot270_f32): New.
16780 (vcaddq_rot270_f32): New.
16783 (vcmla_lane_f32): New.
16784 (vcmla_laneq_f32): New.
16785 (vcmlaq_lane_f32): New.
16786 (vcmlaq_laneq_f32): New.
16787 (vcmla_rot90_f32): New.
16788 (vcmlaq_rot90_f32): New.
16789 (vcmla_rot90_lane_f32): New.
16790 (vcmla_rot90_laneq_f32): New.
16791 (vcmlaq_rot90_lane_f32): New.
16792 (vcmlaq_rot90_laneq_f32): New.
16793 (vcmla_rot180_f32): New.
16794 (vcmlaq_rot180_f32): New.
16795 (vcmla_rot180_lane_f32): New.
16796 (vcmla_rot180_laneq_f32): New.
16797 (vcmlaq_rot180_lane_f32): New.
16798 (vcmlaq_rot180_laneq_f32): New.
16799 (vcmla_rot270_f32): New.
16800 (vcmlaq_rot270_f32): New.
16801 (vcmla_rot270_lane_f32): New.
16802 (vcmla_rot270_laneq_f32): New.
16803 (vcmlaq_rot270_lane_f32): New.
16804 (vcmlaq_rot270_laneq_f32): New.
16805 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
16806 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
16807 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
16808 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
16809 vcmlaq_lane270): New.
16810 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
16811 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
16812 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
16813 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
16814 (arm_option_reconfigure_globals): Use them.
16815 * config/arm/iterators.md (VDF, VQ_HSF): New.
16816 (VCADD, VCMLA): New.
16817 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
16818 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
16820 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
16821 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
16823 2019-01-10 Tamar Christina <tamar.christina@arm.com>
16825 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
16826 Add qualifier_lane_pair_index.
16827 (emit-rtl.h): Include.
16828 (TYPES_QUADOP_LANE_PAIR): New.
16829 (aarch64_simd_expand_args): Use it.
16830 (aarch64_simd_expand_builtin): Likewise.
16831 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
16833 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
16834 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
16835 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
16836 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
16837 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
16838 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
16839 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
16840 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
16841 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
16842 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
16843 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
16844 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
16845 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
16846 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
16847 Add __ARM_FEATURE_COMPLEX.
16848 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
16849 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
16850 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
16851 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
16852 fcmlaq_lane270): New.
16853 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
16854 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
16855 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
16856 * config/aarch64/arm_neon.h:
16857 (vcadd_rot90_f16): New.
16858 (vcaddq_rot90_f16): New.
16859 (vcadd_rot270_f16): New.
16860 (vcaddq_rot270_f16): New.
16863 (vcmla_lane_f16): New.
16864 (vcmla_laneq_f16): New.
16865 (vcmlaq_lane_f16): New.
16866 (vcmlaq_rot90_lane_f16): New.
16867 (vcmla_rot90_laneq_f16): New.
16868 (vcmla_rot90_lane_f16): New.
16869 (vcmlaq_rot90_f16): New.
16870 (vcmla_rot90_f16): New.
16871 (vcmlaq_laneq_f16): New.
16872 (vcmla_rot180_laneq_f16): New.
16873 (vcmla_rot180_lane_f16): New.
16874 (vcmlaq_rot180_f16): New.
16875 (vcmla_rot180_f16): New.
16876 (vcmlaq_rot90_laneq_f16): New.
16877 (vcmlaq_rot270_laneq_f16): New.
16878 (vcmlaq_rot270_lane_f16): New.
16879 (vcmla_rot270_laneq_f16): New.
16880 (vcmlaq_rot270_f16): New.
16881 (vcmla_rot270_f16): New.
16882 (vcmlaq_rot180_laneq_f16): New.
16883 (vcmlaq_rot180_lane_f16): New.
16884 (vcmla_rot270_lane_f16): New.
16885 (vcadd_rot90_f32): New.
16886 (vcaddq_rot90_f32): New.
16887 (vcaddq_rot90_f64): New.
16888 (vcadd_rot270_f32): New.
16889 (vcaddq_rot270_f32): New.
16890 (vcaddq_rot270_f64): New.
16894 (vcmla_lane_f32): New.
16895 (vcmla_laneq_f32): New.
16896 (vcmlaq_lane_f32): New.
16897 (vcmlaq_laneq_f32): New.
16898 (vcmla_rot90_f32): New.
16899 (vcmlaq_rot90_f32): New.
16900 (vcmlaq_rot90_f64): New.
16901 (vcmla_rot90_lane_f32): New.
16902 (vcmla_rot90_laneq_f32): New.
16903 (vcmlaq_rot90_lane_f32): New.
16904 (vcmlaq_rot90_laneq_f32): New.
16905 (vcmla_rot180_f32): New.
16906 (vcmlaq_rot180_f32): New.
16907 (vcmlaq_rot180_f64): New.
16908 (vcmla_rot180_lane_f32): New.
16909 (vcmla_rot180_laneq_f32): New.
16910 (vcmlaq_rot180_lane_f32): New.
16911 (vcmlaq_rot180_laneq_f32): New.
16912 (vcmla_rot270_f32): New.
16913 (vcmlaq_rot270_f32): New.
16914 (vcmlaq_rot270_f64): New.
16915 (vcmla_rot270_lane_f32): New.
16916 (vcmla_rot270_laneq_f32): New.
16917 (vcmlaq_rot270_lane_f32): New.
16918 (vcmlaq_rot270_laneq_f32): New.
16919 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
16920 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
16921 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
16922 (FCADD, FCMLA): New.
16924 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
16926 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
16930 * config/pa/pa.c: Change "can not" to "cannot".
16931 * gimple-ssa-evrp-analyze.c: Likewise.
16932 * ipa-icf.c: Likewise.
16933 * ipa-polymorphic-call.c: Likewise.
16934 * ipa-pure-const.c: Likewise.
16935 * lra-constraints.c: Likewise.
16936 * lra-remat.c: Likewise.
16937 * reload1.c: Likewise.
16938 * reorg.c: Likewise.
16939 * tree-ssa-uninit.c: Likewise.
16941 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
16945 * Makefile.in: Mechanically replace "can not" with "cannot".
16946 * alias.c: Likewise.
16947 * builtins.c: Likewise.
16948 * calls.c: Likewise.
16949 * cgraph.c: Likewise.
16950 * cgraph.h: Likewise.
16951 * cgraphclones.c: Likewise.
16952 * cgraphunit.c: Likewise.
16953 * combine-stack-adj.c: Likewise.
16954 * combine.c: Likewise.
16955 * common/config/i386/i386-common.c: Likewise.
16956 * config/aarch64/aarch64.c: Likewise.
16957 * config/alpha/sync.md: Likewise.
16958 * config/arc/arc.c: Likewise.
16959 * config/arc/predicates.md: Likewise.
16960 * config/arm/arm-c.c: Likewise.
16961 * config/arm/arm.c: Likewise.
16962 * config/arm/arm.h: Likewise.
16963 * config/arm/arm.md: Likewise.
16964 * config/arm/cortex-r4f.md: Likewise.
16965 * config/csky/csky.c: Likewise.
16966 * config/csky/csky.h: Likewise.
16967 * config/darwin-f.c: Likewise.
16968 * config/epiphany/epiphany.md: Likewise.
16969 * config/i386/i386.c: Likewise.
16970 * config/i386/sol2.h: Likewise.
16971 * config/m68k/m68k.c: Likewise.
16972 * config/mcore/mcore.h: Likewise.
16973 * config/microblaze/microblaze.md: Likewise.
16974 * config/mips/20kc.md: Likewise.
16975 * config/mips/sb1.md: Likewise.
16976 * config/nds32/nds32.c: Likewise.
16977 * config/nds32/predicates.md: Likewise.
16978 * config/pa/pa.c: Likewise.
16979 * config/rs6000/e300c2c3.md: Likewise.
16980 * config/rs6000/rs6000.c: Likewise.
16981 * config/s390/s390.h: Likewise.
16982 * config/sh/sh.c: Likewise.
16983 * config/sh/sh.md: Likewise.
16984 * config/spu/vmx2spu.h: Likewise.
16985 * cprop.c: Likewise.
16986 * dbxout.c: Likewise.
16987 * df-scan.c: Likewise.
16988 * doc/cfg.texi: Likewise.
16989 * doc/extend.texi: Likewise.
16990 * doc/fragments.texi: Likewise.
16991 * doc/gty.texi: Likewise.
16992 * doc/invoke.texi: Likewise.
16993 * doc/lto.texi: Likewise.
16994 * doc/md.texi: Likewise.
16995 * doc/objc.texi: Likewise.
16996 * doc/rtl.texi: Likewise.
16997 * doc/tm.texi: Likewise.
16999 * emit-rtl.c: Likewise.
17000 * emit-rtl.h: Likewise.
17001 * except.c: Likewise.
17002 * expmed.c: Likewise.
17003 * expr.c: Likewise.
17004 * fold-const.c: Likewise.
17005 * genautomata.c: Likewise.
17006 * gimple-fold.c: Likewise.
17007 * hard-reg-set.h: Likewise.
17008 * ifcvt.c: Likewise.
17009 * ipa-comdats.c: Likewise.
17010 * ipa-cp.c: Likewise.
17011 * ipa-devirt.c: Likewise.
17012 * ipa-fnsummary.c: Likewise.
17013 * ipa-icf.c: Likewise.
17014 * ipa-inline-transform.c: Likewise.
17015 * ipa-inline.c: Likewise.
17016 * ipa-polymorphic-call.c: Likewise.
17017 * ipa-profile.c: Likewise.
17018 * ipa-prop.c: Likewise.
17019 * ipa-pure-const.c: Likewise.
17020 * ipa-reference.c: Likewise.
17021 * ipa-split.c: Likewise.
17022 * ipa-visibility.c: Likewise.
17024 * ira-build.c: Likewise.
17025 * ira-color.c: Likewise.
17026 * ira-conflicts.c: Likewise.
17027 * ira-costs.c: Likewise.
17028 * ira-int.h: Likewise.
17029 * ira-lives.c: Likewise.
17032 * loop-invariant.c: Likewise.
17033 * loop-unroll.c: Likewise.
17034 * lower-subreg.c: Likewise.
17035 * lra-assigns.c: Likewise.
17036 * lra-constraints.c: Likewise.
17037 * lra-eliminations.c: Likewise.
17038 * lra-lives.c: Likewise.
17039 * lra-remat.c: Likewise.
17040 * lra-spills.c: Likewise.
17042 * lto-cgraph.c: Likewise.
17043 * lto-streamer-out.c: Likewise.
17044 * postreload-gcse.c: Likewise.
17045 * predict.c: Likewise.
17046 * profile-count.h: Likewise.
17047 * profile.c: Likewise.
17048 * recog.c: Likewise.
17050 * reload.c: Likewise.
17051 * reload1.c: Likewise.
17052 * reorg.c: Likewise.
17053 * resource.c: Likewise.
17054 * rtl.def: Likewise.
17056 * rtlanal.c: Likewise.
17057 * sched-deps.c: Likewise.
17058 * sched-ebb.c: Likewise.
17059 * sched-rgn.c: Likewise.
17060 * sel-sched-ir.c: Likewise.
17061 * sel-sched.c: Likewise.
17062 * shrink-wrap.c: Likewise.
17063 * simplify-rtx.c: Likewise.
17064 * symtab.c: Likewise.
17065 * target.def: Likewise.
17066 * toplev.c: Likewise.
17067 * tree-call-cdce.c: Likewise.
17068 * tree-cfg.c: Likewise.
17069 * tree-complex.c: Likewise.
17070 * tree-core.h: Likewise.
17071 * tree-eh.c: Likewise.
17072 * tree-inline.c: Likewise.
17073 * tree-loop-distribution.c: Likewise.
17074 * tree-nrv.c: Likewise.
17075 * tree-profile.c: Likewise.
17076 * tree-sra.c: Likewise.
17077 * tree-ssa-alias.c: Likewise.
17078 * tree-ssa-dce.c: Likewise.
17079 * tree-ssa-dom.c: Likewise.
17080 * tree-ssa-forwprop.c: Likewise.
17081 * tree-ssa-loop-im.c: Likewise.
17082 * tree-ssa-loop-ivcanon.c: Likewise.
17083 * tree-ssa-loop-ivopts.c: Likewise.
17084 * tree-ssa-loop-niter.c: Likewise.
17085 * tree-ssa-phionlycprop.c: Likewise.
17086 * tree-ssa-phiopt.c: Likewise.
17087 * tree-ssa-propagate.c: Likewise.
17088 * tree-ssa-threadedge.c: Likewise.
17089 * tree-ssa-threadupdate.c: Likewise.
17090 * tree-ssa-uninit.c: Likewise.
17091 * tree-ssanames.c: Likewise.
17092 * tree-streamer-out.c: Likewise.
17093 * tree.c: Likewise.
17094 * tree.h: Likewise.
17095 * vr-values.c: Likewise.
17097 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
17099 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
17100 (ix86_split_xorsign): Ditto.
17101 * config/i386/i386.c (ix86_expand_xorsign): New function.
17102 (ix86_split_xorsign): Ditto.
17103 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
17104 (xorsign<mode>3): New expander.
17105 (xorsign<mode>3_1): New insn_and_split pattern.
17106 * config/i386/sse.md (xorsign<mode>3): New expander.
17108 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
17110 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
17111 (*tablejump_sp64): Likewise.
17112 (*tablejump<P:mode>): ...this.
17113 (*call_address_sp32): Merge into...
17114 (*call_address_sp64): Likewise.
17115 (*call_address<P:mode>): ...this.
17116 (*call_symbolic_sp32): Merge into...
17117 (*call_symbolic_sp64): Likewise.
17118 (*call_symbolic<P:mode>): ...this.
17119 (call_value): Remove constraint and add predicate.
17120 (*call_value_address_sp32): Merge into...
17121 (*call_value_address_sp64): Likewise.
17122 (*call_value_address<P:mode>): ...this.
17123 (*call_value_symbolic_sp32): Merge into...
17124 (*call_value_symbolic_sp64): Likewise.
17125 (*call_value_symbolic<P:mode>): ...this.
17126 (*sibcall_symbolic_sp32): Merge into...
17127 (*sibcall_symbolic_sp64): Likewise.
17128 (*sibcall_symbolic<P:mode>): ...this.
17129 (sibcall_value): Remove constraint and add predicate.
17130 (*sibcall_value_symbolic_sp32): Merge into...
17131 (*sibcall_value_symbolic_sp64): Likewise.
17132 (*sibcall_value_symbolic<P:mode>): ...this.
17133 (window_save): Minor tweak.
17134 (*branch_sp32): Merge into...
17135 (*branch_sp64): Likewise.
17136 (*branch<P:mode>): ...this.
17138 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
17139 James Clarke <jrtc27@jrtc27.com>
17142 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
17143 consistently in TLS address generation and adjust code to the renaming
17144 of patterns. Mark calls to __tls_get_addr as const.
17145 * config/sparc/sparc.md (tgd_hi22): Turn into...
17146 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
17147 (tgd_lo10): Turn into...
17148 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
17149 (tgd_add32): Merge into...
17150 (tgd_add64): Likewise.
17151 (tgd_add<P:mode>): ...this and use Pmode throughout.
17152 (tldm_hi22): Turn into...
17153 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
17154 (tldm_lo10): Turn into...
17155 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
17156 (tldm_add32): Merge into...
17157 (tldm_add64): Likewise.
17158 (tldm_add<P:mode>): ...this and use Pmode throughout.
17159 (tldm_call32): Merge into...
17160 (tldm_call64): Likewise.
17161 (tldm_call<P:mode>): ...this and use Pmode throughout.
17162 (tldo_hix22): Turn into...
17163 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
17164 (tldo_lox10): Turn into...
17165 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
17166 (tldo_add32): Merge into...
17167 (tldo_add64): Likewise.
17168 (tldo_add<P:mode>): ...this and use Pmode throughout.
17169 (tie_hi22): Turn into...
17170 (tie_hi22<P:mode>): ...this and use Pmode throughout.
17171 (tie_lo10): Turn into...
17172 (tie_lo10<P:mode>): ...this and use Pmode throughout.
17173 (tie_ld64): Use DImode throughout.
17174 (tie_add32): Merge into...
17175 (tie_add64): Likewise.
17176 (tie_add<P:mode>): ...this and use Pmode throughout.
17177 (tle_hix22_sp32): Merge into...
17178 (tle_hix22_sp64): Likewise.
17179 (tle_hix22<P:mode>): ...this and use Pmode throughout.
17180 (tle_lox22_sp32): Merge into...
17181 (tle_lox22_sp64): Likewise.
17182 (tle_lox22<P:mode>): ...this and use Pmode throughout.
17183 (*tldo_ldub_sp32): Merge into...
17184 (*tldo_ldub_sp64): Likewise.
17185 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
17186 (*tldo_ldub1_sp32): Merge into...
17187 (*tldo_ldub1_sp64): Likewise.
17188 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
17189 (*tldo_ldub2_sp32): Merge into...
17190 (*tldo_ldub2_sp64): Likewise.
17191 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
17192 (*tldo_ldsb1_sp32): Merge into...
17193 (*tldo_ldsb1_sp64): Likewise.
17194 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
17195 (*tldo_ldsb2_sp32): Merge into...
17196 (*tldo_ldsb2_sp64): Likewise.
17197 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
17198 (*tldo_ldub3_sp64): Use DImode throughout.
17199 (*tldo_ldsb3_sp64): Likewise.
17200 (*tldo_lduh_sp32): Merge into...
17201 (*tldo_lduh_sp64): Likewise.
17202 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
17203 (*tldo_lduh1_sp32): Merge into...
17204 (*tldo_lduh1_sp64): Likewise.
17205 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
17206 (*tldo_ldsh1_sp32): Merge into...
17207 (*tldo_ldsh1_sp64): Likewise.
17208 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
17209 (*tldo_lduh2_sp64): Use DImode throughout.
17210 (*tldo_ldsh2_sp64): Likewise.
17211 (*tldo_lduw_sp32): Merge into...
17212 (*tldo_lduw_sp64): Likewise.
17213 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
17214 (*tldo_lduw1_sp64): Use DImode throughout.
17215 (*tldo_ldsw1_sp64): Likewise.
17216 (*tldo_ldx_sp64): Likewise.
17217 (*tldo_stb_sp32): Merge into...
17218 (*tldo_stb_sp64): Likewise.
17219 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
17220 (*tldo_sth_sp32): Merge into...
17221 (*tldo_sth_sp64): Likewise.
17222 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
17223 (*tldo_stw_sp32): Merge into...
17224 (*tldo_stw_sp64): Likewise.
17225 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
17226 (*tldo_stx_sp64): Use DImode throughout.
17228 2018-01-09 Sudakshina Das <sudi.das@arm.com>
17230 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
17231 check configure option to set BTI and Return Address Signing.
17232 * configure.ac: Add --enable-standard-branch-protection and
17233 --disable-standard-branch-protection.
17234 * configure: Regenerated.
17235 * doc/install.texi: Document the same.
17237 2018-01-09 Sudakshina Das <sudi.das@arm.com>
17238 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17240 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
17241 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
17242 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
17244 * config/aarch64/aarch64-bti-insert.c: New file.
17245 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
17247 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
17249 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
17250 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
17251 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
17252 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
17254 2018-01-09 Sudakshina Das <sudi.das@arm.com>
17256 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
17257 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
17258 Disable bti for -mbranch-protection=none.
17259 (aarch64_handle_standard_branch_protection): Enable bti for
17260 -mbranch-protection=standard.
17261 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
17262 -mbranch-protection.
17263 (aarch64_bti_enabled): Check if bti is enabled.
17264 * config/aarch64/aarch64.opt: Declare target variable.
17265 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
17267 2018-01-09 Sudakshina Das <sudi.das@arm.com>
17269 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
17270 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
17271 (aarch64_expand_epilogue): Likewise.
17272 (aarch64_output_mi_thunk): Likewise
17273 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
17274 TAILCALL_ADDR_REGS to x16 and x17.
17275 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
17277 2018-01-09 Sudakshina Das <sudi.das@arm.com>
17279 * config/aarch64/aarch64-option-extensions.def: Define
17280 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
17281 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
17282 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
17283 (AARCH64_FL_PREDRES): New.
17284 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
17285 AARCH64_FL_PREDRES by default.
17286 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
17288 2018-01-09 Sudakshina Das <sudi.das@arm.com>
17290 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
17292 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
17293 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
17294 * doc/invoke.texi: Document ARMv8.5-A.
17296 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17298 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
17299 (xorsign<mode>3): Likewise.
17301 2019-01-09 Jelinek <jakub@redhat.com>
17303 PR middle-end/88758
17304 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
17305 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
17307 PR rtl-optimization/88331
17308 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
17309 not currently_expanding_to_rtl.
17311 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
17313 * doc/invoke.texi (-Os): Remove trailing spaces.
17314 (-finline-functions): Remove reference to -O2.
17316 2019-01-08 Jakub Jelinek <jakub@redhat.com>
17318 PR rtl-optimization/79593
17319 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
17321 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
17322 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
17324 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
17327 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
17331 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
17332 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
17334 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
17337 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
17338 ix86_avx_u128_mode_entry.
17340 2019-01-08 Martin Liska <mliska@suse.cz>
17342 PR tree-optimization/88753
17343 * tree-switch-conversion.c (switch_conversion::build_one_array):
17344 Come up with local variable constructor. Convert first to
17345 type of constructor values.
17347 2019-01-08 Richard Biener <rguenther@suse.de>
17349 PR tree-optimization/86554
17350 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
17351 rpo_avail): Move earlier.
17352 (visit_nary_op): When value-numbering to expressions
17353 with different overflow behavior make sure there's an
17354 available expression on the path.
17356 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
17358 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
17359 aarch64_parse_branch_protection,
17360 struct aarch64_branch_protect_type,
17361 aarch64_handle_no_branch_protection,
17362 aarch64_handle_standard_branch_protection,
17363 aarch64_validate_mbranch_protection,
17364 aarch64_handle_pac_ret_protection,
17365 aarch64_handle_attr_branch_protection,
17366 accepted_branch_protection_string,
17367 aarch64_pac_ret_subtypes,
17368 aarch64_branch_protect_types,
17369 aarch64_handle_pac_ret_leaf): Define.
17370 (aarch64_override_options_after_change_1, aarch64_override_options):
17371 Add check for accepted_branch_protection_string.
17372 (aarch64_option_save): Save accepted_branch_protection_string.
17373 (aarch64_option_restore): Save accepted_branch_protection_string.
17374 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
17375 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
17376 msign-return-address.
17377 * doc/invoke.texi: Add mbranch-protection.
17379 2019-01-08 Alan Modra <amodra@gmail.com>
17382 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
17383 Delete "unknownp" parameter. Adjust callers. Handle
17384 CONST_INT, PLUS, MINUS, and MULT.
17385 (attr_value_aligned): Renamed from or_attr_value.
17386 (min_attr_value): Return INT_MIN for unhandled rtl case..
17387 (min_fn): ..and translate to INT_MAX here.
17388 (write_length_unit_log): Modify to cope without "unknown".
17389 (write_attr_value): Handle IF_THEN_ELSE.
17391 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
17393 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
17394 optimization for masked stores.
17396 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
17398 PR middle-end/88567
17399 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
17400 output vector directly to duplicate_and_interleave instead of
17401 going through a temporary. Postpone insertion of ctor_seq to
17402 the end of the loop.
17404 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
17407 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
17408 unsigned_p. Handle signed and unsigned overflow correction as
17410 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
17412 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
17414 (add<mode>3_compareV_imm): Make this callable for expanding.
17415 (subv<GPI:mode>4): Use register_operand for operand 1. Use
17416 aarch64_plus_operand for operand 2.
17417 (subv<GPI:mode>_insn): New insn pattern.
17418 (subv<GPI:mode>_imm): Likewise.
17419 (negv<GPI:mode>3): New expand pattern.
17420 (negv<GPI:mode>_insn): New insn pattern.
17421 (negv<GPI:mode>_cmp_only): Likewise.
17422 (cmpv<GPI:mode>_insn): Likewise.
17423 (subvti4): Use register_operand for operand 1. Update call to
17424 aarch64_expand_subvti.
17425 (usubvti4): Likewise.
17426 (negvti3): New expand pattern.
17427 (negdi_carryout): New insn pattern.
17428 (negvdi_carryinV): New insn pattern.
17429 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
17430 version the named version.
17431 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
17433 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
17435 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
17437 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
17438 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
17439 (sub<mode>3_carryinCV): Delete.
17440 (sub<GPI:mode>3_carryinV): New expand pattern.
17441 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
17443 2019-01-07 Richard Biener <rguenther@suse.de>
17445 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
17446 of tree_operand_hash.
17448 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
17450 PR tree-optimization/88598
17451 * tree.h (single_nonzero_element): Declare.
17452 * tree.c (single_nonzero_element): New function.
17453 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
17454 if I is the only nonzero element of CST.
17456 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
17458 PR tree-optimization/88598
17459 * tree.h (initializer_each_zero_or_onep): Declare.
17460 * tree.c (initializer_each_zero_or_onep): New function.
17461 (signed_or_unsigned_type_for): Handle float types too.
17462 (unsigned_type_for, signed_type_for): Update comments accordingly.
17463 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
17464 x & { 0 or -1, 0 or -1, ... }.
17466 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
17468 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
17469 with x86_64-pc-linux-gnu.
17471 2019-01-07 Tom de Vries <tdevries@suse.de>
17474 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
17476 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
17479 2019-01-07 Jakub Jelinek <jakub@redhat.com>
17481 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
17482 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
17483 TARGET_AVX512F as condition.
17486 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
17487 const_not_ok_for_debug_p target hook.
17488 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
17489 on UNSPEC and subexpressions thereof if all subexpressions of the
17490 UNSPEC are CONSTANT_P.
17492 PR tree-optimization/88676
17493 * tree-ssa-phiopt.c (two_value_replacement): New function.
17494 (tree_ssa_phiopt_worker): Call it.
17497 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
17498 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
17501 * tree-vect-generic.c: Include insn-config.h and recog.h.
17502 (expand_vector_piecewise): Add defaulted ret_type argument,
17503 if non-NULL, use that in preference to type for the result type.
17504 (expand_vector_parallel): Formatting fix.
17505 (do_vec_conversion, do_vec_narrowing_conversion,
17506 expand_vector_conversion): New functions.
17507 (expand_vector_operations_1): Call expand_vector_conversion
17508 for VEC_CONVERT ifn calls.
17509 * internal-fn.def (VEC_CONVERT): New internal function.
17510 * internal-fn.c (expand_VEC_CONVERT): New function.
17511 * fold-const-call.c (fold_const_vec_convert): New function.
17512 (fold_const_call): Use it for CFN_VEC_CONVERT.
17513 * doc/extend.texi (__builtin_convertvector): Document.
17515 2019-01-07 Tom de Vries <tdevries@suse.de>
17517 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
17518 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
17519 vector_red_partition, vector_red_sym): New global variables.
17520 (nvptx_option_override): Initialize vector_red_sym.
17521 (nvptx_declare_function_name): Restore red_partition register.
17522 (nvptx_file_end): Emit code to declare the vector reduction variables.
17523 (nvptx_output_red_partition): New function.
17524 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
17525 large vector reductions.
17526 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
17527 (nvptx_init_builtins): Add VECTOR_ADDR.
17528 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
17529 Handle nvptx_expand_shared_addr.
17530 (nvptx_get_shared_red_addr): Add vector argument and handle large
17532 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
17534 (nvptx_goacc_reduction_init): Likewise.
17535 (nvptx_goacc_reduction_fini): Likewise.
17536 (nvptx_goacc_reduction_teardown): Likewise.
17537 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
17538 init,fini,teardown}.
17539 (nvptx_init_axis_predicate): Initialize vector_red_partition.
17540 (nvptx_set_current_function): Init vector_red_partition.
17541 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
17542 (nvptx_red_partition): New insn.
17543 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
17545 2019-01-07 Tom de Vries <tdevries@suse.de>
17548 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
17551 2019-01-07 Tom de Vries <tdevries@suse.de>
17553 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
17554 (nvptx_option_override): Init oacc_bcast_partition.
17555 (nvptx_init_oacc_workers): New function.
17556 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
17557 (nvptx_needs_shared_bcast): New function.
17558 (nvptx_find_par): Generalize to enable vectors to use shared-memory
17559 to propagate state.
17560 (nvptx_shared_propagate): Initialize vector bcast partition and
17561 synchronization state.
17562 (nvptx_single): Generalize to enable vectors to use shared-memory
17563 to propagate state.
17564 (nvptx_process_pars): Likewise.
17565 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
17566 * config/nvptx/nvptx.h (struct machine_function): Add
17567 bcast_partition and sync_bar members.
17569 2019-01-07 Tom de Vries <tdevries@suse.de>
17571 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
17572 (nvptx_apply_dim_limits): New function.
17573 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
17576 2019-01-07 Tom de Vries <tdevries@suse.de>
17578 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
17579 as late as possible.
17581 2019-01-07 Tom de Vries <tdevries@suse.de>
17583 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
17584 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
17585 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
17586 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
17587 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
17589 2019-01-07 Tom de Vries <tdevries@suse.de>
17591 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
17593 2019-01-07 Tom de Vries <tdevries@suse.de>
17595 * omp-offload.c (oacc_get_min_dim): New function.
17596 * omp-offload.h (oacc_get_min_dim): Declare.
17598 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
17601 * config/i386/i386.c (function_value_ms_64): Return small sturct in
17602 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
17604 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
17608 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
17610 * ipa-inline.c (edge_badness): Use inlined_time instead of
17611 inline_summaries->get.
17613 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
17615 * opts.c (enable_fdo_optimizations): Enable
17616 version-loops-for-strides, loop-interchange, unrol-and-jam
17617 and tree-loop-distribution.
17618 * invoke.texi: Document newly enabled options.
17620 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
17622 * doc/invoke.texi (max-inline-insns-small): New parameters.
17623 * ipa-inline.c (want_early_inline_function_p): simplify.
17624 (want_inline_small_function_p): Fix pasto from previous patch;
17625 use max-inline-insns-small bound.
17626 * params.def (max-inline-insns-small): New param.
17627 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
17628 variables correctly.
17630 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
17632 * doc/invoke.texi: Document max-inline-insns-size,
17633 uninlined-function-insns, uninlined-function-time,
17634 uninlined-thunk-insns and uninlined-thunk-time.
17635 * params.def: Add max-inline-insns-size,
17636 uninlined-function-insns, uninlined-function-time,
17637 uninlined-thunk-insns and uninlined-thunk-time.
17638 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
17640 * ipa-inline.c (can_inline_edge_by_limits_p,
17641 want_inline_small_function_p): Use new parameters.
17643 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
17645 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
17647 2019-01-05 Jakub Jelinek <jakub@redhat.com>
17649 PR middle-end/82564
17651 * expr.c (expand_assignment): For calls returning VLA structures
17652 if to_rtx is not a MEM, force it into a stack temporary.
17655 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
17656 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
17657 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
17658 subexpressions of both operands.
17659 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
17660 subrtxes are CONSTANT_P.
17661 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
17662 2018-11-09 changes.
17664 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
17666 * params.def (hot-bb-count-ws-permille): Set to 990.
17668 2019-01-04 Martin Sebor <msebor@redhat.com>
17671 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
17674 2019-01-04 Martin Sebor <msebor@redhat.com>
17677 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
17679 2019-01-04 Jakub Jelinek <jakub@redhat.com>
17681 * gdbinit.in: Turn off pagination for the skip commands, restore
17682 it to previous state afterwards.
17684 2019-01-04 Jakub Jelinek <jakub@redhat.com>
17687 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
17688 of GET_MODE (opN) as modes of the libcall arguments.
17690 2019-01-04 Jan Beulich <jbeulich@suse.com>
17692 * config/i386/sse.md
17693 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
17694 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
17695 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
17696 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
17697 avx512f_vmcmp<mode>3<round_saeonly_name>,
17698 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
17699 avx512f_maskcmp<mode>3,
17700 <avx512>_cvt<ssemodesuffix>2mask<mode>,
17701 <avx512>_cvt<ssemodesuffix>2mask<mode>,
17702 *<avx512>_cvtmask2<ssemodesuffix><mode>,
17703 *<avx512>_cvtmask2<ssemodesuffix><mode>,
17704 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
17705 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
17706 <avx512>_gt<mode>3<mask_scalar_merge_name>,
17707 <avx512>_gt<mode>3<mask_scalar_merge_name>,
17708 <avx512>_testm<mode>3<mask_scalar_merge_name>,
17709 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
17710 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
17711 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
17712 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
17713 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
17714 avx512cd_maskb_vec_dup<mode>,
17715 avx512cd_maskw_vec_dup<mode>,
17716 avx512dq_fpclass<mode><mask_scalar_merge_name>,
17717 avx512dq_vmfpclass<mode>,
17718 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
17721 2019-01-03 Martin Sebor <msebor@redhat.com>
17723 PR tree-optimization/88659
17724 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
17726 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
17728 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
17729 unaligned vsx and avoid lxvd2x/stxvd2x.
17730 (gen_lvx_v4si_move): New function.
17732 2019-01-03 Tom de Vries <tdevries@suse.de>
17734 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
17735 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
17737 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
17739 2019-01-03 Tom de Vries <tdevries@suse.de>
17741 * config/nvptx/nvptx.c (struct offload_attrs): New.
17742 (populate_offload_attrs): New function. Factor mask extraction out of
17743 nvptx_reorg. Add extraction of dimensions.
17744 (nvptx_reorg): Use populate_offload_attrs.
17746 2019-01-03 Tom de Vries <tdevries@suse.de>
17748 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
17749 cases for oacc_min_dims_p and routine_p. Add asserts for
17750 oacc_default_dims_p and offload_region_p.
17752 2019-01-03 Tom de Vries <tdevries@suse.de>
17754 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
17755 factored out of ...
17756 (nvptx_goacc_validate_dims): ... here.
17758 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
17760 PR tree-optimization/85574
17761 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
17763 (struct ssa_equip_hash_traits): Declare.
17764 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
17766 2019-01-03 Jakub Jelinek <jakub@redhat.com>
17769 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
17770 change it to qualified_type.
17772 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
17774 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
17775 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
17777 2019-01-02 Martin Sebor <msebor@redhat.com>
17778 Jeff Law <law@redhat.com>
17780 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
17781 (get_range_strlen_tree): Update appropriately.
17783 * gimple-fold.h (get_range_strlen): Drop unused last argument.
17785 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
17786 rather than set_range_info.
17787 * tree-ssa-strlen.c (set_strlen_range): Extracted from
17788 maybe_set_strlen_range. Handle potentially boundary crossing
17789 cases more conservatively.
17790 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
17791 Call set_strlen_range.
17792 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
17794 PR middle-end/88663
17795 * gimple-fold.c (get_range_strlen): Update prototype to no longer
17796 need the flexp argument.
17797 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
17798 from calls to get_range_strlen. Update comments. Just update
17799 VAL for an unterminated const char array and let the reset of the
17800 code handle it normally. No longer try to set *flexp. Adjust
17802 (get_range_strlen): Update for the new get_range_strlen API.
17803 (get_maxval_strlen): Similarly.
17804 (gimple_fold_builtin_strlen): Handle update meaning of return value
17805 from get_range_strlen.
17806 * gimple-ssa-sprintf.c (get_string_length): Update for the new
17807 get_range_strlen API.
17809 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
17812 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
17813 false at WPA time when body was removed.
17815 2019-01-02 Martin Liska <mliska@suse.cz>
17817 PR tree-optimization/88650
17818 * predict.c (set_even_probabilities): Calculate probability
17819 remainer only when really used.
17821 2019-01-02 Richard Biener <rguenther@suse.de>
17823 PR middle-end/88651
17824 * tree-data-ref.c (analyze_subscript_affine_affine): Use
17825 widest_ints when mangling max_stmt_execution results.
17827 2019-01-02 Richard Biener <rguenther@suse.de>
17829 PR tree-optimization/88621
17830 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
17831 bitfields when canoncalizing.
17833 2019-01-02 Richard Biener <rguenther@suse.de>
17836 * config/i386/x86-tune-costs.h (intel_cost): Adjust
17837 cost of cheap SSE instruction.
17839 2019-01-02 Richard Biener <rguenther@suse.de>
17842 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
17843 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
17845 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
17846 set after UIDs before splitting them.
17848 2019-01-01 Martin Sebor <msebor@redhat.com>
17849 Jeff Law <law@redhat.com>
17851 * gimple-fold.c (get_range_strlen_tree): Record if the computed
17852 length is optimistic. If it is, then arrange to compute the
17853 conservative length as well.
17855 * gimple-fold.h (get_range_strlen): Update prototype.
17856 * builtins.c (check_access): Update call to get_range_strlen to use
17857 c_strlen_data pointer. Change various variable accesses to instead
17858 pull data from the c_strlen_data structure.
17859 (check_strncat_sizes, expand_builtin_strncat): Likewise.
17860 * calls.c (maybe_warn_nonstring_arg): Likewise.
17861 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
17862 minimum length if maximum lengh is unknown.
17863 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
17864 that used c_strlen, it's no longer needed. Restructure slightly.
17865 (format_string): Set unlikely range appropriately.
17866 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
17868 (get_range_strlen): Accept c_strlen_data pointer for external
17869 call sites as well. Pass through to call to internal get_range_strlen.
17870 Adjust minlen, maxlen and maxbound as needed.
17871 (get_maxval_strlen): Update comments.
17872 (gimple_fold_builtin_strlen): Update call to get_range_strlen
17873 to use c_strlen_data pointer. Change variable accesses to instead
17874 use c_strlen_data data members.
17876 * gimple-fold.c (get_range_strlen): Update prototype.
17877 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
17878 local variables. Use pdata to return information to caller.
17879 Update calls to get_range_strlen. Update pdata->maxbound.
17880 (get_range_strlen -- static version): Similarly.
17881 (get_range_strlen -- extern version): Update for internal
17882 get_range_strlen API change. Convert to external data format.
17883 (get_maxval_strlen): Similarly.
17885 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
17887 * coverage.c (get_coverage_counts): Use current_function_decl.
17888 * profile.c (read_thunk_profile): New function.
17889 (branch_prob): Add THUNK parameter.
17890 * tree-profile.c (tree_profiling): Handle thunks.
17891 * value-prof.c (init_node_map): Handle thunks.
17892 * value-prof.h (branch_prob): Upate prototype.
17893 (read_thunk_profile): Declare.
17895 2019-01-01 Jakub Jelinek <jakub@redhat.com>
17897 Update copyright years.
17899 * gcc.c (process_command): Update copyright notice dates.
17900 * gcov-dump.c (print_version): Ditto.
17901 * gcov.c (print_version): Ditto.
17902 * gcov-tool.c (print_version): Ditto.
17903 * gengtype.c (create_file): Ditto.
17904 * doc/cpp.texi: Bump @copying's copyright year.
17905 * doc/cppinternals.texi: Ditto.
17906 * doc/gcc.texi: Ditto.
17907 * doc/gccint.texi: Ditto.
17908 * doc/gcov.texi: Ditto.
17909 * doc/install.texi: Ditto.
17910 * doc/invoke.texi: Ditto.
17912 Copyright (C) 2019 Free Software Foundation, Inc.
17914 Copying and distribution of this file, with or without modification,
17915 are permitted in any medium without royalty provided the copyright
17916 notice and this notice are preserved.