From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by sourceware.org (Postfix) with ESMTPS id DCEE73888836 for ; Fri, 13 Jan 2023 08:01:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DCEE73888836 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 1EE854EA55; Fri, 13 Jan 2023 08:01:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1673596907; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type; bh=mltpKuflpdp6eEljxhO7zgYdBw56Nq0fLlpb2cpMsAM=; b=wSGHJhxkjqdLwaiyYUrie7fo0kJV7wrZ552BM5kCTbsXwPPtokcUVaLs4Qnx88YiGPuaTx 912i9LObISuvule+L0aKjysQYWf8ofhuCsN+CTAcCB8jGo9GcYVMqE+xzKlHMZNesqPBbY zlAXHhsFj7Fz3ngByDPIZubrGwy89v0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1673596907; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type; bh=mltpKuflpdp6eEljxhO7zgYdBw56Nq0fLlpb2cpMsAM=; b=ej2Snj/SCZM0dUoWS1caNXyafTF8jdokVIsPJHzSWEQr1vx2/XKdgY9NFUQr9zaY9bdybd 2EwA7dX/slzanaBQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id E61D613913; Fri, 13 Jan 2023 08:01:46 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 38ION+oPwWN4SAAAMHmgww (envelope-from ); Fri, 13 Jan 2023 08:01:46 +0000 Date: Fri, 13 Jan 2023 09:01:46 +0100 (CET) From: Richard Biener To: gcc-patches@gcc.gnu.org cc: ro@CeBiTec.Uni-Bielefeld.DE Subject: [PATCH 8/9] solaris2: Don't add crtfastmath.o for -shared MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Message-Id: <20230113080146.E61D613913@imap2.suse-dmz.suse.de> X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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. --- 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 -- 2.35.3