commit b0a7399294012b65df3d155da0182e017d6e4214 Author: redi Date: Mon Feb 8 15:22:32 2016 +0000 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233214 138bc75d-0d04-0410-961f-82ee72b054a4 diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 index 057b58e..e667ccc 100644 --- a/libstdc++-v3/acinclude.m4 +++ b/libstdc++-v3/acinclude.m4 @@ -2215,7 +2215,7 @@ AC_DEFUN([GLIBCXX_CHECK_MATH11_PROTO], [ fi AC_MSG_RESULT([$glibcxx_cv_math11_overload]) ;; - *-*-*gnu* | *-*-aix* | *-*-hpux*) + *) # If defines the obsolete isinf(double) and isnan(double) # functions (instead of or as well as the C99 generic macros) then we # can't define std::isinf(double) and std::isnan(double) in @@ -2223,12 +2223,13 @@ AC_DEFUN([GLIBCXX_CHECK_MATH11_PROTO], [ AC_MSG_CHECKING([for obsolete isinf function in ]) AC_CACHE_VAL(glibcxx_cv_obsolete_isinf, [ AC_COMPILE_IFELSE([AC_LANG_SOURCE( - [#include + [#define _GLIBCXX_INCLUDE_NEXT_C_HEADERS + #include #undef isinf namespace std { using ::isinf; - bool isinf(float); - bool isinf(long double); + constexpr bool isinf(float); + constexpr bool isinf(long double); } using std::isinf; bool b = isinf(0.0); commit 6c1b4080c3cd651e3559bbbf155d1f09236c68ee Author: redi Date: Mon Feb 8 15:37:59 2016 +0000 Remove accidentally added 'constexpr' in previous commit * acinclude.m4 (GLIBCXX_CHECK_MATH11_PROTO): Remove accidentally added 'constexpr' in previous commit. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233219 138bc75d-0d04-0410-961f-82ee72b054a4 diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 index e667ccc..95df24a 100644 --- a/libstdc++-v3/acinclude.m4 +++ b/libstdc++-v3/acinclude.m4 @@ -2228,8 +2228,8 @@ AC_DEFUN([GLIBCXX_CHECK_MATH11_PROTO], [ #undef isinf namespace std { using ::isinf; - constexpr bool isinf(float); - constexpr bool isinf(long double); + bool isinf(float); + bool isinf(long double); } using std::isinf; bool b = isinf(0.0);