This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: SH: use register names instead of numbers
- To: Joern Rennecke <amylaar at redhat dot com>
- Subject: Re: SH: use register names instead of numbers
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 22 Nov 2000 19:19:45 -0200
- Cc: rth at redhat dot com (Richard Henderson), zackw at Stanford dot EDU (Zack Weinberg), gcc-patches at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <200011222107.eAML76L11443@tantra.cygnus.co.uk>
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