Commit 3b324340 by Zack Weinberg Committed by Zack Weinberg

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
parent bf4eebe0
2001-07-03 Zack Weinberg <zackw@stanford.edu>
* 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 <nickc@cambridge.redhat.com> 2001-07-03 Nick Clifton <nickc@cambridge.redhat.com>
* doc/invoke.texi (Directory Options): Specifiy range for <N> in * doc/invoke.texi (Directory Options): Specifiy range for <N> in
......
...@@ -453,7 +453,7 @@ collect_insn_data (pattern, palt, pmax) ...@@ -453,7 +453,7 @@ collect_insn_data (pattern, palt, pmax)
collect_insn_data (XVECEXP (pattern, i, j), palt, pmax); collect_insn_data (XVECEXP (pattern, i, j), palt, pmax);
break; break;
case 'i': case 'w': case '0': case 's': case 'S': case 'i': case 'w': case '0': case 's': case 'S': case 'T':
break; break;
default: default:
......
...@@ -163,16 +163,25 @@ print_rtx (in_rtx) ...@@ -163,16 +163,25 @@ print_rtx (in_rtx)
for (; i < GET_RTX_LENGTH (GET_CODE (in_rtx)); i++) for (; i < GET_RTX_LENGTH (GET_CODE (in_rtx)); i++)
switch (*format_ptr++) switch (*format_ptr++)
{ {
const char *str;
case 'T':
str = XTMPL (in_rtx, i);
goto string;
case 'S': case 'S':
case 's': case 's':
if (XSTR (in_rtx, i) == 0) str = XSTR (in_rtx, i);
string:
if (str == 0)
fputs (dump_for_graph ? " \\\"\\\"" : " \"\"", outfile); fputs (dump_for_graph ? " \\\"\\\"" : " \"\"", outfile);
else else
{ {
if (dump_for_graph) if (dump_for_graph)
fprintf (outfile, " (\\\"%s\\\")", XSTR (in_rtx, i)); fprintf (outfile, " (\\\"%s\\\")", str);
else else
fprintf (outfile, " (\"%s\")", XSTR (in_rtx, i)); fprintf (outfile, " (\"%s\")", str);
} }
sawclose = 1; sawclose = 1;
break; break;
......
...@@ -420,6 +420,7 @@ copy_rtx (orig) ...@@ -420,6 +420,7 @@ copy_rtx (orig)
case 'i': case 'i':
case 's': case 's':
case 'S': case 'S':
case 'T':
case 'u': case 'u':
case '0': case '0':
/* These are left unchanged. */ /* These are left unchanged. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment