aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/parse.y
diff options
context:
space:
mode:
authorAlexandre Petit-Bianco <apbianco@cygnus.com>1999-12-13 01:50:55 +0000
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>1999-12-12 17:50:55 -0800
commit3a1760acf09c45a309580e2f232eafb8cfe4e08f (patch)
treeb1e2dc4f99a67b893b8f6ed5b25d0923bd3839b5 /gcc/java/parse.y
parentccd61a806ea13790a6ec3e6c17a04ae48b8e21b8 (diff)
downloadgcc-3a1760acf09c45a309580e2f232eafb8cfe4e08f.zip
gcc-3a1760acf09c45a309580e2f232eafb8cfe4e08f.tar.gz
gcc-3a1760acf09c45a309580e2f232eafb8cfe4e08f.tar.bz2
re GNATS gcj/79 (Problem creating static arrays)
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. (This patch is a fix for the PR #79: http://sourceware.cygnus.com/ml/java-prs/1999-q4/msg00069.html) From-SVN: r30881
Diffstat (limited to 'gcc/java/parse.y')
-rw-r--r--gcc/java/parse.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/java/parse.y b/gcc/java/parse.y
index 65a3f09..cb1c43d 100644
--- a/gcc/java/parse.y
+++ b/gcc/java/parse.y
@@ -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;