Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MjFYD-00017w-QU for mharc-grub-devel@gnu.org; Thu, 03 Sep 2009 12:52:45 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MjFYB-00012E-8f for grub-devel@gnu.org; Thu, 03 Sep 2009 12:52:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MjFY6-0000ph-D0 for grub-devel@gnu.org; Thu, 03 Sep 2009 12:52:42 -0400 Received: from [199.232.76.173] (port=34749 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MjFY6-0000pK-8y for grub-devel@gnu.org; Thu, 03 Sep 2009 12:52:38 -0400 Received: from mail-fx0-f226.google.com ([209.85.220.226]:36790) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MjFY2-0001Wg-Pi; Thu, 03 Sep 2009 12:52:34 -0400 Received: by fxm26 with SMTP id 26so84095fxm.42 for ; Thu, 03 Sep 2009 09:52:32 -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:cc:content-type :content-transfer-encoding; bh=aZHBJDEh0fL+pgvVxFGSZJ4+OeVT0NQVm/zLpfp1+jM=; b=sB43T0mev5BjZNuJhRAbR53pJUkNO8HUXIxcQgKrLaEgnkItPSSvjwNpYm35L6u4z8 LpWcPMF8GGNbdhz46fJMxGS9TwIPxmPcQaE4BnIJ4lHmXUo93g6EWfqQ6MSuVc/TexuD NCoBQiTO0bNBlK/l8+x5rgjqDkfVUeZ/UBZPk= 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 :cc:content-type:content-transfer-encoding; b=U2tIMWGiGIf8ve8xavSE/PmI7FEt/sPz/TsfBDH6v0+ZK+e6QJMUpq9lr6WBbQclB0 mGK9irDnXmxykE3C7KoyoSVe59iVO3z+OHo3guQa8IkiVX9NGx2eRsqvhum/+X/YaG6A ot+9U5T/0NNv0XZ+TbQdwq9JCLvInVBeYLZ+4= MIME-Version: 1.0 Received: by 10.204.10.140 with SMTP id p12mr824117bkp.76.1251996752376; Thu, 03 Sep 2009 09:52:32 -0700 (PDT) In-Reply-To: <4A9FE6AD.9010509@gnu.org> References: <4A9FE6AD.9010509@gnu.org> Date: Thu, 3 Sep 2009 18:52:32 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: Paolo Bonzini 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) Cc: The development of GRUB 2 , gcc@gnu.org 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 16:52:43 -0000 On Thu, Sep 3, 2009 at 5:54 PM, Paolo Bonzini wrote: > >>> #include >>> >>> void foo (int a, int b, void (*hook) (int aa, int bb, int cc)) >>> { >>> =A0b +=3D a; >>> =A0hook (a, b, a + b); >>> } >>> >>> void qq (int a) >>> { >>> =A0auto void q1 (int aa, int bb, int cc); >>> =A0void q1 (int aa, int bb, int cc) >>> =A0 =A0{ >>> =A0 =A0 =A0printf ("%d %d %d\n", a, aa + bb, cc); >>> =A0 =A0} >>> >>> =A0foo (a, a + 1, q1); >>> } >>> >>> int main() >>> { >>> =A0qq (10); >>> } >>> >>> Compile with: >>> gcc -m32 -mregparm=3D3 -Os test.c >>> >>> ./a.out >>> 10 31 -6674368 > > Ok, this was the only important part of the message to us GCC hackers. :-= ) > > Can you please report a bug in bugzilla, saying which versions work and > which fail? =A0Also can you write in the report what was your analysis wi= th > respect to regparm? Done by Robert Millan here: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D4= 1246 > > Thanks! > > Paolo > --=20 Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git