https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79288
Bug ID: 79288 Summary: [7 Regression] TLS model wrong for static data members since r241137 Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org Target Milestone: --- Since r241137 struct S { static __thread int *p; }; int * foo () { return S::p; } emits for non-pic code TLS local exec model relocations instead of initial exec.