parse.y (patch_method_invocation): Set CAN_COMPLETE_NORMALLY on call to finit$ (other...
authorPer Bothner <per@bothner.com>
Fri, 22 Feb 2002 13:57:43 +0000 (05:57 -0800)
committerPer Bothner <bothner@gcc.gnu.org>
Fri, 22 Feb 2002 13:57:43 +0000 (05:57 -0800)
* 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.

From-SVN: r49966

gcc/java/ChangeLog
gcc/java/parse.y

index f1f93d30facf00aadb7c0ce93b29c0f5a27fddec..8bb88e6df965f2920d75c91cc98ff6f53870961b 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2002-02-20  Nic Ferrier  <nferrier@tapsellferrier.co.uk>
 
        * gcj.texi: Option `--classpath' becomes `--CLASSPATH.'Option 
index 7b900cdf7ddedd237590b53b81855165963433b7..9f14076f1ee05374aa91809ce221d3e297669b6c 100644 (file)
@@ -10514,9 +10514,9 @@ patch_method_invocation (patch, primary, where, from_super,
       /* 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;
 }