This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
(patch) ix86-mingw32-gcc ICE workaround
- To: libstdc++ at sourceware dot cygnus dot com
- Subject: (patch) ix86-mingw32-gcc ICE workaround
- From: Mumit Khan <khan at nanotech dot wisc dot edu>
- Date: Mon, 22 Nov 1999 15:59:47 -0600
A few I must've missed last time I submitted a patch for the same thing
(see 1999-07-18 entry in ChangeLog).
Mon Nov 22 15:57:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
* bits/locale_facets.tcc: Workaround for compiler crash on
ix86-*-mingw32.
Index: bits/locale_facets.tcc
===================================================================
RCS file: /homes/khan/src/CVSROOT/libstdc++/bits/locale_facets.tcc,v
retrieving revision 1.1.1.1
diff -u -3 -p -r1.1.1.1 locale_facets.tcc
--- bits/locale_facets.tcc 1999/11/22 05:21:26 1.1.1.1
+++ bits/locale_facets.tcc 1999/11/22 06:06:49
@@ -379,7 +379,7 @@ namespace std
// Stage 1: extract and determine the conversion specifier.
// Assuming leading zeros eliminated, thus the size of 32 for
// integral types.
- char __xtrc[32]= "";
+ char __xtrc[32]= {'\0'};
int __base;
_M_extract(__beg, __end, __io, __err, __xtrc, __base, false);
@@ -449,7 +449,7 @@ namespace std
// Stage 1: extract and determine the conversion specifier.
// Assuming leading zeros eliminated, thus the size of 32 for
// integral types.
- char __xtrc[32]= "";
+ char __xtrc[32]= {'\0'};
int __base;
_M_extract(__beg, __end, __io, __err, __xtrc, __base, false);
@@ -506,7 +506,7 @@ namespace std
// Stage 1: extract and determine the conversion specifier.
// Assuming leading zeros eliminated, thus the size of 32 for
// integral types.
- char __xtrc[32]= "";
+ char __xtrc[32]= {'\0'};
int __base;
_M_extract(__beg, __end, __io, __err, __xtrc, __base, false);
@@ -582,7 +582,7 @@ namespace std
// Stage 1: extract and determine the conversion specifier.
// Assuming leading zeros eliminated, thus the size of 32 for
// integral types.
- char __xtrc[32]= "";
+ char __xtrc[32]= {'\0'};
int __base;
_M_extract(__beg, __end, __io, __err, __xtrc, __base, false);
@@ -634,7 +634,7 @@ namespace std
// Stage 1: extract and determine the conversion specifier.
// Assuming leading zeros eliminated, thus the size of 32 for
// integral types.
- char __xtrc[32]= "";
+ char __xtrc[32]= {'\0'};
int __base;
_M_extract(__beg, __end, __io, __err, __xtrc, __base, false);
@@ -658,7 +658,7 @@ namespace std
// Stage 1: extract and determine the conversion specifier.
// Assuming leading zeros eliminated, thus the size of 256 for
// floating-point types.
- char __xtrc[256]= "";
+ char __xtrc[32]= {'\0'};
int __base;
_M_extract(__beg, __end, __io, __err, __xtrc, __base, true);
@@ -685,7 +685,7 @@ namespace std
// Stage 1: extract and determine the conversion specifier.
// Assuming leading zeros eliminated, thus the size of 256 for
// floating-point types.
- char __xtrc[256]= "";
+ char __xtrc[32]= {'\0'};
int __base;
_M_extract(__beg, __end, __io, __err, __xtrc, __base, true);
@@ -709,7 +709,7 @@ namespace std
// Stage 1: extract and determine the conversion specifier.
// Assuming leading zeros eliminated, thus the size of 256 for
// floating-point types.
- char __xtrc[256]= "";
+ char __xtrc[32]= {'\0'};
int __base;
_M_extract(__beg, __end, __io, __err, __xtrc, __base, true);
@@ -730,7 +730,7 @@ namespace std
ios_base::iostate& __err, long double& __v) const
{
// Stage 1: extract
- char __xtrc[256]= "";
+ char __xtrc[32]= {'\0'};
int __base;
_M_extract(__beg, __end, __io, __err, __xtrc, __base, true);
Regards,
Mumit