[PATCH] Java: Standard comformant arithmetic

Andrew Haley aph@pasanda.cygnus.co.uk
Thu Jul 22 01:40:00 GMT 1999


> From: Tom Tromey <tromey@cygnus.com>
> Date: 21 Jul 1999 15:54:49 -0600
> 
> >>>>> "Alexandre" == Alexandre Oliva <oliva@dcc.unicamp.br> writes:
> 
> Alexandre> I (will) do.  Kaffe is going to use gcj to pre-compile
> Alexandre> classes, so libgcj wouldn't have to be installed at all.
> 
> Then Kaffe should create its own libgcj.spec.

That's right.  The compiler needs to know about the capabilities of
the the run-time.  The place to pass this is the specfile, which Kaffe
should provide.  This only applies to divide overflows at present, but
eventually it will also apply to null pointer exceptions.

Making gcj provide its own default specfile would not help at all.

> Alexandre> % egcj -print-prog-name=jc1 
> Alexandre> gcj: libgcj.spec: No such file or directory
> 
> Alexandre> Err, does it really need libgjc.spec to tell me where jc1
> Alexandre> lives?
> 
> I think this is just a bug in the new code.  I think it should only
> look for the spec file when actually trying to compile something.

Right, that's a bug.  We need to add more logic to determine if phases
which need the specfile will be run.  I'll have a look at this.

Andrew.


More information about the Gcc-patches mailing list