summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2017-04-17 12:56:20 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2017-04-17 12:56:31 +0100
commita92ff5d66182d992d02dfaad4c446ad074582368 (patch)
treeed086f1c65efb717cc7cc8ade62a186d719fcd4d /includes
parent29ef71412af48e1bbf7739d1dbc4c4feb3b9a86a (diff)
downloadhaskell-a92ff5d66182d992d02dfaad4c446ad074582368.tar.gz
hs_add_root() RTS API removal
Before ghc-7.2 hs_add_root() had to be used to initialize haskell modules when haskell was called from FFI. commit a52ff7619e8b7d74a9d933d922eeea49f580bca8 ("Change the way module initialisation is done (#3252, #4417)") removed needs for hs_add_root() and made function a no-op. For backward compatibility '__stginit_<module>' symbol was not removed. This change removes no-op hs_add_root() function and unused '__stginit_<module>' symbol from each haskell module. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> Test Plan: ./validate Reviewers: simonmar, austin, bgamari, erikd Reviewed By: simonmar Subscribers: rwbarton, thomie Differential Revision: https://phabricator.haskell.org/D3460
Diffstat (limited to 'includes')
-rw-r--r--includes/HsFFI.h1
-rw-r--r--includes/stg/MiscClosures.h3
2 files changed, 0 insertions, 4 deletions
diff --git a/includes/HsFFI.h b/includes/HsFFI.h
index 8e9ff40a2e..53478a7a5e 100644
--- a/includes/HsFFI.h
+++ b/includes/HsFFI.h
@@ -98,7 +98,6 @@ extern void hs_init (int *argc, char **argv[]);
extern void hs_exit (void);
extern void hs_exit_nowait(void);
extern void hs_set_argv (int argc, char *argv[]);
-extern void hs_add_root (void (*init_root)(void));
extern void hs_thread_done (void);
extern void hs_perform_gc (void);
diff --git a/includes/stg/MiscClosures.h b/includes/stg/MiscClosures.h
index 8894535dd6..9d907ab3ba 100644
--- a/includes/stg/MiscClosures.h
+++ b/includes/stg/MiscClosures.h
@@ -339,9 +339,6 @@ RTS_FUN_DECL(stg_returnToSchedNotPaused);
RTS_FUN_DECL(stg_returnToSchedButFirst);
RTS_FUN_DECL(stg_threadFinished);
-RTS_FUN_DECL(stg_init_finish);
-RTS_FUN_DECL(stg_init);
-
RTS_FUN_DECL(StgReturn);
/* -----------------------------------------------------------------------------