public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/24465]  New: -mminimal-toc miscompilation of __thread vars
@ 2005-10-21  3:40 amodra at bigpond dot net dot au
  2005-10-21  3:47 ` [Bug target/24465] [4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: amodra at bigpond dot net dot au @ 2005-10-21  3:40 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-10-21 12:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-21  3:40 [Bug target/24465] New: -mminimal-toc miscompilation of __thread vars amodra at bigpond dot net dot au
2005-10-21  3:47 ` [Bug target/24465] [4.1 Regression] " pinskia at gcc dot gnu dot org
2005-10-21  5:05 ` amodra at bigpond dot net dot au
2005-10-21  7:33 ` cvs-commit at gcc dot gnu dot org
2005-10-21  7:37 ` cvs-commit at gcc dot gnu dot org
2005-10-21  7:48 ` cvs-commit at gcc dot gnu dot org
2005-10-21  7:49 ` amodra at bigpond dot net dot au
2005-10-21 12:59 ` pinskia 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).