Re: [BUG] GCC 3.4-20041224: __attribute__ ((regparm)) misbehaviour
Andrew Pinski <[email protected]> Mon, 27 Dec 2004 22:49:46 -0500
| Newsgroups | org.kernel.vger.linux-gcc |
|---|---|
| Message-ID | <[email protected]> |
On Dec 27, 2004, at 10:44 PM, Denis Zaitsev wrote:
> This program:
>
>
> static
> int x(int y)
> __attribute__ ((regparm(1)));
>
> static
> int x(int y)
> {
> return y;
> }
>
No this is not a bug. You need regparm attribute on the function
definition too.
-- Pinski