This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: fix class of THIS_EXPR
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Cc: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: 04 May 2006 17:15:01 -0600
- Subject: Patch: FYI: fix class of THIS_EXPR
- Reply-to: tromey at redhat dot com
I'm checking this in on the trunk.
At some point gcj started crashing when tree-dumping was enabled.
This occurred because THIS_EXPR had no arguments but claimed to be
tcc_unary. This seemed wrong to me, and changing it to
tcc_expression fixed the crash.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* java-tree.def (THIS_EXPR): Now a tcc_expression.
Index: java-tree.def
===================================================================
--- java-tree.def (revision 113470)
+++ java-tree.def (working copy)
@@ -39,7 +39,7 @@
DEFTREECODE (NEW_CLASS_EXPR, "new_class_expr", tcc_expression, 3)
/* Defines `this' as an expression. */
-DEFTREECODE (THIS_EXPR, "this", tcc_unary, 0)
+DEFTREECODE (THIS_EXPR, "this", tcc_expression, 0)
/* A labeled block. Operand 0 is the label that will be generated to
mark the end of the block. Operand 1 is the labeled block body. */