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 <[EMAIL PROTECTED]> -- 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