From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C873C3853553; Tue, 6 Sep 2022 22:55:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C873C3853553 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662504941; bh=ddEIWczcSJfrXWEOD5G89QpXFrl9D6PS+20jRQUuVkg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=YptIzVNSyL6WaWJ4ni2jKhP1taFaPKmOG/KxVG54urLJ60c3T5XJVWVXLusajKbN+ r2/ire6I4bSxgxyOqKwNPfPNQi5Wp58hk1bgfRm0lWj36boYRhVzpHrZjdfnAGIMcX 2IDSNuUQBe9p3LFdiGwbMQMgcB15pyU0z38n+GVw= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/55522] -funsafe-math-optimizations is unexpectedly harmful, especially w/ -shared Date: Tue, 06 Sep 2022 22:55:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.6.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW 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=3D55522 --- Comment #13 from Andrew Pinski --- Patient: Doctor it hurts when I do this. Doctor: then don't do that and if you read the instructions I gave you I to= ld you I would hurt this way. Note I think it was a mistake that gcc had -ffast-math option at all now. But that ship has sailed over 18 years ago. And people abuse optimizations = that are documented this way and will still continue to abuse others similarly really. Plus always will abuse c/c++ semantics too.=