https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118977
--- Comment #3 from Joel Sherrill <joel at gcc dot gnu.org> --- Sorry. Submitted accidentally while incomplete. (In reply to Andrew Pinski from comment #1) > >And our test compiles and links fine on that. > > That is because arm has defined __atomic_test_and_set in the libgcc. That symbol is not in the arm-rtems libgcc.a and I do not see this symbol in config/m68k/atomic-linux.c or anywhere else. > > So m68k will need to defined one and I suspect it will be specific to rtems > too. I assumed that something would need to be implemented. I just don't see an example that provides that symbol. Advice appreciated.