]> Zhao Yanbai Git Server - minix.git/commitdiff
gcc compiles - add -fno-builtin so that gcc optimisations don't break things.
authorBen Gras <ben@minix3.org>
Tue, 31 Aug 2010 16:42:44 +0000 (16:42 +0000)
committerBen Gras <ben@minix3.org>
Tue, 31 Aug 2010 16:42:44 +0000 (16:42 +0000)
  - kernel compile was broken with gcc as putchar() was added by gcc in
    stacktrace.c
  - add -fno-builtin everywhere to avoid such problems in the future
  - -fno-builtin in kernel now redundant

kernel/Makefile
share/mk/bsd.gcc.mk

index ae199c5ec53f2af67d49c88eb2909d3ca4b31e01..4a3d3160f973b6a354aff1905c122d75b4246540 100644 (file)
@@ -15,7 +15,7 @@ LDADD+=       -ltimers -lsys
 .if ${COMPILER_TYPE} == "ack"
 LDFLAGS+= -.o
 .elif ${COMPILER_TYPE} == "gnu"
-CPPFLAGS+= -fno-builtin -ffreestanding -fno-stack-protector
+CPPFLAGS+= -ffreestanding -fno-stack-protector
 LDFLAGS+= -T arch/${ARCH}/kernel.lds
 LDFLAGS+= -nostdlib -L/usr/gnu/lib
 CFLAGS+=-march=i386
index 3a2b0185d77e46bf6e128e2812ef0651941f8111..6554b76e22fca59fa751e3f3028a6099b2e44a74 100644 (file)
@@ -1 +1,2 @@
 AFLAGS+=-D__ASSEMBLY__ -D_EM_WSIZE=4 -D__minix
+CFLAGS+= -fno-builtin