https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99094

            Bug ID: 99094
           Summary: [AIX] Thread local uninitialized data allocated in
                    .comm
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dje at gcc dot gnu.org
  Target Milestone: ---
            Target: powerpc-ibm-aix*

GCC on AIX generates thread local uninitialized data in the common section,
which could conflict with another module.

$ cat static2.c
static _Thread_local int x;
$ cat static2.s
...
        .comm x[UL],4

The symbol should be allocated in the TLS lcomm BSS section.

Reply via email to