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]
Other format: [Raw text]

Re: [RFA:] Take 2: emit error for overlap of asm-register-declared variable and asm clobber list


On Sat, Sep 21, 2002 at 03:38:19AM +0200, Hans-Peter Nilsson wrote:
> 	* doc/extend.texi (Extended Asm): Clarify that overlap between
> 	asm-declared register variables used in an asm and the asm clobber
> 	list is not allowed.
> 	* stmt.c (decl_conflicts_with_clobbers_p): New function.
> 	(expand_asm_operands): Keep track of clobbered registers.  Call
> 	decl_conflicts_with_clobbers_p for each input and output operand.
> 	If no conflicts found before, also do conflict sanity check when
> 	emitting clobbers.
> 	* gcc.dg/20020919-1.c: New test.

Ok.


r~


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