This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: 27_io/istream_extractor_arith.cc (take 2 or 3)


Since auto-regression is an important machine to not break.  I have
unrolled this part of the patch ASAP:

	* config/locale/c_locale_generic.cc: Do not trust
	_GLIBCPP_HAVE_STRTOF or _GLIBCPP_HAVE_STRTOLD as
	set by configure.

(Someone smarter than I in the area will have to figure out how we can
 improve configure's setting of _GLIBCPP_HAVE_STRTOF and
 _GLIBCPP_HAVE_STRTOLD before this thunk can be re-enabled.)

Index: config/locale/c_locale_generic.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/config/locale/c_locale_generic.cc,v
retrieving revision 1.8
diff -c -r1.8 c_locale_generic.cc
*** c_locale_generic.cc	2002/02/06 17:31:43	1.8
--- c_locale_generic.cc	2002/02/06 23:10:22
***************
*** 123,129 ****
  	  const char* __old = setlocale(LC_ALL, "C");
  	  char* __sanity;
  	  errno = 0;
! #if defined(_GLIBCPP_USE_C99) || defined(_GLIBCPP_HAVE_STRTOF)
  	  float __f = strtof(__s, &__sanity);
  #else
  	  double __d = strtod(__s, &__sanity);
--- 123,129 ----
  	  const char* __old = setlocale(LC_ALL, "C");
  	  char* __sanity;
  	  errno = 0;
! #if defined(_GLIBCPP_USE_C99)
  	  float __f = strtof(__s, &__sanity);
  #else
  	  double __d = strtod(__s, &__sanity);
***************
*** 179,185 ****
  	{
  	  // Assumes __s formatted for "C" locale.
  	  const char* __old = setlocale(LC_ALL, "C");
! #if defined(_GLIBCPP_USE_C99) || defined(_GLIBCPP_HAVE_STRTOLD)
  	  char* __sanity;
  	  errno = 0;
  	  long double __ld = strtold(__s, &__sanity);
--- 179,185 ----
  	{
  	  // Assumes __s formatted for "C" locale.
  	  const char* __old = setlocale(LC_ALL, "C");
! #if defined(_GLIBCPP_USE_C99)
  	  char* __sanity;
  	  errno = 0;
  	  long double __ld = strtold(__s, &__sanity);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]