[Bug c++/27677] New: ICE on "3-liner" with __thread
gcc at cohi dot at
gcc-bugzilla@gcc.gnu.org
Fri May 19 08:57:00 GMT 2006
With the 4.1.0 built yesterday, bootstrapped with Apple gcc 5247, I get the
following:
colin@tigger:/tmp> cat t.cc
__thread int int_tls = 2;
int get_tls()
{
return int_tls;
}
int main()
{
return get_tls();
}
colin@tigger:/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.
colin@tigger:/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
colin@tigger:/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
More information about the Gcc-bugs
mailing list