This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: non-clobbering call insn


> Hi,
> 
> Is it possible to have a call insn that doesn't automatically clobber 
> all the registers specified in CALL_USED_REGISTERS ? This would be 
> useful for an explicit stack checking function, called from the function 
> prologue, which always preserves the registers it uses rather than 
> leaving it up to the caller to preserve the registers.
> 

Better to use an unspec (or an unspec_volatile) for this type of thing.  
Then you can explicitly clobber the registers you need to.

R.


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