Fix for 2.1.95 on alpha

Steven N. Hirsch (shirsch@ibm.net)
Sat, 11 Apr 1998 22:59:30 -0400 (EDT)


All,

Under egcs, include/asm-alpha/string.h seems to want "__builtin_memset".
Unfortunately, it is missing in action for egcs-1.0.1 and 1.0.2. This
workaround lets the build complete:

--- linux/include/asm-alpha/string.h.orig Fri Apr 10 06:25:33 1998
+++ linux/include/asm-alpha/string.h Thu Apr 9 19:28:23 1998
@@ -24,7 +24,8 @@
extern void * __constant_c_memset(void *, unsigned long, long);
extern void * __memset(void *, char, size_t);

-#if __GNUC__ > 2 || __GNUC_MINOR__ >= 8
+/* #if __GNUC__ > 2 || __GNUC_MINOR__ >= 8 */
+#if 0
#define memset(s, c, n) \
(__builtin_constant_p(c) \
? (__builtin_constant_p(n) && (c) == 0 \

Steve

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