This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [PATCH] New predicate covering NOP_EXPR and CONVERT_EXPR
- From: Tom Tromey <tromey at redhat dot com>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: Richard Guenther <rguenther at suse dot de>, gcc-patches at gcc dot gnu dot org, <java-patches at gcc dot gnu dot org>
- Date: 05 Dec 2005 10:00:13 -0700
- Subject: Re: [PATCH] New predicate covering NOP_EXPR and CONVERT_EXPR
- References: <Pine.LNX.4.44.0512012025120.4574-100000@www.eyesopen.com>
- Reply-to: tromey at redhat dot com
>>>>> "Roger" == Roger Sayle <roger@eyesopen.com> writes:
Roger> If we could get the Java maintainers help with sorting out the
Roger> patch_cast issue, I'd prefer that we make a instantaneous
Roger> surgical change, rather than the churn of a transition via
Roger> NOP_CONVERSION_P. Perhaps the Java front-end needs a front-end
Roger> tree code to distinguish user casts from the middle-end's
Roger> NOP_EXPRs?
Yeah, I would suggest making a new java-specific tree code that
represents a cast written by the user. It only has to stick around
for the generating-class-file case. Another plausible approach would
be a flag on the NOP_EXPR.
Tom