This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/24465] New: -mminimal-toc miscompilation of __thread vars
- From: "amodra at bigpond dot net dot au" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Oct 2005 03:40:47 -0000
- Subject: [Bug target/24465] New: -mminimal-toc miscompilation of __thread vars
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
RS6000_PIC_OFFSET_TABLE_REGNUM isn't being set up for functions that don't need
a constant pool but access __thread vars using __tls_get_addr.
/* Fails with -m64 -mminimal-toc -fPIC */
static __thread int x;
int foo (void)
{
return x;
}
This is the reason why powerpc64 has been getting lots of libjava failures
since this libjava change: 2005-09-27 Tom Tromey <tromey@redhat.com>
--
Summary: -mminimal-toc miscompilation of __thread vars
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: target
AssignedTo: amodra at bigpond dot net dot au
ReportedBy: amodra at bigpond dot net dot au
GCC target triplet: powerpc64-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24465