[GHC] #7534: allocateRegsAndSpill: Cannot read from uninitialized register
GHC
cvs-ghc at haskell.org
Mon Jan 7 11:12:36 CET 2013
#7534: allocateRegsAndSpill: Cannot read from uninitialized register
--------------------------+-------------------------------------------------
Reporter: erikd | Owner: simonmar
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.7
Keywords: | Os: Linux
Architecture: powerpc64 | Failure: Building GHC failed
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
--------------------------+-------------------------------------------------
Comment(by simonmar):
So the background is that this panic used to be commented out, but I
enabled it recently because it makes debugging much easier (with the panic
commented out, the compiler will happily generate completely bogus code
that will crash at runtime). However, it adds another invariant, as
mentioned in the comment: all register must be written before they are
read (not an unreasonable assumption, I'm sure you'll agree) I presume
this invariant is being violated somewhere.
To debug it you'll need to use `-ddump-cmm` and find out where the bogus
code comes from.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7534#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list