This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Unsaved register?


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/ *****
      _\  /_


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]