aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2025-05-06 12:07:15 +0200
committerJan Hubicka <hubicka@ucw.cz>2025-05-06 12:07:15 +0200
commit673d446894c063c92cafce9ba41340c82e960a11 (patch)
tree07f3a49bde382d368780e1a8354c35b72a356326
parent5e363ffefaceb9ff8fdeeead247c8337538e01db (diff)
downloadgcc-673d446894c063c92cafce9ba41340c82e960a11.zip
gcc-673d446894c063c92cafce9ba41340c82e960a11.tar.gz
gcc-673d446894c063c92cafce9ba41340c82e960a11.tar.bz2
Fix i386 bootstrap on non-Windows platforms
* config/i386/i386.cc (ix86_tls_index): Add ifdef.
-rw-r--r--gcc/config/i386/i386.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/config/i386/i386.cc b/gcc/config/i386/i386.cc
index f28c92a..89f518c 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. */