[Bug target/45206] [4.6 regression] ICE on __builtin_eh_return at -Os
ubizjak at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Sep 7 09:25:00 GMT 2010
------- 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
More information about the Gcc-bugs
mailing list