forced1.C: Use _Unwind_SjLj_ForcedUnwind as appropriate.
authorRichard Henderson <rth@redhat.com>
Sat, 5 Apr 2003 00:45:06 +0000 (16:45 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Sat, 5 Apr 2003 00:45:06 +0000 (16:45 -0800)
        * g++.dg/eh/forced1.C: Use _Unwind_SjLj_ForcedUnwind as appropriate.
        * g++.dg/eh/forced2.C: Likewise.

From-SVN: r65263

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/eh/forced1.C
gcc/testsuite/g++.dg/eh/forced2.C

index c77675e..1d5fdd7 100644 (file)
@@ -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
index 512d720..dc0d8b0 100644 (file)
@@ -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 ();
 }
index f681209..4feb4fe 100644 (file)
@@ -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 ();
 }