Patch: don't generate dead bytecode
Tom Tromey
tromey@redhat.com
Mon Oct 8 17:13:00 GMT 2001
>>>>> "Per" == Per Bothner <per@bothner.com> writes:
[ revisiting old email ]
Per> So patch_binop when generating bytecodes, to be safe, only calls
Per> fold when both operands are constant. One fix to to do our own
Per> folding for '||' and '&&'. I'll look into that.
I think we need our own fold() anyway. The fold in gcc doesn't
implement Java semantics precisely. As I recall there are lots of
Jacks test failures resulting from our deviations here.
Tom
More information about the Java-patches
mailing list