On Jan 5, 2007, at 11:38 AM, Gábor Bérczi (Gabucino) wrote:

line 937:

#ifdef __FreeBSD__
      // Manipulate the FPU to add the exception mask. (Fixes SIGFPE
      // problems on *BSD)

      {
        volatile short cw;

        __asm__ volatile ("fstcw (%0)" : : "g" (&cw));
cw |= 1; /* Mask 'invalid' exception */ __asm__ volatile ("fldcw (%0)" : : "g" (&cw));
      }
#endif


I don't have an x86 machine, but I'm assuming a patch like this might work?

Attachment: bsd.patch
Description: Binary data



_______________________________________________
Bug-gnustep mailing list
Bug-gnustep@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to