Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
93d047a1
Commit
93d047a1
authored
Oct 13, 2008
by
dias@eecs.harvard.edu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Floating infotables were reversed in C back end
parent
dc6a72b9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
compiler/cmm/CmmBuildInfoTables.hs
compiler/cmm/CmmBuildInfoTables.hs
+3
-2
compiler/cmm/PprC.hs
compiler/cmm/PprC.hs
+3
-2
No files found.
compiler/cmm/CmmBuildInfoTables.hs
View file @
93d047a1
...
...
@@ -494,8 +494,9 @@ lowerSafeForeignCalls procpoints rst
then
lowerSafeCallBlock
state'
b
else
return
(
state'
{
s_blocks
=
insertBlock
b
blocks
})
State
blocks'
g_procpoints
safeCalls
<-
fold_blocks
block
init
g
return
$
(
ProcInfoTable
(
CmmProc
info
l
args
(
LGraph
entry
off
blocks'
))
g_procpoints
:
safeCalls
)
:
rst
return
$
safeCalls
:
[
ProcInfoTable
(
CmmProc
info
l
args
(
LGraph
entry
off
blocks'
))
g_procpoints
]
:
rst
-- Check for foreign calls -- if none, then we can avoid copying the block.
hasSafeForeignCall
::
CmmBlock
->
Bool
...
...
compiler/cmm/PprC.hs
View file @
93d047a1
...
...
@@ -143,8 +143,9 @@ pprTop top@(CmmData _section (CmmDataLabel lbl : lits)) =
-- Floating info table for safe a foreign call.
pprTop
top
@
(
CmmData
_section
d
@
(
_
:
_
))
|
CmmDataLabel
lbl
:
lits
<-
reverse
d
=
pprDataExterns
lits
$$
pprWordArray
lbl
lits
let
lits'
=
reverse
lits
in
pprDataExterns
lits'
$$
pprWordArray
lbl
lits'
-- these shouldn't appear?
pprTop
(
CmmData
_
_
)
=
panic
"PprC.pprTop: can't handle this data"
...
...
Write
Preview
Markdown
is supported
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