Re: [BUG] GCC 3.4-20041224: __attribute__ ((regparm)) misbehaviour

Denis Zaitsev <[email protected]>
Newsgroups gmane.linux.gcc,gmane.comp.gcc.devel
Message-ID <[email protected]>
On Mon, Dec 27, 2004 at 10:49:46PM -0500, Andrew Pinski wrote:
> 
> 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.

Hmm...  Is it regparm-only related?  And is it something new though?
GCC 3.3.x doesnt show this behaviour.
-
To unsubscribe from this list: send the line "unsubscribe linux-gcc" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.