This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/46972] __thread storage class variable gets optimized out on ARM


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]