diff options
author | Ed Maste <emaste@FreeBSD.org> | 2016-07-05 18:00:23 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2016-07-05 18:00:23 +0000 |
commit | e2fc5d984d0bcb0eba77ce5030f053dfc0eae2a2 (patch) | |
tree | b21dcab8cdbe07ded020ad2c036bd62d4b8d88ce /include/__libunwind_config.h | |
parent | ca83053650e2c15214b17a869aae5d544c9a59da (diff) | |
download | src-vendor/llvm-libunwind/libunwind-r272680.tar.gz src-vendor/llvm-libunwind/libunwind-r272680.zip |
Import LLVM libunwind snapshot revision 272680vendor/llvm-libunwind/libunwind-r272680
Significant upstream revisions:
260595: [AArch64] Fix libunwind build when using GNU assembler
270692: Introduce a native-only unwinder build.
270972: Disable cross-unwinding by default.
271004: [libunwind] Improve unwinder stack usage - II
272680: [libunwind] Improve unwinder stack usage - III
Obtained from: https://llvm.org/svn/llvm-project/libunwind/trunk/
Diffstat (limited to 'include/__libunwind_config.h')
-rw-r--r-- | include/__libunwind_config.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/include/__libunwind_config.h b/include/__libunwind_config.h index 63393d3058e8..099d133e744b 100644 --- a/include/__libunwind_config.h +++ b/include/__libunwind_config.h @@ -17,4 +17,43 @@ #define _LIBUNWIND_ARM_EHABI 0 #endif +#if defined(_LIBUNWIND_IS_NATIVE_ONLY) +# if defined(__i386__) +# define _LIBUNWIND_TARGET_I386 1 +# define _LIBUNWIND_CONTEXT_SIZE 8 +# define _LIBUNWIND_CURSOR_SIZE 19 +# elif defined(__x86_64__) +# define _LIBUNWIND_TARGET_X86_64 1 +# define _LIBUNWIND_CONTEXT_SIZE 21 +# define _LIBUNWIND_CURSOR_SIZE 33 +# elif defined(__ppc__) +# define _LIBUNWIND_TARGET_PPC 1 +# define _LIBUNWIND_CONTEXT_SIZE 117 +# define _LIBUNWIND_CURSOR_SIZE 128 +# elif defined(__aarch64__) +# define _LIBUNWIND_TARGET_AARCH64 1 +# define _LIBUNWIND_CONTEXT_SIZE 66 +# define _LIBUNWIND_CURSOR_SIZE 78 +# elif defined(__arm__) +# define _LIBUNWIND_TARGET_ARM 1 +# define _LIBUNWIND_CONTEXT_SIZE 60 +# define _LIBUNWIND_CURSOR_SIZE 67 +# elif defined(__or1k__) +# define _LIBUNWIND_TARGET_OR1K 1 +# define _LIBUNWIND_CONTEXT_SIZE 16 +# define _LIBUNWIND_CURSOR_SIZE 28 +# else +# error "Unsupported architecture." +# endif +#else // !_LIBUNWIND_IS_NATIVE_ONLY +# define _LIBUNWIND_TARGET_I386 1 +# define _LIBUNWIND_TARGET_X86_64 1 +# define _LIBUNWIND_TARGET_PPC 1 +# define _LIBUNWIND_TARGET_AARCH64 1 +# define _LIBUNWIND_TARGET_ARM 1 +# define _LIBUNWIND_TARGET_OR1K 1 +# define _LIBUNWIND_CONTEXT_SIZE 128 +# define _LIBUNWIND_CURSOR_SIZE 140 +#endif // _LIBUNWIND_IS_NATIVE_ONLY + #endif // ____LIBUNWIND_CONFIG_H__ |