diff options
Diffstat (limited to 'gcc/java/parse.c')
-rw-r--r-- | gcc/java/parse.c | 4 |
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 |