Question about gcc-3.3.3 and __attribute__ usage

Ian Lance Taylor ian@wasabisystems.com
Sat Mar 6 16:11:00 GMT 2004


Tom Williams <tomdkat@comcast.net> writes:

> Apparently, the Linux 2.6 kernel headers were changed to use
> __attribute_const__ syntax instead of __attribute__((const)):

__attrbute_const__ is not valid gcc syntax.

However, it is a preprocessor macro defined by the Linux sources which
expands into valid gcc syntax.  I think the file is
include/linux/compiler.h, or some such.

Ian



More information about the Gcc-help mailing list