From owner-freebsd-current Sat Jun 15 12:49:34 2002 Delivered-To: freebsd-current@freebsd.org Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by hub.freebsd.org (Postfix) with ESMTP id 15DEB37B40E for ; Sat, 15 Jun 2002 12:49:30 -0700 (PDT) Received: by elvis.mu.org (Postfix, from userid 1920) id D8144AE160; Sat, 15 Jun 2002 12:49:29 -0700 (PDT) Date: Sat, 15 Jun 2002 12:49:29 -0700 From: Maxime Henrion To: current@FreeBSD.org Cc: Terry Lambert Subject: Re: duplicate -ffreestanding in kernel build Message-ID: <20020615194929.GQ85244@elvis.mu.org> References: <20020615191003.I747-100000@gamplex.bde.org> <3D0B9888.372EAA3E@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D0B9888.372EAA3E@mindspring.com> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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