This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Java patch: cleanup for primitive ".TYPE" class handling
- To: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- Subject: Re: Java patch: cleanup for primitive ".TYPE" class handling
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- Date: Wed, 03 Oct 2001 23:43:00 +1200
- CC: java-patches at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- References: <3BBAF7D5.5060207@waitaki.otago.ac.nz>
Bryce McKinlay wrote:
> GCJ currently specially handles primitive type expressions like
> "Integer.TYPE", replacing them with references to "_Jv_integerClass"
> and such. There isn't any need for this and we can get rid of a bunch
> of code by removing it. In the runtime we can make initialization of
> primitive type classes a little cleaner and more efficient by using
> their type code rather than a string.
>
> OK to commit the compiler part?
Oops, and I forgot the ChangeLog:
2001-10-03 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* expr.c (expand_java_field_op): Don't special-case references to
java.lang.PRIMTYPE.TYPE.
(build_primtype_type_ref): Removed.
* java-tree.h (build_primtype_type_ref): Remove prototype.
* parse.y (maybe_build_primttype_type_ref): Removed.
(complete_function_arguments): Don't special-case references to
java.lang.PRIMTYPE.TYPE.
(patch_assignment): Likewise.
(array_constructor_check_entry): Likewise.
Bryce.