bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [FreeBSD/alpha] bad #define in NSObject.m


From: Adam Fedor
Subject: Re: [FreeBSD/alpha] bad #define in NSObject.m
Date: Tue, 16 Jan 2007 20:29:34 -0700


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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]