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 )
On Tue, Mar 10, 2009 at 7:58 AM, Bernd Roesch <nospamname@web.de> wrote:
> 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 ?
>
> I see in my c++config.h file
>
> this stand here
>
> /* Define if the compiler/host combination has __builtin_sqrtf. */
> /* #undef _GLIBCXX_HAVE___BUILTIN_SQRTF */
So, the real problem is that somehow configure thinks your target
has support for __builtin_sqrtf.
-- Gaby