mirror of git://gcc.gnu.org/git/gcc.git
Enable isinf/isnan checks for all targets
PR libstdc++/48891 * acinclude.m4 (GLIBCXX_CHECK_MATH11_PROTO): Enable isinf and isnan checks for all targets except *-*-solaris2.* and ensure we find the libc math.h header not our own. * configure: Regenerate. From-SVN: r233214
This commit is contained in:
parent
5317b1be7e
commit
cc07da33ae
|
|
@ -1,3 +1,11 @@
|
||||||
|
2016-02-08 Jonathan Wakely <jwakely@redhat.com>
|
||||||
|
|
||||||
|
PR libstdc++/48891
|
||||||
|
* acinclude.m4 (GLIBCXX_CHECK_MATH11_PROTO): Enable isinf and isnan
|
||||||
|
checks for all targets except *-*-solaris2.* and ensure we find the
|
||||||
|
libc math.h header not our own.
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
|
2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
|
||||||
|
|
||||||
* config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt (FUNC):
|
* config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt (FUNC):
|
||||||
|
|
|
||||||
|
|
@ -2215,7 +2215,7 @@ AC_DEFUN([GLIBCXX_CHECK_MATH11_PROTO], [
|
||||||
fi
|
fi
|
||||||
AC_MSG_RESULT([$glibcxx_cv_math11_overload])
|
AC_MSG_RESULT([$glibcxx_cv_math11_overload])
|
||||||
;;
|
;;
|
||||||
*-*-*gnu* | *-*-aix* | *-*-hpux*)
|
*)
|
||||||
# If <math.h> defines the obsolete isinf(double) and isnan(double)
|
# If <math.h> defines the obsolete isinf(double) and isnan(double)
|
||||||
# functions (instead of or as well as the C99 generic macros) then we
|
# functions (instead of or as well as the C99 generic macros) then we
|
||||||
# can't define std::isinf(double) and std::isnan(double) in <cmath>
|
# can't define std::isinf(double) and std::isnan(double) in <cmath>
|
||||||
|
|
@ -2223,12 +2223,13 @@ AC_DEFUN([GLIBCXX_CHECK_MATH11_PROTO], [
|
||||||
AC_MSG_CHECKING([for obsolete isinf function in <math.h>])
|
AC_MSG_CHECKING([for obsolete isinf function in <math.h>])
|
||||||
AC_CACHE_VAL(glibcxx_cv_obsolete_isinf, [
|
AC_CACHE_VAL(glibcxx_cv_obsolete_isinf, [
|
||||||
AC_COMPILE_IFELSE([AC_LANG_SOURCE(
|
AC_COMPILE_IFELSE([AC_LANG_SOURCE(
|
||||||
[#include <math.h>
|
[#define _GLIBCXX_INCLUDE_NEXT_C_HEADERS
|
||||||
|
#include <math.h>
|
||||||
#undef isinf
|
#undef isinf
|
||||||
namespace std {
|
namespace std {
|
||||||
using ::isinf;
|
using ::isinf;
|
||||||
bool isinf(float);
|
constexpr bool isinf(float);
|
||||||
bool isinf(long double);
|
constexpr bool isinf(long double);
|
||||||
}
|
}
|
||||||
using std::isinf;
|
using std::isinf;
|
||||||
bool b = isinf(0.0);
|
bool b = isinf(0.0);
|
||||||
|
|
|
||||||
|
|
@ -18266,7 +18266,7 @@ fi
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_math11_overload" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_math11_overload" >&5
|
||||||
$as_echo "$glibcxx_cv_math11_overload" >&6; }
|
$as_echo "$glibcxx_cv_math11_overload" >&6; }
|
||||||
;;
|
;;
|
||||||
*-*-*gnu* | *-*-aix* | *-*-hpux*)
|
*)
|
||||||
# If <math.h> defines the obsolete isinf(double) and isnan(double)
|
# If <math.h> defines the obsolete isinf(double) and isnan(double)
|
||||||
# functions (instead of or as well as the C99 generic macros) then we
|
# functions (instead of or as well as the C99 generic macros) then we
|
||||||
# can't define std::isinf(double) and std::isnan(double) in <cmath>
|
# can't define std::isinf(double) and std::isnan(double) in <cmath>
|
||||||
|
|
@ -18279,12 +18279,13 @@ else
|
||||||
|
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
#include <math.h>
|
#define _GLIBCXX_INCLUDE_NEXT_C_HEADERS
|
||||||
|
#include <math.h>
|
||||||
#undef isinf
|
#undef isinf
|
||||||
namespace std {
|
namespace std {
|
||||||
using ::isinf;
|
using ::isinf;
|
||||||
bool isinf(float);
|
constexpr bool isinf(float);
|
||||||
bool isinf(long double);
|
constexpr bool isinf(long double);
|
||||||
}
|
}
|
||||||
using std::isinf;
|
using std::isinf;
|
||||||
bool b = isinf(0.0);
|
bool b = isinf(0.0);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue