This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Denis Zaitsev <zzz@anda.ru> wrote:

> static
> int x(int y)
> __attribute__ ((regparm(1)));
>
> static
> int x(int y)
> {
>     return y;
> }
>
>
> can't be compiled with GCC 3.4.4 20041224.  The compiler complains:

It's just a new behaviour in GCC 3.4. I think we ought to document this in
http://gcc.gnu.org/gcc-3.4/changes.html.

Giovanni Bajo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]