This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][Java] Fix PR38374, type verification errors with the constant pool decl
- From: Tom Tromey <tromey at redhat dot com>
- To: Richard Guenther <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org, aph at redhat dot com
- Date: Wed, 22 Apr 2009 16:44:42 -0600
- Subject: Re: [PATCH][Java] Fix PR38374, type verification errors with the constant pool decl
- References: <alpine.LNX.2.00.0904151623510.4801@zhemvz.fhfr.qr>
- Reply-to: Tom Tromey <tromey at redhat dot com>
>>>>> "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