This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
libstdc++v3: add config/os/mingw32 bits (take 2)
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Subject: libstdc++v3: add config/os/mingw32 bits (take 2)
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- Date: Thu, 8 Nov 2001 09:27:28 +1100 (EST)
Take 2. This time with diff for configure.target and porting.texi.
Without attached patch, cin fails on mingw32, because of fseek problems on
text streams. The character classification masks are derived from mingw32's
cytpe.h. The rest is based primarily on 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.
ChangeLog
2001-11-08 Danny Smith <dannysmith@users.sourceforge.net>
* configure.target: 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/configure.target
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/configure.target,v
retrieving revision 1.31
diff -u -p -r1.31 configure.target
--- configure.target 2001/10/23 21:40:28 1.31
+++ configure.target 2001/11/07 21:45:57
@@ -89,6 +89,9 @@ case "${target_os}" in
irix6.5)
os_include_dir="config/os/irix/irix6.5"
;;
+ mingw32*)
+ os_include_dir="config/os/mingw32"
+ ;;
netbsd*)
os_include_dir="config/os/bsd/netbsd"
;;
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:
http://briefcase.yahoo.com.au - Yahoo! Briefcase
- Manage your files online.
mingw32_os_bits.tar.gz