summaryrefslogtreecommitdiffstats
path: root/ldso
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2008-01-12 17:59:10 +0000
committerCarmelo Amoroso <carmelo.amoroso@st.com>2008-01-12 17:59:10 +0000
commit5952806e050a8494cdff3368b144de206def8780 (patch)
tree579da5644618b543ba298804c01ccf10df2440d0 /ldso
parentcf3299b4a7621128279ec8a6ab928e95fd5848b3 (diff)
downloaduClibc-alpine-5952806e050a8494cdff3368b144de206def8780.tar.bz2
uClibc-alpine-5952806e050a8494cdff3368b144de206def8780.tar.xz
Make sh4 build works again adding a temporary work-around
iby redefining __always_inline to inline until gcc 4.x.x will get fixed. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Diffstat (limited to 'ldso')
-rw-r--r--ldso/ldso/sh/dl-syscalls.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/ldso/ldso/sh/dl-syscalls.h b/ldso/ldso/sh/dl-syscalls.h
index 7902f362d..d3672512f 100644
--- a/ldso/ldso/sh/dl-syscalls.h
+++ b/ldso/ldso/sh/dl-syscalls.h
@@ -4,8 +4,11 @@
extern int _dl_errno;
#undef __set_errno
#define __set_errno(X) {(_dl_errno) = (X);}
-#warning !!! __always_inline redefined waiting for the fixed gcc
-#ifdef __always_inline
-#undef __always_inline
-#define __always_inline inline
+
+#if __GNUC_PREREQ (4, 1)
+#warning !!! gcc 4.1 and later have problems with __always_inline so redefined as inline
+# ifdef __always_inline
+# undef __always_inline
+# define __always_inline inline
+# endif
#endif