[Bug inline-asm/11807] GCC should error out when clobbering the stack pointer and frame pointer
aw11 at os dot inf dot tu-dresden dot de
gcc-bugzilla@gcc.gnu.org
Fri Aug 26 09:34:00 GMT 2005
------- Additional Comments From aw11 at os dot inf dot tu-dresden dot de 2005-08-26 09:13 -------
GCC must error out when clobbering the frame pointer register because it is
likely to generate faulty code when the frame pointer is clobbered. You have to
save and restore the frame pointer on your own with (x86 push ebp; pop ebp). The
you need not to clobber it.
The only exception could possibly be the compiler option -fno-frame-pointer.
However at the moment GCC for arm generates faulty code even with this option,
if the frame pointer is clobbered.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11807
More information about the Gcc-bugs
mailing list