This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[gcjx] Patch: FYI: BIND_EXPR fixlet
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 12 Feb 2005 20:45:23 -0700
- Subject: [gcjx] Patch: FYI: BIND_EXPR fixlet
- Reply-to: tromey at redhat dot com
I'm checking this in on the gcjx branch.
We were creating a BIND_EXPR with the wrong type.
Tom
#
# patch "gcc/gcc/java/ChangeLog"
# from [495b71ce4576d47fdced3f3413e4eb4321482883]
# to [34b2ef4056f575716ab3f9634cb392662bf51da8]
#
# patch "gcc/gcc/java/tree.cc"
# from [d4ea0044dbe96fc1d23a996996d92f0a90b6ead1]
# to [24782b5d178caff8cc83b5de93574318f66df72a]
#
--- gcc/gcc/java/ChangeLog
+++ gcc/gcc/java/ChangeLog
@@ -1,5 +1,7 @@
2005-02-08 Tom Tromey <tromey@redhat.com>
+ * tree.cc (visit_method): Create BIND_EXPR with void type.
+
* glue.hh: Include function.h.
* treegen.cc (generate): Call allocate_struct_function. Set
function_end_locus.
--- gcc/gcc/java/tree.cc
+++ gcc/gcc/java/tree.cc
@@ -125,8 +125,7 @@
current = wrap_synchronized (k, current);
}
- current = build3 (BIND_EXPR,
- gcc_builtins->map_type (meth->get_return_type ()),
+ current = build3 (BIND_EXPR, void_type_node,
BLOCK_VARS (current_block),
current, current_block);
}