https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78357
Chung-Lin Tang <cltang at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cltang at gcc dot gnu.org --- Comment #1 from Chung-Lin Tang <cltang at gcc dot gnu.org> --- Sebastian, I'm not sure what your problem is. The atomics in nios2 are implemented by __sync_* functions placed in libgcc. The built-in function expansion inside GCC is aware of this, and __atomic_* functions get mapped to those. Is there anything affecting your use? libatomic is usually supported by those targets with more "rich" atomic instructions, and nios2 in its current form is obviously not one of them.