From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 68C063858C31; Thu, 12 Jan 2023 12:03:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 68C063858C31 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673525032; bh=lJVb/QoQ0KJoILWryzVGJoABKjiF6DXw82Uo/y4NqdA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=EjfyRsb6JdAf8QKsi0vhE7nDbCVpcTrQmcRV7Mwmrj4wToMD+1G2JNLcHgDNdQCHb dTQZpmkm3pn0sgOyrBUQZ1Be9ETt4qm12oAkrSAZEP9rzgcb9AQDJBflC69dNSWJa5 pJdMHRHeQ0ri6be54PPNPvD2MD+4dGC+sjP1RNNQ= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107608] [13 Regression] Failure on fold-overflow-1.c and pr95115.c Date: Thu, 12 Jan 2023 12:03:51 +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: missed-optimization, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW 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 #27 from Jakub Jelinek --- "elide an overflow" should be probably "elide an overflow or division by ze= ro" I think, because finite / 0.0 returns infinity and raises FE_DIVBYZERO rather than FE_OVERFLOW, even when it returns infinity from finite operands. Seems for infinity / 0.0 no exception is raised, so the finite operands infinite result condition seems to be sufficient. For GCC 13, I think it is important that we e.g. don't miscompile glibc lib= m, so the libm testsuite should be clean. PR107967 fixed some of the failures, a= nd some were claimed to be dups of this PR. So, would be nice to test GCC with your patch on glibc + libm testsuite. Just CC=3D/path/to/patched-gcc-trunk/gcc CXX=3D/path/to/patched-gcc-trunk/g++ ../configure --prefix=3D/usr CC=3D/path/to/patched-gcc-trunk/gcc CXX=3D/path/to/patched-gcc-trunk/g++ ma= ke -jN CC=3D/path/to/patched-gcc-trunk/gcc CXX=3D/path/to/patched-gcc-trunk/g++ ma= ke -jN check should be enough in latest glibc (and perhaps compare that to GCC 12).=