From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 145CC3857C70; Sat, 13 Mar 2021 00:28:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 145CC3857C70 From: "arnd at linaro dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/99570] New: internal error in extract_constrain_insn Date: Sat, 13 Mar 2021 00:28:40 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: arnd at linaro dot org 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: Sat, 13 Mar 2021 00:28:41 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99570 Bug ID: 99570 Summary: internal error in extract_constrain_insn Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: arnd at linaro dot org Target Milestone: --- This happens in a couple of files when building the linux kernel with -Os, reduced a test case to: $ cat compaction.i typedef struct { long a } b; enum c { d } e[]; af, ah; f(b *g) { asm("" : "=3Dm"(g->a)); } struct h { _Bool ab } static i(struct h *g, long j) { long k =3D 0, l =3D j; for (; j;) { enum c ad =3D m(); n(); f(&e[ad]); k +=3D o(); if (g && g->ab) ++j; p(); } q(l, k); } r() { for (;;) i(af, ah); } $ x86_64-linux-gnu-gcc-11 -Os -c compaction.i compaction.i: In function =E2=80=98r=E2=80=99: compaction.i:25:1: error: unrecognizable insn: 25 | } | ^ (insn 22 20 23 4 (parallel [ (set (mem:DI (plus:DI (mult:DI (reg:DI 3 bx [orig:99 _9 ] [99]) (const_int 4 [0x4])) (symbol_ref:DI ("e") [flags 0x2] )) [2 MEM[(struct b *)_11].a+0 S8 A64]) (asm_operands:DI ("") ("=3Dm") 0 [] [] [] compaction.i:6)) (clobber (reg:CC 17 flags)) ]) "compaction.i":6:11 -1 (nil)) during RTL pass: reload compaction.i:25:1: internal compiler error: in extract_constrain_insn, at recog.c:2670 0xce2eb1 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) ../../src/gcc/rtl-error.c:108 0xce3057 _fatal_insn_not_found(rtx_def const*, char const*, int, char const= *) ../../src/gcc/rtl-error.c:116 0x95f537 extract_constrain_insn(rtx_insn*) ../../src/gcc/recog.c:2670 0x95f537 extract_constrain_insn(rtx_insn*) ../../src/gcc/recog.c:2666 0x95f537 check_rtl ../../src/gcc/lra.c:2087 0x17962bc lra(_IO_FILE*) ../../src/gcc/lra.c:2505 0x1794579 do_reload ../../src/gcc/ira.c:5827 0x1794579 execute ../../src/gcc/ira.c:6013 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. $ x86_64-linux-gnu-gcc-11 --version x86_64-linux-gnu-gcc-11 (Ubuntu 11-20210306-1ubuntu1) 11.0.1 20210306 (experimental) [master revision 574e7601829:6b84c9062bc:84185598dc7470bad4e7f8c22b64e3c944efb670]=