[PATCH] middle-end: convert builtin finite -> MINUS/ORD
Kaveh R. GHAZI
ghazi@caip.rutgers.edu
Wed Jun 13 05:29:00 GMT 2007
On Tue, 12 Jun 2007, Michael Matz wrote:
> also
> http://gcc.gnu.org/ml/gcc-patches/2007-02/msg00021.html
> Michael.
Thanks for the pointer. I'm trying to go with rth's suggestion:
isfinite(d) => islessequal(fabs(d), DBL_MAX)
and move it after optabs in case some platform wants to override it.
However I'm stuck on how to get DBL_MAX et al. from the middle-end.
I assume the target FP macros are unavailable to me since they are a
frontend language construct and/or maybe it's too late in the process.
And I don't want to recreate the logic in c-cppbuiltins.c which sets them
in the first place. Can someone offer suggestions?
Thanks,
--Kaveh
--
Kaveh R. Ghazi ghazi@caip.rutgers.edu
More information about the Gcc-patches
mailing list