This is the mail archive of the
cgen@sourceware.org
mailing list for the CGEN project.
const locals, initial values?
- From: Doug Evans <dje at sebabeach dot org>
- To: cgen at sourceware dot org
- Date: Fri, 28 Aug 2009 07:35:00 -0700
- Subject: const locals, initial values?
Not that this needs to be added any time soon (if ever), but to get the
thought down on paper, sometimes I wonder about extending the syntax for
sequence locals to
([(option list)] MODE variable-name [initial-value])
e.g.
(sequence ((INT x 0) ((const) INT y expr))
...
)
Some purists might wish that initial-value had been there from the
beginning, I'm not sure why I didn't do it that way, but oh well.