Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,310
Issues
4,310
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
382
Merge Requests
382
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
086bab42
Commit
086bab42
authored
Jan 01, 2008
by
Clemens Fruhwirth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Link libgmp.a statically into libHSrts.dll on Windows
parent
a759dad9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
6 deletions
+20
-6
rts/Linker.c
rts/Linker.c
+18
-6
rts/PrimOps.cmm
rts/PrimOps.cmm
+2
-0
No files found.
rts/Linker.c
View file @
086bab42
...
...
@@ -463,6 +463,23 @@ typedef struct _RtsSymbolVal {
SymX(stg_ap_pppppp_ret)
#endif
/* On Windows, we link libgmp.a statically into libHSrts.dll */
#ifdef mingw32_HOST_OS
#define GMP_SYMS \
SymX(__gmpz_cmp) \
SymX(__gmpz_cmp_si) \
SymX(__gmpz_cmp_ui) \
SymX(__gmpz_get_si) \
SymX(__gmpz_get_ui)
#else
#define GMP_SYMS \
SymExtern(__gmpz_cmp) \
SymExtern(__gmpz_cmp_si) \
SymExtern(__gmpz_cmp_ui) \
SymExtern(__gmpz_get_si) \
SymExtern(__gmpz_get_ui)
#endif
#define RTS_SYMBOLS \
Maybe_Stable_Names \
Sym(StgReturn) \
...
...
@@ -502,12 +519,7 @@ typedef struct _RtsSymbolVal {
SymX(__encodeDouble) \
SymX(__encodeFloat) \
SymX(addDLL) \
SymExtern(__gmpn_gcd_1) \
SymExtern(__gmpz_cmp) \
SymExtern(__gmpz_cmp_si) \
SymExtern(__gmpz_cmp_ui) \
SymExtern(__gmpz_get_si) \
SymExtern(__gmpz_get_ui) \
GMP_SYMS \
SymX(__int_encodeDouble) \
SymX(__int_encodeFloat) \
SymX(andIntegerzh_fast) \
...
...
rts/PrimOps.cmm
View file @
086bab42
...
...
@@ -28,6 +28,7 @@
#include
"
Cmm.h
"
#if
def
__PIC__
#if
ndef
mingw32_HOST_OS
import
__gmpz_init
;
import
__gmpz_add
;
import
__gmpz_sub
;
...
...
@@ -44,6 +45,7 @@ import __gmpz_and;
import
__gmpz_xor
;
import
__gmpz_ior
;
import
__gmpz_com
;
#endif
import
base_GHCziIOBase_NestedAtomically_closure
;
import
pthread_mutex_lock
;
import
pthread_mutex_unlock
;
...
...
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