The code calls a native function with some arguments to test the parameters. The reason it fails on MacOS X is that MacOS X uses a different calling convention wrt floating point arguments than the other PPC oses. The function that needs fixing is low_make_stub() function inside #ifdef HAVE_PPC_CPU and after the /* PowerOpen ABI */ comment. The function gets a bitmask specifying which (of the first 32) arguments are doubles, in case this information is needed. I haven't been able to fix the function myself, as I don't have a MacOS system to test on. If you make any changes, please make sure that it works on AIX afterwards.
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2003-12-11 10:09: Subject: Java failure
Does someone (i.e. Marcus :-) have the source to conftest.class which is used by the Java testsuite? I'm seeing an error on OS X (both JDK 1.3.1 and 1.4.1) where double values are sent as either 0.0 or Inf so I'd be interested in adding debug code to the Java side.
Could this be as simple as a struct padding or data alignment error? None of the other data types in that test fail, only double values.
/ Jonas Walldén