This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Some syntactic sugar for machine descriptions
- To: "Zack Weinberg" <zackw at Stanford dot EDU>
- Subject: Re: Some syntactic sugar for machine descriptions
- From: Richard Earnshaw <rearnsha at arm dot com>
- Date: Mon, 02 Jul 2001 12:00:29 +0100
- cc: gcc-patches at gcc dot gnu dot org, Richard dot Earnshaw at arm dot com
- Organization: ARM Ltd.
- Reply-To: Richard dot Earnshaw at arm dot com
* rtl.def (DEFINE_INSN, DEFINE_INSN_AND_SPLIT, DEFINE_PEEPHOLE):
Change output-template slot to format 'T'.
* rtl.h (XTMPL): New.
* read-rtl.c (read_escape): New function.
(read_quoted_string, read_braced_string): Use it.
(read_rtx): Set star_if_braced from the format string.
Use XTMPL where appropriate.
* genoutput.c (gen_insn, gen_peephole): Use XTMPL to get the
template string.
Zack,
This patch is breaking the ARM compiler. Specifically, it's missing code
to handle format 'T' in
print-rtl.c: print_rtx()
gensupport.c: collect_insn_data ()
rtl.c: copy_rtx ()
R.