Re: [PATCH] Fix gcc 4 warnings on ia64

david mosberger
2005-08-17T01:30:09Z

On 8/16/05, Andi Kleen <ak@suse.de> wrote:

> And for an inline __attribute__((const)) is a nop because the compiler
> always looks at the code inside the inline and decides based
> on that if the return value is constant or not.

Not if the function contains an "asm", which is what used to be there.
It later got changed to reading a global, so I agree that the
__attribute_const__ is no longer necessary.

--david
--
Mosberger Consulting LLC, voice/fax: 510-744-9372,
http://www.mosberger-consulting.com/
35706 Runckel Lane, Fremont, CA 94536