Maule Mark <[email protected]> wrote: > Hi all: > > I have some code which constructs unique symbol names at compile time and > assigns a static value to them. For esample: > > func() > { > static const char * __attribute__ ((used)) <unique_symbol_name> = <some > value>; > > ... > }
This is a GCC 3.2 or later feature.... I use something like: #if __GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 1 /* CSTYLED */ #define UConst __attribute__ ((__used__)) const #else /* GNUC 3.2 */ #define UConst const #endif /* GNUC 3.2 */ in my code. Jörg -- EMail:[email protected] (home) Jörg Schilling D-13353 Berlin [email protected] (uni) [email protected] (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily _______________________________________________ tools-compilers mailing list [email protected]
