This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


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

Re: Patch to libc/sys/arm/syscalls.c



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.


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