This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: gcj optimizations
- From: Tom Tromey <tromey at redhat dot com>
- To: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- Cc: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 01 Dec 2001 15:35:57 -0700
- Subject: Re: Patch: gcj optimizations
- References: <874rnct3dv.fsf@creche.redhat.com> <3C082E3B.6070809@waitaki.otago.ac.nz>
- Reply-to: tromey at redhat dot com
Tom> We could also inline things like Math.sin, Math.cos, etc.
Today I implemented these two, which meant enabling a bunch of builtin
function stuff. It's a bit ugly. Still, I'm going to send it in when
my libgcj rebuild/retest is finished.
It turns out that you have to use -funsafe-math-optimizations to get
sin/cos inlining. I imagine implementing `strictfp' (and there is no
concrete plan to do so that I'm aware of) will require us to
generalize bits of gcc in this area. For instance, in a non-strict
context I imagine we can always inline sin or cos.
Tom