https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97032
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-8 branch has been updated by H.J. Lu <h...@gcc.gnu.org>: https://gcc.gnu.org/g:97c34eb5f57bb1d37f3feddefefa5f553bcea9fc commit r8-10533-g97c34eb5f57bb1d37f3feddefefa5f553bcea9fc Author: H.J. Lu <hjl.to...@gmail.com> Date: Mon Sep 14 08:52:27 2020 -0700 rtl_data: Add sp_is_clobbered_by_asm Add sp_is_clobbered_by_asm to rtl_data to inform backends that the stack pointer is clobbered by asm statement. gcc/ PR target/97032 * cfgexpand.c (expand_asm_stmt): Set sp_is_clobbered_by_asm to true if the stack pointer is clobbered by asm statement. * emit-rtl.h (rtl_data): Add sp_is_clobbered_by_asm. * config/i386/i386.c (ix86_get_drap_rtx): Set need_drap to true if the stack pointer is clobbered by asm statement. gcc/testsuite/ PR target/97032 * gcc.target/i386/pr97032.c: New test. (cherry picked from commit 453a20c65722719b9e2d84339f215e7ec87692dc)