diff options
-rw-r--r-- | include/stdlib.h | 2 | ||||
-rw-r--r-- | 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 b04f6a0..39dc469 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 4f44db7..657c114 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__*/ |