This is the mail archive of the 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]

FWD: libstdc++v3: add config/os/mingw32 bits

Without attached patch, cin fails on mingw32, because of fseek problems on
text streams. The character classification masks are derived from mingw32's
ctype.h.  The rest is based primarily on config/os/djgpp/bits, but using
the global ctype table exported fom MS runtime lib as default initialiser
for _M_table.
Attached archive contains new directory for mingw32.

Please commit to trunk.


2001-11-08  Danny Smith  <>

	* Add os_include_dir for mingw32* target.
	* docs/html/17_intro/porting.texi: Mention mingw32 as target
	benefiting from _GLIBCPP_AVOID_FSEEK.
	* config/os/mingw32/bits/ctype_base.h: New file.
	* config/os/mingw32/bits/ctype_inline.h: New file.
	* config/os/mingw32/bits/ctype_noninline.h: New file.
	* config/os/mingw32/bits/os_defines.h: New file.

Index: gcc/libstdc++-v3/
RCS file: /cvs/gcc/gcc/libstdc++-v3/,v
retrieving revision 1.31
diff -u -p -r1.31
---	2001/10/23 21:40:28	1.31
+++	2001/11/07 21:45:57
@@ -89,6 +89,9 @@ case "${target_os}" in
+  mingw32*)
+    os_include_dir="config/os/mingw32"
+    ;;
Index: gcc/libstdc++-v3/docs/html/17_intro/porting.texi
RCS file: /cvs/gcc/gcc/libstdc++-v3/docs/html/17_intro/porting.texi,v
retrieving revision 1.1
diff -u -p -r1.1 porting.texi
--- porting.texi	2001/11/06 00:18:37	1.1
+++ porting.texi	2001/11/07 21:46:19
@@ -152,8 +152,8 @@ stream (or one hooked to a pipe) is not 
 case, getc()/ungetc() will be used at some key locations in the library
 implementation instead of fseek().  Currently, the code path to avoid
 fseek() is only enabled when the seek size is 1 character away from the
-current stream position.  This is known to improve *-unknown-freebsd*
-and sparc-sun-solaris2.*.
+current stream position.  This is known to improve *-unknown-freebsd*,
+sparc-sun-solaris2.* and *-*-mingw32*.
 Finally, you should bracket the entire file in an include-guard, like
 this: - Yahoo! Briefcase
- Manage your files online.


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