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]
Other format: [Raw text]

Re: [PATCH][Java] Fix PR38374, type verification errors with the constant pool decl


>>>>> "Richard" == Richard Guenther <rguenther@suse.de> writes:

Richard> This fixes the issue that the Java frontend patches the type of the
Richard> constant pool decl thereby invalidating all built address-expressions.

Richard> The "fix" is to retain the old pointer type as a valid one to access
Richard> the new type.

Is changing TYPE_POINTER_TO like this actually valid?
I would have thought that this was a no-no.

Could we introduce a cast rather than changing the constant pool
decl's type?  Or otherwise fix things so that the types are correct by
construction?

Tom


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