[PATCH v2 5/5] misc: Enable tst-atomic for clang
H.J. Lu
hjl.tools@gmail.com
Sat Dec 20 00:03:03 GMT 2025
On Sat, Dec 20, 2025 at 2:54 AM Adhemerval Zanella
<adhemerval.zanella@linaro.org> wrote:
>
> 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
>
LGTM.
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
Thanks.
--
H.J.
More information about the Libc-alpha
mailing list