https://gcc.gnu.org/g:673d446894c063c92cafce9ba41340c82e960a11

commit r16-401-g673d446894c063c92cafce9ba41340c82e960a11
Author: Jan Hubicka <hubi...@ucw.cz>
Date:   Tue May 6 12:07:15 2025 +0200

    Fix i386 bootstrap on non-Windows platforms
    
            * config/i386/i386.cc (ix86_tls_index): Add ifdef.

Diff:
---
 gcc/config/i386/i386.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gcc/config/i386/i386.cc b/gcc/config/i386/i386.cc
index f28c92a9d3aa..89f518c86b5e 100644
--- a/gcc/config/i386/i386.cc
+++ b/gcc/config/i386/i386.cc
@@ -12320,6 +12320,7 @@ get_thread_pointer (machine_mode tp_mode, bool to_reg)
 
 static GTY(()) rtx ix86_tls_index_symbol;
 
+#if TARGET_WIN32_TLS
 static rtx
 ix86_tls_index (void)
 {
@@ -12331,6 +12332,7 @@ ix86_tls_index (void)
   else
     return ix86_tls_index_symbol;
 }
+#endif
 
 /* Construct the SYMBOL_REF for the tls_get_addr function.  */

Reply via email to