This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]