[commit: ghc] master: Use the correct callClobberedRegs on Windows/x64 (#8834) (c4eeacd)

git at git.haskell.org git at git.haskell.org
Thu Mar 27 21:00:02 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/c4eeacdfdf4578eb6e75bbf2e067bfe70ec94ab0/ghc

>---------------------------------------------------------------

commit c4eeacdfdf4578eb6e75bbf2e067bfe70ec94ab0
Author: Simon Marlow <marlowsd at gmail.com>
Date:   Mon Mar 24 14:36:16 2014 +0000

    Use the correct callClobberedRegs on Windows/x64 (#8834)
    
    Signed-off-by: Austin Seipp <austin at well-typed.com>


>---------------------------------------------------------------

c4eeacdfdf4578eb6e75bbf2e067bfe70ec94ab0
 compiler/nativeGen/X86/Regs.hs |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/compiler/nativeGen/X86/Regs.hs b/compiler/nativeGen/X86/Regs.hs
index b5139c9..127a811 100644
--- a/compiler/nativeGen/X86/Regs.hs
+++ b/compiler/nativeGen/X86/Regs.hs
@@ -403,6 +403,9 @@ callClobberedRegs       :: Platform -> [Reg]
 -- caller-saves registers
 callClobberedRegs platform
  | target32Bit platform = [eax,ecx,edx] ++ map regSingle (floatregnos platform)
+ | platformOS platform == OSMinGW32
+   = [rax,rcx,rdx,r8,r9,r10,r11]
+   ++ map regSingle (floatregnos platform)
  | otherwise
     -- all xmm regs are caller-saves
     -- caller-saves registers



More information about the ghc-commits mailing list