From 10bb9dcc50f43b3564403b4f9e467b87241c2c51 Mon Sep 17 00:00:00 2001 From: fedor Date: Tue, 23 Jan 2007 16:04:29 +0000 Subject: [PATCH] Apply BSD FPU fix on only x86 git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24404 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ Source/NSObject.m | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index bd1f1cb57..c45de9a0f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-01-23 Adam Fedor + + * Source/NSObject.m ([NSObject +initialize]): Apply BSD FPU fix + only on x86 machines. + 2007-01-23 Richard Frith-Macdonald * Source/win32/NSMessagePortNameServerWin32.m: diff --git a/Source/NSObject.m b/Source/NSObject.m index 818d4e17b..dc5c99dc3 100644 --- a/Source/NSObject.m +++ b/Source/NSObject.m @@ -941,9 +941,10 @@ GSDescriptionForClassMethod(pcl self, SEL aSel) #endif #endif -#ifdef __FreeBSD__ +#if defined(__FreeBSD__) && defined(__i386__) // Manipulate the FPU to add the exception mask. (Fixes SIGFPE // problems on *BSD) + // Note this only works on x86 { volatile short cw;