diff options
Diffstat (limited to 'gcc/java')
-rw-r--r-- | gcc/java/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/java/decl.c | 3 | ||||
-rw-r--r-- | gcc/java/expr.c | 18 | ||||
-rw-r--r-- | gcc/java/parse.c | 8 | ||||
-rw-r--r-- | gcc/java/parse.y | 8 |
5 files changed, 29 insertions, 16 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 9da0e2c..1620c53 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,11 @@ +Mon Mar 6 18:07:07 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> + + * decl.c (emit_init_test_initialization): Mark KEY as unused. + * expr.c (build_newarray): Cast TREE_INT_CST_LOW to HOST_WIDE_INT. + (build_anewarray): Likewise. + * parse.y (patch_newarray): Likewise. + * parse.c: Regenerated. + 2000-03-06 Bryce McKinlay <bryce@albatross.co.nz> * decl.c (init_decl_processing): Added new class fields `depth', diff --git a/gcc/java/decl.c b/gcc/java/decl.c index 17ec135..13d2dd7 100644 --- a/gcc/java/decl.c +++ b/gcc/java/decl.c @@ -1,6 +1,5 @@ /* Process declarations and variables for the GNU compiler for the Java(TM) language. - Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. This file is part of GNU CC. @@ -1634,7 +1633,7 @@ build_result_decl (fndecl) static boolean emit_init_test_initialization (entry, key) struct hash_entry *entry; - hash_table_key key; + hash_table_key key ATTRIBUTE_UNUSED; { struct init_test_hash_entry *ite = (struct init_test_hash_entry *) entry; expand_decl (ite->init_test_decl); diff --git a/gcc/java/expr.c b/gcc/java/expr.c index 832e662..4db334d 100644 --- a/gcc/java/expr.c +++ b/gcc/java/expr.c @@ -786,10 +786,11 @@ build_newarray (atype_value, length) int atype_value; tree length; { - tree type = build_java_array_type (decode_newarray_type (atype_value), - TREE_CODE (length) == INTEGER_CST - ? TREE_INT_CST_LOW (length) - : -1); + tree type + = build_java_array_type (decode_newarray_type (atype_value), + TREE_CODE (length) == INTEGER_CST + ? (HOST_WIDE_INT) TREE_INT_CST_LOW (length) : -1); + return build (CALL_EXPR, promote_type (type), build_address_of (soft_newarray_node), tree_cons (NULL_TREE, @@ -806,10 +807,11 @@ build_anewarray (class_type, length) tree class_type; tree length; { - tree type = build_java_array_type (class_type, - TREE_CODE (length) == INTEGER_CST - ? TREE_INT_CST_LOW (length) - : -1); + tree type + = build_java_array_type (class_type, + TREE_CODE (length) == INTEGER_CST + ? (HOST_WIDE_INT) TREE_INT_CST_LOW (length) : -1); + return build (CALL_EXPR, promote_type (type), build_address_of (soft_anewarray_node), tree_cons (NULL_TREE, length, diff --git a/gcc/java/parse.c b/gcc/java/parse.c index f8b97b8..2361f3d 100644 --- a/gcc/java/parse.c +++ b/gcc/java/parse.c @@ -13431,9 +13431,11 @@ patch_newarray (node) for (cdim = dims; cdim; cdim = TREE_CHAIN (cdim)) { type = array_type; - array_type = build_java_array_type (type, - TREE_CODE (cdim) == INTEGER_CST ? - TREE_INT_CST_LOW (cdim) : -1); + array_type + = build_java_array_type (type, + TREE_CODE (cdim) == INTEGER_CST + ? (HOST_WIDE_INT) TREE_INT_CST_LOW (cdim) + : -1); array_type = promote_type (array_type); } dims = nreverse (dims); diff --git a/gcc/java/parse.y b/gcc/java/parse.y index d1aa061..1fb2175 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -10824,9 +10824,11 @@ patch_newarray (node) for (cdim = dims; cdim; cdim = TREE_CHAIN (cdim)) { type = array_type; - array_type = build_java_array_type (type, - TREE_CODE (cdim) == INTEGER_CST ? - TREE_INT_CST_LOW (cdim) : -1); + array_type + = build_java_array_type (type, + TREE_CODE (cdim) == INTEGER_CST + ? (HOST_WIDE_INT) TREE_INT_CST_LOW (cdim) + : -1); array_type = promote_type (array_type); } dims = nreverse (dims); |