From 0ab6a0c78789fec967e02534b471ea3eb79aedf8 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Wed, 25 Jun 2003 19:06:40 +0000 Subject: [PATCH] Push the alloca #error warning farther down to play nicer with some out of tree local translator. Requested by: jmallett --- include/stdlib.h | 2 -- lib/libc/i386/gen/alloca.S | 6 ++++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/stdlib.h b/include/stdlib.h index b04f6a0a4d32..39dc46994c1b 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -236,8 +236,6 @@ extern void (*_malloc_message)(const char *, const char *, const char *, #define alloca(sz) __builtin_alloca(sz) #elif defined(lint) void *alloca(size_t); -#else -#error Please add alloca support on all FreeBSD architectures for this compiler. #endif __uint32_t diff --git a/lib/libc/i386/gen/alloca.S b/lib/libc/i386/gen/alloca.S index 4f44db7267f8..657c11424bd9 100644 --- a/lib/libc/i386/gen/alloca.S +++ b/lib/libc/i386/gen/alloca.S @@ -34,7 +34,9 @@ * SUCH DAMAGE. */ -#ifndef __GNUC__ +#if !defined(__GNUC__) && !defined(__INTEL_COMPILER) +#error Please add alloca support for this compiler on FreeBSD. + #if defined(LIBC_SCCS) && !defined(lint) .asciz "@(#)alloca.s 5.2 (Berkeley) 5/14/90" #endif /* LIBC_SCCS and not lint */ @@ -57,4 +59,4 @@ ENTRY(alloca) pushl 0(%ecx) pushl %eax /* dummy to pop at callsite */ jmp *%edx /* "return" */ -#endif /*__GNUC__*/ +#endif /*!__GNUC__*/