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]

Patch for spurious test failures with cccp



Here's my patch for the spurious test failures you reported.  It is
essentially the same as yours for cpp-if1.c.  cpp-if3.c's purpose is to test
64-bit number processing in #if, so we shouldn't ask it to error out on such
numbers.  Therefore I fixed that one by turning off -pedantic.

If you like it, please commit it.

zw

1999-03-28 12:51 -0500 Zack Weinberg <zack@rabi.columbia.edu>

	* gcc.dg/cpp-if1.c: Recognize cccp's error messages.
	* gcc.dg/cpp-if3.c: Turn off -pedantic.

===================================================================
Index: gcc.dg/cpp-if1.c
--- gcc.dg/cpp-if1.c	1999/02/28 15:05:40	1.2
+++ gcc.dg/cpp-if1.c	1999/03/28 17:47:05
@@ -9,22 +9,22 @@
 #error 077 != 63 /* { dg-bogus "#error" "normal conversion" } */
 #endif
 
-#if 12wrt /* { dg-error "nvalid number" "invalid number" } */
+#if 12wrt /* { dg-error "nvalid number|missing white" "invalid number" } */
 #endif
 
-#if 0abc /* { dg-error "nvalid number" "invalid number" } */
+#if 0abc /* { dg-error "nvalid number|missing white" "invalid number" } */
 #endif
 
-#if 42abc /* { dg-error "nvalid number" "invalid number" } */
+#if 42abc /* { dg-error "nvalid number|missing white" "invalid number" } */
 #endif
 
-#if 1.2 /* { dg-error "floating point numbers" "floating point in #if" } */
+#if 1.2 /* { dg-error "loating point numbers" "floating point in #if" } */
 #endif
 
-#if 4uu /* { dg-error "too many `u' suffixes" "too many suffixes" } */
+#if 4uu /* { dg-error "too many `u' suffixes|two `u's in integer" "too many suffixes" } */
 #endif
 
-#if 124123231lll /* { dg-error "too many `l' suffixes" "too many suffixes" } */
+#if 124123231lll /* { dg-error "too many `l'" "too many suffixes" } */
 #endif
 
 #if 099 /* { dg-error "digits beyond the radix" "decimal in octal constant" } */
===================================================================
Index: gcc.dg/cpp-if3.c
--- gcc.dg/cpp-if3.c	1999/02/26 06:00:48	1.2
+++ gcc.dg/cpp-if3.c	1999/03/28 17:47:05
@@ -1,5 +1,6 @@
+/* Test whether cpp can handle 64 bit numbers in #if statements. */
 /* { dg-do preprocess } */
-/* { dg-options -pedantic-errors } */
+/* { dg-options "" } */
 
 #define U_MAX 4294967295U
 #define ULL_MAX 18446744073709551615ULL


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