This is the mail archive of the gcc-patches@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: extend.texi patch on how to specify clobbered inputs (was: Re: i386, asm and forbidden spilled registers...)




  > + It is @emph{not} valid to use a clobber description to describe that an
  > + input operand is modified, but unused as output.  It has to be specified
  > + as an input and output operand anyway.  Note that if there are only
  > + unused output operands, you will then also need to specify
  > + @code{volatile} for the @code{asm} construct, as described below.
  > + 
This applies to both inputs and outputs -- ie, you can not show a register
as an output and also have it in the clobber list either.

ie, a register mentioned explicitly in the clobber list must not overlap
with an input or output operand.

jeff


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