From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 115860 invoked by alias); 16 Jan 2016 12:43:27 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 115841 invoked by uid 89); 16 Jan 2016 12:43:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=no version=3.3.2 spammy=27,6, carry X-Spam-User: qpsmtpd, 2 recipients X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sat, 16 Jan 2016 12:43:26 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id C1A2EC076623; Sat, 16 Jan 2016 12:43:24 +0000 (UTC) Received: from localhost (ovpn-116-32.ams2.redhat.com [10.36.116.32]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u0GChNT1019760; Sat, 16 Jan 2016 07:43:24 -0500 Date: Sat, 16 Jan 2016 12:43:00 -0000 From: Jonathan Wakely To: David Edelsohn Cc: Torvald Riegel , GCC Patches , "libstdc++@gcc.gnu.org" , Jason Merrill Subject: Re: [PATCH v2] libstdc++: Make certain exceptions transaction_safe. Message-ID: <20160116124323.GM15084@redhat.com> References: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="RwGu8mu1E+uYXPWP" Content-Disposition: inline In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.5.24 (2015-08-30) X-SW-Source: 2016-01/txt/msg01187.txt.bz2 --RwGu8mu1E+uYXPWP Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-length: 80 What are the errors? I can build libstdc++ on gcc111. Does this patch help? --RwGu8mu1E+uYXPWP Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="69312.patch" Content-length: 1128 diff --git a/libstdc++-v3/src/c++11/cow-stdexcept.cc b/libstdc++-v3/src/c++11/cow-stdexcept.cc index afc3f6c..8a1b65a 100644 --- a/libstdc++-v3/src/c++11/cow-stdexcept.cc +++ b/libstdc++-v3/src/c++11/cow-stdexcept.cc @@ -27,6 +27,7 @@ // // Enable hooks for support for the Transactional Memory TS (N4514). +#if __cpp_transactional_memory >= 201505L #define _GLIBCXX_TM_TS_INTERNAL void _txnal_cow_string_C1_for_exceptions(void* that, const char* s, void* exc); @@ -40,6 +41,7 @@ void* _txnal_logic_error_get_msg(void* e); void* _txnal_runtime_error_get_msg(void* e); +#endif // All exception classes still use the classic COW std::string. #define _GLIBCXX_USE_CXX11_ABI 0 @@ -167,6 +169,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _GLIBCXX_END_NAMESPACE_VERSION } // namespace +#if __cpp_transactional_memory >= 201505L // Support for the Transactional Memory TS (N4514). // // logic_error and runtime_error both carry a message in the form of a COW @@ -440,3 +443,4 @@ CTORDTOR(14overflow_error, std::overflow_error, runtime_error) CTORDTOR(15underflow_error, std::underflow_error, runtime_error) } +#endif --RwGu8mu1E+uYXPWP--