[kaffe] [Bug Report] Problem compiling 1.1.0 with GCC 3.3 on GNU/Linux PowerPC, and 1 test failed
Marc Kleine-Budde
kleine-budde at gmx.de
Fri Jun 27 10:22:02 PDT 2003
On Fri, Jun 27, 2003 at 10:01:49AM -0700, Dalibor Topic wrote:
> it seems that divjava fails because long remainder is broken on powerpc-linux.
> Could you try out the following C program, and report back what it prints out:
>
> #include <stdio.h>
> #include <limits.h>
> #define T long
> #ifndef LONG_MIN
> # define LONG_MIN ((((unsigned T)(~(T)0))>>1)+1)
> #endif
> T foo(T i, T j);
> int main() { int tmp = foo(LONG_MIN, -1l) == 0; printf ("%d\n", tmp); return
> 0;}
> T foo(T i, T j) { return i % j; }
the output is '0' in ppc, and Floating point exception on x86
gcc on ppc is 'gcc version 3.2.3 20030415 (Debian prerelease)'
gcc on x86 is 'gcc version 2.95.4 20011002 (Debian prerelease)'
regards - 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
More information about the kaffe
mailing list