From d4cb8007c785edaaba9f707bc83d6a33f562a059 Mon Sep 17 00:00:00 2001 From: Carmelo Amoroso Date: Thu, 27 Nov 2008 14:52:15 +0000 Subject: Make __UCLIBC_HAVE_ASM_CFI_DIRECTIVES__ visible in case the arch supports this feature. SH4 will use this in some aseembly files for the NPTL implementation. Add now safely on trunk. Signed-off-by: Carmelo Amoroso --- include/libc-symbols.h | 6 ++++++ libc/sysdeps/linux/sh/bits/uClibc_arch_features.h | 3 +++ 2 files changed, 9 insertions(+) diff --git a/include/libc-symbols.h b/include/libc-symbols.h index 34be37c5d..91124bf2f 100644 --- a/include/libc-symbols.h +++ b/include/libc-symbols.h @@ -133,6 +133,12 @@ # undef HAVE_ASM_GLOBAL_DOT_NAME #endif +#ifdef __UCLIBC_HAVE_ASM_CFI_DIRECTIVES__ +# define HAVE_ASM_CFI_DIRECTIVES +#else +# undef HAVE_ASM_CFI_DIRECTIVES +#endif + #if defined HAVE_ASM_WEAK_DIRECTIVE || defined HAVE_ASM_WEAKEXT_DIRECTIVE # define HAVE_WEAK_SYMBOLS #endif diff --git a/libc/sysdeps/linux/sh/bits/uClibc_arch_features.h b/libc/sysdeps/linux/sh/bits/uClibc_arch_features.h index 55e34804f..4d0845351 100644 --- a/libc/sysdeps/linux/sh/bits/uClibc_arch_features.h +++ b/libc/sysdeps/linux/sh/bits/uClibc_arch_features.h @@ -39,6 +39,9 @@ /* needed probably only for ppc64 */ #undef __UCLIBC_HAVE_ASM_GLOBAL_DOT_NAME__ +/* define if target supports CFI pseudo ops */ +#define __UCLIBC_HAVE_ASM_CFI_DIRECTIVES__ + /* define if target supports IEEE signed zero floats */ #define __UCLIBC_HAVE_SIGNED_ZERO__ -- cgit v1.2.3