From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 217143857819; Tue, 9 Feb 2021 01:32:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 217143857819 From: "zhan3299 at purdue dot edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug inline-asm/99015] New: ICE: Max. number of generated reload insns per insn is achieved (90) Date: Tue, 09 Feb 2021 01:32:36 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: inline-asm X-Bugzilla-Version: 10.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zhan3299 at purdue dot edu 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 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: Tue, 09 Feb 2021 01:32:37 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99015 Bug ID: 99015 Summary: ICE: Max. number of generated reload insns per insn is achieved (90) Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: inline-asm Assignee: unassigned at gcc dot gnu.org Reporter: zhan3299 at purdue dot edu Target Milestone: --- Another inline-asm issue causes an ICE. --- poc.c starts --- int main() { asm("" : : "fq"(.100)); } --- poc.c ends --- The version of GCC is 10.2.0 x86-64, and running 'gcc -O1 poc.c ' can trigg= er the ICE. --- error trace starts --- $ gcc -O1 poc.c during RTL pass: reload test.c: In function =E2=80=98main=E2=80=99: test.c:3:1: internal compiler error: maximum number of generated reload ins= ns per insn achieved (90) 3 | } | ^ 0x9fb0c0 lra_constraints(bool) ../../gcc/gcc/lra-constraints.c:4952 0x9e9314 lra(_IO_FILE*) ../../gcc/gcc/lra.c:2440 0x9a7201 do_reload ../../gcc/gcc/ira.c:5523 0x9a7201 execute ../../gcc/gcc/ira.c:5709 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. --- error trace ends --- This issue only occurs when compiling with -O1 and higher, but does not with -O0. I also test other versions of GCC. It seems to affect GCC version 8.1 and higher, but not version 7.5 and lower. This issue may be similar with https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98991. However, as #98991 additionally affects GCC version 7.5 and lower, I suspect they are differen= t.=