This is the mail archive of the
mailing list for the libstdc++ project.
__builtin_sinf and friends problem
- To: libstdc++ at gcc dot gnu dot org
- Subject: __builtin_sinf and friends problem
- From: David Edelsohn <dje at watson dot ibm dot com>
- Date: Thu, 14 Jun 2001 13:09:23 -0400
Is __builtin_sinf() always suppose to hide the actual source of
those functions? Or is it only suppose to be used when configure finds
they exist? I think the latter, but a V3 header is using various builtin
functions without checking.
c_std/bits/std_cmath.h uses __builtin_sinf, __builtin_cosf,
etc. without any #ifdef protection. c_shadow/bits/std_cmath.h only uses
those functions if they exist and provides non-builtin and fallback
static_cast<double> versions. Systems without sinf() linkage are seeing
undefined symbol linker errors when using float methods from <cmath>, such