[Bug target/47403] New: [x32] TLS doesn't work

hjl.tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Jan 21 17:31:00 GMT 2011


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

           Summary: [x32] TLS doesn't work
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hjl.tools@gmail.com


[hjl@gnu-6 ilp32-15]$ cat x.c
extern __thread int __libc_errno __attribute__ ((tls_model ("initial-exec")));
;
int *
__errno_location (void)
{
  return &__libc_errno;
}
[hjl@gnu-6 ilp32-15]$ make
/export/build/gnu/gcc-x32/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc-x32/build-x86_64-linux/gcc/ -S -o x.s -mx32 -O2 -dp 
x.c
x.c: In function ‘__errno_location’:
x.c:7:1: error: unrecognizable insn:
(insn 8 7 9 3 (set (reg:SI 59 [ <retval> ])
        (reg:DI 63)) x.c:5 -1
     (expr_list:REG_EQUAL (symbol_ref:SI ("__libc_errno") [flags 0x60]
<var_decl 0x7f7cc21c8000 __libc_errno>)
        (nil)))
x.c:7: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: *** [x.s] Error 1
[hjl@gnu-6 ilp32-15]$



More information about the Gcc-bugs mailing list