This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH]: fix PR testsuite/38098
- From: Jack Howarth <howarth at bromo dot msbb dot uc dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 13 Nov 2008 19:19:30 -0500
- Subject: [PATCH]: fix PR testsuite/38098
Currently gcc trunk is failing the excessive errors test of
gcc.dg/cpp/subframework1.c on darwin because the import feature
that this test uses generates a depreciated feature warning.
The attached patch suppresses this warning with -Wno-deprecated
to allow the test to still function until the #import directive
is finally removed. Okay for gcc trunk?
Jack
2008-11-13 Jack Howarth <howarth@bromo.med.uc.edu>
PR testsuite/38098
* gcc.dg/cpp/subframework1.c: Use -Wno-deprecated.
Index: gcc/testsuite/gcc.dg/cpp/subframework1.c
===================================================================
--- gcc/testsuite/gcc.dg/cpp/subframework1.c (revision 141837)
+++ gcc/testsuite/gcc.dg/cpp/subframework1.c (working copy)
@@ -1,7 +1,7 @@
/* Copyright (C) 2004 Free Software Foundation, Inc. */
/* { dg-do preprocess { target *-*-darwin* } } */
-/* { dg-options "-F$srcdir/gcc.dg/cpp/frame" } */
+/* { dg-options "-Wno-deprecated -F$srcdir/gcc.dg/cpp/frame" } */
/* Contributed by Robert Bowdidge <bowdidge@apple.com> */
/* include a file from a subframework that will import two files that