gcc compiles - add -fno-builtin so that gcc optimisations don't break things.

- 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
This commit is contained in:
Ben Gras 2010-08-31 16:42:44 +00:00
parent b1847ae244
commit b3c3a1cb1e
2 changed files with 2 additions and 1 deletions

View 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

View file

@ -1 +1,2 @@
AFLAGS+=-D__ASSEMBLY__ -D_EM_WSIZE=4 -D__minix
CFLAGS+= -fno-builtin