http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58366
--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> --- In my opinion, the only hope to make progress about this issue is that somebody knowledgeable about that target reduces the test to 20/30 lines of code with no includes. Because, as is, with hundreds of kbytes of preprocessed code, and an error about an illegal instruction which means nothing to the bulk of GCC developers working mostly on linux, it could be anything, literally. Personally, I don't even know whether thread local storage works fine with gcc4.8.1 on darwin. For example, did you run the gcc and libstdc++ testsuites on that machine? Are they clean?