[PATCH] libatomic, v2

Andreas Schwab schwab@linux-m68k.org
Fri Jun 8 10:40:00 GMT 2012


Richard Henderson <rth@redhat.com> writes:

> diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
> index 1a25324..b93dc5c 100644
> --- a/gcc/testsuite/lib/target-supports.exp
> +++ b/gcc/testsuite/lib/target-supports.exp
> @@ -3795,6 +3795,8 @@ proc check_effective_target_sync_long_long_runtime { } {
>  		 && [check_effective_target_lp64]
>  		 && [check_effective_target_ultrasparc_hw]) } {
>  	return 1
> +    } elseif { [check_effective_target_powerpc64] } {
> +	return 1

This is wrong.  check_effective_target_powerpc64 tests whether the
target can execute 64-bit insns, but that doesn't say anything about
whether the compiler can make use of them (-mno-powerpc64 can't, which
is the default for -m32 on linux).

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Gcc-patches mailing list