0018-riscv-tls-copy-relocs.diff 481 B

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