Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/816358/?format=api
{ "id": 816358, "url": "http://patchwork.ozlabs.org/api/patches/816358/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20170920163526.GA30715@redhat.com/", "project": { "id": 17, "url": "http://patchwork.ozlabs.org/api/projects/17/?format=api", "name": "GNU Compiler Collection", "link_name": "gcc", "list_id": "gcc-patches.gcc.gnu.org", "list_email": "gcc-patches@gcc.gnu.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20170920163526.GA30715@redhat.com>", "list_archive_url": null, "date": "2017-09-20T16:35:26", "name": "PR libstdc++/81469 deprecate std::uncaught_exception for C++17", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "57a5ccc376f984501c3cf15ecbca9a31777d83cd", "submitter": { "id": 48004, "url": "http://patchwork.ozlabs.org/api/people/48004/?format=api", "name": "Jonathan Wakely", "email": "jwakely@redhat.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20170920163526.GA30715@redhat.com/mbox/", "series": [ { "id": 4174, "url": "http://patchwork.ozlabs.org/api/series/4174/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=4174", "date": "2017-09-20T16:35:26", "name": "PR libstdc++/81469 deprecate std::uncaught_exception for C++17", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/4174/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/816358/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/816358/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<gcc-patches-return-462619-incoming=patchwork.ozlabs.org@gcc.gnu.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": [ "patchwork-incoming@bilbo.ozlabs.org", "mailing list gcc-patches@gcc.gnu.org" ], "Authentication-Results": [ "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=gcc-patches-return-462619-incoming=patchwork.ozlabs.org@gcc.gnu.org;\n\treceiver=<UNKNOWN>)", "ozlabs.org; dkim=pass (1024-bit key;\n\tunprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org\n\theader.b=\"MwkSHScW\"; dkim-atps=neutral", "sourceware.org; auth=none", "ext-mx08.extmail.prod.ext.phx2.redhat.com;\n\tdmarc=none (p=none dis=none) header.from=redhat.com", "ext-mx08.extmail.prod.ext.phx2.redhat.com;\n\tspf=fail smtp.mailfrom=jwakely@redhat.com" ], "Received": [ "from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xy52q6DbPz9t2Q\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 21 Sep 2017 02:35:47 +1000 (AEST)", "(qmail 24477 invoked by alias); 20 Sep 2017 16:35:31 -0000", "(qmail 24395 invoked by uid 89); 20 Sep 2017 16:35:30 -0000", "from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by\n\tsourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP;\n\tWed, 20 Sep 2017 16:35:29 +0000", "from smtp.corp.redhat.com\n\t(int-mx01.intmail.prod.int.phx2.redhat.com\n\t[10.5.11.11])\t(using TLSv1.2 with cipher AECDH-AES256-SHA\n\t(256/256 bits))\t(No client certificate requested)\tby\n\tmx1.redhat.com (Postfix) with ESMTPS id BD20BC0587C5;\n\tWed, 20 Sep 2017 16:35:27 +0000 (UTC)", "from localhost (unknown [10.33.36.48])\tby smtp.corp.redhat.com\n\t(Postfix) with ESMTP id 71512600C2;\n\tWed, 20 Sep 2017 16:35:27 +0000 (UTC)" ], "DomainKey-Signature": "a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender:date\n\t:from:to:subject:message-id:mime-version:content-type; q=dns; s=\n\tdefault; b=pbZoD+6l+ucmyZvMQuyQADGz+atTAlgMRtzaXMjrUs+C4vMJZXHhG\n\tns9VfcS5AnSZo9JgGcmXr6CgGraEtijySazI0zfdToq/tadpP8lT/kas7qwZ6Ern\n\tP+hUg+oFKtTXLZ5f9kvhLm5fVedozq6yyceIm2u4ZHOMzICDbb8bug=", "DKIM-Signature": "v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender:date\n\t:from:to:subject:message-id:mime-version:content-type; s=\n\tdefault; bh=Up0GGxX5ljjER50PVewKXT3GD/w=; b=MwkSHScWaVKyxH28p+3H\n\tCpHpqhcjvMjskabgsKfv0WD7JhHzxkxT0NKc1z8Fh+u69AlTnPikhDIjPqT/McgE\n\tzU9SvTypw+6x8aH+3aznPmdpdG0CK7EznOzfrlVyxKaWgZkrPkwNZg82cEM5hNVV\n\tqm/84bKUkeHEKCBxmaW5LDE=", "Mailing-List": "contact gcc-patches-help@gcc.gnu.org; run by ezmlm", "Precedence": "bulk", "List-Id": "<gcc-patches.gcc.gnu.org>", "List-Unsubscribe": "<mailto:gcc-patches-unsubscribe-incoming=patchwork.ozlabs.org@gcc.gnu.org>", "List-Archive": "<http://gcc.gnu.org/ml/gcc-patches/>", "List-Post": "<mailto:gcc-patches@gcc.gnu.org>", "List-Help": "<mailto:gcc-patches-help@gcc.gnu.org>", "Sender": "gcc-patches-owner@gcc.gnu.org", "X-Virus-Found": "No", "X-Spam-SWARE-Status": "No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0,\n\tGIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RP_MATCHES_RCVD,\n\tSPF_HELO_PASS autolearn=ham version=3.3.2 spammy=", "X-Spam-User": "qpsmtpd, 2 recipients", "X-HELO": "mx1.redhat.com", "DMARC-Filter": "OpenDMARC Filter v1.3.2 mx1.redhat.com BD20BC0587C5", "Date": "Wed, 20 Sep 2017 17:35:26 +0100", "From": "Jonathan Wakely <jwakely@redhat.com>", "To": "libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org", "Subject": "[PATCH] PR libstdc++/81469 deprecate std::uncaught_exception for\n\tC++17", "Message-ID": "<20170920163526.GA30715@redhat.com>", "MIME-Version": "1.0", "Content-Type": "multipart/mixed; boundary=\"KsGdsel6WgEHnImy\"", "Content-Disposition": "inline", "X-Clacks-Overhead": "GNU Terry Pratchett", "User-Agent": "Mutt/1.9.0 (2017-09-02)" }, "content": "C++17 deprecates uncaught_exception in favour of uncaught_exceptions,\nso this adds the attribute.\n\n\tPR libstdc++/81469\n\t* libsupc++/exception (uncaught_exception): Deprecate for C++17.\n\t* testsuite/18_support/exception_ptr/62258.cc: Add -Wno-deprecated.\n\t* testsuite/18_support/uncaught_exception/14026.cc: Likewise.\n\nTested powerpc64le-linux, committed to trunk.\ncommit 0b85751e9bfeeba7568b915e4c59a191f0a509c1\nAuthor: Jonathan Wakely <jwakely@redhat.com>\nDate: Wed Sep 20 14:44:02 2017 +0100\n\n PR libstdc++/81469 deprecate std::uncaught_exception for C++17\n \n PR libstdc++/81469\n * libsupc++/exception (uncaught_exception): Deprecate for C++17.\n * testsuite/18_support/exception_ptr/62258.cc: Add -Wno-deprecated.\n * testsuite/18_support/uncaught_exception/14026.cc: Likewise.", "diff": "diff --git a/libstdc++-v3/libsupc++/exception b/libstdc++-v3/libsupc++/exception\nindex e51d31c938b..9b177c7ee8a 100644\n--- a/libstdc++-v3/libsupc++/exception\n+++ b/libstdc++-v3/libsupc++/exception\n@@ -98,9 +98,10 @@ namespace std\n * %exception can result in a call of @c terminate()\n * (15.5.1).'\n */\n+ _GLIBCXX17_DEPRECATED\n bool uncaught_exception() _GLIBCXX_USE_NOEXCEPT __attribute__ ((__pure__));\n \n-#if __cplusplus > 201402L || !defined(__STRICT_ANSI__) // c++1z or gnu++98\n+#if __cplusplus > 201402L || !defined(__STRICT_ANSI__) // c++17 or gnu++98\n #define __cpp_lib_uncaught_exceptions 201411\n /// The number of uncaught exceptions.\n int uncaught_exceptions() _GLIBCXX_USE_NOEXCEPT __attribute__ ((__pure__));\ndiff --git a/libstdc++-v3/testsuite/18_support/exception_ptr/62258.cc b/libstdc++-v3/testsuite/18_support/exception_ptr/62258.cc\nindex a53b0669b83..635672cc255 100644\n--- a/libstdc++-v3/testsuite/18_support/exception_ptr/62258.cc\n+++ b/libstdc++-v3/testsuite/18_support/exception_ptr/62258.cc\n@@ -1,3 +1,4 @@\n+// { dg-options \"-Wno-deprecated\" }\n // { dg-do run { target c++11 } }\n \n // Copyright (C) 2015-2017 Free Software Foundation, Inc.\ndiff --git a/libstdc++-v3/testsuite/18_support/uncaught_exception/14026.cc b/libstdc++-v3/testsuite/18_support/uncaught_exception/14026.cc\nindex 78581af5629..8bc4953e028 100644\n--- a/libstdc++-v3/testsuite/18_support/uncaught_exception/14026.cc\n+++ b/libstdc++-v3/testsuite/18_support/uncaught_exception/14026.cc\n@@ -18,6 +18,8 @@\n // PR 14026\n // 18.6.4 uncaught_exception\n \n+// { dg-options \"-Wno-deprecated\" }\n+\n #include <cstdlib>\n #include <exception>\n #include <testsuite_hooks.h>\n", "prefixes": [] }