From 5460aa9c92db4858927d7a7c2118e71d7c90aa6d Mon Sep 17 00:00:00 2001 From: Roger Sayle Date: Sat, 4 Feb 2006 18:57:53 +0000 Subject: decl.c (java_init_decl_processing): Create char_type_node as a regular INTEGER_TYPE node. * decl.c (java_init_decl_processing): Create char_type_node as a regular INTEGER_TYPE node. (push_promoted_type): Preserve TYPE_STRING_FLAG on types. * typeck.c (convert): No longer check for CHAR_TYPEs but instead test for char_type_node and promoted_char_type_node as special instances of INTEGER_TYPE tree codes. (promote_type,build_java_signature): Likewise. * jcf-write.c (adjust_typed_op): Likewise. * mangle.c (mangle_type): Likewise. * parse.y (do_unary_numeric_promotion): No longer handle CHAR_TYPE. * parse.h (JINTEGRAL_TYPE_P): Likewise. From-SVN: r110592 --- gcc/java/parse.y | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gcc/java/parse.y') diff --git a/gcc/java/parse.y b/gcc/java/parse.y index ab602dd..4ba1581 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -13331,8 +13331,7 @@ static tree do_unary_numeric_promotion (tree arg) { tree type = TREE_TYPE (arg); - if ((TREE_CODE (type) == INTEGER_TYPE && TYPE_PRECISION (type) < 32) - || TREE_CODE (type) == CHAR_TYPE) + if (TREE_CODE (type) == INTEGER_TYPE && TYPE_PRECISION (type) < 32) arg = convert (int_type_node, arg); return arg; } -- cgit v1.1