#7510: Immediate seg-fault on 32-bit windows build
---------------------------------+------------------------------------------
    Reporter:  simonpj           |       Owner:  simonmar        
        Type:  bug               |      Status:  new             
    Priority:  highest           |   Milestone:  7.8.1           
   Component:  Compiler          |     Version:  7.6.1           
    Keywords:                    |          Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown    
  Difficulty:  Unknown           |    Testcase:                  
   Blockedby:                    |    Blocking:                  
     Related:                    |  
---------------------------------+------------------------------------------

Comment(by joeyadams):

 I also tried a similar tweak to `x86_mkStackAllocInstr` and
 `x86_mkStackDeallocInstr`, but still got a segfault.  I multiplied by 12
 instead of 4, as suggested by the `spillSlotSize` function.

 {{{
 spillSlotSize :: DynFlags -> Int
 spillSlotSize dflags = if is32Bit then 12 else 8
     where is32Bit = target32Bit (targetPlatform dflags)
 }}}

 Apparently, the problem is a little more complicated than a missing
 multiplication.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7510#comment:10>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to