public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/81501] Unneccessary calls to __tls_get_addr() in simple thread-singleton pattern
[not found] <bug-81501-4@http.gcc.gnu.org/bugzilla/>
@ 2021-08-22 8:26 ` pinskia at gcc dot gnu.org
2021-08-22 8:30 ` [Bug rtl-optimization/81501] mulitple calls to __tls_get_addr() with -fPIC pinskia at gcc dot gnu.org
2022-09-23 13:18 ` roi.jacobson1 at gmail dot com
2 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-22 8:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81501
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |amohr at amohr dot org
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 82803 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug rtl-optimization/81501] mulitple calls to __tls_get_addr() with -fPIC
[not found] <bug-81501-4@http.gcc.gnu.org/bugzilla/>
2021-08-22 8:26 ` [Bug rtl-optimization/81501] Unneccessary calls to __tls_get_addr() in simple thread-singleton pattern pinskia at gcc dot gnu.org
@ 2021-08-22 8:30 ` pinskia at gcc dot gnu.org
2022-09-23 13:18 ` roi.jacobson1 at gmail dot com
2 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-22 8:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81501
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Unneccessary calls to |mulitple calls to
|__tls_get_addr() in simple |__tls_get_addr() with -fPIC
|thread-singleton pattern |
Severity|normal |enhancement
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Due to the way addresses are formed for TLS, we emit the call to the
__tls_get_addr function at the point of address. We should do something
similar to how other PIC addresses are handled.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug rtl-optimization/81501] mulitple calls to __tls_get_addr() with -fPIC
[not found] <bug-81501-4@http.gcc.gnu.org/bugzilla/>
2021-08-22 8:26 ` [Bug rtl-optimization/81501] Unneccessary calls to __tls_get_addr() in simple thread-singleton pattern pinskia at gcc dot gnu.org
2021-08-22 8:30 ` [Bug rtl-optimization/81501] mulitple calls to __tls_get_addr() with -fPIC pinskia at gcc dot gnu.org
@ 2022-09-23 13:18 ` roi.jacobson1 at gmail dot com
2 siblings, 0 replies; 3+ messages in thread
From: roi.jacobson1 at gmail dot com @ 2022-09-23 13:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81501
--- Comment #9 from Roy Jacobson <roi.jacobson1 at gmail dot com> ---
Thanks for the patch! I wonder if it would handle coroutines correctly. Clang
has this open bug https://github.com/llvm/llvm-project/issues/47179 that is
related to this optimization.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-09-23 13:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-81501-4@http.gcc.gnu.org/bugzilla/>
2021-08-22 8:26 ` [Bug rtl-optimization/81501] Unneccessary calls to __tls_get_addr() in simple thread-singleton pattern pinskia at gcc dot gnu.org
2021-08-22 8:30 ` [Bug rtl-optimization/81501] mulitple calls to __tls_get_addr() with -fPIC pinskia at gcc dot gnu.org
2022-09-23 13:18 ` roi.jacobson1 at gmail dot com
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).