This is the mail archive of the libstdc++@sourceware.cygnus.com 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]

(patch) ix86-mingw32-gcc ICE workaround


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


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