[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-libsigsegv] [PATCH] Don't use internal glibc macro

From: Andreas Schwab
Subject: [bug-libsigsegv] [PATCH] Don't use internal glibc macro
Date: Fri, 03 Mar 2017 10:43:44 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

__WORDSIZE is an internal, non-public glibc macro that can change any
time.  Moreover, it cannot distinguish aarch64 from arm.

* src/fault-linux-arm.h: Check for __aarch64__, not __WORDSIZE.
 src/fault-linux-arm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/fault-linux-arm.h b/src/fault-linux-arm.h
index a3da5f8a98..1999caf160 100644
--- a/src/fault-linux-arm.h
+++ b/src/fault-linux-arm.h
@@ -17,7 +17,7 @@
 #include "fault-posix-ucontext.h"
-#if __WORDSIZE == 64
+#ifdef __aarch64__
 /* See glibc/sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h.
    Note that the 'mcontext_t' defined in

Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

reply via email to

[Prev in Thread] Current Thread [Next in Thread]