23404 – gij trashes args of functions with more than 8 fp args (original) (raw)
Description Orion Poplawski 2005-08-15 17:27:24 UTC
This is on a Fedora Core 4 machine:
gij (GNU libgcj) version 4.0.1 20050727 (Red Hat 4.0.1-5)
The to be attached code does not run properly on ppc. Runs fine on x86 (32 and 64 bit). The byte-code appears to be correct because it runs fine using the IBM JVM.
Compiled with:
javac plplot//.java
Run with:
java plplot.examples.x08
The output is the arguments passed to plw3d(). In the source this is:
pls.w3d( 1.0, 1.0, 1.0, -1.5, 1.5, -0.5, 1.5, zmin, zmax, alt[k], az[k] );
Output (first loop) is:
0.0 1.0 1.0 -1.5 1.5 -0.5 1.5 -5.093869927024149 NaN -3.7431896459052014E-274 5.32506451E-315
Correct output should be:
1.0 1.0 1.0 -1.5 1.5 -0.5 1.5 -5.093869927024149 6.636602508481567 60.0 30.0
It looks like arg1, arg9, arg10, and arg11 are not passed properly.
Comment 3 Alan Modra 2005-08-24 03:52:55 UTC
I could not reproduce this problem using a powerpc64 gij. However, I could when using a powerpc gij. Retargetting.