This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/46972] __thread storage class variable gets optimized out on ARM
- From: "mikpe at it dot uu.se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 16 Dec 2010 09:14:40 +0000
- Subject: [Bug target/46972] __thread storage class variable gets optimized out on ARM
- Auto-submitted: auto-generated
- References: <bug-46972-4@http.gcc.gnu.org/bugzilla/>
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.