This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
libstdc++-v3 patch for mingw32 build: Check if SIGTRAP defined before using it.
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Subject: libstdc++-v3 patch for mingw32 build: Check if SIGTRAP defined before using it.
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- Date: Thu, 11 Oct 2001 07:43:54 +1000 (EST)
Hello
Mingw32 does not recognise SIGTRAP signal, causing gen-numeric-limits to
break. This patch allows building of libstdc++-v3 on mingw32.
Please apply to branch and trunk.
ChangeLog
2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
* src/gen-num-limits.cc (set_signals_handler): Test if SIGTRAP
defined before using it.
Index: gcc/libstdc++-v3/src/gen-num-limits.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/src/gen-num-limits.cc,v
retrieving revision 1.15
diff -u -p -r1.15 gen-num-limits.cc
--- gen-num-limits.cc 2001/08/10 15:47:22 1.15
+++ gen-num-limits.cc 2001/10/10 21:15:51
@@ -162,7 +162,9 @@ template<typename T> struct underflow {
void set_signals_handler()
{
signal_adapter(signal, SIGFPE, signal_handler);
+#ifdef SIGTRAP
signal_adapter(signal, SIGTRAP, signal_handler);
+#endif
// This is necessary for Linux/SPARC.
signal_adapter(signal, SIGILL, signal_handler);
}
http://travel.yahoo.com.au - Yahoo! Travel
- Got Itchy feet? Get inspired!