[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC] Eliminate NESTED_ATTR_FUNC
From: |
Vladimir 'phcoder' Serbinenko |
Subject: |
Re: [RFC] Eliminate NESTED_ATTR_FUNC |
Date: |
Thu, 3 Sep 2009 18:52:32 +0200 |
On Thu, Sep 3, 2009 at 5:54 PM, Paolo Bonzini<address@hidden> 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
- Re: [RFC] Eliminate NESTED_ATTR_FUNC, (continued)
- Re: [RFC] Eliminate NESTED_ATTR_FUNC, Bean, 2009/09/01
- Re: [RFC] Eliminate NESTED_ATTR_FUNC, Yves Blusseau, 2009/09/01
- Re: [RFC] Eliminate NESTED_ATTR_FUNC, David Miller, 2009/09/01
- Re: [RFC] Eliminate NESTED_ATTR_FUNC, Vladimir 'phcoder' Serbinenko, 2009/09/03
- Re: [RFC] Eliminate NESTED_ATTR_FUNC, David Miller, 2009/09/03
- Message not available
- Message not available
- Fwd: [RFC] Eliminate NESTED_ATTR_FUNC, Vladimir 'phcoder' Serbinenko, 2009/09/06
- Re: Fwd: [RFC] Eliminate NESTED_ATTR_FUNC, Robert Millan, 2009/09/08
Re: [RFC] Eliminate NESTED_ATTR_FUNC, Bean, 2009/09/02
Re: [RFC] Eliminate NESTED_ATTR_FUNC, Robert Millan, 2009/09/03
Re: [RFC] Eliminate NESTED_ATTR_FUNC, Felix Zielcke, 2009/09/03
Re: [RFC] Eliminate NESTED_ATTR_FUNC, Vladimir 'phcoder' Serbinenko, 2009/09/03
Re: [RFC] Eliminate NESTED_ATTR_FUNC, Bean, 2009/09/03