[Bug target/46972] __thread storage class variable gets optimized out on ARM
mikpe at it dot uu.se
gcc-bugzilla@gcc.gnu.org
Thu Dec 16 09:14:00 GMT 2010
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46972
Mikael Pettersson <mikpe at it dot uu.se> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mikpe at it dot uu.se
--- Comment #2 from Mikael Pettersson <mikpe at it dot uu.se> 2010-12-16 09:14:33 UTC ---
The test case works for me on armv5tel-linux-gnueabi with gcc 4.4, 4.5, and
4.6.
Comparing your assemby code with mine I see that your calls
__emutls_get_address while mine calls __aeabi_read_tp, and the section
allocation for .LANCHOR0 is different (your is in .bss, mine is in .section
.tdata,"awT",%progbits).
So I suspect the issue is dependent on emutls or uclibc.
More information about the Gcc-bugs
mailing list