From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id A1E403839DF3 for ; Fri, 13 Jan 2023 08:02:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A1E403839DF3 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 8775F38658 for ; Fri, 13 Jan 2023 08:02:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1673596923; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=EdTRWlDTNPcmz3O4ccR+lmOHN93fv1mQpY8fzoqRge8=; b=GMpEJr0l3FQXVv/YclJnylusYjxrT4NDCINqvvb3u5nT/ouKmqZwAUyWM08LMO0Luc7pSf +w2+PfNzcp1Zi8sSCM55zkvNycWPCGQfcebx6XrY2WdsOrua65nJApRef85Owz//CBDbxu XqoKrOu8Y3Gaz1Jl8qOkVjhdBQ2Lx0Y= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1673596923; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=EdTRWlDTNPcmz3O4ccR+lmOHN93fv1mQpY8fzoqRge8=; b=sW4rB2wOyO68NsmbNbXwkLR+Gbc8xVR5eKhm3GXWEYRTLzNQkC2C9anMQM0fD9szpkV0gW G1+nFf2wpgbzSWBQ== 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 73D8113913 for ; Fri, 13 Jan 2023 08:02:03 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id jXI6G/sPwWOXSAAAMHmgww (envelope-from ) for ; Fri, 13 Jan 2023 08:02:03 +0000 Date: Fri, 13 Jan 2023 09:02:03 +0100 (CET) From: Richard Biener To: gcc-patches@gcc.gnu.org Subject: [PATCH 9/9] Clarify -shared effect on crtfastmath.o MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Message-Id: <20230113080203.73D8113913@imap2.suse-dmz.suse.de> X-Spam-Status: No, score=-11.8 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: This rewords the note to not specifically mention crtfastmath.o but FP environment altering by -ffast-math or -Ofast. I'll push this after the target parts are approved. PR target/55522 * doc/invoke.texi (-shared): Clarify effect on -ffast-math and -Ofast FP environment side-effects. --- gcc/doc/invoke.texi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 701c228bd0a..7a6a83b2641 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -17693,8 +17693,9 @@ needs to build supplementary stub code for constructors to work. On multi-libbed systems, @samp{gcc -shared} must select the correct support libraries to link against. Failing to supply the correct flags may lead to subtle defects. Supplying them in cases where they are not necessary -is innocuous. For x86, crtfastmath.o will not be added when -@option{-shared} is specified. } +is innocuous. @option{-shared} suppresses the addition of startup code +to alter the floating-point environment as done with @option{-ffast-math} +or @option{-Ofast} on some targets.} @item -shared-libgcc @itemx -static-libgcc -- 2.35.3