This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/79288] New: [7 Regression] TLS model wrong for static data members since r241137


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]