https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94758

            Bug ID: 94758
           Summary: ICE:  in extract_insn, at recog.c:2310 on hppa64 with
                    __thread variable
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ibuclaw at gdcproject dot org
  Target Milestone: ---

Tested with 7.5.0, 8.4.0, 9.2.1, and 10.0.1, all give out the same error.
---
__thread int x;

int main()
{
    x = 0;
}
---

test.c: In function ‘main’:
test.c:6:1: error: unrecognisable insn:
    6 | }
      | ^
(insn 6 3 7 2 (set (reg:DI 69)
        (unspec:SI [
                (const_int 0 [0])
            ] UNSPEC_TP)) "test.c":5:7 -1
     (nil))
during RTL pass: vregs
test.c:6:1: internal compiler error: in extract_insn, at recog.c:2294
0x6491e5 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        ../../gcc/rtl-error.c:108
0x649201 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        ../../gcc/rtl-error.c:116
0x646e97 extract_insn(rtx_insn*)
        ../../gcc/recog.c:2294
0xa5afc3 instantiate_virtual_regs_in_insn
        ../../gcc/function.c:1607
0xa5afc3 instantiate_virtual_regs
        ../../gcc/function.c:1977
0xa5afc3 execute
        ../../gcc/function.c:2026
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to