[GHC] #10467: user's guide description of "foreign export" is out of date
#10467: user's guide description of "foreign export" is out of date -------------------------------------+------------------------------------- Reporter: rwbarton | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: | Version: 7.10.1 Documentation | Operating System: Unknown/Multiple Keywords: | Type of failure: None/Unknown Architecture: | Blocked By: Unknown/Multiple | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- The first sentence of section 8.2.1 is
When GHC compiles a module (say M.hs) which uses foreign export or foreign import "wrapper", it generates two additional files, M_stub.c and M_stub.h. GHC will automatically compile M_stub.c to generate M_stub.o at the same time.
This is false at least for registerised builds, GHC produces an object file directly and its filename is `M.o` not `M_stub.o`. (I don't know what happens in the unregisterised case, but if the final object file name is actually different, that seems inconsistent.) The rest of the section makes similar references to the nonexistent `M_stub.c` and `M_stub.o`. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10467> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10467: user's guide description of "foreign export" is out of date -------------------------------------+------------------------------------- Reporter: rwbarton | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Documentation | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by ezyang): Relevant commit: {{{ commit 7b0ff1792d699ff02a604163c9ccf4a98a1ca3eb Author: Simon Marlow <marlowsd@gmail.com> Date: Mon Jan 31 10:32:24 2011 +0000 Merge _stub.o files into the main .o file (Fixes #3687 and #706) Now GHC still generates the _stub.c files, but the object file is automatically merged into the main .o file for a module. This means that build systems (including GHC's own) no longer need to worry about looking for _stub.o files and including them when linking. }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10467#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10467: user's guide description of "foreign export" is out of date -------------------------------------+------------------------------------- Reporter: rwbarton | Owner: Type: bug | Status: patch Priority: normal | Milestone: Component: Documentation | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: Phab:D951 -------------------------------------+------------------------------------- Changes (by ezyang): * status: new => patch * differential: => Phab:D951 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10467#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10467: user's guide description of "foreign export" is out of date -------------------------------------+------------------------------------- Reporter: rwbarton | Owner: Type: bug | Status: patch Priority: normal | Milestone: Component: Documentation | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: Phab:D951 -------------------------------------+------------------------------------- Comment (by Austin Seipp <austin@…>): In [changeset:"0760b84e62d216cbd0ba08a46331bed7c45c88bb/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="0760b84e62d216cbd0ba08a46331bed7c45c88bb" Update foreign export docs, fixes #10467 Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu> Reviewed By: rwbarton, austin Differential Revision: https://phabricator.haskell.org/D951 GHC Trac Issues: #10467 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10467#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10467: user's guide description of "foreign export" is out of date -------------------------------------+------------------------------------- Reporter: rwbarton | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.12.1 Component: Documentation | Version: 7.10.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: Phab:D951 -------------------------------------+------------------------------------- Changes (by thomie): * status: patch => closed * resolution: => fixed * milestone: => 7.12.1 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10467#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC