2.1.98 + alpha + gcc-2.8.1

Thomas Pornin (bip@orion.ens.fr)
Wed, 29 Apr 1998 14:16:11 +0200


Hello,

I have an alpha (RedHat-5.0) with gcc-2.8.1. The compile fails on the
following part of include/asm-alpha/string.h:

#if __GNUC__ > 2 || __GNUC_MINOR__ >= 8
#define memset(s, c, n) \
(__builtin_constant_p(c) \
? (__builtin_constant_p(n) && (c) == 0 \
? __builtin_memset((s),0,(n)) \
: __constant_c_memset((s),0x0101010101010101UL*(unsigned char)(c),(n))) \
: __memset((s),(c),(n)))
#else
#define memset(s, c, n) \
(__builtin_constant_p(c) \
? __constant_c_memset((s),0x0101010101010101UL*(unsigned char)(c),(n)) \
: __memset((s),(c),(n)))
#endif

At the linking stage, ld does not find __builtin_memset. I had to replace
the first line (#if __GNUC__ > 2...) by a #if 0, in order to compile and boot
(which works fine for the moment).

Is this a kernel bug, or a gcc bug, or did I make a bad installation of gcc ?

--Thomas Pornin

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu