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: rth at redhat dot com (Richard Henderson)
- Subject: Re: SH: use register names instead of numbers
- From: Joern Rennecke <amylaar at redhat dot com>
- Date: Wed, 22 Nov 2000 22:36:55 +0000 (GMT)
- Cc: amylaar at redhat dot com (Joern Rennecke), zackw at Stanford dot EDU (Zack Weinberg), aoliva at redhat dot com (Alexandre Oliva), gcc-patches at gcc dot gnu dot org
> If we're going to do this, I think we should do it in the tm.h
> generated by configure rather than in config/cpu/cpu.h.
Like this?
* configure.in: #include insn-codes.h in tm.h.
Index: configure.in
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/configure.in,v
retrieving revision 1.403
diff -p -r1.403 configure.in
*** configure.in 2000/11/21 19:36:05 1.403
--- configure.in 2000/11/22 22:34:59
*************** do
*** 4657,4662 ****
--- 4657,4668 ----
then
echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
fi
+ if test $link = tm.h
+ then
+ echo "#ifndef GENERATOR_FILE" >>$link
+ echo "#include \"insn-codes.h\"" >>$link
+ echo "#endif" >>$link
+ fi
for file in `eval echo '$'$var`; do
case $file in