diff options
author | Jakub Jelinek <jj@ultra.linux.cz> | 1999-08-03 01:14:31 +0200 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 1999-08-02 16:14:31 -0700 |
commit | e438e1b788a2877778e1592d914e6285964faac4 (patch) | |
tree | bca98a17bca1b69626b97df72e98febaabcc9aff /gcc/java/decl.c | |
parent | fa56377de3213de3b1f2cc263cfda2843a610685 (diff) | |
download | gcc-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/decl.c')
-rw-r--r-- | gcc/java/decl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/java/decl.c b/gcc/java/decl.c index ed1e7f8..71e84d0 100644 --- a/gcc/java/decl.c +++ b/gcc/java/decl.c @@ -34,6 +34,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */ #include "toplev.h" #include "function.h" #include "except.h" +#include "expr.h" static tree push_jvm_slot PROTO ((int, tree)); static tree builtin_function PROTO ((const char *, tree, @@ -1637,11 +1638,10 @@ start_java_method (fndecl) parm_decl = build_decl (PARM_DECL, parm_name, parm_type); DECL_CONTEXT (parm_decl) = fndecl; -#ifdef PROMOTE_PROTOTYPES - if (TYPE_PRECISION (parm_type) < TYPE_PRECISION (integer_type_node) + if (PROMOTE_PROTOTYPES + && TYPE_PRECISION (parm_type) < TYPE_PRECISION (integer_type_node) && INTEGRAL_TYPE_P (parm_type)) parm_type = integer_type_node; -#endif DECL_ARG_TYPE (parm_decl) = parm_type; *ptr = parm_decl; |