FLOATING POINT EXCEPTION

From: Katzlberger Thomas (cat@vuse.vanderbilt.edu)
Date: 12/15/95


You wrote:
> On a similiar note, has anyone experienced (and I'm assuming)
> math-coprocesser errors with gcc 2.7.0 compiled ELF binaries on
> Linux? When debugging, I get a __fpu_control() error. Now I'm
> figuring it might be a divide by zero operation, unfortunately I'm

A divide by zero will raise a FLOATING POINT EXCEPTION:

int
main()
{
	float x=100;
	x = 200/0;
}

garfield> cc foo.c
garfield> a.out
Floating exception
garfield>

You are suspecting wrong.

Cat.
---
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/_/                                                            _/_/
_/_/  Thomas Katzlberger                                        _/_/
_/_/  katzlbt@vuse.vanderbilt.edu                               _/_/
_/_/  @aBlackNeXT.called.garfield                               _/_/
_/_/  http://www.vuse.vanderbilt.edu/~katzlbt/                  _/_/
_/_/                                                            _/_/
_/_/  "You can tune a file system, but you can't tune a fish."  _/_/
_/_/                                UNIX man page for tunefs.   _/_/
_/_/                                                            _/_/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/



This archive was generated by hypermail 2b30 : 12/07/00 PST