From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by sourceware.org (Postfix) with ESMTP id 60A473851C04 for ; Tue, 20 Oct 2020 10:39:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 60A473851C04 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-281-sKitbi0-OV21cudcI9_Vtg-1; Tue, 20 Oct 2020 06:39:42 -0400 X-MC-Unique: sKitbi0-OV21cudcI9_Vtg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 60D9F57050; Tue, 20 Oct 2020 10:39:40 +0000 (UTC) Received: from localhost (unknown [10.33.36.242]) by smtp.corp.redhat.com (Postfix) with ESMTP id 113DB1002C05; Tue, 20 Oct 2020 10:39:39 +0000 (UTC) Date: Tue, 20 Oct 2020 11:39:39 +0100 From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Cc: Iain Sandoe Subject: [committed 2/2] libstdc++: Define noop coroutine details private and inline [PR 95917] Message-ID: <20201020103939.GD503596@redhat.com> References: <20201020103835.GA924362@redhat.com> MIME-Version: 1.0 In-Reply-To: <20201020103835.GA924362@redhat.com> X-Clacks-Overhead: GNU Terry Pratchett X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libstdc++@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++ mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Oct 2020 10:39:45 -0000 libstdc++: Define noop coroutine details private and inline [PR 95917] This moves the __noop_coro_frame type, the __noop_coro_fr global variable, and the __dummy_resume_destroy function from namespace scope, replacing them with private members of the specialization coroutine_handle. The function and variable are also declared inline, so that they generate no code unless used. libstdc++-v3/ChangeLog: PR libstdc++/95917 * include/std/coroutine (__noop_coro_frame): Replace with noop_coroutine_handle::__frame. (__dummy_resume_destroy): Define inline in __frame. (__noop_coro_fr): Replace with noop_coroutine_handle::_S_fr and define as inline. * testsuite/18_support/coroutines/95917.cc: New test. Tested powerpc64le-linux. Committed to trunk.