This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch]: minor test case fix (PR36440)
- From: Xinliang David Li <davidxl at google dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 06 Jun 2008 12:39:52 -0700
- Subject: [patch]: minor test case fix (PR36440)
Hi, the following patch includes trivial fixes to test cases.
1) remove unnecessary target constraints
2) fix error in target specification (this testcase dose not
work for darwin target because the unavailability of some math
functions)
The patch is tested on x86 and powerpc|i686-apple-darwin9.
Ok for commit?
Thanks,
David
testsuite/ChangeLog
2008-06-06 Xinliang David Li <davidxl@google.com>
PR/36440
* gcc.dg/cdce1.c: Remove run target clause.
* gcc.dg/cdce2.c: Ditto.
* g++.dg/cdce3.C: Fix a bug in target specification.
Index: testsuite/gcc.dg/cdce1.c
===================================================================
--- testsuite/gcc.dg/cdce1.c (revision 136425)
+++ testsuite/gcc.dg/cdce1.c (working copy)
@@ -1,4 +1,4 @@
-/* { dg-do run { target { ! "*-*-darwin" } } } */
+/* { dg-do run } */
/* { dg-options "-O2 -fmath-errno -fdump-tree-cdce-details -lm" } */
/* { dg-final { scan-tree-dump "cdce1.c:16: note: function call is shrink-wrapped into error conditions\." "cdce" } } */
/* { dg-final { cleanup-tree-dump "cdce" } } */
Index: testsuite/gcc.dg/cdce2.c
===================================================================
--- testsuite/gcc.dg/cdce2.c (revision 136425)
+++ testsuite/gcc.dg/cdce2.c (working copy)
@@ -1,4 +1,4 @@
-/* { dg-do run { target { ! "*-*-darwin" } } } */
+/* { dg-do run } */
/* { dg-options "-O2 -fmath-errno -fdump-tree-cdce-details -lm" } */
/* { dg-final { scan-tree-dump "cdce2.c:16: note: function call is shrink-wrapped into error conditions\." "cdce" } }*/
/* { dg-final { cleanup-tree-dump "cdce" } } */
Index: testsuite/g++.dg/cdce3.C
===================================================================
--- testsuite/g++.dg/cdce3.C (revision 136425)
+++ testsuite/g++.dg/cdce3.C (working copy)
@@ -1,4 +1,4 @@
-/* { dg-do run { target { ! "*-*-darwin" } } } */
+/* { dg-do run { target { ! "*-*-darwin*" } } } */
/* { dg-options "-O2 -fmath-errno -fdump-tree-cdce-details -lm" } */
/* { dg-final { scan-tree-dump "cdce3.C:68: note: function call is shrink-wrapped into error conditions\." "cdce" } }*/
/* { dg-final { scan-tree-dump "cdce3.C:69: note: function call is shrink-wrapped into error conditions\." "cdce" } }*/