Message ID | 8889192.1BZndx10Uc@polaris |
---|---|
State | New |
Headers | show |
Series | [SPARC] Fix PR target/93704 | expand |
diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 7e05e1a6f82..aefced85fe1 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -3959,11 +3959,8 @@ eligible_for_call_delay (rtx_insn *trial) if (get_attr_in_branch_delay (trial) == IN_BRANCH_DELAY_FALSE) return 0; - /* Binutils allows - call __tls_get_addr, %tgd_call (foo) - add %l7, %o0, %o0, %tgd_add (foo) - while Sun as/ld does not. */ - if (TARGET_GNU_TLS || !TARGET_TLS) + /* The only problematic cases are TLS sequences with Sun as/ld. */ + if ((TARGET_GNU_TLS && HAVE_GNU_LD) || !TARGET_TLS) return 1; pat = PATTERN (trial);