Re: [PATCH/RFC] m68k: Add -ffreestanding to KBUILD_CFLAGS

Thorsten Glaser
2013-04-23T15:00:48Z

Geert Uytterhoeven <geert <at> linux-m68k.org> writes:

> QUESTION: Should we re-enable -ffreestanding in the main Makefile instead?

+1

It is wrong to not compile a kernel or bootloader with -ffreestanding
(and -ffreestanding implying -fno-builtin is *also* correct; kernels
and bootloaders can use stuff like __builtin_strlen explicitly if/when
desired *and* aware of the side effects).

FWIW, adding -ffreestanding to the kernel I inherited from OpenBSD
fixed several issues at once…

bye,
//mirabilos