]> git.ipfire.org Git - thirdparty/gcc.git/commit
APX: Don't use red-zone with 32 GPRs and no caller-saved registers
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 13 Apr 2025 19:20:42 +0000 (12:20 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 14 Apr 2025 12:56:04 +0000 (05:56 -0700)
commit0a074b8c7e79f9d9359d044f1499b0a9ce9d2801
tree86a417f7d25fc4eb8abedf01a77bdd4141908577
parent6b6611f81476b6375c90859d85331c2981a2ce51
APX: Don't use red-zone with 32 GPRs and no caller-saved registers

Don't use red-zone when there are no caller-saved registers with 32 GPRs
since 128-byte red-zone is too small for 31 GPRs.

gcc/

PR target/119784
* config/i386/i386.cc (ix86_using_red_zone): Don't use red-zone
with 32 GPRs and no caller-saved registers.

gcc/testsuite/

PR target/119784
* gcc.target/i386/pr119784a.c: New test.
* gcc.target/i386/pr119784b.c: Likewise.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
gcc/config/i386/i386.cc
gcc/testsuite/gcc.target/i386/pr119784a.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr119784b.c [new file with mode: 0644]