bug-gnustep
[Top][All Lists]
Advanced

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

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


From: Gabucino
Subject: [FreeBSD/alpha] bad #define in NSObject.m
Date: Fri, 5 Jan 2007 19:38:04 +0100

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

This obviously fails on FreeBSD with any arch that is not x86. (invalid opcode)

--
Gábor Bérczi






reply via email to

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