SH: use register names instead of numbers
Zack Weinberg
zackw@Stanford.EDU
Wed Nov 22 00:29:00 GMT 2000
On Tue, Nov 21, 2000 at 10:55:24PM -0500, Michael Meissner wrote:
> On Mon, Nov 20, 2000 at 02:47:39PM -0800, Zack Weinberg wrote:
>
> > how about if one of the generator programs writes out #defines
> > for each constant? insn-codes.h or insn-config.h seem sensible
> > places. Or we could have a separate genconstants program, if none
> > of the existing insn-*.h files fit.
>
> That's only true if the constant in question isn't a value that
> depends on some -m switch or an #ifdef of some sort. I guess I
> would rather see an import function (tell the generator that name
> will be defined and to treat it as a number) than a define_constants
> function. Another thought is to use attributes for the constants,
> and the parsing of the attributes.
Let's not overdesign this. People are mostly talking about using it
for hard register numbers, which don't ever change.
zw
More information about the Gcc-patches
mailing list