1
0
mirror of https://github.com/pmmp/musl-cross-make.git synced 2025-02-24 09:35:00 +00:00
musl-cross-make/patches/gcc-8.5.0/0015-riscv-tls-copy-relocs.diff
rofl0r c4c5b49efa update GCC 8.3.0 to 8.5.0
0017-pr93402.diff was removed, as it was merged upstream.
2021-06-23 21:53:57 -04:00

17 lines
481 B
Diff

diff --git a/gcc/config/riscv/riscv.c b/gcc/config/riscv/riscv.c
index 677728e77ed..444d01e87ec 100644
--- a/gcc/config/riscv/riscv.c
+++ b/gcc/config/riscv/riscv.c
@@ -1209,9 +1209,11 @@ riscv_legitimize_tls_address (rtx loc)
rtx dest, tp, tmp;
enum tls_model model = SYMBOL_REF_TLS_MODEL (loc);
+#if 0
/* Since we support TLS copy relocs, non-PIC TLS accesses may all use LE. */
if (!flag_pic)
model = TLS_MODEL_LOCAL_EXEC;
+#endif
switch (model)
{