For now, s/c99/gnu99/ for WARNS=4. This is so that alloca() is defined (and

possibly other built-in functions). Another solution would be to add:

    #ifdef __GNUC__
    #define alloca(a) __builtin_alloca(a)
    #else
    void *alloca(size_t);
    #endif

in stdlib.h, since we have assembly support for some architectures on
non-gcc environments, and we can add the rest.
This commit is contained in:
christos 2005-12-02 21:34:50 +00:00
parent a7477788d0
commit 48d8900cac
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.sys.mk,v 1.124 2005/09/02 03:57:10 jwise Exp $
# $NetBSD: bsd.sys.mk,v 1.125 2005/12/02 21:34:50 christos Exp $
#
# Build definitions used for NetBSD source tree builds.
@ -36,7 +36,7 @@ CXXFLAGS+= -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder \
-Woverloaded-virtual -Wno-pmf-conversions -Wsign-promo -Wsynth
.endif
.if ${WARNS} > 3 && ${MACHINE_ARCH} != "vax"
CFLAGS+= -std=c99
CFLAGS+= -std=gnu99
.endif
.endif