OSDN Git Service

2006-05-25 Andrew Haley <aph@redhat.com>
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 May 2006 13:52:18 +0000 (13:52 +0000)
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 May 2006 13:52:18 +0000 (13:52 +0000)
        PR java/27756
        * decl.c (maybe_pushlevels): When variable ranges are non-nested
        update all lifetimes, not just the first one.

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

gcc/java/ChangeLog
gcc/java/decl.c

index 9b17144..fa2580f 100644 (file)
@@ -1,3 +1,9 @@
+2006-05-25  Andrew Haley  <aph@redhat.com>
+
+       PR java/27756
+       * decl.c (maybe_pushlevels): When variable ranges are non-nested
+       update all lifetimes, not just the first one.
+
 2006-05-24  Tom Tromey  <tromey@redhat.com>
 
        * java-tree.h: Fixed flag documentation.
index 302df65..d4bd01c 100644 (file)
@@ -1785,8 +1785,10 @@ maybe_pushlevels (int pc)
         truncating variable lifetimes. */
       if (end_pc > current_binding_level->end_pc)
        {
+         tree t;
          end_pc = current_binding_level->end_pc;
-         DECL_LOCAL_END_PC (decl) = end_pc;
+         for (t = decl; t != NULL_TREE; t = TREE_CHAIN (t))
+           DECL_LOCAL_END_PC (t) = end_pc;
        }
 
       maybe_start_try (pc, end_pc);