Re: const versus __attribute__((const))

H. Peter Anvin
2003-12-08T18:32:04Z

Nikita Danilov wrote:
> >
> > These functions are available to userspace, though, and can be compiled
> > with -O0; thus not inlined.
>
> And future versions of gcc can be smarter.
>

Actually, the reason it doesn't use it for the inlines is because it
doesn't need to -- it already has full visibility, so it doesn't need it
to be spelled out.

So it would be an issue if gcc got dumber, not smarter.

-hpa