[kaffe] Rebuilding all sources

Kiyo Inaba inaba at src.ricoh.co.jp
Sat Nov 27 01:43:17 PST 2004


Hi Pinaki,

First of all, for technical questions and answers please DONT remove
kaffe at kaffe.org from cc. This kind of info is not only for you.

Anyway,

Pinaki wrote:
>Thanks for the reply. But this doesn't seem to work. My platform is i386/linux. The config.frag initially contained
>if test x"$with_threads" = x"unix-pthreads" ; then
>        CPPFLAGS="$CPPFLAGS -D_REENTRANT"
>fi
>
>I changed it to
>if test x"$with_threads" = x"unix-pthreads" ; then
>        CPPFLAGS="$CPPFLAGS -D_REENTRANT -O0"
>fi

I don't know why you want edit CPPFLAGS rather than adding CFLAGS,
but I am sure it shall not help.

>After running configure, I checked Makefile in the Kaffe base directory. It was still having the -O2 option. So I again changed conf
>ig.frag as below.
>if test x"$with_threads" = x"unix-pthreads" ; then
>        CPPFLAGS="$CPPFLAGS -D_REENTRANT -O0"
>        CFLAGS="$CFLAGS -O0"
>fi
>
>This didnt help too.

What is the result? 'This didnt help too' is too tarse...

If you worried, still CFLAGS contains '-O2', it is ok. The important thing
is whether the new CFLAGS (in Makefile, of course) contains '-O0' and
the '-O0' is after '-O2' or not. For gcc, optimization level option can
be overwritten by appending new one.

If you are in doubt, please see config/m68k/netbsd1/config.frag, and
it explicitly specifies '-O0' to override default '-O2'.
# Still I can not solve bug related to optimization for this platform :-<

Kiyo




More information about the kaffe mailing list