Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
a2de1244
Commit
a2de1244
authored
Mar 13, 1997
by
sof
Browse files
[project @ 1997-03-13 08:19:53 by sof]
AIX mods
parent
98cb06a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/includes/COptWraps.lh
View file @
a2de1244
...
...
@@ -588,8 +588,17 @@ gets whatever it's after.
#define WRAPPER_SETUP(f,ignore1,ignore2) SaveAllStgContext();
/* we have to make sure the STG registers are restored.
GCC tries to restore the value the registers had in
the beginning of the current call, which we don't want.
We defeat it by saving the registers in the stack again. :-( */
#define WRAPPER_RETURN(x) \
do {RestoreAllStgRegs(); if(x) JMP_(EnterNodeCode);} while(0);
do {RestoreAllStgRegs(); if(x) JMP_(EnterNodeCode);} while(0); \
__asm__ volatile ( \
"cal 1,136(1)\n" \
"\tstm 13,-76(1)\n" \
"\tstu 1,-136(1)");
#define SEPARATE_WRAPPER_RESTORE /* none */
...
...
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