This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Unsaved register?
- To: Geoff Keating <geoffk at geoffk dot org>
- Subject: Re: Unsaved register?
- From: Erik Walthinsen <omega at temple-baptist dot com>
- Date: Tue, 29 May 2001 16:21:45 -0700 (PDT)
- cc: <gcc-bugs at gcc dot gnu dot org>
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/ *****
_\ /_