From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexandre Petit-Bianco To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: java/3803: buggy code generation Date: Wed, 15 Aug 2001 11:26:00 -0000 Message-id: <20010815182601.20122.qmail@sourceware.cygnus.com> X-SW-Source: 2001-08/msg00418.html List-Id: The following reply was made to PR java/3803; it has been noted by GNATS. From: Alexandre Petit-Bianco To: gcc-gnats@gcc.gnu.org, turms@web.de Cc: gcc-prs@gcc.gnu.org, java-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Subject: Re: java/3803: buggy code generation Date: Wed, 15 Aug 2001 11:23:47 -0700 > Happens of course only if I compile the java-files. Not with the > class files. OK. It seems to be related to java/3096 and java/3965: http://gcc.gnu.org/ml/java-prs/2001-q2/msg00070.html So I rewrote the only loop that uses a pre-incremented array access and the test started to work: RC5 Java Demo (gregh@lightspeed.net) Keys: 256 keys Time: 1 ms Rate: 256000 keys/sec Keys: 512 keys Time: 4 ms Rate: 128000 keys/sec Keys: 768 keys Time: 6 ms Rate: 128000 keys/sec java/3096 and java/3965 are next on my list of things to do. I'll keep you posted. ./A --- RC5test.java~ Wed Aug 15 10:57:52 2001 +++ RC5test.java Wed Aug 15 11:07:58 2001 @@ -36,7 +36,7 @@ class RC5test implements Runnable { //break; } int i = 0; - while (++key[i] == 0) { + for (key[i]++; key[i] == 0; key[i]++) { i++; if (i >= 1) { long now = System.currentTimeMillis();