diff options
Diffstat (limited to 'gcc/java/parse.y')
-rw-r--r-- | gcc/java/parse.y | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/java/parse.y b/gcc/java/parse.y index deba7e9..e9caf8d 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -64,6 +64,7 @@ definitions and other extensions. */ #include "xref.h" #include "function.h" #include "except.h" +#include "expr.h" #ifndef DIR_SEPARATOR #define DIR_SEPARATOR '/' @@ -5593,7 +5594,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 |