[libunwind] eb1f9cc - [libunwind] Fix compilation for the x32 ABI. (#116608)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Dec 15 02:57:55 PST 2024
Author: Alex Rønne Petersen
Date: 2024-12-15T05:57:51-05:00
New Revision: eb1f9cced9e878362aeac18e120895995f759ee3
URL: https://github.com/llvm/llvm-project/commit/eb1f9cced9e878362aeac18e120895995f759ee3
DIFF: https://github.com/llvm/llvm-project/commit/eb1f9cced9e878362aeac18e120895995f759ee3.diff
LOG: [libunwind] Fix compilation for the x32 ABI. (#116608)
This would previously fail the static assertions in `UnwindCursor.hpp`
due to `UnwindCursor`'s size not matching `unw_cursor_t`'s size. As is
done for MIPS N32, this just declares the appropriate size in
`__libunwind_config.h`.
Added:
Modified:
libunwind/include/__libunwind_config.h
Removed:
################################################################################
diff --git a/libunwind/include/__libunwind_config.h b/libunwind/include/__libunwind_config.h
index 028b9e3baa8065..bb7fe4c83a3c17 100644
--- a/libunwind/include/__libunwind_config.h
+++ b/libunwind/include/__libunwind_config.h
@@ -53,6 +53,9 @@
# else
# define _LIBUNWIND_CURSOR_SIZE 66
# endif
+# elif defined(__ILP32__)
+# define _LIBUNWIND_CONTEXT_SIZE 21
+# define _LIBUNWIND_CURSOR_SIZE 28
# else
# define _LIBUNWIND_CONTEXT_SIZE 21
# define _LIBUNWIND_CURSOR_SIZE 33
More information about the cfe-commits
mailing list