https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120086
--- Comment #15 from Jørgen Kvalsvik <j at lambda dot is> --- I don't know why it's only defined for rtems, but I would imagine it's either an oversight, or that it's the only target with libatomic support without hardware atomics. Is there a libatomic for hppa, or hardware atomics? Does testsuite/g++.dg/gcov/gcov-threads-1.C pass? tree-profile.cc checks for HAVE_sync_compare_and_swapdi, HAVE_atomic_compare_and_swapdi. Are these defined for hppa? > There's something wierd happening with gcov-pr86536.c. It doesn't always fail. That test seems unrelated the %zu at least.