From patchwork Wed Sep 20 13:27:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 816199 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-462594-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="bzO+3qaX"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xy0sq2tB7z9s7c for ; Wed, 20 Sep 2017 23:27:42 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=kpwi+IqOTby/pWYINjtKgoUYC9yDDGvY4nln0uMMbi6UomVGbbz7i 74blHIxaQRaVXtcRrQPkx1oxbclKz9jg/63sYfi+IsWcAN9k0yKRJQ0b0BX7tJq2 viulQA/2GKd+DRrGEhXktDzinl5ZO7+OoR6NdVwAoOIVa+z3X/jvb8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=WIZeCeHY9LttZjoVyRofgTLcDDk=; b=bzO+3qaXtlJi2Dq7dUpG otLMyLX8xJ/lLlGsrVoLimT+zMGdin2D3nG/5IOFCL3/D1Ux5uS5auvz8DHtk9NK 3E+fUzVwhc1bNWVLnBG4HjELuzjPSORzj1dt3j+mL+E/xMfgtCNLeeAD6c40B3TR QCrJPUZv2/j661hWdTeU/5o= Received: (qmail 104950 invoked by alias); 20 Sep 2017 13:27:32 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 104926 invoked by uid 89); 20 Sep 2017 13:27:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Obtain 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 ESMTP; Wed, 20 Sep 2017 13:27:31 +0000 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 31F06C074F1E; Wed, 20 Sep 2017 13:27:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 31F06C074F1E Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=jwakely@redhat.com Received: from localhost (unknown [10.33.36.48]) by smtp.corp.redhat.com (Postfix) with ESMTP id D46B16031A; Wed, 20 Sep 2017 13:27:29 +0000 (UTC) Date: Wed, 20 Sep 2017 14:27:29 +0100 From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [PATCH] Remove non-standard std::copy_exception function Message-ID: <20170920132729.GA1226@redhat.com> MIME-Version: 1.0 Content-Disposition: inline X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.0 (2017-09-02) We should have removed this function years ago. It was the original name for std:make_exception_ptr in C++0x drafts, which we kept for backwards compatibility, but deprecated since 4.9.0. It's not in any C++ standard, so should be removed now. * libsupc++/exception_ptr.h (copy_exception): Remove deprecated non-standard function. Tested powerpc64le-linux, committed to trunk. commit 37c22cb67141a141cd8f325c569aad618aa7095e Author: Jonathan Wakely Date: Wed Sep 20 14:11:24 2017 +0100 Remove non-standard std::copy_exception function * libsupc++/exception_ptr.h (copy_exception): Remove deprecated non-standard function. diff --git a/libstdc++-v3/libsupc++/exception_ptr.h b/libstdc++-v3/libsupc++/exception_ptr.h index 0ece81d8137..dae4ca68fcf 100644 --- a/libstdc++-v3/libsupc++/exception_ptr.h +++ b/libstdc++-v3/libsupc++/exception_ptr.h @@ -201,19 +201,6 @@ namespace std #endif } - // _GLIBCXX_RESOLVE_LIB_DEFECTS - // 1130. copy_exception name misleading - /// Obtain an exception_ptr pointing to a copy of the supplied object. - /// This function is deprecated, use std::make_exception_ptr instead. - template - exception_ptr - copy_exception(_Ex __ex) _GLIBCXX_USE_NOEXCEPT _GLIBCXX_DEPRECATED; - - template - exception_ptr - copy_exception(_Ex __ex) _GLIBCXX_USE_NOEXCEPT - { return std::make_exception_ptr<_Ex>(__ex); } - // @} group exceptions } // namespace std