Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MjEik-0001It-D5 for mharc-grub-devel@gnu.org; Thu, 03 Sep 2009 11:59:34 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MjEii-0001IC-RT for grub-devel@gnu.org; Thu, 03 Sep 2009 11:59:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MjEid-0001EY-VO for grub-devel@gnu.org; Thu, 03 Sep 2009 11:59:32 -0400 Received: from [199.232.76.173] (port=43242 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MjEid-0001EV-SU for grub-devel@gnu.org; Thu, 03 Sep 2009 11:59:27 -0400 Received: from mail-bw0-f220.google.com ([209.85.218.220]:45578) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MjEid-00085c-FV for grub-devel@gnu.org; Thu, 03 Sep 2009 11:59:27 -0400 Received: by bwz20 with SMTP id 20so41463bwz.42 for ; Thu, 03 Sep 2009 08:59:23 -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=TSwxiJIiKI9V/u1i87D0uWrc05kCUR/fuAzeK0XpsU8=; b=ab5HCOhrlBBwanB9EZA89JgbeA/VsV05p/RJ4niWOgGdBUnTr5i2lOFQ/YhdsyFBH+ C1SD+XSB4GjJp6BQhOPgfK4RcJP31988YyLIT/H0joKAbK8WWWovNVbML3VrWk6mcJjX ZLuftWSiwf3PLfpfkN8U0wtxjI/j1AhXkNACY= 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=B8xpnpHBXOXrHW9rrFuXLpV7ihf0rFzJJqMSlsBoj66HZeuMPxbELp45+hpLx6gZXE Yza3dKjj08sx0OlgOHlp1PR0ufp1RPqdAJ/jeGrf2NSqbq+30ErPxc9uxwkvZ1+0/AsR uayptku46HCOQUw7ml04uNsah3izBdq1DVjSM= MIME-Version: 1.0 Received: by 10.204.160.85 with SMTP id m21mr7996537bkx.175.1251993562531; Thu, 03 Sep 2009 08:59:22 -0700 (PDT) In-Reply-To: <1251992989.2870.8.camel@fz.local> References: <20090903153623.GA18824@thorin> <1251992989.2870.8.camel@fz.local> Date: Thu, 3 Sep 2009 17:59:22 +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: Re: [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: Thu, 03 Sep 2009 15:59:33 -0000 On Thu, Sep 3, 2009 at 5:49 PM, Felix Zielcke wrote: > Am Donnerstag, den 03.09.2009, 17:36 +0200 schrieb Robert Millan: >> On Wed, Sep 02, 2009 at 12:20:19PM +0800, Bean wrote: >> > >> > Hi, >> > >> > Oh, I was wrong previously, gcc does respect __attribute__ >> > ((__regparm__ (3))) flag (I forget to add -Os so it still uses stack >> > to store value). And the bug is still there ! Try this test program: >> >> Thanks Bean. =A0I have opened an entry in GCC bugzilla, and submitted yo= ur >> test program in it: >> >> =A0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D41246 >> >> Hopefully they'll fix it in later versions, and hopefully people will >> upgrade soon. =A0In the meantime, we're stuck with it. >> > > Is there any reason why we fallback to regparm 1 and not to regparm 2? > According to the output of the testcase in the above bug report 2 seems > to work too? > The reason to use regparam(3) is to save space. If you analyse and discover that a gain of regparam(3) as opposed to regparam(2) isn't big we should could change to regparam(2). The only drawback is that all asm helpers with >=3D3 arguments need an excplicit attribute regparam(3) > -- > Felix Zielcke > Proud Debian Maintainer > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > --=20 Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git