From 4bdc02ebc91616bef955bb3860eb110ff8487cbd Mon Sep 17 00:00:00 2001 From: Andrew McCallum Date: Fri, 4 Aug 1995 15:09:01 +0000 Subject: [PATCH] (make_method_call) [__mips__]: Add 4 to offset for float retframe. Yipes, this may be needed for other architectures too. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@524 72102866-910b-0410-8b05-ffd578937521 --- Source/mframe.m | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Source/mframe.m b/Source/mframe.m index 4c82521de..d9db2678d 100644 --- a/Source/mframe.m +++ b/Source/mframe.m @@ -398,8 +398,19 @@ make_method_call(const char *forward_type, addition to the FLT_AND_DBL_RETFRAME_OFFSET while working on guileobjc. Look into this for Distributed Objects. */ + /* xxx Yipes! Perhaps this change is needed on other + architectures too. */ +#if __mips__ + if (*tmptype == _C_FLT) + (*fe)(-1, ((char*)retframe) + FLT_AND_DBL_RETFRAME_OFFSET + 4, + tmptype, flags); + else + (*fe)(-1, ((char*)retframe) + FLT_AND_DBL_RETFRAME_OFFSET, + tmptype, flags); +#else (*fe)(-1, ((char*)retframe) + FLT_AND_DBL_RETFRAME_OFFSET, tmptype, flags); +#endif } else /* Among other types, _C_CHARPTR is handled here */ {