[GHC] #7830: Error: operand out of range

GHC ghc-devs at haskell.org
Sat Jun 29 10:07:23 CEST 2013


#7830: Error: operand out of range
-------------------------+--------------------------------------------------
    Reporter:  erikd     |       Owner:                       
        Type:  bug       |      Status:  new                  
    Priority:  high      |   Milestone:  7.8.1                
   Component:  Compiler  |     Version:  7.7                  
    Keywords:            |          Os:  Linux                
Architecture:  powerpc   |     Failure:  Installing GHC failed
  Difficulty:  Unknown   |    Testcase:                       
   Blockedby:            |    Blocking:                       
     Related:            |  
-------------------------+--------------------------------------------------

Comment(by erikd):

 I've broken my modification to the generated code into a standalone
 assembler program and stepped through it with gdb. I am now convinced that
 replacing this:

 {{{
     bcl     20,31,1f
 1:  mflr    31
     lwz     30, .mylabel-(1b)(31)
 }}}

 with this:

 {{{
     bcl     20,31,1f
 1:  mflr    31
     addis   30, 31, (.mylabel-(1b))@h
     lwz     30, (.mylabel-(1b))@l(30)
 }}}

 is the correct thing to do which means the "illegal instruction error in
 function cr_str" problem in my last update is another different problem.

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



More information about the ghc-tickets mailing list