From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 538223856DD3; Fri, 7 Oct 2022 09:28:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 538223856DD3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665134891; bh=kn8N0dvpeHwTqUYQwDusp3JOAZrMzdoDeDnvChFuQXo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=TWFF/1hm9rjYwyDlgwqm+pGAGnaWJGYwUXylVbSkbXYHmhmOnHDIpsDpqFpF5v20v Czncw/4GhJGSp6I08+ptzZsPnY3UJZyR0ahm7lpcX5LhhBrOHMXjcvQGMb3L1twmrI AEzbhXyHQgX6/rPph+/c3bHqYBuUujlvWtNxjS/s= From: "aph 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: Fri, 07 Oct 2022 09:27: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: documentation X-Bugzilla-Severity: major X-Bugzilla-Who: aph 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 #23 from Andrew Haley --- This bug has pernicious effects in many more places: https://moyix.blogspot.com/2022/09/someones-been-messing-with-my-subnormals= .html Florian is right: at least, GCC should not automatically link crtfastmath.o with -shared. Better, separate fiddling with the FP control register from -ffast-math entirely.=