This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: cmath call builtin sqrtf but many platforms seem miss that(was Re: lrint lrintf problems )
- From: Ian Lance Taylor <iant at google dot com>
- To: Bernd Roesch <nospamname at web dot de>
- Cc: Richard Guenther <richard dot guenther at gmail dot com>, gdr at integrable-solutions dot net, gcc at gcc dot gnu dot org
- Date: Tue, 10 Mar 2009 09:38:31 -0700
- Subject: Re: cmath call builtin sqrtf but many platforms seem miss that(was Re: lrint lrintf problems )
- References: <yam11391.292.281619664@mail.gmx.net>
Bernd Roesch <nospamname@web.de> writes:
> Hello Richard
>
> On 09.03.09, you wrote:
>
>>> I believe one should convince the middle end to emit libcall
>>> for __builtin_xxx when the target has no builtint support.
>>
>> It of course does.
>
> On what codeplace is the redefine do in GCC source ?
This is in optabs.c, as set up by gen_libfunc and friends. A call to
__builtin_xxx, where xxx is a library function, is normally replaced by
a call to xxx. Where xxx is not a library function, gcc normally
provides the function in libgcc.
Ian