[commit: ghc] newcg: Fix an SRT-related bug (b8172ba)
Simon Marlow
marlowsd at gmail.com
Wed Feb 15 14:02:20 CET 2012
Repository : ssh://darcs.haskell.org//srv/darcs/ghc
On branch : newcg
http://hackage.haskell.org/trac/ghc/changeset/b8172ba1e6b463fbacf21fc39474a1b5580c13a0
>---------------------------------------------------------------
commit b8172ba1e6b463fbacf21fc39474a1b5580c13a0
Author: Simon Marlow <marlowsd at gmail.com>
Date: Tue Feb 14 11:44:55 2012 +0000
Fix an SRT-related bug
We were using the SRT information generated by the computeSRTs pass to
decide whether to add a static link field to a constructor or not, and
this broke when I disabled computeSRTs for the new code generator. So
I've hacked it for now to only rely on the SRT information generated
by CoreToStg.
compiler/codeGen/StgCmmBind.hs | 30 ++++++++++++----------------
compiler/codeGen/StgCmmClosure.hs | 29 +++++++++++++++------------
compiler/codeGen/StgCmmCon.hs | 1 +
compiler/codeGen/StgCmmForeign.hs | 14 +++---------
compiler/codeGen/StgCmmHeap.hs | 9 +++++--
compiler/codeGen/StgCmmUtils.hs | 38 +++++++-----------------------------
6 files changed, 48 insertions(+), 73 deletions(-)
Diff suppressed because of size. To see it, use:
git show b8172ba1e6b463fbacf21fc39474a1b5580c13a0
More information about the Cvs-ghc
mailing list