Patch for missing sinf, cosf, ...

Branko Branko
Wed Jun 7 00:20:00 GMT 2000


Benjamin Kosnik wrote:
> 
> I just checked in the long double patch from Steven King, which stomps on
> this stuff (HAVE_BUILTIN, etc). Can you update this for Gaby?

O.K., attached. The ChangeLog entry doesn't change.

BTW, if these patches are O.K., would it make sense to do the same for
the other *f and *l built-ins that are found?

    Brane

-- 
Branko Čibej                 <branko.cibej@hermes.si>
HERMES SoftLab, Litijska 51, 1000 Ljubljana, Slovenia
voice: (+386 1) 586 53 49     fax: (+386 1) 586 52 70
Index: acinclude.m4
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/acinclude.m4,v
retrieving revision 1.25
diff -c -p -r1.25 acinclude.m4
*** acinclude.m4	2000/06/06 20:26:13	1.25
--- acinclude.m4	2000/06/07 07:10:16
*************** AC_DEFUN(GLIBCPP_CHECK_MATH_SUPPORT, [
*** 1027,1037 ****
    AC_SUBST(USE_LONG_DOUBLE)
  
    dnl Check to see if basic C math functions have float, long double versions.
    AC_CHECK_FUNCS(isnan isnanf isnanl isinf isinff isinfl copysign copysignl \
!   acosf acosl asinf asinl atanf atanl atan2f atan2l ceilf ceill cosf cosl \
!   coshf coshl expf expl fabsf fabsl floorf floorl frexpf frexpl ldexpf \
!   ldexpl logf logl log10f log10l modf modff modfl powf powl sinf sinl sinhf \
!   sinhl sqrtf sqrtl tanf tanl tanhf tanhl strtof strtold sincos sincosf \
    sincosl finite finitef finitel fqfinite fpclass qfpclass)
  
  #Some runtimes have these functions with a preceding underscore. Please
--- 1027,1038 ----
    AC_SUBST(USE_LONG_DOUBLE)
  
    dnl Check to see if basic C math functions have float, long double versions.
+   AC_REPLACE_MATHFUNCS(cosf fabsf sinf sqrtf)
    AC_CHECK_FUNCS(isnan isnanf isnanl isinf isinff isinfl copysign copysignl \
!   acosf acosl asinf asinl atanf atanl atan2f atan2l ceilf ceill cosl \
!   coshf coshl expf expl fabsl floorf floorl frexpf frexpl ldexpf \
!   ldexpl logf logl log10f log10l modf modff modfl powf powl sinl sinhf \
!   sinhl sqrtl tanf tanl tanhf tanhl strtof strtold sincos sincosf \
    sincosl finite finitef finitel fqfinite fpclass qfpclass)
  
  #Some runtimes have these functions with a preceding underscore. Please
Index: math/Makefile.am
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/math/Makefile.am,v
retrieving revision 1.2
diff -c -p -r1.2 Makefile.am
*** Makefile.am	2000/04/28 02:50:55	1.2
--- Makefile.am	2000/06/07 07:10:16
*************** EXTRA_LONG_DOUBLE_yes = \
*** 31,36 ****
--- 31,37 ----
  	signbitl.c cabsl.c 
  
  EXTRA_DIST = \
+ 	cosf.c fabsf.c sinf.c sqrtf.c \
  	ccos.c ccosf.c ccosh.c ccoshf.c ccoshl.c \
  	cexp.c cexpf.c c_log.c c_logf.c  clog10.c clog10f.c \
  	cpow.c cpowf.c csin.c csinf.c csinh.c csinhf.c \

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mathfuncs.tar
Type: application/x-tar
Size: 20480 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20000607/72bac6ab/attachment.tar>


More information about the Libstdc++ mailing list