powerpc: fix bootstrap.
authorDavid Edelsohn <dje.gcc@gmail.com>
Tue, 27 Apr 2021 16:59:59 +0000 (16:59 +0000)
committerDavid Edelsohn <dje.gcc@gmail.com>
Tue, 27 Apr 2021 16:59:59 +0000 (16:59 +0000)
gcc/ChangeLog:

* config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): Protect
with TARGET_AIX_OS.

gcc/config/rs6000/rs6000.c

index 60b8e3e..14ff56a 100644 (file)
@@ -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
 
 \f
 /* Return TRUE iff the sequence ending in LAST sets the static chain.  */