From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 148B93858D37; Thu, 20 Apr 2023 21:50:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 148B93858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1682027413; bh=C41JRJLWigvxkKOI9+xZS8U4MJlhiLfCzp7sEX1fVgY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gtSuwSOPoLYd3Ka3A8PAZiKvE8dNz9l7Q4W6nxf/DFY5fdTkKIfNUNQJBBMF+SU+l OTB0kOo3Cc98RzYzkwxyLDukSB1xNDANgtD2/EJb5H4Qi+p8ZdwxlKOExt5Qsa4/zj G+UeqOpwLMPwu605+ZMVaP2lrzyvHyd7i9O4SKzM= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/109578] fail to remove dead code due to division by zero Date: Thu, 20 Apr 2023 21:50:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: WONTFIX 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: 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=3D109578 --- Comment #5 from Andrew Pinski --- (In reply to Andrew Pinski from comment #3) > Anyways maybe the issue with PR 29968 was a scheduling issue which was fi= xed > later on that GCC didn't realize divide could trap. I was right on that, it was a dup of bug 41239 which was fixed in GCC 4.5.0. The problem was exactly what I thought it was, a trapping instruction being scheduled before the call. And yes it has been fixed for a long time, 13 ye= ars in fact.=