This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] testsuite cleanup 5 of 9
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 4 Mar 2005 15:44:55 -0800
- Subject: [PATCH] testsuite cleanup 5 of 9
I just submitted a patch to add proc 'cleanup-saved-temps' for use
with dg-final. This patch uses that new functionality in tests that
use --save-temps and currently leave temp files in the build's
gcc/testsuite directory.
If final testing of my set of nine testsuite cleanup patches shows no
problems, I'll check this in on mainline.
2005-03-04 Janis Johnson <janis187@us.ibm.com>
* gcc.dg/altivec-16.c: Use cleanup-saved-temps.
* gcc.dg/cpp/direct2s.c: Ditto.
* gcc.dg/cpp/paste4.c: Ditto.
* gcc.dg/cpp/separate-1.c: Ditto.
* gcc.dg/pch/save-temps-1.c: Ditto.
* g++.dg/ext/altivec-10.C: Ditto.
* g++.dg/pch/pch.C: Ditto.
Index: gcc/testsuite/gcc.dg/altivec-16.c
===================================================================
RCS file: /opt/gcc-cvs/gcc/gcc/testsuite/gcc.dg/altivec-16.c,v
retrieving revision 1.2
diff -u -p -r1.2 altivec-16.c
--- gcc/testsuite/gcc.dg/altivec-16.c 8 Jun 2004 18:45:38 -0000 1.2
+++ gcc/testsuite/gcc.dg/altivec-16.c 3 Mar 2005 22:07:30 -0000
@@ -18,3 +18,5 @@ a1 = { 100, 200, 300, 400 };
vector_float f1 = { 1.0, 2.0, 3.0, 4.0 };
vector_float_foo = { 3.0, 4.0, 5.0, 6.0 };
vector_float_bar_eq { 8.0, 7.0, 6.0, 5.0 };
+
+/* { dg-final { cleanup-saved-temps } } */
Index: gcc/testsuite/gcc.dg/cpp/direct2s.c
===================================================================
RCS file: /opt/gcc-cvs/gcc/gcc/testsuite/gcc.dg/cpp/direct2s.c,v
retrieving revision 1.5
diff -u -p -r1.5 direct2s.c
--- gcc/testsuite/gcc.dg/cpp/direct2s.c 5 Nov 2004 16:43:49 -0000 1.5
+++ gcc/testsuite/gcc.dg/cpp/direct2s.c 3 Mar 2005 22:07:30 -0000
@@ -40,3 +40,5 @@ void f ()
int i = X; /* { dg-error "undeclared|for each" "no macro X" } */
int j = Y; /* { dg-error "undeclared|for each" "no macro Y" } */
}
+
+/* { dg-final { cleanup-saved-temps } } */
Index: gcc/testsuite/gcc.dg/cpp/paste4.c
===================================================================
RCS file: /opt/gcc-cvs/gcc/gcc/testsuite/gcc.dg/cpp/paste4.c,v
retrieving revision 1.5
diff -u -p -r1.5 paste4.c
--- gcc/testsuite/gcc.dg/cpp/paste4.c 4 Nov 2004 16:01:38 -0000 1.5
+++ gcc/testsuite/gcc.dg/cpp/paste4.c 3 Mar 2005 22:07:30 -0000
@@ -14,3 +14,5 @@ int main ()
double d = glue (1.0e, +1); /* { dg-error "exponent|parse error|syntax error|expected" } */
return 0;
}
+
+/* { dg-final { cleanup-saved-temps } } */
Index: gcc/testsuite/gcc.dg/cpp/separate-1.c
===================================================================
RCS file: /opt/gcc-cvs/gcc/gcc/testsuite/gcc.dg/cpp/separate-1.c,v
retrieving revision 1.4
diff -u -p -r1.4 separate-1.c
--- gcc/testsuite/gcc.dg/cpp/separate-1.c 25 Feb 2005 23:20:47 -0000 1.4
+++ gcc/testsuite/gcc.dg/cpp/separate-1.c 3 Mar 2005 22:07:30 -0000
@@ -13,3 +13,5 @@ int FOO( /* { dg-error "parse error|synt
int baz FOO /* { dg-error "parse error|syntax error|expected" "error on this line" } */
;
+
+/* { dg-final { cleanup-saved-temps } } */
Index: gcc/testsuite/gcc.dg/pch/save-temps-1.c
===================================================================
RCS file: /opt/gcc-cvs/gcc/gcc/testsuite/gcc.dg/pch/save-temps-1.c,v
retrieving revision 1.1
diff -u -p -r1.1 save-temps-1.c
--- gcc/testsuite/gcc.dg/pch/save-temps-1.c 22 Jun 2004 06:51:56 -0000 1.1
+++ gcc/testsuite/gcc.dg/pch/save-temps-1.c 3 Mar 2005 22:07:30 -0000
@@ -5,3 +5,5 @@
#endif
#include <stddef.h>
int x;
+
+/* { dg-final { cleanup-saved-temps } } */
Index: gcc/testsuite/g++.dg/ext/altivec-10.C
===================================================================
RCS file: /opt/gcc-cvs/gcc/gcc/testsuite/g++.dg/ext/altivec-10.C,v
retrieving revision 1.3
diff -u -p -r1.3 altivec-10.C
--- gcc/testsuite/g++.dg/ext/altivec-10.C 8 Jun 2004 18:32:14 -0000 1.3
+++ gcc/testsuite/g++.dg/ext/altivec-10.C 3 Mar 2005 22:07:30 -0000
@@ -18,3 +18,5 @@ a1 = { 100, 200, 300, 400 };
vector_float f1 = { 1.0, 2.0, 3.0, 4.0 };
vector_float_foo = { 3.0, 4.0, 5.0, 6.0 };
vector_float_bar_eq { 8.0, 7.0, 6.0, 5.0 };
+
+/* { dg-final { cleanup-saved-temps } } */
Index: gcc/testsuite/g++.dg/pch/pch.C
===================================================================
RCS file: /opt/gcc-cvs/gcc/gcc/testsuite/g++.dg/pch/pch.C,v
retrieving revision 1.1
diff -u -p -r1.1 pch.C
--- gcc/testsuite/g++.dg/pch/pch.C 31 Jan 2005 22:05:07 -0000 1.1
+++ gcc/testsuite/g++.dg/pch/pch.C 3 Mar 2005 22:07:30 -0000
@@ -5,3 +5,5 @@ int main()
{
return 0;
}
+
+// { dg-final { cleanup-saved-temps } }