https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99466
--- Comment #6 from Iain Sandoe <iains at gcc dot gnu.org> --- (In reply to Iain Buclaw from comment #5) > (In reply to Iain Sandoe from comment #4) > > (In reply to Iain Buclaw from comment #3) > > > Oldest compiler version have tried it one is 8.4.0, and there's an ICE > > > there > > > as well. > > > > On Darwin16 : ICE back to 5.5, at least (probably, it never worked - I will > > see if can find a 4.x compiler on an older box) > > > > I don't see any specific reason for this to be "waiting" now. > The system installed compiler (4.2.1) errors with "thread-local storage not > supported for this target", so yes, I think you're right. emuTLS was introduced sometime in 4.x (RTH made the implementation), it did not exist for Apple-4.x, native TLS was introduced in clang for Darwin11 (but we don't have that for GCC, yet - with an open PR for that). for the record the emuTLS test ICEs back to at least 4.6.4 on Darwin9. Given that this is ice-on-valid, IMO we should consider fixing on the open branches.