This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Bug on Solaris
Martin Kahlert writes:
> Hi Andrew,
>
> On Tue, Jan 08, 2002 at 02:26:37PM +0000, Andrew Haley wrote:
> > Andrew Haley writes:
> > > It looks to me like the Java source compiler is miscompiling your test
> > > case. java.lang.Double looks fine.
> > >
> > > The first thing I'd try is recompiling gcj with no optimizations. Go
> > > into gcc/gcc and do make clean; make; make install.
> > >
> > > Andrew.
> >
> > P.S. I take it that the Linux gcj and the Solaris gcj have been built
> > from exactly the same source.
>
> Nearly ;-)
> Of course, they use the same java-source file hello.java.
>
> The 'linux-c' linux version was from snapshot gcc-20020107.
> I now use gcc-20011231 on Linux, too, and the resulting disassambly
> of hello.java is *exactly* the same as the one i gave to you produced by
> gcc-20020107.
>
> Now, the two gcc-20011231 sources differ by a patch from Richard Henderson
> which was applied on Solaris to survive an assembler error. (IIRC,
> it is in mainline now an it is also in gcc-20020107).
Well, you really will have to compile the exact same gcj for both
platforms, preferably without any optimization, before we go any futher.
I don't think the reorg.c patch will make any difference to gcj -C.
Andrew.