https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78694
--- Comment #2 from Sebastian Huber <sebastian.hu...@embedded-brains.de> --- (In reply to ktkachov from comment #1) > what is the configuration you're trying to build? A bare metal ARM EABI compiler should reproduce the problem. I try to build the arm-rtems4.12-gcc with a patch to enable use of thread-local storage. See also: https://gcc.gnu.org/ml/gcc/2016-12/msg00010.html