public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/109091] New: AIX: thread_local is not being internally linked
@ 2023-03-10 16:03 miladfarca at gmail dot com
  2024-04-06  5:40 ` [Bug target/109091] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: miladfarca at gmail dot com @ 2023-03-10 16:03 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109091
           Summary: AIX: thread_local is not being internally linked
           Product: gcc
           Version: 10.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: miladfarca at gmail dot com
  Target Milestone: ---

Sample:

0.cc
```
void check();
namespace {
 thread_local int num = 0;
}

int main(){
  num = 5;
  check(); 
  return 0;
}

```

1.cc
```
#include <iostream>
namespace {
 thread_local int num = 0;
}
void check(){
  std::cout << num << std::endl;  
}

```
Compile with g++ -lpthread 0.cc 1.cc and run.

Expected output: 0
Output on AIX: 5

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug target/109091] AIX: thread_local is not being internally linked
  2023-03-10 16:03 [Bug c++/109091] New: AIX: thread_local is not being internally linked miladfarca at gmail dot com
@ 2024-04-06  5:40 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-04-06  5:40 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
dup.

*** This bug has been marked as a duplicate of bug 93146 ***

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-04-06  5:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-10 16:03 [Bug c++/109091] New: AIX: thread_local is not being internally linked miladfarca at gmail dot com
2024-04-06  5:40 ` [Bug target/109091] " pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).