This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Adjust tree dumps for vectors similar to the C frontend
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 9 Apr 2010 15:42:42 +0200 (CEST)
- Subject: [PATCH] Adjust tree dumps for vectors similar to the C frontend
This prints TYPE_VECTOR_SUBPARTS similar to how the C frontend was
adjusted by Jason.
Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk.
Richard.
2010-04-09 Richard Guenther <rguenther@suse.de>
* tree-pretty-print.c (dump_generic_node): Dump
TYPE_VECTOR_SUBPARTS.
Index: trunk/gcc/tree-pretty-print.c
===================================================================
*** trunk.orig/gcc/tree-pretty-print.c 2010-04-07 11:21:50.000000000 +0200
--- trunk/gcc/tree-pretty-print.c 2010-04-09 15:24:35.000000000 +0200
*************** dump_generic_node (pretty_printer *buffe
*** 695,701 ****
}
else if (TREE_CODE (node) == VECTOR_TYPE)
{
! pp_string (buffer, "vector ");
dump_generic_node (buffer, TREE_TYPE (node), spc, flags, false);
}
else if (TREE_CODE (node) == INTEGER_TYPE)
--- 695,704 ----
}
else if (TREE_CODE (node) == VECTOR_TYPE)
{
! pp_string (buffer, "vector");
! pp_character (buffer, '(');
! pp_wide_integer (buffer, TYPE_VECTOR_SUBPARTS (node));
! pp_string (buffer, ") ");
dump_generic_node (buffer, TREE_TYPE (node), spc, flags, false);
}
else if (TREE_CODE (node) == INTEGER_TYPE)