From: redi Date: Mon, 8 Feb 2016 15:22:32 +0000 (+0000) Subject: Enable isinf/isnan checks for all targets X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b0a7399294012b65df3d155da0182e017d6e4214;p=thirdparty%2Fgcc.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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233214 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 7c5a9ca1adc3..1888702d1994 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,11 @@ +2016-02-08 Jonathan Wakely + + 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 * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt (FUNC): diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 index 057b58e054ac..e667ccc741ba 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); diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index a919a3e8bad6..02bb312be0dc 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -18266,7 +18266,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_math11_overload" >&5 $as_echo "$glibcxx_cv_math11_overload" >&6; } ;; - *-*-*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 @@ -18279,12 +18279,13 @@ else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#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);