Repository : ssh://darcs.haskell.org//srv/darcs/ghc On branch : master
http://hackage.haskell.org/trac/ghc/changeset/7b0ff1792d699ff02a604163c9ccf4a98a1ca3eb >--------------------------------------------------------------- commit 7b0ff1792d699ff02a604163c9ccf4a98a1ca3eb Author: Simon Marlow <[email protected]> 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. I had to do lots of refactoring in DriverPipeline to make this work; now there's a monad to carry around all the information, and everything is a lot tidier. The _stub.c is now created as a temporary file and removed after compilation (unless the -keep-tmp-files flag is on). compiler/main/CodeOutput.lhs | 30 ++- compiler/main/DriverPhases.hs | 8 +- compiler/main/DriverPipeline.hs | 486 +++++++++++++++++++++++---------------- compiler/main/Finder.lhs | 20 +-- compiler/main/GhcMake.hs | 41 +++-- compiler/main/HscMain.lhs | 15 +- compiler/main/HscTypes.lhs | 11 +- rules/build-package-way.mk | 15 +- 8 files changed, 367 insertions(+), 259 deletions(-) Diff suppressed because of size. To see it, use: git show 7b0ff1792d699ff02a604163c9ccf4a98a1ca3eb _______________________________________________ Cvs-ghc mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-ghc
