Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
82f8341d
Commit
82f8341d
authored
Aug 06, 2007
by
Clemens Fruhwirth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add explicit imports for RTS-external variables
parent
b99310f0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
4 deletions
+31
-4
rts/Exception.cmm
rts/Exception.cmm
+2
-0
rts/HeapStackCheck.cmm
rts/HeapStackCheck.cmm
+2
-0
rts/PrimOps.cmm
rts/PrimOps.cmm
+20
-0
rts/StgMiscClosures.cmm
rts/StgMiscClosures.cmm
+7
-4
No files found.
rts/Exception.cmm
View file @
82f8341d
...
...
@@ -13,6 +13,8 @@
#include
"
Cmm.h
"
#include
"
RaiseAsync.h
"
import
base_GHCziBase_True_closure
;
/* -----------------------------------------------------------------------------
Exception Primitives
...
...
rts/HeapStackCheck.cmm
View file @
82f8341d
...
...
@@ -12,6 +12,8 @@
#include "Cmm.h"
import pthread_mutex_unlock;
/* Stack/Heap Check Failure
* ------------------------
*
...
...
rts/PrimOps.cmm
View file @
82f8341d
...
...
@@ -27,6 +27,26 @@
#include
"
Cmm.h
"
import
__gmpz_init
;
import
__gmpz_add
;
import
__gmpz_sub
;
import
__gmpz_mul
;
import
__gmpz_gcd
;
import
__gmpn_gcd_1
;
import
__gmpn_cmp
;
import
__gmpz_tdiv_q
;
import
__gmpz_tdiv_r
;
import
__gmpz_tdiv_qr
;
import
__gmpz_fdiv_qr
;
import
__gmpz_divexact
;
import
__gmpz_and
;
import
__gmpz_xor
;
import
__gmpz_ior
;
import
__gmpz_com
;
import
base_GHCziIOBase_NestedAtomically_closure
;
import
pthread_mutex_lock
;
import
pthread_mutex_unlock
;
/*-----------------------------------------------------------------------------
Array Primitives
...
...
rts/StgMiscClosures.cmm
View file @
82f8341d
...
...
@@ -12,6 +12,10 @@
#include
"
Cmm.h
"
import
pthread_mutex_lock
;
import
base_GHCziBase_Czh_static_info
;
import
base_GHCziBase_Izh_static_info
;
/* ----------------------------------------------------------------------------
Support for the bytecode interpreter.
------------------------------------------------------------------------- */
...
...
@@ -599,10 +603,9 @@ CLOSURE(stg_dummy_ret_closure,stg_dummy_ret);
* when we've got the real addresses to the C# and I# closures.
*
*/
static
INFO_TBL_CONST
StgInfoTable
czh_static_info
;
static
INFO_TBL_CONST
StgInfoTable
izh_static_info
;
#define
Char_hash_static_info
czh_static_info
#define
Int_hash_static_info
izh_static_info
#warning
Is
this
correct
?
_imp
is
a
pointer
!
#define
Char_hash_static_info
_imp__base_GHCziBase_Czh_static
#define
Int_hash_static_info
_imp__base_GHCziBase_Izh_static
#else
#define
Char_hash_static_info
base_GHCziBase_Czh_static
#define
Int_hash_static_info
base_GHCziBase_Izh_static
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment