Patch for libstdc++-v3 cross build on hpux
Steve Ellcey
sje@cup.hp.com
Tue Mar 19 16:59:00 GMT 2002
When I added code to libstdc++-v3/configure.in to support cross-builds
with an hp-ux target I lied about the existence of some functions. It
didn't break anything then because the functions (finite[fl], isinf[fl],
isnan[fl], sincos) weren't used by any libstdc++ code. That has changed
with a recent checkin so this patch is to remove these functions from
what hp-ux claims to have while leaving them in the linux and netbsd
cross build lists of existing functions.
I do not have write access so if someone could approve this and check it
in I would greatly appreciate it. It should only affect cross-builds
where the target is hpux and that is what I tested it on.
Steve Ellcey
sje@cup.hp.com
2002-03-19 Steve Ellcey <sje@cup.hp.com>
* libstdc++-v3/configure.in (HAVE_FINITE*, HAVE_ISINF*, HAVE_ISNAN*):
Remove definitions in hpux cross-build because these functions do
not exist on hpux.
* libstdc++-v3/configure: Regenerate.
*** gcc.orig/libstdc++-v3/configure.in Tue Mar 19 16:12:49 2002
--- gcc/libstdc++-v3/configure.in Tue Mar 19 16:42:03 2002
*************** if test -n "$with_cross_host" || test x"
*** 98,110 ****
--- 98,118 ----
os_include_dir="config/os/gnu-linux"
AC_DEFINE(HAVE_COPYSIGN)
AC_DEFINE(HAVE_COPYSIGNF)
+ AC_DEFINE(HAVE_FINITE)
AC_DEFINE(HAVE_FINITEF)
AC_DEFINE(HAVE_FREXPF)
AC_DEFINE(HAVE_HYPOTF)
+ AC_DEFINE(HAVE_ISINF)
+ AC_DEFINE(HAVE_ISINFF)
+ AC_DEFINE(HAVE_ISNAN)
+ AC_DEFINE(HAVE_ISNANF)
AC_DEFINE(HAVE_SINCOS)
AC_DEFINE(HAVE_SINCOSF)
if test x"long_double_math_on_this_cpu" = x"yes"; then
+ AC_DEFINE(HAVE_FINITEL)
AC_DEFINE(HAVE_HYPOTL)
+ AC_DEFINE(HAVE_ISINFL)
+ AC_DEFINE(HAVE_ISNANL)
fi
;;
*-hpux*)
*************** if test -n "$with_cross_host" || test x"
*** 120,130 ****
os_include_dir="config/os/hpux"
AC_DEFINE(HAVE_COPYSIGN)
AC_DEFINE(HAVE_COPYSIGNF)
- AC_DEFINE(HAVE_FINITEF)
AC_DEFINE(HAVE_FREXPF)
AC_DEFINE(HAVE_HYPOT)
- AC_DEFINE(HAVE_SINCOS)
- AC_DEFINE(HAVE_SINCOSF)
;;
*-netbsd*)
# Check for available headers.
--- 128,135 ----
*************** if test -n "$with_cross_host" || test x"
*** 139,147 ****
--- 144,162 ----
os_include_dir="config/os/bsd/netbsd"
AC_DEFINE(HAVE_COPYSIGN)
AC_DEFINE(HAVE_COPYSIGNF)
+ AC_DEFINE(HAVE_FINITE)
AC_DEFINE(HAVE_FINITEF)
AC_DEFINE(HAVE_FREXPF)
AC_DEFINE(HAVE_HYPOTF)
+ AC_DEFINE(HAVE_ISINF)
+ AC_DEFINE(HAVE_ISINFF)
+ AC_DEFINE(HAVE_ISNAN)
+ AC_DEFINE(HAVE_ISNANF)
+ if test x"long_double_math_on_this_cpu" = x"yes"; then
+ AC_DEFINE(HAVE_FINITEL)
+ AC_DEFINE(HAVE_ISINFL)
+ AC_DEFINE(HAVE_ISNANL)
+ fi
;;
*-mingw32*)
AC_CHECK_HEADERS([sys/types.h locale.h float.h])
*************** if test -n "$with_cross_host" || test x"
*** 177,191 ****
AC_DEFINE(HAVE_COSHF)
AC_DEFINE(HAVE_EXPF)
AC_DEFINE(HAVE_FABSF)
- AC_DEFINE(HAVE_FINITE)
- AC_DEFINE(HAVE_FINITEF)
AC_DEFINE(HAVE_FLOORF)
AC_DEFINE(HAVE_FMODF)
AC_DEFINE(HAVE_FREXPF)
- AC_DEFINE(HAVE_ISINF)
- AC_DEFINE(HAVE_ISINFF)
- AC_DEFINE(HAVE_ISNAN)
- AC_DEFINE(HAVE_ISNANF)
AC_DEFINE(HAVE_LDEXPF)
AC_DEFINE(HAVE_LOG10F)
AC_DEFINE(HAVE_LOGF)
--- 192,200 ----
*************** if test -n "$with_cross_host" || test x"
*** 213,224 ****
AC_DEFINE(HAVE_COSHL)
AC_DEFINE(HAVE_EXPL)
AC_DEFINE(HAVE_FABSL)
- AC_DEFINE(HAVE_FINITEL)
AC_DEFINE(HAVE_FLOORL)
AC_DEFINE(HAVE_FMODL)
AC_DEFINE(HAVE_FREXPL)
- AC_DEFINE(HAVE_ISINFL)
- AC_DEFINE(HAVE_ISNANL)
AC_DEFINE(HAVE_LDEXPL)
AC_DEFINE(HAVE_LOG10L)
AC_DEFINE(HAVE_LOGL)
--- 222,230 ----
More information about the Gcc-patches
mailing list