summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2008-11-27 14:52:15 +0000
committerCarmelo Amoroso <carmelo.amoroso@st.com>2008-11-27 14:52:15 +0000
commitd4cb8007c785edaaba9f707bc83d6a33f562a059 (patch)
treeab2576da67ccf1d8cd9970de4f611f5d650bf287
parent28075836bdd3771e55f97ee66f4d5d53d6c0e8d9 (diff)
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>
-rw-r--r--include/libc-symbols.h6
-rw-r--r--libc/sysdeps/linux/sh/bits/uClibc_arch_features.h3
2 files changed, 9 insertions, 0 deletions
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__