From f82658338756fe9a38a728aa542d786a0e889e21 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Tue, 27 Apr 2021 16:59:59 +0000 Subject: [PATCH] powerpc: fix bootstrap. gcc/ChangeLog: * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): Protect with TARGET_AIX_OS. --- gcc/config/rs6000/rs6000.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 60b8e3e..14ff56a 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -25371,6 +25371,7 @@ rs6000_legitimate_constant_p (machine_mode mode, rtx x) return true; } +#if TARGET_AIX_OS /* Implement TARGET_PRECOMPUTE_TLS_P. On the AIX, TLS symbols are in the TOC, which is maintained in the @@ -25382,6 +25383,7 @@ rs6000_aix_precompute_tls_p (machine_mode mode ATTRIBUTE_UNUSED, rtx x) { return tls_referenced_p (x); } +#endif /* Return TRUE iff the sequence ending in LAST sets the static chain. */ -- 2.7.4