aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2003-04-04 16:45:06 -0800
committerRichard Henderson <rth@gcc.gnu.org>2003-04-04 16:45:06 -0800
commit0a49eb31b299b8ce3f1c4e96f4f5274866b12fb0 (patch)
treec485086ca80abbaf954060feadc5524fcd5c2ed1
parent9942dbe2305afa18d67d19b5519bd7199e610906 (diff)
downloadgcc-0a49eb31b299b8ce3f1c4e96f4f5274866b12fb0.zip
gcc-0a49eb31b299b8ce3f1c4e96f4f5274866b12fb0.tar.gz
gcc-0a49eb31b299b8ce3f1c4e96f4f5274866b12fb0.tar.bz2
forced1.C: Use _Unwind_SjLj_ForcedUnwind as appropriate.
* g++.dg/eh/forced1.C: Use _Unwind_SjLj_ForcedUnwind as appropriate. * g++.dg/eh/forced2.C: Likewise. From-SVN: r65263
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/eh/forced1.C4
-rw-r--r--gcc/testsuite/g++.dg/eh/forced2.C8
3 files changed, 15 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index c77675e..1d5fdd7 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2003-04-04 Richard Henderson <rth@redhat.com>
+
+ * g++.dg/eh/forced1.C: Use _Unwind_SjLj_ForcedUnwind as appropriate.
+ * g++.dg/eh/forced2.C: Likewise.
+
2003-04-03 Mike Stump <mrs@apple.com>
* lib/scanasm.exp (scan-assembler): Add xfail processing for
diff --git a/gcc/testsuite/g++.dg/eh/forced1.C b/gcc/testsuite/g++.dg/eh/forced1.C
index 512d720..dc0d8b0 100644
--- a/gcc/testsuite/g++.dg/eh/forced1.C
+++ b/gcc/testsuite/g++.dg/eh/forced1.C
@@ -31,7 +31,11 @@ static void force_unwind ()
exc->exception_class = 0;
exc->exception_cleanup = 0;
+#ifndef __USING_SJLJ_EXCEPTIONS__
_Unwind_ForcedUnwind (exc, force_unwind_stop, 0);
+#else
+ _Unwind_SjLj_ForcedUnwind (exc, force_unwind_stop, 0);
+#endif
abort ();
}
diff --git a/gcc/testsuite/g++.dg/eh/forced2.C b/gcc/testsuite/g++.dg/eh/forced2.C
index f681209..4feb4fe 100644
--- a/gcc/testsuite/g++.dg/eh/forced2.C
+++ b/gcc/testsuite/g++.dg/eh/forced2.C
@@ -34,9 +34,13 @@ force_unwind () throw()
_Unwind_Exception *exc = new _Unwind_Exception;
exc->exception_class = 0;
exc->exception_cleanup = 0;
-
+
+#ifndef __USING_SJLJ_EXCEPTIONS__
_Unwind_ForcedUnwind (exc, force_unwind_stop, 0);
-
+#else
+ _Unwind_SjLj_ForcedUnwind (exc, force_unwind_stop, 0);
+#endif
+
abort ();
}