On 2012-06-08 03:17, Andreas Schwab wrote:
> 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).
Feh. That's all a bit silly. I wonder why that's the default.
Anyway, I've tested and committed the following.
r~
* lib/target-supports.exp
(check_effective_target_sync_long_long_runtime): Use
check_effective_target_lp64 instead of
check_effective_target_powerpc64 for powerpc targets.
diff --git a/gcc/testsuite/lib/target-supports.exp
b/gcc/testsuite/lib/target-supports.exp
index 568f6b1..c937484 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -3796,7 +3796,7 @@ proc check_effective_target_sync_long_long_runtime { } {
&& [check_effective_target_lp64]
&& [check_effective_target_ultrasparc_hw]) } {
return 1
- } elseif { [check_effective_target_powerpc64] } {
+ } elseif { [istarget powerpc*-*-*] && [check_effective_target_lp64] } {
return 1
} else {
return 0