From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3B125384F002; Wed, 14 Sep 2022 17:03:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3B125384F002 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663175020; bh=lLjBa4NO6fuFNLJcqffNcyVI85w7k0fF2U2+DYjT5z4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Gc0kU9nuKCYPKgSneSy72QlSe4zA0bBdrThZFrzYdrBhePIveSRK+SZG4oQ1m3NNn fFC0jbF/dKx2eXbSPEUo48qpeBKtODmJxNrEmzmLFENdgDZGLCC0O7AJVNLAGP4kqX 6jaPEMeNNbux43GVX4Nt3e0/k5kak7hMx4Y5gQoc= From: "brendandg at nyu dot edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/55522] -funsafe-math-optimizations is unexpectedly harmful, especially w/ -shared Date: Wed, 14 Sep 2022 17:03:39 +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: brendandg at nyu dot edu 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 #22 from Brendan Dolan-Gavitt --- I think loading shared libraries from within threads is actually pretty com= mon when shared libs are used as plugins for some GUI app. I made a graph of the reverse dependencies of Debian packages that contain shared libraries linki= ng to crtfastmath.o, and you can see that most of them are related to A/V plug= ins (e.g. the largest cluster is from gstreamer-plugins-bad): https://moyix.net/~moyix/ffast_debian.pdf Granted, I think you could argue in this case that only affecting the thread that loaded the plugin is the *intended* behavior.=