[kaffe] pasting "*" and "sc" does not give a valid preprocessing token

Marc Kleine-Budde kleine-budde at gmx.de
Fri Jun 20 02:34:01 PDT 2003


Hi!

On Thu, Jun 19, 2003 at 08:45:01PM +0200, Marc Kleine-Budde wrote:
> gcc-3.2 goes as far as the 2.95
> > /bin/sh ../../libtool --mode=compile gcc-2.95 -DHAVE_CONFIG_H -I. -I.
> > -I../../config -I../../include
> > -I../../kaffe/kaffevm/systems/unix-jthreads -Iintrp -I./intrp
> > -I../../libltdl -DINTERPRETER -I../../kaffe/xprof -DKVER='"1.1.0"'
> > -I/tmp/kaffe-1.1.0/./kaffe/kaffevm
> > -I/tmp/kaffe-1.1.0/./kaffe/kaffevm/systems/unix-jthreads -I../../config
> > -I../../include  -DKAFFE_VMDEBUG  -g -O2 -fsigned-char -c -o
> > stringParsing.lo `test -f 'stringParsing.c' || echo './'`stringParsing.c
> >  gcc-2.95 -DHAVE_CONFIG_H -I. -I. -I../../config -I../../include
> > -I../../kaffe/kaffevm/systems/unix-jthreads -Iintrp -I./intrp
> > -I../../libltdl -DINTERPRETER -I../../kaffe/xprof -DKVER=\"1.1.0\"
> > -I/tmp/kaffe-1.1.0/./kaffe/kaffevm
> > -I/tmp/kaffe-1.1.0/./kaffe/kaffevm/systems/unix-jthreads -I../../config
> > -I../../include -DKAFFE_VMDEBUG -g -O2 -fsigned-char -c stringParsing.c
> > -Wp,-MD,.deps/stringParsing.TPlo  -fPIC -DPIC -o .libs/stringParsing.o
> > stringParsing.c: In function `pushFrame':
> > stringParsing.c:113: incompatible types in assignment
> > stringParsing.c: In function `parseString_private':
> > stringParsing.c:572: warning: passing arg 5 of `skipBlock' from
> > incompatible pointer type
> > stringParsing.c:683: warning: passing arg 5 of `skipBlock' from
> > incompatible pointer type
> > stringParsing.c:728: warning: passing arg 5 of `skipBlock' from
> > incompatible pointer type

After some googling, it seems that Varargs works different on (at least some) ppc
platforms. See [1] for more info.

I've attached a diff, kaffe compiles, all check but divtest.java pass.
Perhaps someone with autotool magic and/or better c knowledge can make a
nice macro out of it.

regards - marc

[1] http://lists.suse.com/archive/suse-ppc/2001-Dec/0073.html
-- 
#!/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
-------------- next part --------------
Index: kaffe/kaffevm/stringParsing.c
===================================================================
RCS file: /cvs/kaffe/kaffe/kaffe/kaffevm/stringParsing.c,v
retrieving revision 1.4
diff -u -r1.4 stringParsing.c
--- kaffe/kaffevm/stringParsing.c	12 Jun 2003 21:37:37 -0000	1.4
+++ kaffe/kaffevm/stringParsing.c	20 Jun 2003 09:28:56 -0000
@@ -571,7 +571,7 @@
 			else
 			{
 				skipBlock(script, values,
-					  &script_pos, &values_pos, &args);
+					  &script_pos, &values_pos, args);
 			}
 			break;
 		case SPO_Do:
@@ -682,7 +682,7 @@
 			else
 			{
 				skipBlock(script, values,
-					  &script_pos, &values_pos, &args);
+					  &script_pos, &values_pos, args);
 			}
 			break;
 		case SPO_Handle:
@@ -727,7 +727,7 @@
 			else
 			{
 				skipBlock(script, values,
-					  &script_pos, &values_pos, &args);
+					  &script_pos, &values_pos, args);
 			}
 			script_pos++;
 			break;


More information about the kaffe mailing list