https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118280
--- Comment #8 from Mikael Pettersson <mikpelinux at gmail dot com> --- According to glibc's sysdeps/microblaze/atomic-machine.h, microblaze cannot do atomic operations on bytes or shorts, but __atomic_test_and_set is defined to operate on a single byte, which would make it unimplementable on microblaze. Still, seems to me that whoever uses the atomics should size them appropriately for the target.