From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 42563384A40A; Mon, 11 Jan 2021 21:32:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 42563384A40A From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/98629] New: ice during GIMPLE pass: widening_mul Date: Mon, 11 Jan 2021 21:32:04 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com 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: Mon, 11 Jan 2021 21:32:04 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98629 Bug ID: 98629 Summary: ice during GIMPLE pass: widening_mul Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- For this reduced C code: unsigned int a; int b, c; void d() { unsigned int *e =3D &a; (a /=3D a |=3D b) - (0 <=3D (*e +=3D *e)) * (c *=3D *e); } does this with recent gcc trunk: $ /home/dcb/gcc/results.20210111/bin/gcc -c -w -O2 bug689.c during GIMPLE pass: widening_mul bug689.c: In function =E2=80=98d=E2=80=99: bug689.c:3:6: internal compiler error: Segmentation fault 3 | void d() { | ^ 0xcd63f9 crash_signal(int) ../../trunk.git/gcc/toplev.c:327 0xe7b538 gimple_code(gimple const*) ../../trunk.git/gcc/gimple.h:1782 0xe7b538 is_gimple_assign(gimple const*) ../../trunk.git/gcc/gimple.h:2529 0xe7b538 gimple_assign_cast_p(gimple const*) ../../trunk.git/gcc/gimple.h:2870 The bug first seems to appear sometime between date 20210108 and today i.e. 20210111. Hashes for those dates are bdcde15045027195 and 9a6c37e6ae520534. with 32 commits between them. Jakub's recent changes to widening_mul look a likely candidate. I don't see much point in doing a git bisect, although I can if requested. Jakub's=