------- Comment #1 from hp at gcc dot gnu dot org 2008-12-18 22:21 ------- Oops, forgot the code:
extern __thread char xyzzy[64] __attribute__ ((tls_model ("initial-exec") #ifdef H , visibility ("hidden") #endif )); char * foo (void) { return xyzzy+9; } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38574