[kaffe] pasting "*" and "sc" does not give a valid preprocessing token

Marc Kleine-Budde kleine-budde@gmx.de
Fri Jun 27 02:46:01 2003


--dDRMvlgZJXvWKvBx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Thu, Jun 26, 2003 at 08:21:00AM -0700, Dalibor Topic wrote:
> nice! thanks for testing. 

> Could you take a look at the divtest.java issue? diff divtest.fail vs.
> divtest.out and try to reduce code in divtest.java to as few lines as possible
> that trigger the bug.

It's  '0x80000000 % -1' that should be 0, not 0x7fffffff.

--- divtest.out 2003-06-26 17:00:05.000000000 +0200
+++ divtest.fail        2003-06-26 17:00:06.000000000 +0200
@@ -5,7 +5,7 @@
 40000000 -1 / c0000000
 40000000 -1 % 0
 80000000 -1 / 80000000
-80000000 -1 % 0
+80000000 -1 % 7fffffff
 40000000 2 / 20000000
 40000000 2 % 0
 80000000 2 / c0000000

Attachted the source, reduced to that problem.....

hope that helps -
	Marc
-- 
#!/bin/sh
set - `type $0` 'tr "[a-zA-Z]" "[n-za-mN-ZA-M]"';while [ "$2" != "" ];do \
shift;done; echo 'frq -a -rc '`echo "$0"| $1 `'>$UBZR/.`rpub signature|'`\
echo $1|$1`'`;rpub "Jr ner fvtangher bs obet. Erfvfgnapr vf shgvyr!"'|$1|sh

--dDRMvlgZJXvWKvBx
Content-Type: text/x-java; charset=us-ascii
Content-Disposition: attachment; filename="divtest.java"

/* test that we don't get tripped up by x86 problem */

public class divtest {

    public static int modfunc(int x, int y) {
      return x%y;
    }

    public static void test(String s, int x, int y) {
	int r;

	try {
	    r = modfunc(x, y);
	    System.out.println (s + " % " + Integer.toHexString(r));
	}
	catch (Throwable t) {
	    System.out.println (s + " % " + t.toString());
	}
    }

    public static void main(String args[]) {
      test ("80000000 -1", 0x80000000, -1);	// x86 causes trap for no good reason
    }
}

--dDRMvlgZJXvWKvBx--