public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Vladimir 'phcoder' Serbinenko" <phcoder@gmail.com>
To: Paolo Bonzini <bonzini@gnu.org>
Cc: The development of GRUB 2 <grub-devel@gnu.org>, gcc@gnu.org
Subject: Re: [RFC] Eliminate NESTED_ATTR_FUNC
Date: Thu, 03 Sep 2009 16:52:00 -0000	[thread overview]
Message-ID: <d7ead6de0909030952g3ac70425s627b5ead3286a826@mail.gmail.com> (raw)
In-Reply-To: <4A9FE6AD.9010509@gnu.org>

On Thu, Sep 3, 2009 at 5:54 PM, Paolo Bonzini<bonzini@gnu.org> wrote:
>
>>> #include<stdio.h>
>>>
>>> void foo (int a, int b, void (*hook) (int aa, int bb, int cc))
>>> {
>>>  b += a;
>>>  hook (a, b, a + b);
>>> }
>>>
>>> void qq (int a)
>>> {
>>>  auto void q1 (int aa, int bb, int cc);
>>>  void q1 (int aa, int bb, int cc)
>>>    {
>>>      printf ("%d %d %d\n", a, aa + bb, cc);
>>>    }
>>>
>>>  foo (a, a + 1, q1);
>>> }
>>>
>>> int main()
>>> {
>>>  qq (10);
>>> }
>>>
>>> Compile with:
>>> gcc -m32 -mregparm=3 -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?  Also can you write in the report what was your analysis with
> respect to regparm?
Done by Robert Millan here: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41246
>
> Thanks!
>
> Paolo
>



-- 
Regards
Vladimir 'phcoder' Serbinenko

Personal git repository: http://repo.or.cz/w/grub2/phcoder.git

      reply	other threads:[~2009-09-03 16:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <d7ead6de0909010642yd2e4a96r565ce5328d65b078@mail.gmail.com>
     [not found] ` <ca0f59980909010843w2bf56745j138f479732b1f721@mail.gmail.com>
     [not found]   ` <ca0f59980909012120m2c422e6flef0e9ba607036542@mail.gmail.com>
2009-09-03 15:06     ` Vladimir 'phcoder' Serbinenko
2009-09-03 15:54       ` Paolo Bonzini
2009-09-03 16:52         ` Vladimir 'phcoder' Serbinenko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d7ead6de0909030952g3ac70425s627b5ead3286a826@mail.gmail.com \
    --to=phcoder@gmail.com \
    --cc=bonzini@gnu.org \
    --cc=gcc@gnu.org \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).