OSDN Git Service

* rtl.c (copy_rtx): Handle 'T' format letter.
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Jul 2001 19:23:35 +0000 (19:23 +0000)
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Jul 2001 19:23:35 +0000 (19:23 +0000)
* gensupport.c (collect_insn_data): Likewise.
* print-rtl.c (print_rtx): Print 'T' slots like 's'.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43732 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/gensupport.c
gcc/print-rtl.c
gcc/rtl.c

index a021f3d..175c5df 100644 (file)
@@ -1,3 +1,9 @@
+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>
 
        * doc/invoke.texi (Directory Options): Specifiy range for <N> in
index 6bad18e..bd80ca4 100644 (file)
@@ -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:
index 1c4e6f3..aca6700 100644 (file)
@@ -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;
index 0e4a9b3..de5e048 100644 (file)
--- 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.  */