https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83986
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Sat Mar 3 13:21:58 2018 New Revision: 258179 URL: https://gcc.gnu.org/viewcvs?rev=258179&root=gcc&view=rev Log: Backported from mainline 2018-01-30 Jakub Jelinek <ja...@redhat.com> PR rtl-optimization/83986 * sched-deps.c (sched_analyze_insn): For frame related insns, add anti dependence against last_pending_memory_flush in addition to pending_jump_insns. * gcc.dg/pr83986.c: New test. Added: branches/gcc-7-branch/gcc/testsuite/gcc.dg/pr83986.c Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/sched-deps.c branches/gcc-7-branch/gcc/testsuite/ChangeLog