[PATCH] Pretty print vector types
Devang Patel
dpatel@apple.com
Mon Sep 27 18:59:00 GMT 2004
On Sep 24, 2004, at 2:49 PM, Richard Henderson wrote:
> I'd prefer you move this down, so that if the vector type *does*
> have a name, that you use it.
like this?
-
Devang
Index: tree-pretty-print.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-pretty-print.c,v
retrieving revision 2.37
diff -Idpatel.pbxuser -c -3 -p -r2.37 tree-pretty-print.c
*** tree-pretty-print.c 11 Sep 2004 19:48:54 -0000 2.37
--- tree-pretty-print.c 27 Sep 2004 18:13:47 -0000
*************** dump_generic_node (pretty_printer *buffe
*** 331,337 ****
&& DECL_NAME (TYPE_NAME (node)))
dump_decl_name (buffer, TYPE_NAME (node), flags);
else
! pp_string (buffer, "<unnamed type>");
}
else
pp_string (buffer, "<unnamed type>");
--- 331,343 ----
&& DECL_NAME (TYPE_NAME (node)))
dump_decl_name (buffer, TYPE_NAME (node), flags);
else
! pp_string (buffer, "<unnamed type>");
! }
! else if (TREE_CODE (node) == VECTOR_TYPE)
! {
! pp_string (buffer, "vector ");
! dump_generic_node (buffer, TREE_TYPE (node),
! spc, flags, false);
}
else
pp_string (buffer, "<unnamed type>");
More information about the Gcc-patches
mailing list