[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

configure's __thread test



__thread isn't used in any .c files, but the configure script tests for
it.  gcc's docs say

    The `__thread' specifier may be applied to any global, file-scoped
    static, function-scoped static, or static data member of a class.  It
    may not be applied to block-scoped automatic or non-static data member.

The code that the configure script tries to compile is

#include "confdefs.h"

int main() {
__thread int testvar;
; return 0; }

which, given the above, fails to compile with any recent gcc.


Faried.
-- 
The Great GNU has arrived, infidels, behold his wrath !
"If a MOO runs on a port no one accesses, does it run?"