mipsel memcpy & gcc3.4.6
Alexander Voropay
alec at sensi.org
Mon Jan 7 15:29:43 UTC 2008
2008/1/5, Mike Frysinger <vapier at gentoo.org>:
> On Saturday 05 January 2008, Alexander Voropay wrote:
> > Can anyone help with this issue ?
> >
> > I've opened a bug in the busybox tracking system:
> >
> > http://busybox.net/bugs/view.php?id=1894
>
> i already told you it wasnt a bug in uClibc ...
It seems, GCC 3.4.6 preprocessor supports ## concatenations
incorrectly. I've took ENTRY definition from the "sysdeps.h" of the
ia64/sysdeps.h It works.
===============================================
--- libc/string/mips/sysdep.h.OLD 2008-01-07 18:17:44.165170520 +0300
+++ libc/string/mips/sysdep.h 2008-01-07 17:34:29.000000000 +0300
@@ -25,11 +25,18 @@
#include <sgidefs.h>
#include <sys/regdef.h>
-#define ENTRY(name) \
- .globl name; \
- .align 2; \
- .ent name,0; \
- name##:
+#ifdef __STDC__
+#define C_LABEL(name) name :
+#else
+#define C_LABEL(name) name/**/:
+#endif
+
+#define ENTRY(name) \
+ .text; \
+ .align 2; \
+ .ent name,0; \
+ .globl name; \
+ C_LABEL(name)
#undef END
#define END(function) \
===========================================
More information about the uClibc
mailing list