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-02-28 15:47:38 +0000 |
commit | 2bbc694df279020a6620096d31c1e05c93966f9b (patch) | |
tree | 474c8d145637e7beabbdd606541c5bcad32c69ff /nptl/unwind.c | |
parent | ca7334d34b7811fc261c84c498fd4a19acd70530 (diff) | |
download | glibc-2bbc694df279020a6620096d31c1e05c93966f9b.tar glibc-2bbc694df279020a6620096d31c1e05c93966f9b.tar.gz glibc-2bbc694df279020a6620096d31c1e05c93966f9b.tar.bz2 glibc-2bbc694df279020a6620096d31c1e05c93966f9b.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.
Diffstat (limited to 'nptl/unwind.c')
-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 c3563e3467..33b0d87579 100644 --- a/nptl/unwind.c +++ b/nptl/unwind.c @@ -25,7 +25,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 |