With the 4.1.0 built yesterday, bootstrapped with Apple gcc 5247, I get the
following:

[EMAIL PROTECTED]:/tmp> cat t.cc 
__thread int int_tls = 2;

int get_tls()
{
        return int_tls;
}

int main()
{
        return get_tls();
}
[EMAIL PROTECTED]:/tmp> /opt/gcc-4.1.0-32/bin/g++ -O3 -Wall -Wextra t.cc
t.cc: In function 'int get_tls()':
t.cc:3: internal compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
[EMAIL PROTECTED]:/tmp> /opt/gcc-4.1.0-32/bin/g++ -v                    
Using built-in specs.
Target: powerpc-apple-darwin8.6.0
Configured with: ../gcc-4.1.0/configure --prefix=/opt/gcc-4.1.0-32
--enable-languages=c,c++ --enable-threads=posix --enable-tls
Thread model: posix
gcc version 4.1.0
[EMAIL PROTECTED]:/tmp> uname -a
Darwin tigger 8.6.0 Darwin Kernel Version 8.6.0: Tue Mar  7 16:58:48 PST 2006;
root:xnu-792.6.70.obj~1/RELEASE_PPC Power Macintosh powerpc


-- 
           Summary: ICE on "3-liner" with __thread
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gcc at cohi dot at
  GCC host triplet: powerpc-apple-darwin8.6.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27677

Reply via email to