From patchwork Fri Jan 13 08:02:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 63142 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A8A5D3888C47 for ; Fri, 13 Jan 2023 08:03:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A8A5D3888C47 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673597016; bh=EdTRWlDTNPcmz3O4ccR+lmOHN93fv1mQpY8fzoqRge8=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=TsL9tlLcsi40kHteh+YuAGUbI+kHoaNqFGResAaSOy2eJqVPphvrUy0ulEyI9VXik m5OVpqocFDFCOJOAuYZQo8RiyKf9eWFDeIkjY326HF4Y2DuHhXYQUla6ZmeX/ssJr/ /l6KjZEwD6ycM3wpvcjwO8+XvrHS7Kgqbsym9eDc= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org 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 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) 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) To: gcc-patches@gcc.gnu.org Subject: [PATCH 9/9] Clarify -shared effect on crtfastmath.o MIME-Version: 1.0 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Richard Biener via Gcc-patches From: Richard Biener Reply-To: Richard Biener Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" 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