This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
committed: remove IDENTIFIER_HANDLECLASS_VALUE in java-tree.h
- From: Per Bothner <per at bothner dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 01 Mar 2005 08:56:01 -0800
- Subject: committed: remove IDENTIFIER_HANDLECLASS_VALUE in java-tree.h
I checked this into mainline.
(The original jc1 implementation supported "handles" - i.e. an
extra level of indirection, for compatibility with jdk 1.0 ....
This code was never maintained and finally removed, but the
IDENTIFIER_HANDLECLASS_VALUE macro and a confusing comment in
IDENTIFIER_CLASS_VALUE were allowed to linger.)
--
--Per Bothner
per@bothner.com http://per.bothner.com/
2005-03-01 Per Bothner <per@bothner.com>
* java-tree.h (IDENTIFIER_HANDLECLASS_VALUE): Remove ancient macro.
Index: java-tree.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/java-tree.h,v
retrieving revision 1.226
diff -u -r1.226 java-tree.h
--- java-tree.h 24 Jan 2005 19:07:06 -0000 1.226
+++ java-tree.h 1 Mar 2005 16:44:05 -0000
@@ -730,16 +730,11 @@
#define IDENTIFIER_LOCAL_VALUE(NODE) \
(((struct lang_identifier *)(NODE))->local_value)
-/* Given an identifier NODE, get the corresponding (non-handle) class.
- For get_identifier ("java.lang.Number"), the result is
- the struct whose DECL_ASSEMBLER_NAME is "Classjava_lang_Number". */
+/* Given an identifier NODE, get the corresponding class.
+ E.g. IDENTIFIER_CLASS_VALUE(get_identifier ("java.lang.Number"))
+ is the corresponding RECORD_TYPE. */
#define IDENTIFIER_CLASS_VALUE(NODE) IDENTIFIER_GLOBAL_VALUE(NODE)
-/* Given an identifier NODE, get the corresponding handle class.
- For get_identifier ("java.lang.Number"), the result is
- the struct whose DECL_ASSEMBLER_NAME is "Hjava_lang_Number". */
-#define IDENTIFIER_HANDLECLASS_VALUE(NODE) ???
-
/* Given a signature of a reference (or array) type, or a method, return the
corresponding type (if one has been allocated).
Do not use for primitive types, since they may be ambiguous.