projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ccac7b1
)
Fix warnings in CgStackery
author
Ian Lynagh
<igloo@earth.li>
Wed, 17 Dec 2008 19:17:13 +0000
(19:17 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Wed, 17 Dec 2008 19:17:13 +0000
(19:17 +0000)
compiler/codeGen/CgStackery.lhs
patch
|
blob
|
history
diff --git
a/compiler/codeGen/CgStackery.lhs
b/compiler/codeGen/CgStackery.lhs
index
d6d9e5c
..
bcb59ce
100644
(file)
--- a/
compiler/codeGen/CgStackery.lhs
+++ b/
compiler/codeGen/CgStackery.lhs
@@
-8,13
+8,6
@@
Stack-twiddling operations, which are pretty low-down and grimy.
(This is the module that knows all about stack layouts, etc.)
\begin{code}
(This is the module that knows all about stack layouts, etc.)
\begin{code}
-{-# OPTIONS -w #-}
--- The above warning supression flag is a temporary kludge.
--- While working on this module you are encouraged to remove it and fix
--- any warnings in the module. See
--- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#Warnings
--- for details
-
module CgStackery (
spRel, getVirtSp, getRealSp, setRealSp,
setRealAndVirtualSp, getSpRelOffset,
module CgStackery (
spRel, getVirtSp, getRealSp, setRealSp,
setRealAndVirtualSp, getSpRelOffset,
@@
-38,7
+31,6
@@
import CmmUtils
import CLabel
import Constants
import Util
import CLabel
import Constants
import Util
-import FastString
import OrdList
import Outputable
import OrdList
import Outputable
@@
-125,7
+117,7
@@
mkVirtStkOffsets init_Sp_offset things
= loop init_Sp_offset [] (reverse things)
where
loop offset offs [] = (offset,offs)
= loop init_Sp_offset [] (reverse things)
where
loop offset offs [] = (offset,offs)
- loop offset offs ((VoidArg,t):things) = loop offset offs things
+ loop offset offs ((VoidArg,_):things) = loop offset offs things
-- ignore Void arguments
loop offset offs ((rep,t):things)
= loop thing_slot ((t,thing_slot):offs) things
-- ignore Void arguments
loop offset offs ((rep,t):things)
= loop thing_slot ((t,thing_slot):offs) things