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:
2785a23
)
[project @ 2005-08-02 12:01:57 by simonmar]
author
simonmar
<unknown>
Tue, 2 Aug 2005 12:01:57 +0000
(12:01 +0000)
committer
simonmar
<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
patch
|
blob
|
history
diff --git
a/ghc/compiler/cmm/CmmParse.y
b/ghc/compiler/cmm/CmmParse.y
index
e81d34c
..
45f411b
100644
(file)
--- a/
ghc/compiler/cmm/CmmParse.y
+++ b/
ghc/compiler/cmm/CmmParse.y
@@
-295,6
+295,7
@@
bool_op :: { ExtFCode BoolExpr }
-- This is not C-- syntax. What to do?
vols :: { Maybe [GlobalReg] }
: {- empty -} { Nothing }
-- This is not C-- syntax. What to do?
vols :: { Maybe [GlobalReg] }
: {- empty -} { Nothing }
+ | '[' ']' { Just [] }
| '[' globals ']' { Just $2 }
globals :: { [GlobalReg] }
| '[' globals ']' { Just $2 }
globals :: { [GlobalReg] }