-
/* --------------------------------------------------------------------------
* Assembly code to call C and Haskell functions
*
- * Copyright (c) 1994-1999.
+ * Copyright (c) 1994-2001.
*
- * $RCSfile: universal_call_c.S,v $
- * $Revision: 1.7 $
- * $Date: 1999/10/27 15:29:37 $
+ * $Id: universal_call_c.S,v 1.11 2001/02/12 12:08:44 sewardj Exp $
* ------------------------------------------------------------------------*/
#include "config.h"
-#include "options.h"
+
+#if sparc_TARGET_ARCH
+ .text
+only_here_to_work_around_a_bug_in_GNU_ld_291_on_sparc:
+#endif
+
+#if 0 /* later: GHCI */
-#ifdef INTERPRETER
.file "universal_call_c.S"
#if 0
}
}
#endif
-
+
+#if LEADING_UNDERSCORE
+#define ADD_UNDERSCORE(sss) _##sss
+#else
+#define ADD_UNDERSCORE(sss) sss
+#endif
+
#if i386_TARGET_ARCH
/*
* *and* assumes that I myself was called using ccall.
*/
-.globl universal_call_c_x86_ccall
-universal_call_c_x86_ccall:
+.globl ADD_UNDERSCORE(universal_call_c_x86_ccall)
+ADD_UNDERSCORE(universal_call_c_x86_ccall:)
pushl %ebp
movl %esp,%ebp
pushl %edi
# stdcall convention, *but* assumes that I myself was called
# using ccall.
-.globl universal_call_c_x86_stdcall
-universal_call_c_x86_stdcall:
+.globl ADD_UNDERSCORE(universal_call_c_x86_stdcall)
+ADD_UNDERSCORE(universal_call_c_x86_stdcall:)
pushl %ebp
movl %esp,%ebp
pushl %edi
#endif /* i386_TARGET_ARCH */
-#endif /* INTERPRETER */
+#endif /* GHCI */