diff options
author | John David Anglin <danglin@gcc.gnu.org> | 2022-02-28 15:47:38 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2022-03-06 16:00:52 +0000 |
commit | 40fc6a74ee3dd600c84d311d91cbb16962f11a71 (patch) | |
tree | 0bb048db8a230c945062cc138ec41665050b59bc | |
parent | f610d2935f041c5f41ddcb96924ea42ca2fb5ea5 (diff) | |
download | glibc-40fc6a74ee3dd600c84d311d91cbb16962f11a71.tar.gz glibc-40fc6a74ee3dd600c84d311d91cbb16962f11a71.tar.xz glibc-40fc6a74ee3dd600c84d311d91cbb16962f11a71.zip |
nptl: Fix cleanups for stack grows up [BZ# 28899]
_STACK_GROWS_DOWN is defined to 0 when the stack grows up. The code in unwind.c used `#ifdef _STACK_GROWS_DOWN' to selct the stack grows down define for FRAME_LEFT. As a result, the _STACK_GROWS_DOWN define was always selected and cleanups were incorrectly sequenced when the stack grows up. (cherry picked from commit 2bbc694df279020a6620096d31c1e05c93966f9b)
-rw-r--r-- | nptl/unwind.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/unwind.c b/nptl/unwind.c index f50997f728..404fab46d0 100644 --- a/nptl/unwind.c +++ b/nptl/unwind.c @@ -27,7 +27,7 @@ #include <jmpbuf-unwind.h> #include <shlib-compat.h> -#ifdef _STACK_GROWS_DOWN +#if _STACK_GROWS_DOWN # define FRAME_LEFT(frame, other, adj) \ ((uintptr_t) frame - adj >= (uintptr_t) other - adj) #elif _STACK_GROWS_UP |