[kaffe] [Bug Report] Problem compiling 1.1.0 with GCC 3.3 on GNU/Linux PowerPC, and 1 test failed

Luca Saiu positrone@freemail.it
Sat Jun 21 21:50:01 2003


This is a multi-part message in MIME format.
--------------010100080603030006060501
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

   Hi.
   I have had some problems when compiling the latest Kaffe (1.1.0) with 
GCC 3.3 on GNU/Linux PowerPC.

   The first one is a misuse of the preprocessor concatenation operator 
## at line 146 of kaffe/kaffevm/systems/unix-jthreads/jthread.c. 
Removing it fixes the problem, and I think it is the right thing 
altogether. I include a patch.

   The second problem is due to the representation of va_list, which I 
believe to be system-dependent. This leads to a problem in 
kaffe/kaffevm/stringParsing.c, which appears to be fixed by my (very 
hackish) second patch. Maybe it should be conditionalized (only for PPC).

   I ran make check.
   divtest.java is the only test that failed (I compiled it with GCJ and 
it worked nice, both compiled to native code and compiled to bytecode 
and then interpreted with gij). I include the output from Kaffe.

   Thanks for your nice work,

-- 
Luca Saiu, maintainer of GNU epsilon
http://www.gnu.org/software/epsilon

--------------010100080603030006060501
Content-Type: text/plain;
 name="patch1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="patch1"

146c146
< #define SIGNAL_CONTEXT_POINTER(x) void *##x
---
> #define SIGNAL_CONTEXT_POINTER(x) void * x /* fix by positron@gnu.org */

--------------010100080603030006060501
Content-Type: text/plain;
 name="patch2"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="patch2"

73c73
< 	va_list args;
---
>         void* args; /* hackish fix by positron@gnu.org */
113c113
< 		pf->args = args;
---
> 		pf->args = (void*)args; /* hackish fix by positron@gnu.org */

--------------010100080603030006060501
Content-Type: text/plain;
 name="divtest.fail"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="divtest.fail"

40000000 1 / 40000000
40000000 1 % 0
80000000 1 / 80000000
80000000 1 % 0
40000000 -1 / c0000000
40000000 -1 % 0
80000000 -1 / 80000000
80000000 -1 % 7fffffff
40000000 2 / 20000000
40000000 2 % 0
80000000 2 / c0000000
80000000 2 % 0
40000000 -2 / e0000000
40000000 -2 % 0
80000000 -2 / 40000000
80000000 -2 % 0

--------------010100080603030006060501--