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



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


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