This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/38574] -fvisibility=hidden not affecting thread variables while attribute hidden does.
- From: "hp at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Dec 2008 22:21:13 -0000
- Subject: [Bug middle-end/38574] -fvisibility=hidden not affecting thread variables while attribute hidden does.
- References: <bug-38574-507@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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