[project @ 2005-08-02 12:01:57 by simonmar]
authorsimonmar <unknown>
Tue, 2 Aug 2005 12:01:57 +0000 (12:01 +0000)
committersimonmar <unknown>
Tue, 2 Aug 2005 12:01:57 +0000 (12:01 +0000)
Allow an empty list of volatile regs on a call

ghc/compiler/cmm/CmmParse.y

index e81d34c..45f411b 100644 (file)
@@ -295,6 +295,7 @@ bool_op :: { ExtFCode BoolExpr }
 -- This is not C-- syntax.  What to do?
 vols   :: { Maybe [GlobalReg] }
        : {- empty -}                   { Nothing }
+       | '[' ']'                       { Just [] }
        | '[' globals ']'               { Just $2 }
 
 globals :: { [GlobalReg] }