linux-gcc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] GCC 3.4-20041224: __attribute__ ((regparm)) misbehaviour
@ 2004-12-28  3:44 Denis Zaitsev
  2004-12-28  3:49 ` Andrew Pinski
  0 siblings, 1 reply; 5+ messages in thread
From: Denis Zaitsev @ 2004-12-28  3:44 UTC (permalink / raw)
  To: gcc, linux-gcc

This program:


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:


y-bug.c:7: error: conflicting types for 'x'
y-bug.c:3: error: previous declaration of 'x' was here
y-bug.c:7: error: conflicting types for 'x'
y-bug.c:3: error: previous declaration of 'x' was here


It seems that it's a bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-12-28  4:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-28  3:44 [BUG] GCC 3.4-20041224: __attribute__ ((regparm)) misbehaviour Denis Zaitsev
2004-12-28  3:49 ` Andrew Pinski
2004-12-28  3:54   ` Denis Zaitsev
2004-12-28  3:57     ` Andrew Pinski
2004-12-28  4:04       ` Denis Zaitsev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).