2 Mar 17:05
exponent and modulus operator oddities on ppc
Glenn McAllister <glenn <at> somanetworks.com>
2009-03-02 16:05:58 GMT
2009-03-02 16:05:58 GMT
We've been having some odd problems with the exponent operator ('^') and
modulus operator ('%') on our PowerPC deployment environment; this issue
doesn't exist on our x86 development environment. We cross compile on
x86 to the ppc target.
The tombstone data is:
Lua: 5.1.3
Make:
make -C src MYCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN"
MYLIBS="-Wl,-E -ldl -lncurses" all
Make Output:
powerpc-linux-gcc -O2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o
lapi.o lapi.c
powerpc-linux-gcc -O2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o
lcode.o lcode.c
powerpc-linux-gcc -O2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN -c -o
ldebug.o ldebug.c
<snip/>
Host: ppc 32-bit
Given the following script, it produces the correct results on both x86
and ppc:
y = 2^3
(Continue reading)
RSS Feed