print-tree.c (print_node): target-specific builtins print numbers, not names.
authorDJ Delorie <dj@redhat.com>
Mon, 4 Dec 2000 17:21:42 +0000 (12:21 -0500)
committerDJ Delorie <dj@gcc.gnu.org>
Mon, 4 Dec 2000 17:21:42 +0000 (12:21 -0500)
* print-tree.c (print_node): target-specific builtins print
numbers, not names.

From-SVN: r38004

gcc/ChangeLog
gcc/print-tree.c

index 9bdfe09..070f910 100644 (file)
@@ -1,3 +1,8 @@
+2000-12-04  DJ Delorie  <dj@redhat.com>
+
+       * print-tree.c (print_node): target-specific builtins print
+       numbers, not names.
+
 2000-12-04  Jason Merrill  <jason@redhat.com>
 
        * stor-layout.c (int_mode_for_mode): Handle MODE_VECTOR_INT,
index d0073fd..97441d3 100644 (file)
@@ -403,9 +403,14 @@ print_node (file, prefix, node, indent)
          fprintf (file, HOST_WIDE_INT_PRINT_DEC, DECL_FRAME_SIZE (node));
        }
       else if (DECL_BUILT_IN (node))
-       fprintf (file, " built-in %s:%s",
-                built_in_class_names[(int) DECL_BUILT_IN_CLASS (node)],
-                built_in_names[(int) DECL_FUNCTION_CODE (node)]);
+       {
+         if (DECL_BUILT_IN_CLASS (node) == BUILT_IN_MD)
+           fprintf (file, " built-in BUILT_IN_MD %d", DECL_FUNCTION_CODE (node));
+         else
+           fprintf (file, " built-in %s:%s",
+                    built_in_class_names[(int) DECL_BUILT_IN_CLASS (node)],
+                    built_in_names[(int) DECL_FUNCTION_CODE (node)]);
+       }
 
       if (DECL_POINTER_ALIAS_SET_KNOWN_P (node))
        {