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: SH: use register names instead of numbers


On Nov 22, 2000, Joern Rennecke <amylaar@redhat.com> wrote:

>> Ok, copying the constants from insn-codes.h to insn-config.h covers
>> most of the programs that had failed to compile, and insn-config.h
>> even makes sense for constants.  But resource.c and rtlanal.c still
>> won't compile unless I explicitly #include "insn-config.h".  Does this

> How do you do the copying?

By hand, at this time.  I've just hacked the sources so that the
constants are now generated directly in insn-config.h.

> The disadvantange of placing new #includes for this purpose into the
> gcc files is that you'll have to keep doing this as new files are added,
> or you need additional existing files to know about the constants.

Indeed.  I think the sed-script approach was superior for these
reasons.  But yours is certainly simpler, except for the need for some
additional #includes here and there.  Hopefully, as the use of
md_constants increases (which has just started, thanks Nick! :-),
we'll see the lack of the appropriate #includes on more targets, so
this will soon not be a problem.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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