mirror of
https://github.com/richfelker/musl-cross-make.git
synced 2025-04-19 15:34:58 +02:00

- all patches from gcc 8.3.0 except for 0017-pr93402.diff, which is now already present - see https://web.archive.org/web/20200309214347/https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93402
17 lines
481 B
Diff
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)
|
|
{
|