#3843: Merge plugins into HEAD
---------------------------------+------------------------------------------
Reporter: dreixel | Owner: simonpj
Type: task | Status: merge
Priority: high | Milestone: 7.2.1
Component: Compiler | Version: 6.13
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Changes (by batterseapower):
* status: patch => merge
Comment:
I've worked around the linking issue for now by adding a function
CoreMonad.reinitializeGlobals. A plugin can call this as the first thing
it does in order to avoid the static flags issue and others. This function
just ensures that the global variables in the new copy of GHC get contents
equal to that in the original copy.
When we have the linking issue resolved we can redefine
reinitializeGlobals to (return ()) and deprecate it.
The relevant commit is 0e765db44229aed591f9f423ef909b5f76696de0. I've
commited a testsuite change marking plugins06 as passing in
a67505b6cb4edc53066c6781ffbbf32c2a3bd073.
I've created #5355 to track work on reusing the existing copy of libHSghc
rather than linking a new one, because this ticket is getting huge and has
lots of irrelevant information.
Ian: is it possible to merge 0e765db44229aed591f9f423ef909b5f76696de0 to
7.2? The plugin functionality would be much more usable in 7.2 with this
change.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3843#comment:54>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs