Tue Nov 11 04:56:19 PST 2008 Simon Marlow <[EMAIL PROTECTED]>
* Fix to i386_insert_ffrees (#2724, #1944)
The i386 native code generator has to arrange that the FPU stack is
clear on exit from any function that uses the FPU. Unfortunately it
was getting this wrong (and has been ever since this code was written,
I think): it was looking for basic blocks that used the FPU and adding
the code to clear the FPU stack on any non-local exit from the block.
In fact it should be doing this on a whole-function basis, rather than
individual basic blocks.
M ./compiler/nativeGen/AsmCodeGen.lhs -4 +1
M ./compiler/nativeGen/MachInstrs.hs -12 +12
View patch online:
http://darcs.haskell.org/ghc/_darcs/patches/20081111125619-12142-3ad26fd0e54c7ec1d7cab2dcabc171ab3451b2bb.gz
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc