From: Wolfgang T. <wth...@us...> - 2004-05-13 11:08:44
|
Update of /cvsroot/hoc/hoc/HOC_cbits In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7280/HOC_cbits Added Files: MsgSend.h Log Message: Make HOC.MsgSend compile via C to work around a bug in GHC 6.2's NCG for PowerPC. The NCG doesn't generate the proper dynamic linker stubs for taking the address of dylib-imported functions. The bug will be fixed in GHC 6.4, so we will be able to remove the -fvia-C flag again then. Compiling via C required adding a new .h file with the prototypes for objc_msgSend and friends; Apple is not helping us here by letting a single line of Objective-C slip into an otherwise plain C header file. Also, removed the previous workaround from HOC/HOC-macos.conf. --- NEW FILE: MsgSend.h --- #include <objc/objc.h> #ifndef GNUSTEP /* * <objc/objc-runtime.h> contains a single line that is not pure C * code, so we have to duplicate the prototypes here for GHC's benefit. */ void objc_msgSend_stret(void * stretAddr, id self, SEL op, ...); id objc_msgSend(id self, SEL op, ...); #endif |