patch applied (ghc-6.6/ghc): PowerPC NCG: support conditional branches outside +-32KB

Ian Lynagh igloo at earth.li
Tue Dec 19 15:31:34 EST 2006


Wed Dec 13 05:38:08 PST 2006  wolfgang.thaller at gmx.net
  * PowerPC NCG: support conditional branches outside +-32KB
  
  Work around the PowerPC architecture's +-32KB limitation for conditional
  branches by conditionally skipping an unconditional branch instead
  (unconditional branches have a +-32MB range).
  
  This requires an extra pass over the basic blocks for each CmmTop after
  block sequencing, to determine which branches are "far".
  
  Fixes ticket #709, "Fixup too large" error with -fasm on PowerPC

    M ./compiler/nativeGen/AsmCodeGen.lhs -1 +41
    M ./compiler/nativeGen/MachInstrs.hs -1 +18
    M ./compiler/nativeGen/PprMach.hs +13
    M ./compiler/nativeGen/RegAllocInfo.hs +4



More information about the Cvs-ghc mailing list