From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LSQtS-00075P-Ms for mharc-grub-devel@gnu.org; Thu, 29 Jan 2009 02:00:54 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LSQtQ-00074K-3a for grub-devel@gnu.org; Thu, 29 Jan 2009 02:00:52 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LSQtM-00073Q-Ui for grub-devel@gnu.org; Thu, 29 Jan 2009 02:00:49 -0500 Received: from [199.232.76.173] (port=51360 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LSQtM-00073F-Hb for grub-devel@gnu.org; Thu, 29 Jan 2009 02:00:48 -0500 Received: from mailout05.t-online.de ([194.25.134.82]:51183) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LSQtL-0004XX-J1 for grub-devel@gnu.org; Thu, 29 Jan 2009 02:00:48 -0500 Received: from fwd08.aul.t-online.de by mailout05.sul.t-online.de with smtp id 1LSQtJ-0003Mt-04; Thu, 29 Jan 2009 08:00:45 +0100 Received: from [10.3.2.2] (GvEgZBZFohd4RkglRJiMYr2I5OOVb5aLEmKmD4tvjaPd4CS2BGjw5434bzxrsvgZk5@[217.235.219.111]) by fwd08.aul.t-online.de with esmtp id 1LSQtD-11YDnE0; Thu, 29 Jan 2009 08:00:39 +0100 Message-ID: <49815418.7010302@t-online.de> Date: Thu, 29 Jan 2009 08:00:40 +0100 From: Christian Franke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080702 SeaMonkey/1.1.11 MIME-Version: 1.0 To: The development of GRUB 2 References: <20090125231241.GA27873@thorin> <497E1596.7040802@t-online.de> <1233008230.24663.8.camel@localhost> <497F42B0.3060201@t-online.de> <1233078009.2937.12.camel@localhost> <497F670B.6080902@t-online.de> <1233093179.6503.5.camel@localhost> In-Reply-To: <1233093179.6503.5.camel@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ID: GvEgZBZFohd4RkglRJiMYr2I5OOVb5aLEmKmD4tvjaPd4CS2BGjw5434bzxrsvgZk5 X-TOI-MSGID: 31c798d1-cf67-44c1-8d16-8de6f4dd01f8 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: [PATCH] remove target_os X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jan 2009 07:00:52 -0000 Javier Martín wrote: > El mar, 27-01-2009 a las 20:56 +0100, Christian Franke escribió: > >> Is building a bare 'no-OS' compiler supported by the upstream GCC sources? >> Probably a too strict prerequisite for building GRUB. >> > > I can't vouch so for all possible environments, but I can say that > "clean" no-OS targets like i386-pc-elf exist at least for x86 and x86_64 > (this last being added as of GCC 4.3.2). However, as I said, if > -ffreestanding does not do its job of providing a "true" freestanding > environment (i.e. without relying on _any_ external libraries or > syscalls, as opposite to the usual hosted environment), a bug report > should be posted. > > I haven't examined more recent gcc sources yet, the extra effect of -ffreestanding on 4.3.1 is a no-op if the program does not use main(). How do those no-OS targets handle the platform independent libgcc functions, e.g. __divdi3 which is used for 64bit integer division at least on i386 ? Is a no-OS version of libgcc provided or should the programmer handle these cases ? Christian