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

GHC ghc-devs at haskell.org
Mon Sep 14 01:46:20 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 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.

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


More information about the ghc-tickets mailing list