This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Tweak gcc.dg/cpp/cmdlne-dU-1[67].c on Solaris


Solaris is STDC_0_IN_SYSTEM_HEADERS so you have to specify strict conformance 
in order to make the tests pass.

Tested on SPARC/Solaris with the c-ppoutput.c fix, applied on the mainline.


2008-09-23  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc.dg/cpp/cmdlne-dU-16.c: Specify -std=c89 on Solaris.
	* gcc.dg/cpp/cmdlne-dU-17.c: Likewise.


-- 
Eric Botcazou
Index: testsuite/gcc.dg/cpp/cmdlne-dU-16.c
===================================================================
--- testsuite/gcc.dg/cpp/cmdlne-dU-16.c	(revision 140544)
+++ testsuite/gcc.dg/cpp/cmdlne-dU-16.c	(working copy)
@@ -1,5 +1,6 @@
 /* { dg-do preprocess } */
 /* { dg-options "-P -dU" } */
+/* { dg-options "-P -dU -std=c89" { target *-*-solaris2.* } } */
 /* { dg-final { scan-file cmdlne-dU-16.i "^\n*#define __STDC__ 1\n*$" } } */
 #ifdef __STDC__
 #endif
Index: testsuite/gcc.dg/cpp/cmdlne-dU-17.c
===================================================================
--- testsuite/gcc.dg/cpp/cmdlne-dU-17.c	(revision 140544)
+++ testsuite/gcc.dg/cpp/cmdlne-dU-17.c	(working copy)
@@ -1,4 +1,5 @@
 /* { dg-do preprocess } */
 /* { dg-options "-P -dU" } */
+/* { dg-options "-P -dU -std=c89" { target *-*-solaris2.* } } */
 /* { dg-final { scan-file cmdlne-dU-17.i "^\n*1\n+#define __STDC__ 1\n*$" } } */
 __STDC__

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]