This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch: fix for PR #33
- To: Gcc Patch List <gcc-patches at egcs dot cygnus dot com>
- Subject: Patch: fix for PR #33
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 03 Sep 1999 11:11:56 -0600
- Reply-To: tromey at cygnus dot com
I'm committing the appended patch. It fixes Java PR 33. In certain
situations the Java front end didn't recognize that "Class.member++"
was valid.
1999-09-03 Tom Tromey <tromey@cygnus.com>
* parse.y (strip_out_static_field_access_decl): Return operand if
it satisfies JDECL_P.
Tom
Index: gcc/java/parse.y
===================================================================
RCS file: /cvs/egcs/egcs/gcc/java/parse.y,v
retrieving revision 1.107
diff -u -r1.107 parse.y
--- parse.y 1999/09/02 21:57:08 1.107
+++ parse.y 1999/09/03 17:08:22
@@ -6585,6 +6585,8 @@
== soft_initclass_node)
return TREE_OPERAND (op1, 1);
}
+ else if (JDECL_P (op1))
+ return op1;
}
return node;
}