Re: const versus __attribute__((const))
From: H. Peter Anvin
Date: Mon Dec 08 2003 - 13:33:38 EST
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/