From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1666) id 474323858CDB; Mon, 16 Jan 2023 13:31:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 474323858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673875884; bh=5Gw6sVWZSqGuQjZhzNprTtAAk4tPOJyAWfXwsNT8TEg=; h=From:To:Subject:Date:From; b=fVRiBwhDdvUhIvNk6pC4N1///10qbUxj5E0Bfcd2aoecU7OyVq6K1rEWi+TrS1e2h f1UpEiKpROay85jbUNmjDkGiD3NHrrXBUgXMfwEHwcRN/DLYyWo1wJpLLG5/ZW1dIh 8iTNlKnlYh5kSnBMuMYvoQ78OZJY/3aIw4anvhpQ= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Richard Biener To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-5201] solaris2: Don't add crtfastmath.o for -shared X-Act-Checkin: gcc X-Git-Author: Richard Biener X-Git-Refname: refs/heads/master X-Git-Oldrev: 8a1360e72d6c6056606aa5edd8c906c50f26de59 X-Git-Newrev: 6347bbec3efb625dfc8592fbb3099dc0364c5317 Message-Id: <20230116133124.474323858CDB@sourceware.org> Date: Mon, 16 Jan 2023 13:31:24 +0000 (GMT) List-Id: https://gcc.gnu.org/g:6347bbec3efb625dfc8592fbb3099dc0364c5317 commit r13-5201-g6347bbec3efb625dfc8592fbb3099dc0364c5317 Author: Richard Biener Date: Fri Jan 13 08:56:28 2023 +0100 solaris2: Don't add crtfastmath.o for -shared Don't add crtfastmath.o for -shared to avoid altering the FP environment when loading a shared library. PR target/55522 * config/sol2.h (ENDFILE_SPEC): Don't add crtfastmath.o for -shared. Diff: --- gcc/config/sol2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/sol2.h b/gcc/config/sol2.h index 05dbaffa8ea..616f9b91212 100644 --- a/gcc/config/sol2.h +++ b/gcc/config/sol2.h @@ -295,7 +295,7 @@ along with GCC; see the file COPYING3. If not see #undef ENDFILE_SPEC #define ENDFILE_SPEC \ - "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \ + "%{Ofast|ffast-math|funsafe-math-optimizations:%{!shared:crtfastmath.o%s}} \ %(endfile_arch) %(endfile_vtv) %(endfile_crtend) crtn.o%s" #undef LINK_ARCH32_SPEC_BASE