Unsaved register?
Erik Walthinsen
omega@temple-baptist.com
Tue May 29 16:21:00 GMT 2001
On 29 May 2001, Geoff Keating wrote:
> Sure. Your inline asm clobbers various registers by making the
> function call, and you haven't mentioned them.
I thought that a function call was implicitely supposed to restore all the
state it clobbers? It's a full C function, no asm at all. How is the
calling code supposed to know which registers are going to be clobbered?
I haven't seen anything in the docs about describing to gcc what registers
a call might clobber, how does one do that?
TIA,
Omega
Erik Walthinsen <omega@temple-baptist.com> - System Administrator
__
/ \ GStreamer - The only way to stream!
| | M E G A ***** http://gstreamer.net/ *****
_\ /_
More information about the Gcc-bugs
mailing list