This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

"fix" gcc.dg/cleanup-{8,9,10,11}.c


These tests were failing on alpha because, without -fnon-call-exceptions,
the compiler could see that fn2 does not throw, and so deleted the cleanup
in fn0 as dead.  Not sure why -fasynchronous-unwind-tables was there at all;
it's certainly not needed for the stated purpose of the tests.


r~


        * gcc.dg/cleanup-10.c, gcc.dg/cleanup-11.c, gcc.dg/cleanup-8.c,
        gcc.dg/cleanup-9.c: Use -fnon-call-exceptions, not
        -fasynchronous-unwind-tables.

Index: gcc.dg/cleanup-10.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/cleanup-10.c,v
retrieving revision 1.2
diff -c -p -d -u -r1.2 cleanup-10.c
--- gcc.dg/cleanup-10.c	1 Jul 2004 04:09:06 -0000	1.2
+++ gcc.dg/cleanup-10.c	21 Oct 2004 00:59:09 -0000
@@ -1,5 +1,5 @@
 /* { dg-do run { target *-*-linux* powerpc*-*-darwin* } } */
-/* { dg-options "-fasynchronous-unwind-tables -fexceptions -O2" } */
+/* { dg-options "-fexceptions -fnon-call-exceptions -O2" } */
 /* Verify that cleanups work with exception handling through signal frames
    on alternate stack.  */
 
Index: gcc.dg/cleanup-11.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/cleanup-11.c,v
retrieving revision 1.2
diff -c -p -d -u -r1.2 cleanup-11.c
--- gcc.dg/cleanup-11.c	1 Jul 2004 04:09:06 -0000	1.2
+++ gcc.dg/cleanup-11.c	21 Oct 2004 00:59:09 -0000
@@ -1,5 +1,5 @@
 /* { dg-do run { target *-*-linux* powerpc*-*-darwin* } } */
-/* { dg-options "-fasynchronous-unwind-tables -fexceptions -O2" } */
+/* { dg-options "-fexceptions -fnon-call-exceptions -O2" } */
 /* Verify that cleanups work with exception handling through realtime signal
    frames on alternate stack.  */
 
Index: gcc.dg/cleanup-8.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/cleanup-8.c,v
retrieving revision 1.3
diff -c -p -d -u -r1.3 cleanup-8.c
--- gcc.dg/cleanup-8.c	1 Jul 2004 04:09:06 -0000	1.3
+++ gcc.dg/cleanup-8.c	21 Oct 2004 00:59:09 -0000
@@ -1,5 +1,5 @@
 /* { dg-do run { target *-*-linux* powerpc*-*-darwin* } } */
-/* { dg-options "-fasynchronous-unwind-tables -fexceptions -O2" } */
+/* { dg-options "-fexceptions -fnon-call-exceptions -O2" } */
 /* Verify that cleanups work with exception handling through signal
    frames.  */
 
Index: gcc.dg/cleanup-9.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/cleanup-9.c,v
retrieving revision 1.4
diff -c -p -d -u -r1.4 cleanup-9.c
--- gcc.dg/cleanup-9.c	1 Jul 2004 04:09:06 -0000	1.4
+++ gcc.dg/cleanup-9.c	21 Oct 2004 00:59:09 -0000
@@ -1,5 +1,5 @@
 /* { dg-do run { target *-*-linux* powerpc*-*-darwin* } } */
-/* { dg-options "-fasynchronous-unwind-tables -fexceptions -O2" } */
+/* { dg-options "-fexceptions -fnon-call-exceptions -O2" } */
 /* Verify that cleanups work with exception handling through realtime
    signal frames.  */
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]