OSDN Git Service

Fri Dec 10 21:53:45 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
authorapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Dec 1999 01:50:55 +0000 (01:50 +0000)
committerapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Dec 1999 01:50:55 +0000 (01:50 +0000)
        * parse.y (java_complete_lhs): Force convertion of array
        dimensions to int_type_node, that's what runtime's ABI expects.

(This patch is a fix for the PR #79:
 http://sourceware.cygnus.com/ml/java-prs/1999-q4/msg00069.html)

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

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

index 7406aeb..d81bdcc 100644 (file)
@@ -3,6 +3,11 @@
        * check-init.c (check_init): Take into account both types of
         `throw's when checking for uninitialized variables.
 
+Fri Dec 10 21:53:45 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
+
+        * parse.y (java_complete_lhs): Force convertion of array
+        dimensions to int_type_node, that's what runtime's ABI expects.
+
 Fri Dec 10 16:13:48 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
 
        * parse.h (EXPR_WFL_QUALIFICATION): Temporary uses the third
index 65a3f09..cb1c43d 100644 (file)
@@ -8467,7 +8467,8 @@ java_complete_lhs (node)
       for (cn = TREE_OPERAND (node, 1); cn; cn = TREE_CHAIN (cn))
        {
          int location = EXPR_WFL_LINECOL (TREE_VALUE (cn));
-         tree dim = java_complete_tree (TREE_VALUE (cn));
+         tree dim = convert (int_type_node, 
+                             java_complete_tree (TREE_VALUE (cn)));
          if (dim == error_mark_node)
            {
              flag = 1;