From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AA2AE3858D20; Thu, 6 Jul 2023 01:38:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AA2AE3858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688607535; bh=srQiA2FepWlonFu5AKqXv89bRpal+a8npIRnTGdK9Zg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=geC2ezrMYmfY/OvfdPFVvcuPe6vGYoXuW+a5nzYhf9wmxXgcSYW5zY9WhbKgyZEUD qHo9b2MXNJx5E5iMhp7BhPDX6UwsyS2GnCgUbOzuyEyDBs2VIrVOSRixpB3M+kfo5U OYhtrON/XyzYXsHTbdJOWU/SjG3YGo3RhMQwlBH0= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/110556] Floating point exception with specific optimizations Date: Thu, 06 Jul 2023 01:38:55 +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: 13.1.1 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: 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=3D110556 --- Comment #7 from Andrew Pinski --- (In reply to CTC from comment #6) > (In reply to Andrew Pinski from comment #4) > > Reducing this but it is taking a little longer as I get to the case whe= re we > > get undefined code on accident so I need to test it using > > -fsanitize=3Dundefined,address also. >=20 > For the unreduced program and optimizations, I test it with > -fno-strict-aliasing -fwrapv -fno-aggressive-loop-optimizations and > -fsanitize=3Dundefined. Both of them got floating point exception too. >=20 > I reduced the program with -fsanitize=3Dundefined. The result doesn't get > floating point exception. But its return value is not 0. That is still undefined code ... as the return value of the app is not specified in the source.=