public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/38574] New: -fvisibility=hidden not affecting thread variables while attribute hidden does.
@ 2008-12-18 22:21 hp at gcc dot gnu dot org
2008-12-18 22:22 ` [Bug middle-end/38574] " hp at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: hp at gcc dot gnu dot org @ 2008-12-18 22:21 UTC (permalink / raw)
To: gcc-bugs
Compile the following, with "-O2 -fvisibility=hidden -S" without/with -DH.
Compare assembly code. For this target, you'll see the following diff, but the
difference was noticed on the CRIS TLS w.i.p. using [gcc-4_3-branch revision
135713]:
--- hh.s 2008-12-18 23:14:54.000000000 +0100
+++ h.s 2008-12-18 23:15:05.000000000 +0100
@@ -13,5 +13,6 @@ foo:
popl %ebp
ret
.size foo, .-foo
+ .hidden xyzzy
.ident "GCC: (GNU) 4.3.0 20080428 (Red Hat 4.3.0-8)"
.section .note.GNU-stack,"",@progbits
--
Summary: -fvisibility=hidden not affecting thread variables while
attribute hidden does.
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hp at gcc dot gnu dot org
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38574
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/38574] -fvisibility=hidden not affecting thread variables while attribute hidden does.
2008-12-18 22:21 [Bug middle-end/38574] New: -fvisibility=hidden not affecting thread variables while attribute hidden does hp at gcc dot gnu dot org
@ 2008-12-18 22:22 ` hp at gcc dot gnu dot org
2008-12-18 22:31 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: hp at gcc dot gnu dot org @ 2008-12-18 22:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from hp at gcc dot gnu dot org 2008-12-18 22:21 -------
Oops, forgot the code:
extern __thread char xyzzy[64] __attribute__ ((tls_model
("initial-exec")
#ifdef H
, visibility ("hidden")
#endif
));
char *
foo (void)
{
return xyzzy+9;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38574
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/38574] -fvisibility=hidden not affecting thread variables while attribute hidden does.
2008-12-18 22:21 [Bug middle-end/38574] New: -fvisibility=hidden not affecting thread variables while attribute hidden does hp at gcc dot gnu dot org
2008-12-18 22:22 ` [Bug middle-end/38574] " hp at gcc dot gnu dot org
@ 2008-12-18 22:31 ` pinskia at gcc dot gnu dot org
2008-12-18 22:31 ` [Bug target/38574] " pinskia at gcc dot gnu dot org
2008-12-18 22:37 ` [Bug middle-end/38574] " hp at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-12-18 22:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2008-12-18 22:25 -------
Actually this is expected behavior of -fvisibility=hidden IIRC.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|target |middle-end
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38574
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/38574] -fvisibility=hidden not affecting thread variables while attribute hidden does.
2008-12-18 22:21 [Bug middle-end/38574] New: -fvisibility=hidden not affecting thread variables while attribute hidden does hp at gcc dot gnu dot org
2008-12-18 22:22 ` [Bug middle-end/38574] " hp at gcc dot gnu dot org
2008-12-18 22:31 ` pinskia at gcc dot gnu dot org
@ 2008-12-18 22:31 ` pinskia at gcc dot gnu dot org
2008-12-18 22:37 ` [Bug middle-end/38574] " hp at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-12-18 22:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2008-12-18 22:24 -------
Works on PPC-linux-gnu on the trunk.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|middle-end |target
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38574
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/38574] -fvisibility=hidden not affecting thread variables while attribute hidden does.
2008-12-18 22:21 [Bug middle-end/38574] New: -fvisibility=hidden not affecting thread variables while attribute hidden does hp at gcc dot gnu dot org
` (2 preceding siblings ...)
2008-12-18 22:31 ` [Bug target/38574] " pinskia at gcc dot gnu dot org
@ 2008-12-18 22:37 ` hp at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: hp at gcc dot gnu dot org @ 2008-12-18 22:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from hp at gcc dot gnu dot org 2008-12-18 22:35 -------
(In reply to comment #3)
> Actually this is expected behavior of -fvisibility=hidden IIRC.
Oh right, it's at the end of the doc paragraph.
Ok, I've done my share of the noise for today. :)
--
hp at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38574
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-12-18 22:37 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-18 22:21 [Bug middle-end/38574] New: -fvisibility=hidden not affecting thread variables while attribute hidden does hp at gcc dot gnu dot org
2008-12-18 22:22 ` [Bug middle-end/38574] " hp at gcc dot gnu dot org
2008-12-18 22:31 ` pinskia at gcc dot gnu dot org
2008-12-18 22:31 ` [Bug target/38574] " pinskia at gcc dot gnu dot org
2008-12-18 22:37 ` [Bug middle-end/38574] " hp at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).