On Thu, 26 Apr 2007, Dave Korn wrote:

> On 26 April 2007 16:26, Brian Dessent wrote:
>
> > The builtin would run on the host at compile time, whereas the above
> > would run on the target at runtime.  I presume he's talking about using
> > MPFR in the host compiler to simplify lgamma(constant), not actually
> > causing any requirement on the target code to use or have MPFR.
>
>   Oh, that makes sense.

Yes, see:
http://gcc.gnu.org/gcc-4.3/changes.html#mpfropts


>   Kaveh, surely the answer is to just unconditionally emit something like
>
>  (set (mem (sym_ref "_signgam")) (const_int VALUE)))
>
> and let the user worry about what happens if they haven't included the correct
> header file?

I'm doing this at the tree level, so AIUI I have to be mindful of type,
scope and conflicts.  I also have to decide what to do in non-C.

                --Kaveh
--
Kaveh R. Ghazi                  [EMAIL PROTECTED]

Reply via email to