We cannot use c99 on amd64 either due to lack of alloca(). libc:strptime()

uses alloca() and alloca is impossible to implement as a callable function
on amd64.  It has to be a compiler builtin.  Note that the bigger problem
is that libc is not c99 clean internally.
This commit is contained in:
Peter Wemm 2003-06-13 21:54:21 +00:00
parent ada24e690c
commit 333c9db6d0

View File

@ -8,9 +8,10 @@
# for GCC: http://gcc.gnu.org/onlinedocs/gcc-3.0.4/gcc_3.html#IDX143
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
.if ${MACHINE_ARCH} == "i386"
CSTD ?= c99
.elif ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "powerpc"
.elif ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "powerpc" || \
${MACHINE_ARCH} == "amd64"
# Can't use "c99" below due to lack of alloca.S for non-i386 platforms.
CSTD ?= gnu99
.else