[gcjx] Patch: FYI: don't use CHAR_TYPE

Tom Tromey tromey@redhat.com
Tue Mar 8 21:22:00 GMT 2005


I'm checking this in on the gcjx branch.

Andrew pointed out that there's no real reason we should use
CHAR_TYPE.  This removes it from gcjx.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>
	* decl.cc (initialize_gcc_primitive_types): Make jchar an ordinary
	unsigned integer, not a CHAR_TYPE.

Index: decl.cc
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/Attic/decl.cc,v
retrieving revision 1.1.2.11
diff -u -r1.1.2.11 decl.cc
--- decl.cc 8 Mar 2005 00:45:41 -0000 1.1.2.11
+++ decl.cc 8 Mar 2005 21:03:08 -0000
@@ -421,9 +421,7 @@
   pushdecl (build_decl (TYPE_DECL, get_identifier ("unsigned byte"),
 			type_jubyte));
 
-  type_jchar = make_node (CHAR_TYPE);
-  TYPE_PRECISION (type_jchar) = 16;
-  fixup_unsigned_type (type_jchar);
+  type_jchar = make_unsigned_type (16);
   pushdecl (build_decl (TYPE_DECL, get_identifier ("char"), type_jchar));
 
   type_jshort = make_signed_type (16);



More information about the Java-patches mailing list