smalltalk=; cat test.c __thread int x; smalltalk=; gcc -c test.c smalltalk=; gcc -g -c test.c /usr/ccs/bin/as: "/var/tmp//cc09foyk.s", line 75: error: statement syntax /usr/ccs/bin/as: "/var/tmp//cc09foyk.s", line 75: error: statement syntax /usr/ccs/bin/as: "/var/tmp//cc09foyk.s", line 75: error: statement syntax
Line 75 of the generated assembly is: .xword %r_tls_dtpoff64(x) Compiling with -m32 produces something that's equally broken, but with 32 instead of 64. -- Summary: Bad assembler output for Solaris TLS debug symbols Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: debug AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rcbilson at plg dot uwaterloo dot ca CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: sparc64-sun-solaris2.10 GCC host triplet: sparc64-sun-solaris2.10 GCC target triplet: sparc64-sun-solaris2.10 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21889