This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Some syntactic sugar for machine descriptions
- To: Richard Henderson <rth at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Subject: Re: Some syntactic sugar for machine descriptions
- From: "Zack Weinberg" <zackw at Stanford dot EDU>
- Date: Tue, 26 Jun 2001 15:09:48 -0700
On Tue, Jun 26, 2001 at 02:06:57PM -0700, Richard Henderson wrote:
>
> Hum. It'd be Really Nice to assume this asterisk and not have to
> write it explicitly.
>
> Perhaps that means that the reader always inserts it, and genoutput
> notices and adjust accordingly for define_expand and define_split etc.
> Perhaps we define format letter "T" to mean "add an asterisk if the
> source used a braced string".
Another possibility occurred to me: teach genoutput that if the first
character of the output template of a define_insn is a '{' that means
the same thing as if it's an '*'. But I think that might cause
problems with alternative assembly syntaxes. Maybe if the first two
characters are '{' and white space... ?
--
zw Well, there's another triumph for clean hands, a pure heart, a good
soul...and vastly superior technology.
-- _Undocumented Features: Out in the Cold_