diff options
author | Zack Weinberg <zackw@stanford.edu> | 2001-07-03 19:23:35 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2001-07-03 19:23:35 +0000 |
commit | 3b324340369b9c67e16382e949b63fb0cfeafaaa (patch) | |
tree | 219bb7714144485db8a26f9ad99fb10ea2468edd /gcc/print-rtl.c | |
parent | bf4eebe0c1afd43c7d982fdf9614aa65c9c4928e (diff) | |
download | gcc-3b324340369b9c67e16382e949b63fb0cfeafaaa.zip gcc-3b324340369b9c67e16382e949b63fb0cfeafaaa.tar.gz gcc-3b324340369b9c67e16382e949b63fb0cfeafaaa.tar.bz2 |
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
Diffstat (limited to 'gcc/print-rtl.c')
-rw-r--r-- | gcc/print-rtl.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c index 1c4e6f3..aca6700 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; |