[Bug c++/46283] Strange lookup of p->type::foo expressions

2021-07-24 Thread tmyklebu at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46283 --- Comment #3 from Tor Myklebust --- On Sat, Jul 24, 2021 at 6:45 AM pinskia at gcc dot gnu.org wrote: > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46283 > > --- Comment #2 from Andrew Pinski --- > ((a *)0)->foo::x() > > ((T

[Bug middle-end/26461] liveness of thread local references across function calls

2017-03-31 Thread tmyklebu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26461 Tor Myklebust changed: What|Removed |Added CC||tmyklebu at gmail dot com --- Comment

[Bug ipa/80258] On x86_64 with -fPIC, accesses to TLS can see the wrong thread's TLS

2017-03-30 Thread tmyklebu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80258 --- Comment #9 from Tor Myklebust --- OK, I gather that the gcc developers, as a group, are against changing this behaviour. (I can speculate why; almost all code that uses TLS will see a slowdown.) In order to work around this behaviour, one

[Bug ipa/80258] On x86_64 with -fPIC, accesses to TLS can see the wrong thread's TLS

2017-03-29 Thread tmyklebu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80258 --- Comment #6 from Tor Myklebust --- Created attachment 41085 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41085=edit Program referenced in comment 4

[Bug ipa/80258] On x86_64 with -fPIC, accesses to TLS can see the wrong thread's TLS

2017-03-29 Thread tmyklebu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80258 --- Comment #5 from Tor Myklebust --- Created attachment 41084 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41084=edit Program referenced in comment 4

[Bug ipa/80258] On x86_64 with -fPIC, accesses to TLS can see the wrong thread's TLS

2017-03-29 Thread tmyklebu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80258 --- Comment #4 from Tor Myklebust --- I suppose the program attached doesn't demonstrate that. I ran: info gcc 'C ext' 'thread' I read the following text: When the address-of operator is applied to a thread-local variable, it is

[Bug ipa/80258] On x86_64 with -fPIC, accesses to TLS can see the wrong thread's TLS

2017-03-29 Thread tmyklebu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80258 --- Comment #2 from Tor Myklebust --- For completeness, this issue was raised as Stackoverflow question 43081742 by user merlin2011.

[Bug ipa/80258] On x86_64 with -fPIC, accesses to TLS can see the wrong thread's TLS

2017-03-29 Thread tmyklebu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80258 --- Comment #1 from Tor Myklebust --- Created attachment 41083 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41083=edit A program that breaks with -O3 -fPIC

[Bug ipa/80258] New: On x86_64 with -fPIC, accesses to TLS can see the wrong thread's TLS

2017-03-29 Thread tmyklebu at gmail dot com
Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: tmyklebu at gmail dot com Target Milestone: --- The address of the running thread's TLS appears to be loaded only once although the running thread may change. This simple example

[Bug c++/46283] New: Strange lookup of p-type::foo expressions

2010-11-02 Thread tmyklebu at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46283 Summary: Strange lookup of p-type::foo expressions Product: gcc Version: unknown Status: UNCONFIRMED Severity: minor Priority: P3 Component: c++ AssignedTo: