]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix i386 bootstrap on non-Windows platforms
authorJan Hubicka <hubicka@ucw.cz>
Tue, 6 May 2025 10:07:15 +0000 (12:07 +0200)
committerJan Hubicka <hubicka@ucw.cz>
Tue, 6 May 2025 10:07:15 +0000 (12:07 +0200)
* config/i386/i386.cc (ix86_tls_index): Add ifdef.

gcc/config/i386/i386.cc

index f28c92a9d3aab1de51f0e7402b00f8e8356ff533..89f518c86b5e38329debe24cf67bcab46a9a5437 100644 (file)
@@ -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.  */