This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Accessing signgam from the middle-end for builtin lgamma


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			ghazi@caip.rutgers.edu


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]