[PATCH v2 5/5] misc: Enable tst-atomic for clang

Adhemerval Zanella adhemerval.zanella@linaro.org
Fri Dec 19 18:52:24 GMT 2025


The atomic.h macros now uses compiler builtins.
---
 misc/tst-atomic.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/misc/tst-atomic.c b/misc/tst-atomic.c
index 5537354def..04eff6eecd 100644
--- a/misc/tst-atomic.c
+++ b/misc/tst-atomic.c
@@ -16,7 +16,6 @@
    License along with the GNU C Library; if not, see
    <https://www.gnu.org/licenses/>.  */
 
-#ifndef __clang__
 #include <stdio.h>
 #include <atomic.h>
 
@@ -253,12 +252,4 @@ do_test (void)
 }
 
 #include <support/test-driver.c>
-#else
-#include <support/test-driver.h>
 
-int
-main (void)
-{
-  return EXIT_UNSUPPORTED;
-}
-#endif
-- 
2.43.0



More information about the Libc-alpha mailing list