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


> 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.

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