]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Division by zero on AIX 3 gives SIGTRAP, not SIGFPE.
authorBruno Haible <bruno@clisp.org>
Fri, 11 Jan 2002 13:29:15 +0000 (13:29 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 21 Jun 2009 22:56:04 +0000 (00:56 +0200)
src/ChangeLog
src/msgfmt.c

index f75cc5efa5453d6d06e75eb76c93d40a57948a76..1ac1345f77d9cdb660e436537606c22b9a7970a9 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-11  Bruno Haible  <bruno@clisp.org>
+
+       * msgfmt.c (install_sigfpe_handler, uninstall_sigfpe_handler): On AIX,
+       treat SIGTRAP like SIGFPE.
+
 2002-01-09  Bruno Haible  <bruno@clisp.org>
 
        * msgfmt.c (USE_SIGINFO): New macro.
index 976cc8ddaceb1a9986d1f8736f3c92dc24df1a5e..5da9d73b56d94df4bb76f2ac8331f8ff31065b8d 100644 (file)
@@ -666,7 +666,8 @@ install_sigfpe_handler ()
   sigaction (SIGFPE, &action, (struct sigaction *) NULL);
 #else
   signal (SIGFPE, sigfpe_handler);
-# if defined (__sgi) && defined (SIGTRAP) /* Irix sends SIGTRAP, not SIGFPE.  */
+  /* Irix and AIX send SIGTRAP, not SIGFPE.  */
+# if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
   signal (SIGTRAP, sigfpe_handler);
 # endif
 #endif
@@ -683,7 +684,8 @@ uninstall_sigfpe_handler ()
   sigaction (SIGFPE, &action, (struct sigaction *) NULL);
 #else
   signal (SIGFPE, SIG_DFL);
-# if defined (__sgi) && defined (SIGTRAP) /* Irix sends SIGTRAP, not SIGFPE.  */
+  /* Irix and AIX send SIGTRAP, not SIGFPE.  */
+# if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
   signal (SIGTRAP, SIG_DFL);
 # endif
 #endif