From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NNvem-0003gn-6W for mharc-grub-devel@gnu.org; Thu, 24 Dec 2009 16:55:40 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NNvej-0003gG-0S for grub-devel@gnu.org; Thu, 24 Dec 2009 16:55:37 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NNved-0003ed-3l for grub-devel@gnu.org; Thu, 24 Dec 2009 16:55:35 -0500 Received: from [199.232.76.173] (port=39970 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NNvec-0003eN-WF for grub-devel@gnu.org; Thu, 24 Dec 2009 16:55:31 -0500 Received: from xvm-190-8.ghst.net ([217.70.190.8]:40046 helo=aybabtu.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NNveb-0005VX-Fl for grub-devel@gnu.org; Thu, 24 Dec 2009 16:55:29 -0500 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtp (Exim 4.69) (envelope-from ) id 1NNveY-0000A8-T9; Thu, 24 Dec 2009 22:55:27 +0100 Received: from rmh by thorin with local (Exim 4.69) (envelope-from ) id 1NNveY-0003KB-8D; Thu, 24 Dec 2009 22:55:26 +0100 Date: Thu, 24 Dec 2009 22:55:26 +0100 From: Robert Millan To: The development of GNU GRUB Message-ID: <20091224215526.GQ12122@thorin> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: gregoire.sutre@labri.fr Subject: Re: Fix for grub_assert_fail undefined on NetBSD and other platforms X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Dec 2009 21:55:37 -0000 On Tue, Dec 22, 2009 at 09:39:07PM +0530, BVK Chaitanya wrote: > Hi > > > Attached is the patch, which removes use of undefined grub_assert_fail > function for catching bad-type-cast errors, with a better version > __attribute__((error("msg"))) gcc extension. With this extension, gcc > can give the exact location of the bad type cast at compile time. Is this really a kind of error we'd like to report at run time? Sorry if I'm missing something, but if we need additional code to handle it, and it was known at compile time, why do we do this? -- Robert Millan "Be the change you want to see in the world" -- Gandhi