Repository : ssh://darcs.haskell.org//srv/darcs/ghc On branch : master
http://hackage.haskell.org/trac/ghc/changeset/9eebc6dec9a2271a51795bcfbcf1d3be849435a6 >--------------------------------------------------------------- commit 9eebc6dec9a2271a51795bcfbcf1d3be849435a6 Author: Simon Marlow <[email protected]> Date: Thu Apr 14 10:40:17 2011 +0100 Add a final newline to the link-time C file that we generate, otherwise some versions of gcc complain about a missing final newline. >--------------------------------------------------------------- compiler/main/DriverPipeline.hs | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/compiler/main/DriverPipeline.hs b/compiler/main/DriverPipeline.hs index 61486fc..488012d 100644 --- a/compiler/main/DriverPipeline.hs +++ b/compiler/main/DriverPipeline.hs @@ -1433,7 +1433,10 @@ mkExtraObjToLinkIntoBinary dflags dep_packages = do link_info <- getLinkInfo dflags dep_packages mkExtraCObj dflags (showSDoc (vcat [rts_opts_enabled, extra_rts_opts, - link_opts link_info])) + link_opts link_info] + <> char '\n')) -- final newline, to + -- keep gcc happy + where mk_rts_opts_enabled val = vcat [text "#include \"Rts.h\"", _______________________________________________ Cvs-ghc mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-ghc
