From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DC2EC3858409; Tue, 28 Sep 2021 14:50:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DC2EC3858409 From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/90275] [9 Regression] ICE: in insert_regs, at cse.c:1128 with -O2 -fno-dce -fno-tree-dce Date: Tue, 28 Sep 2021 14:50:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: jeffreyalaw at gmail dot com X-Bugzilla-Target-Milestone: 9.5 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 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, 28 Sep 2021 14:50:49 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D90275 --- Comment #25 from David Binderman --- This C source code: $ more bug761.c long a; int b, c, e; signed char d; void f() { long long g =3D 105230154306549745590; b =3D (c ?: (d %=3D 11 * g)) + (e &=3D g +=3D c); a =3D 5; for (; a <=3D 8;) { g =3D b !=3D d ? e : g || (5 ? e =3D 1 : 0); a %=3D 0 < 0 / 0; } } pi@raspberrypi:~/creduce $=20 on recent gcc trunk on ARM and flag -O2, does this: $ ../gcc/results/bin/arm-linux-gnueabihf-gcc -c -w -O2 bug761.c=20 during RTL pass: cse_local bug761.c: In function \u2018f\u2019: bug761.c:12:1: internal compiler error: in insert_regs, at cse.c:1113 12 | } | ^ 0x16cd73f insert_regs(rtx_def*, table_elt*, int) ../../trunk/gcc/cse.c:1113 0x16c9d9f cse_insn(rtx_insn*) ../../trunk/gcc/cse.c:5926 ... $ ../gcc/results/bin/arm-linux-gnueabihf-gcc -v Using built-in specs. COLLECT_GCC=3D../gcc/results/bin/arm-linux-gnueabihf-gcc COLLECT_LTO_WRAPPER=3D/home/pi/gcc/results.20210928/libexec/gcc/arm-linux-g= nueabihf/12.0.0/lto-wrapper Target: arm-linux-gnueabihf Configured with: ../trunk/configure --prefix=3D/home/pi/gcc/results.20210928 --disable-bootstrap --disable-multilib --disable-werror --with-pkgversion=3D9cfb95f9b92326e8 --enable-checking=3Dyes --enable-languages=3Dc,c++,fortran --with-cpu=3Dcortex-a72 --with-fpu=3Dneo= n-fp-armv8 --with-float=3Dhard --build=3Darm-linux-gnueabihf --host=3Darm-linux-gnueab= ihf --target=3Darm-linux-gnueabihf Thread model: posix Supported LTO compression algorithms: zlib gcc version 12.0.0 20210928 (experimental) (9cfb95f9b92326e8)=20 I don't have a git revision where it works ok. Sorry.=