This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Java patch: cleanup for primitive ".TYPE" class handling


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]