Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
e3971de1
Commit
e3971de1
authored
Jan 02, 2008
by
Simon Marlow
Browse files
expand "out of stack slots" panic to suggest using -fregs-graph, see #1993
parent
5642651b
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/nativeGen/RegAllocLinear.hs
View file @
e3971de1
...
...
@@ -222,7 +222,8 @@ emptyStackMap = StackMap [0..maxSpillSlots] emptyUFM
getStackSlotFor
::
StackMap
->
Unique
->
(
StackMap
,
Int
)
getStackSlotFor
(
StackMap
[]
_
)
_
=
panic
"RegAllocLinear.getStackSlotFor: out of stack slots"
=
panic
"RegAllocLinear.getStackSlotFor: out of stack slots, try -fregs-graph"
-- This happens with darcs' SHA1.hs, see #1993
getStackSlotFor
fs
@
(
StackMap
(
freeSlot
:
stack'
)
reserved
)
reg
=
case
lookupUFM
reserved
reg
of
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment