[{"id":1777236,"web_url":"http://patchwork.ozlabs.org/comment/1777236/","msgid":"<20170928185243.GH1701@tucnak>","list_archive_url":null,"date":"2017-09-28T18:52:43","subject":"Re: [PATCH] PR libstdc++/81469 deprecate std::uncaught_exception\n\tfor C++17","submitter":{"id":671,"url":"http://patchwork.ozlabs.org/api/people/671/","name":"Jakub Jelinek","email":"jakub@redhat.com"},"content":"Hi!\n\nOn Wed, Sep 20, 2017 at 05:35:26PM +0100, Jonathan Wakely wrote:\n> C++17 deprecates uncaught_exception in favour of uncaught_exceptions,\n> so 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> \n> Tested powerpc64le-linux, committed to trunk.\n\nThis broke a couple of tests with make check-c++-all, the following patch\nshould fix that.\n\nRegtested on x86_64-linux and i686-linux, including make check-c++-all, ok\nfor trunk?\n\n2017-09-28  Jakub Jelinek  <jakub@redhat.com>\n\n\t* g++.dg/eh/uncaught1.C: Add -Wno-deprecated for c++17.\n\t* g++.dg/eh/uncaught2.C: Likewise.\n\t* g++.dg/eh/uncaught3.C: Likewise.\n\t* g++.dg/eh/uncaught4.C: Likewise.\n\t* g++.old-deja/g++.mike/eh48.C: Likewise.\n\n--- gcc/testsuite/g++.dg/eh/uncaught1.C.jj\t2014-01-28 14:03:44.000000000 +0100\n+++ gcc/testsuite/g++.dg/eh/uncaught1.C\t2017-09-28 14:33:08.758343406 +0200\n@@ -1,6 +1,7 @@\n // PR libstdc++/10606\n // { dg-do run }\n // { dg-options \"-fuse-cxa-get-exception-ptr\" { target powerpc*-*-darwin* } }\n+// { dg-additional-options \"-Wno-deprecated\" { target c++17 } }\n \n #include <exception>\n #include <cstdlib>\n--- gcc/testsuite/g++.dg/eh/uncaught2.C.jj\t2008-09-05 12:55:05.000000000 +0200\n+++ gcc/testsuite/g++.dg/eh/uncaught2.C\t2017-09-28 14:33:16.761250186 +0200\n@@ -1,6 +1,7 @@\n // { dg-do compile }\n // { dg-final { scan-assembler-not \"__cxa_get_exception\" } }\n // { dg-options \"-fno-use-cxa-get-exception-ptr\" }\n+// { dg-additional-options \"-Wno-deprecated\" { target c++17 } }\n \n #include <exception>\n #include <cstdlib>\n--- gcc/testsuite/g++.dg/eh/uncaught3.C.jj\t2008-09-05 12:55:05.000000000 +0200\n+++ gcc/testsuite/g++.dg/eh/uncaught3.C\t2017-09-28 14:33:23.180175417 +0200\n@@ -1,6 +1,7 @@\n // { dg-do compile { target powerpc*-*-darwin* } }\n // { dg-final { scan-assembler-not \"__cxa_get_exception\" } }\n // { dg-options \"-mmacosx-version-min=10.4\" }\n+// { dg-additional-options \"-Wno-deprecated\" { target c++17 } }\n \n #include <exception>\n #include <cstdlib>\n--- gcc/testsuite/g++.dg/eh/uncaught4.C.jj\t2014-01-28 14:03:44.000000000 +0100\n+++ gcc/testsuite/g++.dg/eh/uncaught4.C\t2017-09-28 14:33:29.811098178 +0200\n@@ -1,5 +1,6 @@\n // PR c++/41174\n // { dg-do run }\n+// { dg-additional-options \"-Wno-deprecated\" { target c++17 } }\n \n #include <exception>\n \n--- gcc/testsuite/g++.old-deja/g++.mike/eh48.C.jj\t2008-09-05 12:54:56.000000000 +0200\n+++ gcc/testsuite/g++.old-deja/g++.mike/eh48.C\t2017-09-28 14:34:09.792632463 +0200\n@@ -1,5 +1,6 @@\n // { dg-do run { xfail sparc64-*-elf arm-*-pe } }\n // { dg-options \"-fexceptions\" }\n+// { dg-additional-options \"-Wno-deprecated\" { target c++17 } }\n \n #include <exception>\n #include <stdlib.h>\n\n\n\tJakub","headers":{"Return-Path":"<gcc-patches-return-463136-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-463136-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=\"xnGeNv6z\"; dkim-atps=neutral","sourceware.org; auth=none","ext-mx06.extmail.prod.ext.phx2.redhat.com;\n\tdmarc=none (p=none dis=none) header.from=redhat.com","ext-mx06.extmail.prod.ext.phx2.redhat.com;\n\tspf=fail smtp.mailfrom=jakub@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 3y33jZ3fbXz9t3h\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 29 Sep 2017 04:53:05 +1000 (AEST)","(qmail 44398 invoked by alias); 28 Sep 2017 18:52:49 -0000","(qmail 44380 invoked by uid 89); 28 Sep 2017 18:52:49 -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\tThu, 28 Sep 2017 18:52:48 +0000","from smtp.corp.redhat.com\n\t(int-mx05.intmail.prod.int.phx2.redhat.com\n\t[10.5.11.15])\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 C452D26854;\n\tThu, 28 Sep 2017 18:52:46 +0000 (UTC)","from tucnak.zalov.cz (ovpn-116-41.ams2.redhat.com\n\t[10.36.116.41])\tby smtp.corp.redhat.com (Postfix) with ESMTPS\n\tid 66AE21715F; Thu, 28 Sep 2017 18:52:46 +0000 (UTC)","from tucnak.zalov.cz (localhost [127.0.0.1])\tby tucnak.zalov.cz\n\t(8.15.2/8.15.2) with ESMTP id v8SIqiBb010252;\n\tThu, 28 Sep 2017 20:52:44 +0200","(from jakub@localhost)\tby tucnak.zalov.cz (8.15.2/8.15.2/Submit)\n\tid v8SIqhgl010251; Thu, 28 Sep 2017 20:52:43 +0200"],"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:cc:subject:message-id:reply-to:references:mime-version\n\t:content-type:in-reply-to; q=dns; s=default; b=HS1OHBJtB7EC4VFF8\n\t80j2UuXzlZ9xA/CJevKAfmK9kpjwjPvvTF925ew8yrpjRCLY4N693nP+kB6qyLk/\n\tkDFEvgroKcrs+4xVxLYuUvGne2l46cXYbd1W1YM1rEVR6+dP9Gqvt04wZGL6KWTu\n\twYB9b1IAfVzxHM/aQk/tFQMN3Q=","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:cc:subject:message-id:reply-to:references:mime-version\n\t:content-type:in-reply-to; s=default; bh=yZU5kCBndTXocvR4xaC8VjQ\n\tBe3s=; b=xnGeNv6z5U/d/uIfS4ITCmppwFDWi1HKxtYLLhuIWrsSwB1z3Zvhrui\n\tc+AOFVSMlzM+x0CDd/v1QFeCvYXOo/gvFdYbUvaxs4Yul7/ITvH4aWA833eq/KAy\n\tqYM5X7pi//z45JXmV7k7mDpQvxhojHp5iBqqUiKdEZb0VEM+fwk4=","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=-10.9 required=5.0 tests=BAYES_00, GIT_PATCH_2,\n\tGIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD,\n\tSPF_HELO_PASS autolearn=ham version=3.3.2 spammy=favour","X-Spam-User":"qpsmtpd, 2 recipients","X-HELO":"mx1.redhat.com","DMARC-Filter":"OpenDMARC Filter v1.3.2 mx1.redhat.com C452D26854","Date":"Thu, 28 Sep 2017 20:52:43 +0200","From":"Jakub Jelinek <jakub@redhat.com>","To":"Jonathan Wakely <jwakely@redhat.com>, Jason Merrill <jason@redhat.com>,\n\tNathan Sidwell <nathan@acm.org>","Cc":"libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org","Subject":"Re: [PATCH] PR libstdc++/81469 deprecate std::uncaught_exception\n\tfor C++17","Message-ID":"<20170928185243.GH1701@tucnak>","Reply-To":"Jakub Jelinek <jakub@redhat.com>","References":"<20170920163526.GA30715@redhat.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=us-ascii","Content-Disposition":"inline","In-Reply-To":"<20170920163526.GA30715@redhat.com>","User-Agent":"Mutt/1.7.1 (2016-10-04)","X-IsSubscribed":"yes"}},{"id":1777323,"web_url":"http://patchwork.ozlabs.org/comment/1777323/","msgid":"<0d903cc5-7215-204c-a4d9-d808a4b81876@acm.org>","list_archive_url":null,"date":"2017-09-28T23:39:03","subject":"Re: [PATCH] PR libstdc++/81469 deprecate std::uncaught_exception\n\tfor C++17","submitter":{"id":9970,"url":"http://patchwork.ozlabs.org/api/people/9970/","name":"Nathan Sidwell","email":"nathan@acm.org"},"content":"On 09/28/2017 11:52 AM, Jakub Jelinek wrote:\n> Hi!\n> \n> On Wed, Sep 20, 2017 at 05:35:26PM +0100, Jonathan Wakely wrote:\n>> C++17 deprecates uncaught_exception in favour of uncaught_exceptions,\n>> so 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>>\n>> Tested powerpc64le-linux, committed to trunk.\n> \n> This broke a couple of tests with make check-c++-all, the following patch\n> should fix that.\n> \n> Regtested on x86_64-linux and i686-linux, including make check-c++-all, ok\n> for trunk?\n\nok, thanks\n\nnathan","headers":{"Return-Path":"<gcc-patches-return-463159-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-463159-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=\"WuwI6cQY\"; dkim-atps=neutral","sourceware.org; auth=none"],"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 3y3B401n4Vz9t2c\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 29 Sep 2017 09:39:27 +1000 (AEST)","(qmail 54578 invoked by alias); 28 Sep 2017 23:39:09 -0000","(qmail 53689 invoked by uid 89); 28 Sep 2017 23:39:08 -0000","from mail-pf0-f169.google.com (HELO mail-pf0-f169.google.com)\n\t(209.85.192.169) by sourceware.org\n\t(qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP;\n\tThu, 28 Sep 2017 23:39:07 +0000","by mail-pf0-f169.google.com with SMTP id r71so1610002pfe.12;\n\tThu, 28 Sep 2017 16:39:07 -0700 (PDT)","from [10.20.3.142] ([67.135.43.183]) by smtp.googlemail.com with\n\tESMTPSA id b8sm4715695pfl.62.2017.09.28.16.39.04\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256\n\tbits=128/128); Thu, 28 Sep 2017 16:39:05 -0700 (PDT)"],"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\n\t:subject:to:cc:references:from:message-id:date:mime-version\n\t:in-reply-to:content-type:content-transfer-encoding; q=dns; s=\n\tdefault; b=e1zohBkqWXrmbxEeCy//VpqkoDkbHzlB26wBjoFnzdjrQBPb16Hta\n\tWxGi4PyJQ8hfMKwNfDeXVwrVRVGRhkLFaEL0l9GExdQyVepDhito3QULcMv899Hx\n\tQyA3INxRGmh+DpQ14qiV0mcazD0f37dHjar6alEXMyxYDCsHD5kUew=","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\n\t:subject:to:cc:references:from:message-id:date:mime-version\n\t:in-reply-to:content-type:content-transfer-encoding; s=default;\n\tbh=6dSiHt0/zTkkuh0nol732l32eZE=; b=WuwI6cQY7yIF0ZkbgZkQRfxkBDEx\n\tIlOYa37tfFRqMhZ+OstG6pHICRPt4c1wTfMsOMC1TVHVy7ZxbndpLV3SJSpQNb48\n\tNFY0/tOWQOg1Bi50hAOeGiyCOSCRUCyDdIFkrFvzxbuGmfIWXFGcLWBu2IjMVKHz\n\tAtsxtIMBuxu10UY=","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=-2.8 required=5.0 tests=AWL, BAYES_00,\n\tFREEMAIL_FROM, RCVD_IN_DNSWL_NONE,\n\tSPF_PASS autolearn=ham version=3.3.2 spammy=","X-Spam-User":"qpsmtpd, 2 recipients","X-HELO":"mail-pf0-f169.google.com","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net;\n\ts=20161025;\n\th=x-gm-message-state:sender:subject:to:cc:references:from:message-id\n\t:date:user-agent:mime-version:in-reply-to:content-language\n\t:content-transfer-encoding;\n\tbh=Dc4AZPx6igQ2Mw6OyHiSRMkjUf84g9dlrmGhoga12vE=;\n\tb=bmqtzTWp6phKcSeRq41bNkNnlrFWgbiIvT8ARJOVmQGBp5ewKQoP8SI7Q58EwpCG6m\n\tC6KELPBJrxMrPBSF7sIfp9BGAkFHVAonPNmMMXcg6atTwMRBIHlj8JCLf3ewmmu0fTsS\n\tW7WkOwetDSFmreIF0u9IZJPX1bqPGzJrYp0uv31SNPgAmrYXcNbrgWiUpLASQMVuNDV2\n\tVJ9RfgCLO9aLe5MJqAv0qR2zVopnur4NS/B3oa7wFB9OahrDRMY/TSXwYsQ4VK1N5OYm\n\tLu4ZfCUVFLUR67ksVdIGMO8MJ+mmqiOPBPRxicymqyk9aZfFXgPsmw5kXmJ+yTbSW057\n\to/0w==","X-Gm-Message-State":"AHPjjUg4Mh/KGhPib0J3ITJJKbLNs4GOudcLH+9vH8zgkjHTx/PQuQ0e\taVOCPXvnI16M/OfPF2Pq8CKkfQ==","X-Google-Smtp-Source":"AOwi7QDOzHin8JW0yFrcrhLAVbqCAv0evRxbgkz7T0Bng+49c5Cz682SVrbx+BqkC+JokkzKHOyCsw==","X-Received":"by 10.159.218.65 with SMTP id x1mr5174496plv.245.1506641946079;\n\tThu, 28 Sep 2017 16:39:06 -0700 (PDT)","Subject":"Re: [PATCH] PR libstdc++/81469 deprecate std::uncaught_exception\n\tfor C++17","To":"Jakub Jelinek <jakub@redhat.com>, Jonathan Wakely <jwakely@redhat.com>,\n\tJason Merrill <jason@redhat.com>","Cc":"libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org","References":"<20170920163526.GA30715@redhat.com>\n\t<20170928185243.GH1701@tucnak>","From":"Nathan Sidwell <nathan@acm.org>","Message-ID":"<0d903cc5-7215-204c-a4d9-d808a4b81876@acm.org>","Date":"Thu, 28 Sep 2017 16:39:03 -0700","User-Agent":"Mozilla/5.0 (X11; Linux x86_64;\n\trv:52.0) Gecko/20100101 Thunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<20170928185243.GH1701@tucnak>","Content-Type":"text/plain; charset=utf-8; format=flowed","Content-Transfer-Encoding":"7bit"}}]