From bc201df6b8f9989c329b7fd21bb5bcccfba9c56b Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 13 Jun 2003 21:54:21 +0000 Subject: 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. --- share/mk/bsd.sys.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'share/mk/bsd.sys.mk') diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index e8affb9..10c28c4 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -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 -- cgit v1.1