From 3b324340369b9c67e16382e949b63fb0cfeafaaa Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Tue, 3 Jul 2001 19:23:35 +0000 Subject: [PATCH] rtl.c (copy_rtx): Handle 'T' format letter. * rtl.c (copy_rtx): Handle 'T' format letter. * gensupport.c (collect_insn_data): Likewise. * print-rtl.c (print_rtx): Print 'T' slots like 's'. From-SVN: r43732 --- gcc/ChangeLog | 6 ++++++ gcc/gensupport.c | 2 +- gcc/print-rtl.c | 15 ++++++++++++--- gcc/rtl.c | 1 + 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a021f3dcbab..175c5df1a4c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2001-07-03 Zack Weinberg + + * rtl.c (copy_rtx): Handle 'T' format letter. + * gensupport.c (collect_insn_data): Likewise. + * print-rtl.c (print_rtx): Print 'T' slots like 's'. + 2001-07-03 Nick Clifton * doc/invoke.texi (Directory Options): Specifiy range for in diff --git a/gcc/gensupport.c b/gcc/gensupport.c index 6bad18e051e..bd80ca47389 100644 --- a/gcc/gensupport.c +++ b/gcc/gensupport.c @@ -453,7 +453,7 @@ collect_insn_data (pattern, palt, pmax) collect_insn_data (XVECEXP (pattern, i, j), palt, pmax); break; - case 'i': case 'w': case '0': case 's': case 'S': + case 'i': case 'w': case '0': case 's': case 'S': case 'T': break; default: diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c index 1c4e6f312a2..aca67008502 100644 --- a/gcc/print-rtl.c +++ b/gcc/print-rtl.c @@ -163,16 +163,25 @@ print_rtx (in_rtx) for (; i < GET_RTX_LENGTH (GET_CODE (in_rtx)); i++) switch (*format_ptr++) { + const char *str; + + case 'T': + str = XTMPL (in_rtx, i); + goto string; + case 'S': case 's': - if (XSTR (in_rtx, i) == 0) + str = XSTR (in_rtx, i); + string: + + if (str == 0) fputs (dump_for_graph ? " \\\"\\\"" : " \"\"", outfile); else { if (dump_for_graph) - fprintf (outfile, " (\\\"%s\\\")", XSTR (in_rtx, i)); + fprintf (outfile, " (\\\"%s\\\")", str); else - fprintf (outfile, " (\"%s\")", XSTR (in_rtx, i)); + fprintf (outfile, " (\"%s\")", str); } sawclose = 1; break; diff --git a/gcc/rtl.c b/gcc/rtl.c index 0e4a9b33da5..de5e0481843 100644 --- a/gcc/rtl.c +++ b/gcc/rtl.c @@ -420,6 +420,7 @@ copy_rtx (orig) case 'i': case 's': case 'S': + case 'T': case 'u': case '0': /* These are left unchanged. */ -- 2.30.2