aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/parse.c
diff options
context:
space:
mode:
authorJakub Jelinek <jj@ultra.linux.cz>1999-08-03 01:14:31 +0200
committerRichard Henderson <rth@gcc.gnu.org>1999-08-02 16:14:31 -0700
commite438e1b788a2877778e1592d914e6285964faac4 (patch)
treebca98a17bca1b69626b97df72e98febaabcc9aff /gcc/java/parse.c
parentfa56377de3213de3b1f2cc263cfda2843a610685 (diff)
downloadgcc-e438e1b788a2877778e1592d914e6285964faac4.zip
gcc-e438e1b788a2877778e1592d914e6285964faac4.tar.gz
gcc-e438e1b788a2877778e1592d914e6285964faac4.tar.bz2
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. From-SVN: r28419
Diffstat (limited to 'gcc/java/parse.c')
-rw-r--r--gcc/java/parse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/java/parse.c b/gcc/java/parse.c
index 4574459..b862054 100644
--- a/gcc/java/parse.c
+++ b/gcc/java/parse.c
@@ -140,6 +140,7 @@
#include "xref.h"
#include "function.h"
#include "except.h"
+#include "expr.h"
#ifndef DIR_SEPARATOR
#define DIR_SEPARATOR '/'
@@ -8178,7 +8179,8 @@ expand_start_java_method (fndecl)
tree next = TREE_CHAIN (tem);
tree type = TREE_TYPE (tem);
#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))
type = integer_type_node;
#endif