RFA: fix PR tree-optimization/28144

Tom Tromey tromey@redhat.com
Wed Jul 5 17:52:00 GMT 2006


>>>>> "Roger" == Roger Sayle <roger@eyesopen.com> writes:

Roger> I believe this issue can/should probably be fixed in the Java front-end
Roger> by construcing tree's that cast floating point types to integer types
Roger> narrower than an int, by first casting to "int".

parse.y:patch_cast looks like it tries to do this.
If it is failing in some case, I'd be mildly curious to know why.

I say "mildly" because with the eventual ecj merge, all this code is
going away... java bytecode explicitly represents the intermediate
cast.

Tom



More information about the Java-patches mailing list