From patchwork Mon Aug 22 21:53:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 663 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:ecc5:0:0:0:0:0 with SMTP id s5csp683170wro; Mon, 22 Aug 2022 14:56:38 -0700 (PDT) X-Google-Smtp-Source: AA6agR5czomQWc8HDErjLPjseV2tFdvVo8yJKYDyuxQ/k9t1PjGTbeLA6getnDkTcuQ2jXRAMUYI X-Received: by 2002:a17:907:3f12:b0:731:559c:b57b with SMTP id hq18-20020a1709073f1200b00731559cb57bmr14179951ejc.712.1661205398003; Mon, 22 Aug 2022 14:56:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661205398; cv=none; d=google.com; s=arc-20160816; b=KetLJfZeCJUgljFbQUqh1SZqIXZ1famPktoU3uN2ugk1yeElLDwoY+2wOxHgW05IWQ d2iAHAdzSNHIzP2rS8fmc/hQN6wegCIOMn5w9nePLfAtToL9Z+VvxO0yOvAEIj4oJ73A fZIQiYuG59nY0hWjk5M0LY8rEdFzaWp6Z2+cSg6hexyOzYnaFAbQMHOV8+IydPNI4/ui 2vLixNul5meGpZAXjdBkjGGqpGTtv+kMsf1hg1dFiJcRbuRQADo0uc1cqtHGrnq3uXUk R5wHYRRgI1rWEfZOD1bTwCRzozZLk5QrKm7ntgPcvjkKjtCaJlmuBdIuY3uJgy1wB0LN rHCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:to :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=ZSWDVUiXs2qLjLiLMi5m3mofi1NYwjl27ZdlU35sxVY=; b=0FHv8qp29ZIPM6VuwAjIPDJY9y70lXdd1Hmp4hUtq0nz9nV19X0l9OTsmOTF0w02Xh XRAkp5wROgGxBoZa9Mo9fBq724FGMNBfukcRMKC17crHw3znmsOLvQS4dAG5nSp+TtY1 tFVW3SG6dYT/KuBhs+rdkL80Dm5tvNGrAOL3kJWTC2WkoCF08kndBmhdBXNKVxr2jj8X iuNh+KWrtlG5e8XfO8zonuPSHiJrq4mgEadvhsPuY5d/nd8SGzAGSh/Wx5Q8SllGRq49 kfDWKR8S3qqBYUpcnh6CmNGdcIhFnSwh0n8KzNnczuee5jw53UlR7Fv8CSHsydXFw/3B J1gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=j7ATZlxN; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id hd44-20020a17090796ac00b00730d207a05esi11167904ejc.32.2022.08.22.14.56.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Aug 2022 14:56:37 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=j7ATZlxN; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3FAA3385AC1D for ; Mon, 22 Aug 2022 21:55:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3FAA3385AC1D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1661205308; bh=ZSWDVUiXs2qLjLiLMi5m3mofi1NYwjl27ZdlU35sxVY=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=j7ATZlxNmzaaJsFhSwXccOJ/yRm+05V9uJJpJof9JPs4LpvvJml4j3RaUhl5eJZPT 3tCBmB+Syt5A0nJjDBIrLBdYlYUbWGpOzjX4zryESyUG3kZByZ93v8hHPd5nf6tqIF TY+/XQ4g8lk4C8vpuKiwbiHg57UbzF21EDU+VPFM= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 354F13854145 for ; Mon, 22 Aug 2022 21:53:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 354F13854145 Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-623-segTVvQROJ6msUL-M06SeA-1; Mon, 22 Aug 2022 17:53:53 -0400 X-MC-Unique: segTVvQROJ6msUL-M06SeA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 83CEB299E775; Mon, 22 Aug 2022 21:53:53 +0000 (UTC) Received: from localhost (unknown [10.33.36.78]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4E7854010D45; Mon, 22 Aug 2022 21:53:53 +0000 (UTC) To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] libstdc++: Document linker option for C++23 [PR105678] Date: Mon, 22 Aug 2022 22:53:52 +0100 Message-Id: <20220822215352.93012-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-12.8 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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: Jonathan Wakely via Gcc-patches From: Jonathan Wakely Reply-To: Jonathan Wakely Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1741900111078425412?= X-GMAIL-MSGID: =?utf-8?q?1741900111078425412?= Tested powerpc64le-linux, pushed to trunk. Needs backporting. -- >8 -- libstdc++-v3/ChangeLog: PR libstdc++/105678 * doc/xml/manual/using.xml: Document -lstdc++_libbacktrace requirement for using std::stacktrace. Also adjust -frtti and -fexceptions to document non-default (i.e. negative) forms. * doc/html/*: Regenerate. diff --git a/libstdc++-v3/doc/xml/manual/using.xml b/libstdc++-v3/doc/xml/manual/using.xml index 36b86702d22..0b9a0c98518 100644 --- a/libstdc++-v3/doc/xml/manual/using.xml +++ b/libstdc++-v3/doc/xml/manual/using.xml @@ -69,12 +69,16 @@ - -fexceptions + + -fno-exceptions + See exception-free dialect - -frtti + + -fno-rtti + As above, but RTTI-free dialect. @@ -104,6 +108,17 @@ + + -lstdc++_libbacktrace + Until C++23 support is non-experimental, linking to + libstdc++_libbacktrace.a + is required for use of the C++23 type + std::stacktrace + and related types in + <stacktrace>. + + + -fopenmp For parallel mode.