Patch: fix for gcj PR 164

Tom Tromey tromey@cygnus.com
Tue Jun 6 11:44:00 GMT 2000


I got approval from Alex offline and I'm checking this in.
This fixes a problem in my fix for PR 164 that Bryce noticed.

Tue Jun  6 11:39:05 2000  Tom Tromey  <tromey@ferrule.cygnus.com>

	* parse.y (check_modifiers_consistency): Don't subtract out
	`PUBLIC_TK' from argument to THIS_MODIFIER_ONLY.

Tom

Index: parse.y
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/parse.y,v
retrieving revision 1.176
diff -u -r1.176 parse.y
--- parse.y	2000/06/01 20:43:37	1.176
+++ parse.y	2000/06/06 18:39:42
@@ -4613,10 +4613,8 @@
 
   acc_count = 0;
   cl = NULL_TREE;
-  THIS_MODIFIER_ONLY (flags, ACC_FINAL, FINAL_TK - PUBLIC_TK,
-		      acc_count, cl);
-  THIS_MODIFIER_ONLY (flags, ACC_VOLATILE, VOLATILE_TK - PUBLIC_TK,
-		      acc_count, cl);
+  THIS_MODIFIER_ONLY (flags, ACC_FINAL, FINAL_TK, acc_count, cl);
+  THIS_MODIFIER_ONLY (flags, ACC_VOLATILE, VOLATILE_TK, acc_count, cl);
   if (acc_count > 1)
     parse_error_context (cl,
 			 "Inconsistent member declaration.  At most one of `final' or `volatile' may be specified");


More information about the Gcc-patches mailing list