This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: Patch to libc/sys/arm/syscalls.c
- To: Fernando Nasser <fnasser at cygnus dot com>
- Subject: Re: Patch to libc/sys/arm/syscalls.c
- From: Richard Earnshaw <rearnsha at arm dot com>
- Date: Fri, 24 Mar 2000 09:55:23 +0000
- Cc: binutils at sourceware dot cygnus dot com
- Cc: rearnsha at arm dot com
- Organization: ARM Ltd.
- Reply-To: rearnsha at arm dot com
fnasser@cygnus.com said:
> Nick Clifton has authorized me to check in the following patch.
>
> It is a small change but important to prevent a register to be
> clobbered by a system call to the Angel monitor C library support.
To be safe, you should probably add the pseudo register "cc" to the list;
the condition codes are clobbered as well. I can't remember off-hand if
gcc normally considers ASMs to clobber the conditions by default, but
adding it to the list certainly won't hurt anything.
R.