[libstdc++v3] target-specific cpu_limits.h for mingw32 -Take 2.
Danny Smith
danny_r_smith_2001@yahoo.co.nz
Tue Apr 2 14:45:00 GMT 2002
Attached patch puts mingw32-specific cpu_limits.h file in
config/os/mingw32, over-riding the the default i386 version.
The handling of qNaN, sNaN, Inf and denorm_min is based on that in the
STLPort library. I have left out long double support for now, since
mingw's C run-time math library treats long doubles as doubles anyway, and
the FPU is set to 64-bits precision at CRT startup.
I have put the helper class __iec559_consts in global namespace.
Perhaps they should be in namespace std.
Tested on i586-pc-mingw32, with GCC 3.2 bootstrapped as:
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as
--host=mingw32 --target=mingw32 --prefix=/mingw --enable-sjlj-exceptions
--enable-threads --disable-nls --enable-languages=f77,c++
--disable-win32-registry --disable-shared
Thread model: win32
gcc version 3.2 20020401 (experimental).
Diff and new file attached.
OK for mainline? If not, what needs to be fixed?
Danny
ChangeLog
2002-04-3 Danny Smith <dannysmith@users.sourceforge.net>
* libstdc++-v3/configure.target (CPULIMITSH): Set to
config/os/mingw32 for i?86-*-mingw32*.
* libstdc++-v3/config/os/mingw32/bits/cpu_limits.h:
New file.
http://www.sold.com.au - SOLD.com.au Auctions
- 1,000s of Bargains!
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: configure.target.diff
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20020402/cb159afa/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cpu_limits.h
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20020402/cb159afa/attachment.h>
More information about the Libstdc++
mailing list