rt: Add FIXME's about future changes to LLVM's __morestack impl

This commit is contained in:
Brian Anderson 2011-12-01 15:33:15 -08:00
parent 6da1a3fcd6
commit 249f017bf2
2 changed files with 5 additions and 0 deletions

View File

@ -19,6 +19,8 @@
#define MORESTACK __morestack
#endif
// FIXME: Future LLVM patches remove these 8 alignment bytes from
// the function prologue in order to match gcc's behavior
#define ALIGNMENT 8
#define RETURN_OFFSET 7

View File

@ -588,6 +588,9 @@ rust_task::del_stack() {
void
rust_task::record_stack_limit() {
// FIXME: Future LLVM patches expect us to add an additional 256 bytes
// here so that, if the frame size is < 256 it can generate the
// comparison against esp directly, instead of some offset from esp
record_sp(stk->data + RED_ZONE_SIZE);
}
//