Dear Gnu gcc person,

We have written our own FP exception handler for our
use (because we want 1e155*1e155 to return 1.797...e308 (maxpos),
and not a NaN!, and so on.)

For this to work in our gcc-compiled code, we need gcc to generate
fwaits where needed (after all non-interrupting FP instructions)
so that we can catch the exception at the right time and handle it appropriately.

For the old gcc 2.91 - 2.96 compilers on i386 architecture, this worked!
For the gcc 3.2 compiler we are trying to use, this no longer works.
(If we put an asm fwait in our test code, good behavior is restored
- but of course we don't want to sprinkle hundreds or thousands of fwaits everywhere.)

There seems to be no compiler switch to ask for these fwaits
we have tried -ftrapv and many other options.

Could you possibly add a switch -mfwait  to the i386 batch of switches
to get us back the capability we need.

Thanks.
--
==============================================================
| Spoken: Gary D. Knott      Email: [EMAIL PROTECTED]       |
| Phone: (301) 962-3711      MIME mail welcome                |
|                                                             |
| web: www.civilized.com  (Please look at our HomePage!)      |
| USPS: Civilized Software Inc., 12109 Heritage Park Circle,  |
|       Silver Spring, Maryland 20906, USA                    |
==============================================================

Reply via email to