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]

Re: [3.3] fix to testsuite files which now get syntax error from new bison


Mark Mitchell writes:
> On Mon, 2003-05-12 at 00:09, Matthias Klose wrote:
> > These "fixes" avoid wrong failures, when gcc is built with a newer
> > bison (1.875). They are in the 3.2.3 release (naming-* only) and on
> > HEAD (on HEAD the crash2.C matches { dg-error "" }).
> > 
> > Ok for 3.3, or queue it for 3.3.1 (as the generated files are included
> > in the final release)?
> 
> Queue it for 3.3.1.  Any and all patches whose sole purpose is to change
> tests to accept "syntax error" as well as "parse error" are hereby
> pre-approved for mainline and 3.3.1.

checked in:

2003-05-16  Matthias Klose  <doko@debian.org>

	* parse/crash2.C: Use "(parse|syntax)" error.

	Backport from mainline

	2003-03-17  Zack Weinberg  <zack@codesourcery.com>

		* objc.dg/naming-1.m: Use "(parse|syntax)" error.
		* objc.dg/naming-2.m: Likewise.

 
Index: g++.dg/parse/crash2.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/parse/crash2.C,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 crash2.C
--- g++.dg/parse/crash2.C	31 Mar 2003 20:00:28 -0000	1.1.2.1
+++ g++.dg/parse/crash2.C	16 May 2003 05:39:49 -0000
@@ -2,6 +2,6 @@
 int main(void)
 {
   char x, y;
-  if ('A' == x) && ('B' == y)) { } /* { dg-error "parse error" } */
+  if ('A' == x) && ('B' == y)) { } /* { dg-error "(parse|syntax) error" } */
   if (x == 'A') && (y == 'B')) { }
 }
Index: objc.dg/naming-1.m
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/objc.dg/naming-1.m,v
retrieving revision 1.1
diff -u -r1.1 naming-1.m
--- objc.dg/naming-1.m	1 Aug 2001 08:15:11 -0000	1.1
+++ objc.dg/naming-1.m	16 May 2003 05:39:49 -0000
@@ -17,5 +17,5 @@
 void bar(void)
 {
 	View *view;	/* ok */
-	View = 1;	/* { dg-error "parse error" } */
+	View = 1;	/* { dg-error "(parse|syntax) error" } */
 }
Index: objc.dg/naming-2.m
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/objc.dg/naming-2.m,v
retrieving revision 1.1
diff -u -r1.1 naming-2.m
--- objc.dg/naming-2.m	1 Aug 2001 08:15:11 -0000	1.1
+++ objc.dg/naming-2.m	16 May 2003 05:39:49 -0000
@@ -4,7 +4,7 @@
 
 @interface Foo
 @end
-float Foo;  /* { dg-error "parse error before" } */
+float Foo;  /* { dg-error "(parse|syntax) error before" } */
 
 double Bar;
 @interface Bar


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