http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46972
--- Comment #7 from Paulius Zaleckas
2010-12-20 11:28:14 UTC ---
(In reply to comment #6)
> I think enumtls has been fixed on the trunk with respect of fsection-anchors.
> Can you try the trunk?
Yes, looks like this bug is fixed in trunk. Assem
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46972
--- Comment #5 from Paulius Zaleckas
2010-12-19 19:39:07 UTC ---
Did some testing through various GCC versions:
4.5.2 - buggy
4.4.5 - buggy
4.3.5 - OK, but does not have -fsection-anchors optimization for ARM
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46972
--- Comment #4 from Paulius Zaleckas
2010-12-19 16:07:15 UTC ---
Created attachment 22823
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22823
diff with and without -fsection-anchors
I have found out that it is -fsection-anchors optimizatio
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46972
--- Comment #3 from Paulius Zaleckas
2010-12-16 20:11:54 UTC ---
(In reply to comment #2)
> So I suspect the issue is dependent on emutls or uclibc.
Yes, you are right. I have experimented today with few toolchains and build few
variants myself
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46972
Summary: __thread storage class variable gets optimized out on
ARM
Product: gcc
Version: 4.5.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46972
--- Comment #1 from Paulius Zaleckas
2010-12-15 21:14:16 UTC ---
Created attachment 22776
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22776
assembler
This is what I get with gcc's -S -fverbose-asm