MD-file syntactic sugar, take two

Richard Henderson rth@redhat.com
Wed Jun 27 14:05:00 GMT 2001


On Tue, Jun 26, 2001 at 08:17:35PM -0700, Zack Weinberg wrote:
> 	* read-rtl.c: Syntactic sugar for C embedded in strings in
> 	machine descriptions.
> 	(read_string): Break inner loop into separate function.  Takes
> 	an int.  Dispatch to read_quoted_string or read_braced_string
> 	as appropriate.  Automatically insert a leading star on braced
> 	strings if STAR_IF_BRACED is true.
> 	(read_quoted_string, read_braced_string): New functions.
> 	* doc/rtl.texi, doc/md.texi: Document new syntax.  Update
> 	examples to match.

Ok.

At some point, I'd like to see C strings, character constants,
and comments handled specially inside braced blocks to avoid
surprises.  But that can wait.


r~



More information about the Gcc-patches mailing list