From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 39A94385DC00; Thu, 2 Apr 2020 20:43:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 39A94385DC00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1585860186; bh=FOtSwTvMNqOCwybd4Owssa73IAbtDxvQA1xDSXSe1+Y=; h=From:To:Subject:Date:In-Reply-To:References:From; b=leoZLgnW9rXYBo5ATBRj2fpGaQRS+kXGyYIDadNsfKFaTGBSqsmyciy7w6J7InWgo VCS0F42tvfkoWO60zyNuj17RB0XeEq7QCAybLrVQLi799T7vZn0xb3nLDbff+z4IBP COg7iTG6cknzJ/E8PE20Nmhasm11r7lmCZf3Pp6w= From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/90275] [8/9 Regression] ICE: in insert_regs, at cse.c:1128 with -O2 -fno-dce -fno-tree-dce Date: Thu, 02 Apr 2020 20:43:05 +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: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: law at redhat dot com X-Bugzilla-Target-Milestone: 8.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: Thu, 02 Apr 2020 20:43:06 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D90275 --- Comment #18 from David Binderman --- For this C code: a() { short *b; short c; long long *d =3D a; for (;;) { long long *e =3D a; (*d *=3D *e - c) / *b ?: (*b =3D 0); } } on this week's raspberry pi C cross compiler, with flag -O2, does this: $ /home/dcb/raspberrypi/results/bin/arm-linux-gnueabihf-gcc -c -w -O2 testFile.97.c during RTL pass: cse_local testFile.97.c: In function =E2=80=98a=E2=80=99: testFile.97.c:9:1: internal compiler error: in insert_regs, at cse.c:1128 9 | } | ^ 0x7e5b19 insert_regs /home/dcb/gcc/trunk.git/gcc/cse.c:1128 0x17ab64b cse_insn /home/dcb/gcc/trunk.git/gcc/cse.c:5956 0x17ade1d cse_extended_basic_block /home/dcb/gcc/trunk.git/gcc/cse.c:6614 0x17ade1d cse_main /home/dcb/gcc/trunk.git/gcc/cse.c:6793 This code works on x86, so something arm specific is happening.=