home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / aix / 11401 < prev    next >
Encoding:
Internet Message Format  |  1992-11-09  |  1.3 KB

  1. Path: sparky!uunet!europa.asd.contel.com!emory!swrinde!zaphod.mps.ohio-state.edu!cs.utexas.edu!ut-emx!ibmchs!auschs!portal.austin.ibm.com!awdprime.austin.ibm.com!awdprime.austin.ibm.com!sdl
  2. From: sdl@adagio.austin.ibm.com (sdl)
  3. Newsgroups: comp.unix.aix
  4. Subject: Re: Divide by Zero trapping
  5. Message-ID: <SDL.92Nov6104829@adagio.austin.ibm.com>
  6. Date: 6 Nov 92 15:48:29 GMT
  7. References: <1992Nov3.183201.16550@versyss.com>
  8.     <SDL.92Nov5091744@adagio.austin.ibm.com>
  9. Sender: news@awdprime.austin.ibm.com (USENET News)
  10. Reply-To: sdl@austin.ibm.com
  11. Organization: AIX Base System Kernel Development
  12. Lines: 16
  13. In-Reply-To: sdl@adagio.austin.ibm.com's message of Thu, 5 Nov 1992 14:17:44 GMT
  14.  
  15.  
  16. In article <SDL.92Nov5091744@adagio.austin.ibm.com> I tell the
  17. following fib:
  18.  
  19. >                                         As far as I know there is no
  20. > option to detect integer division by zero in C.
  21.  
  22. Well, I've now learned that the -qcheck compiler option for XLC will
  23. detect integer divide by zero.  The division by zero will cause
  24. SIGTRAP to be raised.
  25.  
  26. --
  27. --------------------------------------------------------------------
  28. Stephen Linam   AWSD Austin  T/L: 678-3308  Bell-net: (512) 838-3308
  29. sdl@austin.ibm.com                         IBM VNET: LINAM at AUSTIN
  30. Quae narravi, nullo modo negabo.               I don't speak for IBM
  31.