https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97535
Bug ID: 97535 Summary: ICE when building xmrig on AArch64 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: icenowy at aosc dot io Target Milestone: --- Created attachment 49425 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49425&action=edit Preprocessed source file When building xmrig on AArch64 with GCC 9.3.1, this file will trap cc1plus into infinitely running. I extracted the preprocessed source and then proceed with GCC master (commit 0a74a0e1a2d ("libstdc++: Fix custom clock in test")), and now it fails with ICE: /var/cache/acbs/build/acbs.6sxjqdht/xmrig-6.3.5/src/crypto/rx/RxDataset.cpp: In member function 'void xmrig::RxDataset::setRaw(const void*)': /var/cache/acbs/build/acbs.6sxjqdht/xmrig-6.3.5/src/crypto/rx/RxDataset.cpp:178:1: error: unrecognizable insn: (insn 80 79 81 4 (parallel [ (set (reg:V4SI 162) (mem:V4SI (plus:DI (reg:DI 97) (const_int 1024 [0x400])) [0 MEM <char[1:2181038080]> [(void *)raw_7(D)]+1024 S16 A8])) (set (reg:V4SI 163) (mem:V4SI (plus:DI (reg:DI 97) (const_int 1040 [0x410])) [0 MEM <char[1:2181038080]> [(void *)raw_7(D)]+1040 S16 A8])) ]) "/var/cache/acbs/build/acbs.6sxjqdht/xmrig-6.3.5/src/crypto/rx/RxDataset.cpp":177:11 -1 (nil)) during RTL pass: vregs /var/cache/acbs/build/acbs.6sxjqdht/xmrig-6.3.5/src/crypto/rx/RxDataset.cpp:178:1: internal compiler error: in extract_insn, at recog.c:2295 0x82f9e8 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) /home/icenowy/git-repos/gcc/gcc/rtl-error.c:108 0x82fa04 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*) /home/icenowy/git-repos/gcc/gcc/rtl-error.c:116 0x82def9 extract_insn(rtx_insn*) /home/icenowy/git-repos/gcc/gcc/recog.c:2295 0xe433b7 instantiate_virtual_regs_in_insn /home/icenowy/git-repos/gcc/gcc/function.c:1656 0xe433b7 instantiate_virtual_regs /home/icenowy/git-repos/gcc/gcc/function.c:1977 0xe433b7 execute /home/icenowy/git-repos/gcc/gcc/function.c:2026