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: aoliva at redhat dot com (Alexandre Oliva)
- Subject: Re: SH: use register names instead of numbers
- From: Joern Rennecke <amylaar at redhat dot com>
- Date: Fri, 17 Nov 2000 22:37:23 +0000 (GMT)
- Cc: gcc-patches at gcc dot gnu dot org, amylaar at redhat dot com
> This patch replaces all references to literal register numbers in the
> SH-specific configuration files with far more readable macros. In the
> case of the md file, a sed script is created out of #defines in the
> new sh-md.h, and this script is used to edit sh.md.
Why do you use a sed script?
Have yout tried the md_cppflags hack? I think it should be either used,
fixed or removed.
OTOH if we did the expansion in rtl.c, we'd get better error messages -
i.e. the context will be from the source file, not from some preprocessed
file.