aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/parse.y
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2006-02-04 18:57:53 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2006-02-04 18:57:53 +0000
commit5460aa9c92db4858927d7a7c2118e71d7c90aa6d (patch)
treec0d1e0f40e8cd4dc49d6721aa72f8082ff6c8750 /gcc/java/parse.y
parentdd4ebf6ae9d708b231ad929bbe6fa900fb336a02 (diff)
downloadgcc-5460aa9c92db4858927d7a7c2118e71d7c90aa6d.zip
gcc-5460aa9c92db4858927d7a7c2118e71d7c90aa6d.tar.gz
gcc-5460aa9c92db4858927d7a7c2118e71d7c90aa6d.tar.bz2
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
Diffstat (limited to 'gcc/java/parse.y')
-rw-r--r--gcc/java/parse.y3
1 files changed, 1 insertions, 2 deletions
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;
}