Re: 2.1.98 + alpha + gcc-2.8.1

Steven N. Hirsch (shirsch@ibm.net)
Wed, 29 Apr 1998 17:54:42 -0400 (EDT)


On Wed, 29 Apr 1998, Thomas Pornin wrote:

> 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 ?

When you find out, would you let me know? I've been asking about this
repeatedly. If __builtin_memset() is actually built-in, I've yet to find
out which variant contains it. No luck for gcc-2.7.2.x, nor egcs-1.0.1
and 1.0.2. And, yes, I made the same patch to get around it <g>.

Steve

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