summaryrefslogtreecommitdiff
path: root/gcc/java/expr.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>1999-08-02 23:14:31 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>1999-08-02 23:14:31 +0000
commitbf5e670001a032c33b28f779088b8915c883f2f6 (patch)
treebca98a17bca1b69626b97df72e98febaabcc9aff /gcc/java/expr.c
parent19562da3acbd870bf14df4e4de3e68c60cbddf69 (diff)
downloadgcc-bf5e670001a032c33b28f779088b8915c883f2f6.tar.gz
Jakub Jelinek <jj@ultra.linux.cz>
* java/decl.c (start_java_method): Change all uses of PROMOTE_PROTOTYPES, so that it tests it as a C expression. Ensure expr.h is included. * java/expr.c (pop_arguments): Ditto. * java/parse.y (expand_start_java_method): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28419 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/expr.c')
-rw-r--r--gcc/java/expr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/java/expr.c b/gcc/java/expr.c
index a825e981c35..38fa5d46fba 100644
--- a/gcc/java/expr.c
+++ b/gcc/java/expr.c
@@ -1448,11 +1448,10 @@ pop_arguments (arg_types)
tree tail = pop_arguments (TREE_CHAIN (arg_types));
tree type = TREE_VALUE (arg_types);
tree arg = pop_value (type);
-#ifdef PROMOTE_PROTOTYPES
- if (TYPE_PRECISION (type) < TYPE_PRECISION (integer_type_node)
+ if (PROMOTE_PROTOTYPES
+ && TYPE_PRECISION (type) < TYPE_PRECISION (integer_type_node)
&& INTEGRAL_TYPE_P (type))
arg = convert (integer_type_node, arg);
-#endif
return tree_cons (NULL_TREE, arg, tail);
}
abort ();