diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-09-14 08:52:27 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-09-16 05:26:19 -0700 |
commit | 453a20c65722719b9e2d84339f215e7ec87692dc (patch) | |
tree | 8daea27aac33fe804d008a44c3286bd5e13fcbc0 /gcc/fortran/trans-openmp.c | |
parent | f419a0158950034ed9996ae860b0c8df03731119 (diff) | |
download | gcc-453a20c65722719b9e2d84339f215e7ec87692dc.zip gcc-453a20c65722719b9e2d84339f215e7ec87692dc.tar.gz gcc-453a20c65722719b9e2d84339f215e7ec87692dc.tar.bz2 |
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 (asm_clobber_reg_kind): 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.
Diffstat (limited to 'gcc/fortran/trans-openmp.c')
0 files changed, 0 insertions, 0 deletions