This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
patch in handling of finit$
- From: Per Bothner <per at bothner dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: java at gcc dot gnu dot org
- Date: Wed, 20 Feb 2002 12:03:51 -0800
- Subject: patch in handling of finit$
This patch fixes a problem that causes finit$ calls to get dropped
when generating bytecode.
I'll check it in unless I hear complaints.
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/
2002-02-20 Per Bothner <per@bothner.com>
* parse.y (patch_method_invocation): Set CAN_COMPLETE_NORMALLY on call
to finit$ (otherwise generate_bytecode_insns drops it). However, we
don't need to set it on the COMPOUND_EXPR - the caller does that.
Index: parse.y
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/parse.y,v
retrieving revision 1.352
diff -u -p -r1.352 parse.y
--- parse.y 2002/02/20 19:53:48 1.352
+++ parse.y 2002/02/20 19:55:24
@@ -10514,9 +10514,9 @@ patch_method_invocation (patch, primary,
/* Generate the code used to initialize fields declared with an
initialization statement and build a compound statement along
with the super constructor invocation. */
+ CAN_COMPLETE_NORMALLY (patch) = 1;
patch = build (COMPOUND_EXPR, void_type_node, patch,
java_complete_tree (finit_call));
- CAN_COMPLETE_NORMALLY (patch) = 1;
}
return patch;
}