diff options
author | John David Anglin <dave.anglin@nrc-cnrc.gc.ca> | 2007-07-25 15:32:33 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2007-07-25 15:32:33 +0000 |
commit | 18efbe51766315fbe4d23dd710f22eab09ee826a (patch) | |
tree | 0b584d9d2eb61d779a579fcb783e98c6d4921dfb /libstdc++-v3/config/locale | |
parent | edb3b6224a89999ad344de7ca6919e2e7a2de4c2 (diff) | |
download | gcc-18efbe51766315fbe4d23dd710f22eab09ee826a.tar.gz |
re PR libstdc++/31836 (FAIL: 27_io/basic_istream/extractors_arithmetic/char/12.cc execution test)
PR libstdc++/31836
* config/locale/generic/c_locale.cc (__convert_to_v): Don't use
strtold if _GLIBCXX_HAVE_BROKEN_STRTOLD is defined.
* config/os/hpux/os_defines.h (_GLIBCXX_HAVE_BROKEN_STRTOLD): Define
if __hppa__ is defined.
From-SVN: r126914
Diffstat (limited to 'libstdc++-v3/config/locale')
-rw-r--r-- | libstdc++-v3/config/locale/generic/c_locale.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/config/locale/generic/c_locale.cc b/libstdc++-v3/config/locale/generic/c_locale.cc index 732b60955f4..80cef2d8818 100644 --- a/libstdc++-v3/config/locale/generic/c_locale.cc +++ b/libstdc++-v3/config/locale/generic/c_locale.cc @@ -149,7 +149,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) errno = 0; #endif -#if defined(_GLIBCXX_HAVE_STRTOLD) +#if defined(_GLIBCXX_HAVE_STRTOLD) && !defined(_GLIBCXX_HAVE_BROKEN_STRTOLD) char* __sanity; long double __ld = strtold(__s, &__sanity); |