This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Skip gcc.dg/cpp/trad/include.c for VxWorks kernels
- From: Richard Sandiford <richard at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 04 Jul 2007 11:00:00 +0100
- Subject: [committed] Skip gcc.dg/cpp/trad/include.c for VxWorks kernels
...as the comment says, the header uses a construct that's
incompatible with -traditional-cpp.
Tested on sh-wrs-vxworks and arm-wrs-vxworks. Approved by NathanS
and applied.
Richard
gcc/testsuite/
* gcc.dg/cpp/trad/include.c: Skip for VxWorks kernels.
Index: gcc/testsuite/gcc.dg/cpp/trad/include.c
===================================================================
--- gcc/testsuite/gcc.dg/cpp/trad/include.c 2007-07-04 02:07:24.000000000 -0700
+++ gcc/testsuite/gcc.dg/cpp/trad/include.c 2007-07-04 02:55:17.000000000 -0700
@@ -2,7 +2,9 @@
/* Test that macros are not expanded in the <> quotes of #inlcude. */
-/* { dg-do preprocess } */
+/* vxWorksCommon.h uses the "#" operator to construct the name of an
+ include file, thus making the file incompatible with -traditional-cpp. */
+/* { dg-do preprocess { target { ! vxworks_kernel } } } */
#define __STDC__ 1 /* Stop complaints about non-ISO compilers. */
#define stdlib 1