The GCC __atomic_ functions were removed already in commit 2b47f8ff03, and starting with MariaDB Server 10.4, InnoDB relies mostly on C++11 std::atomic.
2b47f8ff03