summaryrefslogtreecommitdiff
path: root/compiler/codeGen/CallerSaves.hs
Commit message (Collapse)AuthorAgeFilesLines
* Fix the generation of CallerSaves; fixes #7163Ian Lynagh2012-08-211-51/+0
| | | | | | | | | Simon Marlow spotted that we were #include'ing MachRegs.h several times, but that doesn't work as (a) it uses ifdeffery to avoid being included multiple times, and (b) even if we work around that, then the #define's from previous inclusions are still defined when we #include it again. So we now put the platform code for each platform in a separate .hs file.
* Define callerSaves for all platformsIan Lynagh2012-08-071-0/+51
This means that we now generate the same code whatever platform we are on, which should help avoid changes on one platform breaking the build on another. It's also another step towards full cross-compilation.