Patch for java/jcf-write.c handling of negative zero

Mark Wielaard mark@klomp.org
Tue Apr 16 13:01:00 GMT 2002


Hi,

When writing java byte-code negative and positive zero are different.
So the following patch only writes const_0 when the value is not
negative.

2002-04-16  Mark Wielaard  <mark@klomp.org>

    * jcf-write.c (generate_bytecode_insns): Only write const_0 if not
    negative zero.

Tested on i686-pc-linux-gnu and powerpc-unknown-linux-gnu.
It fixes the following new test case for libjava.lang.

2002-04-16  Mark Wielaard  <mark@klomp.org>

        * libjava.lang/negzero.java: New.
        * libjava.lang/negzero.out: New.

It also fixes 7 failures in the Mauve testsuite which is why I would
also like this to go onto the 3.1 branch.

Ok to commit?

Cheers,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: const_0.patch
Type: text/x-patch
Size: 1663 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20020416/f6f28a35/attachment.bin>


More information about the Java-patches mailing list