This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/47715] [x32] TLS doesn't work
- From: "hjl.tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 13 Feb 2011 17:01:17 +0000
- Subject: [Bug target/47715] [x32] TLS doesn't work
- Auto-submitted: auto-generated
- References: <bug-47715-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47715
--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2011-02-13 17:01:13 UTC ---
Another one:
[hjl@gnu-6 ilp32-14]$ cat s.c
struct initial_sp
{
void *sp;
long len;
};
__thread struct initial_sp __morestack_initial_sp;
void bar (void *);
void
foo ()
{
bar (&__morestack_initial_sp.len);
}
[hjl@gnu-6 ilp32-14]$ make s.s
/export/build/gnu/gcc-x32/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc-x32/build-x86_64-linux/gcc/ -S -o s.s -mx32 -O2 -g
-fPIC s.c
s.c: In function \u2018foo\u2019:
s.c:12:1: error: unrecognizable insn:
(insn 8 7 9 3 (set (reg/f:SI 59)
(const:SI (plus:SI (symbol_ref:SI ("__morestack_initial_sp") [flags
0x10] <var_decl 0x7f9e580eb000 __morestack_initial_sp>)
(const_int 4 [0x4])))) s.c:11 -1
(nil))
s.c:12:1: internal compiler error: in extract_insn, at recog.c:2109
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [s.s] Error 1
[hjl@gnu-6 ilp32-14]$