Browse Source

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 <carmelo.amoroso@st.com>

Carmelo Amoroso 15 years ago
parent
commit
d4cb8007c7
2 changed files with 9 additions and 0 deletions
  1. 6 0
      include/libc-symbols.h
  2. 3 0
      libc/sysdeps/linux/sh/bits/uClibc_arch_features.h

+ 6 - 0
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

+ 3 - 0
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__