Patch for missing sinf, cosf, ... [was: wchar_t working on sparc-sun-solaris2.6]
Gabriel Dos Reis
Gabriel.Dos-Reis@cmla.ens-cachan.fr
Mon Jun 5 04:41:00 GMT 2000
Branko =?iso-8859-2?Q?=C8ibej?= <branko.cibej@hermes.si> writes:
| [1 <text/plain; iso-8859-2 (quoted-printable)>]
| O.K., here's the first patch. It fixes problems with missing c9x math
| functions on sparc-sun-solaris2.6.
|
| Although the builtin functions exist, it seems that GCC sometimes
| can't expand them inline and generates a call to the library function
| instead. Thus, libstdc++ on Solaris contains references to sinf, cosf
| and sqrtf. This patch provides implementations of these functions
| (and fabsf which is also built-in, although it's not causing a problem
| for now). This solution is generic and should work on other systems
| that don't provide these functions.
|
|
| 2000-06-05 Branko Cibej <branko.cibej@hermes.si>
|
| * acinclude.m4 (GLIBCPP_CHECK_BUILTIN_MATH_SUPP): Check for sinf,
| cosf, fabsf and sqrtf.
|
| * math/Makefile.am (EXTRA_DIST): Add sinf.c, cosf.c, fabsf.c, sqrtf.c.
| * math/sinf.c, math/cosf.c, math/fabsf.c, math/sqrtf.c: New files.
Brane,
Thanks you for your patch. I'll look at it closely.
-- Gaby
More information about the Libstdc++
mailing list