Re: [GHC] #3252: having to call hs_add_root(__stginit_Foo) is a bit of a pain
#3252: having to call hs_add_root(__stginit_Foo) is a bit of a pain -------------------------------------+--------------------------------- Reporter: duncan | Owner: simonmar Type: feature request | Status: closed Priority: high | Milestone: 7.2.1 Component: Compiler (FFI) | Version: 6.10.2 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: -------------------------------------+--------------------------------- Comment (by Sergei Trofimovich <slyfox@…>): In [changeset:"a92ff5d66182d992d02dfaad4c446ad074582368/ghc" a92ff5d6/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="a92ff5d66182d992d02dfaad4c446ad074582368" 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 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/3252#comment:13> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC