From: Jason Merrill Date: Thu, 28 Sep 2017 18:36:58 +0000 (-0400) Subject: Use -Wno-deprecated for std::uncaught_exception tests. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6ad0466f585aff427339b66e2228ac99d1d595bf;p=gcc.git Use -Wno-deprecated for std::uncaught_exception tests. * g++.dg/eh/uncaught1.C: Pass -Wno-deprecated. * g++.dg/eh/uncaught2.C: Pass -Wno-deprecated. * g++.dg/eh/uncaught4.C: Pass -Wno-deprecated. * g++.old-deja/g++.mike/eh48.C: Pass -Wno-deprecated. From-SVN: r253262 --- diff --git a/gcc/testsuite/g++.dg/eh/uncaught1.C b/gcc/testsuite/g++.dg/eh/uncaught1.C index e96af334a8c..4f05be59fd1 100644 --- a/gcc/testsuite/g++.dg/eh/uncaught1.C +++ b/gcc/testsuite/g++.dg/eh/uncaught1.C @@ -1,6 +1,7 @@ // PR libstdc++/10606 // { dg-do run } -// { dg-options "-fuse-cxa-get-exception-ptr" { target powerpc*-*-darwin* } } +// { dg-options "-Wno-deprecated" } +// { dg-options "-fuse-cxa-get-exception-ptr -Wno-deprecated" { target powerpc*-*-darwin* } } #include #include diff --git a/gcc/testsuite/g++.dg/eh/uncaught2.C b/gcc/testsuite/g++.dg/eh/uncaught2.C index a99b2d7f36e..62e4d4ded22 100644 --- a/gcc/testsuite/g++.dg/eh/uncaught2.C +++ b/gcc/testsuite/g++.dg/eh/uncaught2.C @@ -1,6 +1,6 @@ // { dg-do compile } // { dg-final { scan-assembler-not "__cxa_get_exception" } } -// { dg-options "-fno-use-cxa-get-exception-ptr" } +// { dg-options "-fno-use-cxa-get-exception-ptr -Wno-deprecated" } #include #include diff --git a/gcc/testsuite/g++.dg/eh/uncaught4.C b/gcc/testsuite/g++.dg/eh/uncaught4.C index 227d11b330b..8ca2cd255ca 100644 --- a/gcc/testsuite/g++.dg/eh/uncaught4.C +++ b/gcc/testsuite/g++.dg/eh/uncaught4.C @@ -1,5 +1,6 @@ // PR c++/41174 // { dg-do run } +// { dg-options "-Wno-deprecated" } #include diff --git a/gcc/testsuite/g++.old-deja/g++.mike/eh48.C b/gcc/testsuite/g++.old-deja/g++.mike/eh48.C index d9caf61b430..458fd0135a3 100644 --- a/gcc/testsuite/g++.old-deja/g++.mike/eh48.C +++ b/gcc/testsuite/g++.old-deja/g++.mike/eh48.C @@ -1,5 +1,5 @@ // { dg-do run { xfail sparc64-*-elf arm-*-pe } } -// { dg-options "-fexceptions" } +// { dg-options "-fexceptions -Wno-deprecated" } #include #include