[Bug target/57099] New: ICE: in extract_insn, at recog.c:2154 (unrecognizable insn) with -mcmodel=large and TLS variable

zsojka at seznam dot cz gcc-bugzilla@gcc.gnu.org
Sun Apr 28 07:39:00 GMT 2013


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

             Bug #: 57099
           Summary: ICE: in extract_insn, at recog.c:2154 (unrecognizable
                    insn) with -mcmodel=large and TLS variable
    Classification: Unclassified
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz


Created attachment 29958
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29958
reduced testcase

Compiler output:
$ gcc -mcmodel=large testcase.c         
testcase.c: In function 'get_gd':
testcase.c:6:1: error: unrecognizable insn:
 }
 ^
(call_insn/u 5 2 6 2 (parallel [
            (set (reg:DI 0 ax)
                (call:DI (mem:QI (symbol_ref:DI ("__tls_get_addr")) [0 S1 A8])
                    (const_int 0 [0])))
            (unspec:DI [
                    (symbol_ref:DI ("tls_gd") [flags 0x12] <var_decl
0x7fb1fda55260 tls_gd>)
                ] UNSPEC_TLS_GD)
        ]) testcase.c:5 -1
     (expr_list:REG_EH_REGION (const_int -2147483648 [0xffffffff80000000])
        (nil))
    (nil))
testcase.c:6:1: internal compiler error: in extract_insn, at recog.c:2154
0x9b919a _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        /mnt/svn/gcc-trunk/gcc/rtl-error.c:109
0x9b922a _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        /mnt/svn/gcc-trunk/gcc/rtl-error.c:117
0x974fa1 extract_insn(rtx_def*)
        /mnt/svn/gcc-trunk/gcc/recog.c:2154
0x81219d instantiate_virtual_regs_in_insn
        /mnt/svn/gcc-trunk/gcc/function.c:1609
0x81219d instantiate_virtual_regs
        /mnt/svn/gcc-trunk/gcc/function.c:1926
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

$ gcc -v                       
Using built-in specs.
COLLECT_GCC=/mnt/svn/gcc-trunk/binary-latest/bin/gcc
COLLECT_LTO_WRAPPER=/mnt/svn/gcc-trunk/binary-198362-lto-fortran-checking-yes-rtl-df/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /mnt/svn/gcc-trunk//configure --enable-checking=yes,rtl,df
--enable-languages=c,c++,lto,fortran
--prefix=/mnt/svn/gcc-trunk/binary-198362-lto-fortran-checking-yes-rtl-df/
--without-cloog --without-ppl
Thread model: posix
gcc version 4.9.0 20130427 (experimental) (GCC) 

Tested revisions:
r198362 - crash
4.8 r198018 - crash
4.7 r198018 - crash
4.6 r198018 - crash
4.5 r198018 - crash



More information about the Gcc-bugs mailing list