public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug target/99094] New: [AIX] Thread local uninitialized data allocated in .comm @ 2021-02-14 2:01 dje at gcc dot gnu.org 2021-02-14 2:01 ` [Bug target/99094] " dje at gcc dot gnu.org ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: dje at gcc dot gnu.org @ 2021-02-14 2:01 UTC (permalink / raw) To: gcc-bugs 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. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/99094] [AIX] Thread local uninitialized data allocated in .comm 2021-02-14 2:01 [Bug target/99094] New: [AIX] Thread local uninitialized data allocated in .comm dje at gcc dot gnu.org @ 2021-02-14 2:01 ` dje at gcc dot gnu.org 2021-03-09 20:50 ` dje at gcc dot gnu.org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: dje at gcc dot gnu.org @ 2021-02-14 2:01 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99094 David Edelsohn <dje at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Assignee|unassigned at gcc dot gnu.org |dje at gcc dot gnu.org Target Milestone|--- |11.0 Last reconfirmed| |2021-02-14 --- Comment #1 from David Edelsohn <dje at gcc dot gnu.org> --- Confirmed. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/99094] [AIX] Thread local uninitialized data allocated in .comm 2021-02-14 2:01 [Bug target/99094] New: [AIX] Thread local uninitialized data allocated in .comm dje at gcc dot gnu.org 2021-02-14 2:01 ` [Bug target/99094] " dje at gcc dot gnu.org @ 2021-03-09 20:50 ` dje at gcc dot gnu.org 2021-03-11 21:56 ` cvs-commit at gcc dot gnu.org 2021-03-12 3:24 ` dje at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: dje at gcc dot gnu.org @ 2021-03-09 20:50 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99094 --- Comment #2 from David Edelsohn <dje at gcc dot gnu.org> --- GCC should place uninitialized static variables into a separate "section anchor" pool. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/99094] [AIX] Thread local uninitialized data allocated in .comm 2021-02-14 2:01 [Bug target/99094] New: [AIX] Thread local uninitialized data allocated in .comm dje at gcc dot gnu.org 2021-02-14 2:01 ` [Bug target/99094] " dje at gcc dot gnu.org 2021-03-09 20:50 ` dje at gcc dot gnu.org @ 2021-03-11 21:56 ` cvs-commit at gcc dot gnu.org 2021-03-12 3:24 ` dje at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2021-03-11 21:56 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99094 --- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by David Edelsohn <dje@gcc.gnu.org>: https://gcc.gnu.org/g:26ed5a28b18ad080e51e6b61f5f60d67b66fd5f3 commit r11-7633-g26ed5a28b18ad080e51e6b61f5f60d67b66fd5f3 Author: David Edelsohn <dje.gcc@gmail.com> Date: Thu Mar 11 11:41:24 2021 -0500 aix: Use lcomm for TLS static data. GCC on AIX generates thread local uninitialized data in the common section, which could conflict with another module. This patch changes the code generation to place static uninitialized thread local data into the local common section specified with .lcomm. This change also removes the need to create a file-local name for the TBSS data. gcc/ChangeLog: 2021-03-11 David Edelsohn <dje.gcc@gmail.com> PR target/99094 * config/rs6000/rs6000.c (rs6000_xcoff_file_start): Don't create xcoff_tbss_section_name. * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .lcomm. * xcoffout.c (xcoff_tbss_section_name): Delete. * xcoffout.h (xcoff_tbss_section_name): Delete. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/99094] [AIX] Thread local uninitialized data allocated in .comm 2021-02-14 2:01 [Bug target/99094] New: [AIX] Thread local uninitialized data allocated in .comm dje at gcc dot gnu.org ` (2 preceding siblings ...) 2021-03-11 21:56 ` cvs-commit at gcc dot gnu.org @ 2021-03-12 3:24 ` dje at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: dje at gcc dot gnu.org @ 2021-03-12 3:24 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99094 David Edelsohn <dje at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #4 from David Edelsohn <dje at gcc dot gnu.org> --- Fixed. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-03-12 3:24 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-02-14 2:01 [Bug target/99094] New: [AIX] Thread local uninitialized data allocated in .comm dje at gcc dot gnu.org 2021-02-14 2:01 ` [Bug target/99094] " dje at gcc dot gnu.org 2021-03-09 20:50 ` dje at gcc dot gnu.org 2021-03-11 21:56 ` cvs-commit at gcc dot gnu.org 2021-03-12 3:24 ` dje 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).