testsuite: Require gnu-tm support for pr94856.C
authorKito Cheng <kito.cheng@sifive.com>
Mon, 11 May 2020 09:51:03 +0000 (17:51 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Mon, 11 May 2020 09:58:25 +0000 (17:58 +0800)
 - The testcase uses the -fgnu-tm option but does not ensure that support
   is enabled. This patch adds the test to the testcase.

* gcc/testsuite/g++.dg/ipa/pr94856.C: Require fgnu-tm.

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr94856.C

index c35e084b366b0e3ebae93e3de0930847c1fbfbdb..7d28875760cfd0e8f3ac55d01d43c16b57994537 100644 (file)
@@ -1,3 +1,7 @@
+2020-05-11  Kito Cheng  <kito.cheng@sifive.com>
+
+       * gcc/testsuite/g++.dg/ipa/pr94856.C: Require fgnu-tm.
+
 2020-05-11  Uroš Bizjak  <ubizjak@gmail.com>
 
        PR target/95046
index 5315c52d80edad619e450bce05e3017a44360cfe..40f3a167e29732e05a072bc72968af5586a8707b 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fno-tree-dse --param uninlined-function-insns=0 --param early-inlining-insns=3 -fgnu-tm " } */
+/* { dg-require-effective-target fgnu_tm } */
 
 class a {
 public: