This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [BUG] GCC 3.4-20041224: __attribute__ ((regparm)) misbehaviour
- From: "Giovanni Bajo" <giovannibajo at libero dot it>
- To: "Denis Zaitsev" <zzz at anda dot ru>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Tue, 28 Dec 2004 05:07:05 +0100
- Subject: Re: [BUG] GCC 3.4-20041224: __attribute__ ((regparm)) misbehaviour
- References: <20041228084407.C1437@natasha.ward.six>
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