* check-init.c (check_init): Fix TRY_FINALLY_EXPR logic.
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Feb 2001 03:45:14 +0000 (03:45 +0000)
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Feb 2001 03:45:14 +0000 (03:45 +0000)
* check-init.c (check_init):  Don't call done_alternative after
processing loop code, as a LOOP_EXPR never terminates normally.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39534 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/java/ChangeLog
gcc/java/check-init.c

index fa240b0..9923968 100644 (file)
@@ -1,3 +1,10 @@
+2001-02-07  Per Bothner  <per@bothner.com>
+
+       * check-init.c (check_init):  Fix TRY_FINALLY_EXPR logic.
+
+       * check-init.c (check_init):  Don't call done_alternative after
+       processing loop code, as a LOOP_EXPR never terminates normally.
+
 2001-02-08  Joseph S. Myers  <jsm28@cam.ac.uk>
 
        * gcj.texi: Change sources.redhat.com reference to gcc.gnu.org.
index 9d89196..49df072 100644 (file)
@@ -451,7 +451,6 @@ check_init (exp, before)
        BEGIN_ALTERNATIVES (before, alt);
        alt.block = exp;
        check_init (TREE_OPERAND (exp, 0), before);
-       done_alternative (before, &alt);
        END_ALTERNATIVES (before, alt);
        return;
       }
@@ -571,8 +570,9 @@ check_init (exp, before)
       {
        words tmp = ALLOC_WORDS (num_current_words);
        COPY (tmp, before);
-       check_init (TREE_OPERAND (exp, 0), tmp);
-       check_init (TREE_OPERAND (exp, 1), before);
+       check_init (TREE_OPERAND (exp, 0), before);
+       check_init (TREE_OPERAND (exp, 1), tmp);
+       UNION (before, before, tmp);
        FREE_WORDS (tmp);
       }
       return;