From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 28A123858C78; Thu, 16 Mar 2023 10:22:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 28A123858C78 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678962126; bh=kcHwpQZ+kx2w5gHSXjkJp11WqCujZ2Do18fAglQrnMU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=SJU/vXktrOFpMCFpdqUYhMucqKMCUjqThfmM12Ca0J4LsOmUlhjO0RXdynccbWTYe nLYqtXLzx80c4Z50XMv5wtPKFHc+tmzaq5IePsbiRjzc0z59XF8eiwYygYXCGEKKGN KBrleY3Ht92KYM5sjxkHs3/+a2Jt1oLxhLPxbryY= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/109137] [12/13 regression] Compiling ffmpeg with -m32 on x86_64-pc-linux-gnu hangs on libavcodec/h264_cabac.c since r12-9086-g489c81db7d4f75 Date: Thu, 16 Mar 2023 10:22:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: compile-time-hog, ice-on-invalid-code, inline-asm X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109137 --- Comment #12 from Jakub Jelinek --- Ah, but 1690 if (flag_checking 1691 && (lra_assignment_iter_after_spill 1692 > LRA_MAX_ASSIGNMENT_ITERATION_NUMBER)) 1693 internal_error 1694 ("maximum number of LRA assignment passes is achieved (%d)", 1695 LRA_MAX_ASSIGNMENT_ITERATION_NUMBER); is guarded with -fchecking. So it really hangs with -fno-checking. Now, on the error: =E2=80=98asm=E2=80=99 operand has impossible constraints errors the problematic insns are removed: 1864 PATTERN (insn) =3D gen_rtx_USE (VOIDmode, const0_rtx); 1865 lra_set_insn_deleted (insn); or nulified in case of asm goto, so wonder whether some LRA state shouldn't= be reset at that point as well or what is the reason for the > 30 iterations.=