https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80881
jyong at gcc dot gnu.org changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80881
--- Comment #13 from Liu Hao ---
Native TLS requires essential support from LD, which I don't think is going to
be available in foreseeable future.
Without native TLS GCC tries to use emulated TLS, and if it generates code
attempting to use the
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80881
--- Comment #12 from Daniel Starke ---
I am not an expert on this field but your build does not use platform tls
support as mine is supposed to do. Furthermore, I was building all under
Windows. The only difference during the build process was th
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80881
--- Comment #11 from Liu Hao ---
Diff'ing configure options used to build both GCC produces the following
result:
```
E:\Desktop>gcc-7.1.0-debug-broken-tls\bin\gcc.exe -v 2>&1 | sed "s/ --/\n&/g" >
yours.txt
E:\Desktop>gcc -v 2>&1 | sed "s/ --/
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80881
--- Comment #10 from Liu Hao ---
Compiling this rather simple program using your gcc:
```
__thread int a = 1;
int get_a(void){
return a;
}
```
resulted in wrong assembly:
```
E:\Desktop\gcc-7.1.0-debug-broken-tls\bin>gcc E:\Desktop\test.c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80881
--- Comment #9 from Daniel Starke ---
This was a native build.
I have added the GCC build in question to
https://sourceforge.net/projects/gcc-win64/files/7.1.0/gcc-7.1.0-debug-broken-tls.7z
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80881
--- Comment #8 from Liu Hao ---
I cannot reproduce this problem on either i686-w64-mingw32 or
x86_64-w64-mingw32 with --enable-tls.
On line 677 in libgomp.h there is a call to `gomp_thread()` which is supposed
to return a pointer to a __thread
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80881
--- Comment #7 from Daniel Starke ---
Error report from Dr.Memory:
Error #1: UNADDRESSABLE ACCESS: reading 0x-0x0008 8
byte(s)
# 0 gomp_resolve_num_threads
[../../../../src/gcc-7.1.0/libgomp/libgomp.h:677
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80881
--- Comment #6 from jyong at gcc dot gnu.org ---
Crash seems to be coming from the mingw-w64 runtime tls handler.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80881
--- Comment #5 from jyong at gcc dot gnu.org ---
Can you post the full backtrace? Meanwhile, I'll setup gcc with --enable-tls
and give this a try.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80881
Jakub Jelinek changed:
What|Removed |Added
CC||jyong at gcc dot gnu.org
--- Comment #4
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80881
Richard Biener changed:
What|Removed |Added
Target Milestone|7.2 |7.3
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80881
Richard Biener changed:
What|Removed |Added
Target Milestone|7.2 |7.3
--- Comment #4 from Richard Biener
13 matches
Mail list logo