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

GHC ghc-devs at haskell.org
Mon Sep 14 10:35:11 UTC 2015


#7830: Error: operand out of range
-------------------------------------+-------------------------------------
        Reporter:  erikd             |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  highest           |               Milestone:  8.0.1
       Component:  Compiler          |                 Version:  7.8.1-rc1
      Resolution:                    |                Keywords:
Operating System:  Linux             |            Architecture:  powerpc
 Type of failure:  Installing GHC    |               Test Case:
  failed                             |
      Blocked By:                    |                Blocking:
 Related Tickets:                    |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by heisenbug):

 Replying to [comment:29 erikd]:
 > I noticed that since the above numbers are using the bootstrap compiler
 with `-O0`.
 >
 > As a test, on PowerPC, changed `-O0` to `-O2` which cause the generated
 assembly file to grow to 302144 lines of code.
 >
 > At @rwbarton's suggestion added `NOINLINE` pragmas to `above_` and
 `beside_` functions in `compiler/utils/Pretty.hs` and now the assembler
 file for `compiler/cmm/PprC.hs` is 158390 lines.

 #8901 is a case where adding `NOINLINE` pragmas to the `time` library
 caused shrinkage in generated `.o` files by a factor ~5. Originally it
 also busted the 16-bit offsets on PPC32. Not sure whether the `time`
 maintainer followed my suggestions to add the pragmas or if everybody is
 just waiting for saner GHC inlining... :-(

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


More information about the ghc-tickets mailing list