------- Comment #10 from ubizjak at gmail dot com 2010-09-07 09:25 -------
We just calculated SP in the code following the comment:
"/* eh_return epilogues need %ecx added to the stack pointer. */"
So, stack pointer should be valid at the end.
I'm testing following patch:
Index: i386.c
===================================================================
--- i386.c (revision 163940)
+++ i386.c (working copy)
@@ -10118,6 +10118,7 @@ ix86_expand_epilogue (int style)
}
}
m->fs.sp_offset = UNITS_PER_WORD;
+ m->fs.sp_valid = true;
}
}
else
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45206