From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 50E773857C5B; Fri, 23 Oct 2020 00:54:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 50E773857C5B From: "icenowy at aosc dot io" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/97535] New: ICE when building xmrig on AArch64 Date: Fri, 23 Oct 2020 00:54:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: icenowy at aosc dot io X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Oct 2020 00:54:02 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97535 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=3D49425&action=3Dedit 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 [(void *)raw_7(D)]+1024 S16 A8])) (set (reg:V4SI 163) (mem:V4SI (plus:DI (reg:DI 97) (const_int 1040 [0x410])) [0 MEM [(void *)raw_7(D)]+1040 S16 A8])) ]) "/var/cache/acbs/build/acbs.6sxjqdht/xmrig-6.3.5/src/crypto/rx/RxDataset.cp= p":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=