From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 05E5A3858429; Thu, 8 Sep 2022 17:09:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 05E5A3858429 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662656971; bh=p/TB8aCaI/76LXED3ZrO19DYM3hDGtzH5kYd/mq8JCA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=a6E4pAPtkFkLYoIkwrftjLg+jtnkFVCu0gEENMOA1odNNp7L3vrpas9OoVocWl9JO Zs+NtuoDMf6nc9eEVsxpTQ/TIuZJx1A8Vod8tKgPu/3GDIAxTcHQm30NAb6s3MJG2N g9XOt2ffKYf0KYCIjG0X5BYaZoJert6a6RA23o2Y= From: "luto at kernel dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/55522] -funsafe-math-optimizations is unexpectedly harmful, especially w/ -shared Date: Thu, 08 Sep 2022 17:09:29 +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: luto at kernel dot 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 #16 from Andy Lutomirski --- (In reply to Andrew Pinski from comment #13) > Patient: Doctor it hurts when I do this. > Doctor: then don't do that and if you read the instructions I gave you I > told you I would hurt this way. I think this analogy is off. Maybe for most questionable optimization or codegen options it would apply, but -ffast-math is more like: Patient: Doctor, it hurts me when my neighbor does this. Doctor: Then tell your neighbor not to read that and to read the fine print= on the box. If nitroglycerin pills have side effects and patients need to read the labe= l, maybe fine. But if they start exploding and breaking other peoples' window= s, that's a whole different problem.=