https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65578
--- Comment #7 from ktkachov at gcc dot gnu.org ---
(In reply to Tom de Vries from comment #1)
> Tightening the arm_arch_v6_ok test like this would fix the failure:
> ...
> diff --git a/gcc/testsuite/lib/target-supports.exp
> b/gcc/testsuite/lib/target-supports.exp
> index b57f545..75ca0a3 100644
> --- a/gcc/testsuite/lib/target-supports.exp
> +++ b/gcc/testsuite/lib/target-supports.exp
> @@ -2848,6 +2848,11 @@ foreach { armfunc armflag armdef } { v4 "-march=armv4
> -marm" __ARM_ARCH_4__
> #if !defined (DEF)
> #error !DEF
> #endif
> + int
> + f (void)
> + {
> + return 0;
> + }
> } "FLAG" ]
> }
>
> ...
Hi Tom,
Coming back to this, I think this is a good idea to do independently of the
builtin-bswap-1.c comments I made in comment #5.
I'm preparing a patch to refactor the builtin-bswap* tests to make them more
robust, but if you posted this patch to gcc-patches I'd approve it.