Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/8fb9d66966e99beea793b695edef596ac8d5aea5

>---------------------------------------------------------------

commit 8fb9d66966e99beea793b695edef596ac8d5aea5
Author: Simon Peyton Jones <[email protected]>
Date:   Sat Jun 11 14:12:43 2011 +0100

    Add -fno-omit-interface-pragmas to SrcLoc, to work around Trac #5252
    
    We have to do this until the earliest bootstrap compiler
    has fixed #5252.  It's no big deal; it just means that
    SrcLoc.hi has lots of stuff even when compiling GHC without -O.
    Lacking this, you get
    
      (GHC version 7.0.3 for i386-unknown-mingw32):
        reboxProduct: not a product ghc-7.1:SrcLoc.RealSrcLoc{tc r8J}

>---------------------------------------------------------------

 compiler/basicTypes/SrcLoc.lhs |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/compiler/basicTypes/SrcLoc.lhs b/compiler/basicTypes/SrcLoc.lhs
index 22ab915..f15d0da 100644
--- a/compiler/basicTypes/SrcLoc.lhs
+++ b/compiler/basicTypes/SrcLoc.lhs
@@ -3,6 +3,12 @@
 %
 
 \begin{code}
+{-# OPTIONS_GHC -fno-omit-interface-pragmas #-}
+   -- Workaround for Trac #5252 crashes the bootstrap compiler without -O
+   -- When the earliest compiler we want to boostrap with is
+   -- GHC 7.2, we can make RealSrcLoc properly abstract
+
+
 -- | This module contains types that relate to the positions of things
 -- in source files, and allow tagging of those things with locations
 module SrcLoc (



_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to