https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58066
--- Comment #8 from Dmitry Vyukov dvyukov at google dot com ---
Is there any progress on this? Is it fixed?
I've hit this issue in ThreadSanitizer. It intercepts __tls_get_addr and then
code that uses MOVDQA [rbp] crashes. I remember that I hit
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58066
--- Comment #7 from wmi at gcc dot gnu.org ---
Author: wmi
Date: Mon May 19 05:25:45 2014
New Revision: 210601
URL: http://gcc.gnu.org/viewcvs?rev=210601root=gccview=rev
Log:
2014-05-18 Wei Mi w...@google.com
PR target/58066
*
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58066
--- Comment #6 from wmi at gcc dot gnu.org ---
Author: wmi
Date: Thu May 8 16:44:52 2014
New Revision: 210222
URL: http://gcc.gnu.org/viewcvs?rev=210222root=gccview=rev
Log:
gcc/
2014-05-08 Wei Mi w...@google.com
PR target/58066
*
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58066
--- Comment #4 from H.J. Lu hjl.tools at gmail dot com ---
Created attachment 32341
-- http://gcc.gnu.org/bugzilla/attachment.cgi?id=32341action=edit
A patch
This patch sets ix86_tls_descriptor_calls_expanded_in_cfun after
reload is complete
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58066
--- Comment #5 from H.J. Lu hjl.tools at gmail dot com ---
Another problem:
[hjl@gnu-6 gcc]$ cat /tmp/c.i
static __thread char ccc;
void* __cxa_get_globals()
{
return ccc;
}
[hjl@gnu-6 gcc]$ ./xgcc -B./ -S -O2 -fPIC /tmp/c.i
[hjl@gnu-6 gcc]$
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58066
--- Comment #3 from Paul Pluzhnikov ppluzhnikov at google dot com ---
(In reply to Paul Pluzhnikov from comment #2)
What is the way to turn it on?
Compiling test case with -mtls-dialect=gnu2 does appear to improve the picture:
g++ -fPIC -O2 -S
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58066
Andrew Pinski pinskia at gcc dot gnu.org changed:
What|Removed |Added
Component|c |target
---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58066
--- Comment #2 from Paul Pluzhnikov ppluzhnikov at google dot com ---
(In reply to Andrew Pinski from comment #1)
Which most Linux distro default to anyways ...
Ubuntu 12.04.1 LTS doesn't.
Configuring trunk GCC on it doesn't default to GNU2 TLS