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: Some syntactic sugar for machine descriptions


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_


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