Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MkLIL-00078E-EX for mharc-grub-devel@gnu.org; Sun, 06 Sep 2009 13:12:53 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MkLIJ-000789-Ld for grub-devel@gnu.org; Sun, 06 Sep 2009 13:12:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MkLIF-00074z-3N for grub-devel@gnu.org; Sun, 06 Sep 2009 13:12:51 -0400 Received: from [199.232.76.173] (port=54093 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MkLIE-00074s-Vl for grub-devel@gnu.org; Sun, 06 Sep 2009 13:12:47 -0400 Received: from mail-fx0-f226.google.com ([209.85.220.226]:42189) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MkLIE-0008Kl-MV for grub-devel@gnu.org; Sun, 06 Sep 2009 13:12:46 -0400 Received: by fxm26 with SMTP id 26so1674810fxm.42 for ; Sun, 06 Sep 2009 10:12:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=GWDKbcife4Uwt5FrB6Wm9nAEEQFWYrlNsF+LtJfMFQg=; b=dOkeA2XNoK9kS359/6kRDhPNvOM1B6+DSVbrwAkWHCWNjEsJZmD4VAkurfWa16u8ZR k9SBSTC4lq9ID4BOctg2TkgFgLzmVdMj0rwa0efdVW4KBlCw4y6E8FhEXcEWV4JUhq4U UzfXyS5jEat7Cgu476RA7cTKZ5Pcf6KADDwPY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=bkQq2VUWSUhjIRrertfyBuQiezTQVobmnHn2FofGPlXTCxBMWZ6AWylJnkDBYjxwu/ WvS3iCJUTthAI4CeW7tPXrDZPhYNl/P56n980Gz1+SGtmPx4q6zBjB1sNDvADo2rwTcc XhlO7SZ8MG/mhV4wV78LL7i0i/QiIzZEfvlTc= MIME-Version: 1.0 Received: by 10.204.163.5 with SMTP id y5mr11186888bkx.37.1252257165493; Sun, 06 Sep 2009 10:12:45 -0700 (PDT) In-Reply-To: <20090905.152320.164499705.davem@davemloft.net> References: <20090903.161716.111781837.davem@davemloft.net> <20090905.152320.164499705.davem@davemloft.net> Date: Sun, 6 Sep 2009 19:12:45 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Fwd: [RFC] Eliminate NESTED_ATTR_FUNC 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: Sun, 06 Sep 2009 17:12:52 -0000 ---------- Forwarded message ---------- From: David Miller Date: Sun, Sep 6, 2009 at 12:23 AM Subject: Re: [RFC] Eliminate NESTED_ATTR_FUNC To: phcoder@gmail.com From: "Vladimir 'phcoder' Serbinenko" Date: Sat, 5 Sep 2009 23:04:00 +0200 > On Fri, Sep 4, 2009 at 1:17 AM, David Miller wrote: >> From: "Vladimir 'phcoder' Serbinenko" >> Date: Thu, 3 Sep 2009 17:08:34 +0200 >> >>> I can't agree with designating nested functions as root issue. Imagine >>> tomorrow we discover a bug in "for" loop compiling. This wouldn't be a >>> reason to replace all "for"s with "while"s. The root issue is compiler >>> bug and it should be fixed >> >> I can tell you that in kernel land when we encounter a compiler >> bug we usually have to simply cope with it somehow, and if that >> means rearranging some loop to not trigger a bug that is sometimes >> what it indeed does mean. > I would consider this as shooting oneself in a foot - it encourages > compilers not to fix bugs. I would consider it a way to be considerate to one's users. We do file the bugs, but we recognize that 1) the fix won't propagate for months, if that and 2) requiring a compiler update decreases our testing base which is the most important thing we have. Do you get that? =A0"The size of your tester base is the most important thing you have." > What about compiling with -mregparam=3D1 and displaying a warning if bug > is detected? This way users still be yable to use older gcc's just > with a cost of some core size Sure, that might work. --=20 Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git