From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 00024385354D; Tue, 6 Sep 2022 22:40:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 00024385354D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662504059; bh=QiDAnU+7OuXi4odrpiuNNYfhhml4tkBYEkc0G/7eGdc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=YTWycBpOlXco+cAsFTieQR6Vn4glSwzSiWiKK5T8v1S58pEReq/84fO5CkBM3ES3j qZaVgV9YqFUeyOc+YPa+6hKET2jZYPSQHVHG3RLu3BzzId38HZobDnY956BX7gUymP f4BRRvkuDO238f94HMZJyRM73AVeo2tLy8aIEh+Q= From: "foom at fuhm dot net" 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:40:57 +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: foom at fuhm dot net 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: cc 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 James Y Knight changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |foom at fuhm dot net --- Comment #12 from James Y Knight --- https://github.com/llvm/llvm-project/issues/57589 was just filed, requestin= g to fix this behavior in Clang, as well. Since Clang is effectively only doing it in the first place to match GCC's behavior, my feeling is that it'd be better not to make such a change in Cl= ang only. However, I'd just like to give my support to changing this in GCC (either to stop automatically linking against crtfastmath.o altogether, or to at least stop doing so with -shared). And, if there is a change here, would certainly then propose to match the new behavior in Clang.=