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: Better constraint checking for asms



  > Test program which should give errors for all asms (is there a way to
  > describe this as a c-torture test?):
It's difficult to add as a c-torture test because it's x86 specific and
requires error messages on many lines.

However, I do think it can be put into the gcc.dg testsuite.  Look there for
sample codes.

  > 	* stmt.c (n_occurrences): New static function.
  > 	(expand_asm_operands): Verify that all constrains match in the
  > 	number of alternatives.
  > 	Verify that '+' or '=' are at the beginning of an output constraint.
  > 	Don't allow '&' for input operands.
  > 	Verify that '%' isn't written for the last operand.
  > 	* reload.c (find_reloads): Abort if an asm is found with invalid
  > 	constraints; all possible problems ought to be checked for earlier.
Thanks.  I've installed this patch.

jeff


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