Date: Sat, 15 Jun 2002 12:49:29 -0700 From: Maxime Henrion <mux@freebsd.org> To: current@FreeBSD.org Cc: Terry Lambert <tlambert2@mindspring.com> Subject: Re: duplicate -ffreestanding in kernel build Message-ID: <20020615194929.GQ85244@elvis.mu.org> In-Reply-To: <3D0B9888.372EAA3E@mindspring.com> References: <20020615191003.I747-100000@gamplex.bde.org> <3D0B9888.372EAA3E@mindspring.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Terry Lambert wrote: > What exactly does this do, besides implying "-fno-builtin"? > > The documentation says "and implies main has no special requirements"... > > Neither the kernel nor modules have a "main", so the only thing that's > relevent here is the "-fno-builtin", right? IIRC, -ffreestanding prevented GCC3 from being stupid optimizations like changing occurences of printf("constant string\n") to puts("constant string"), which failed for kernel builds since we don't have puts() in the kernel... Maxime To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020615194929.GQ85244>