https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97344
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- if (GET_CODE (rtl) == SYMBOL_REF && SYMBOL_REF_TLS_MODEL (rtl) != TLS_MODEL_NONE) { dw_loc_descr_ref temp; /* If this is not defined, we have no way to emit the data. */ if (!targetm.have_tls || !targetm.asm_out.output_dwarf_dtprel) break;