From cca48c12aaceb08aa7f38487395f2a7f79bdf5a8 Mon Sep 17 00:00:00 2001 From: paolo Date: Mon, 14 Nov 2011 11:29:26 +0000 Subject: [PATCH 1/1] 2011-11-14 Paolo Carlini * include/c_global/cmath (frexp, modf, remquo): Do not mark constexpr, not viable anyway due to the pointer parameter. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181349 138bc75d-0d04-0410-961f-82ee72b054a4 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/include/c_global/cmath | 14 +++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 6e506bac8a7..5eb3f8d4376 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2011-11-14 Paolo Carlini + + * include/c_global/cmath (frexp, modf, remquo): Do not mark constexpr, + not viable anyway due to the pointer parameter. + 2011-11-13 Paolo Carlini * include/c_global/cmath (atan2, fmod, pow, copysign, fdim, diff --git a/libstdc++-v3/include/c_global/cmath b/libstdc++-v3/include/c_global/cmath index cd29f3d8ad5..75d1a02e1ed 100644 --- a/libstdc++-v3/include/c_global/cmath +++ b/libstdc++-v3/include/c_global/cmath @@ -318,11 +318,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION using ::frexp; #ifndef __CORRECT_ISO_CPP_MATH_H_PROTO1 - inline _GLIBCXX_CONSTEXPR float + inline float frexp(float __x, int* __exp) { return __builtin_frexpf(__x, __exp); } - inline _GLIBCXX_CONSTEXPR long double + inline long double frexp(long double __x, int* __exp) { return __builtin_frexpl(__x, __exp); } #endif @@ -394,11 +394,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION using ::modf; #ifndef __CORRECT_ISO_CPP_MATH_H_PROTO1 - inline _GLIBCXX_CONSTEXPR float + inline float modf(float __x, float* __iptr) { return __builtin_modff(__x, __iptr); } - inline _GLIBCXX_CONSTEXPR long double + inline long double modf(long double __x, long double* __iptr) { return __builtin_modfl(__x, __iptr); } #endif @@ -1578,16 +1578,16 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION return remainder(__type(__x), __type(__y)); } - constexpr float + inline float remquo(float __x, float __y, int* __pquo) { return __builtin_remquof(__x, __y, __pquo); } - constexpr long double + inline long double remquo(long double __x, long double __y, int* __pquo) { return __builtin_remquol(__x, __y, __pquo); } template - constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type + inline typename __gnu_cxx::__promote_2<_Tp, _Up>::__type remquo(_Tp __x, _Up __y, int* __pquo) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; -- 2.11.0