From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 29C04385781A; Thu, 10 Nov 2022 18:13:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 29C04385781A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668103987; bh=5WQYHKOI9Jlic5SGuEmOLd+fECHBM+EqtM6qre/K550=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Sq4s3ZrEYeWEiPuzgge1Nf00LRS5AH5+oLYcgk/9vR3OiPib/v1h+ILpiC8tm3rhq dCmgKY75Tbpm0YJBP8Ada2PQQmN+GSypBFzNPlllA/KFRvq9+/muzm5vp6X10DB/Pq AccILWHWhKfjd1IhHKIrjxlrv9U9gNm0jJfE2jtQ= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107608] [13 Regression] Failure on fold-overflow-1.c Date: Thu, 10 Nov 2022 18:13:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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: 13.0 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=3D107608 --- Comment #3 from Andrew Pinski --- (In reply to Richard Biener from comment #2) > With -fnon-call-exceptions we are a bit more careful (but the above is go= ne > in the gimplifier still). For -fnon-call-exceptions, you need -fno-delete-dead-exceptions (it looks l= ike the gimplifier is broken there). That is for: ``` float foo(void) { float t; t =3D __FLT_MAX__ + __FLT_MAX__; return 1; } ``` To keep around the addition, you need both -fnon-call-exceptions and -fno-delete-dead-exceptions . I know there has been issues with where we still DCE code with -fno-delete-dead-exceptions (I fixed one last year).=