[committed] Skip gcc.dg/cpp/trad/include.c for VxWorks kernels
Richard Sandiford
richard@codesourcery.com
Wed Jul 4 10:17:00 GMT 2007
...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
More information about the Gcc-patches
mailing list