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] Use TYPE_MODE_RAW in print_node for vector_type.


A tiny minor patch to call TYPE_MODE_RAW instead of TYPE_MODE while dumping type's modes for vector_type. This avoid recursions while dumping in vector_type_node. Debug function should not modify types information (based on target_flags) anyway.

OK?



2015-12-21  Christian Bruel  <christian.bruel@st.com>

	* print-tree.c (print_node): TYPE_MODE_RAW instead of TYPE_MODE.

Index: gcc/print-tree.c
===================================================================
--- gcc/print-tree.c	(revision 231871)
+++ gcc/print-tree.c	(working copy)
@@ -602,7 +602,7 @@ print_node (FILE *file, const char *pref
       if (TYPE_LANG_FLAG_6 (node))
 	fputs (" type_6", file);
 
-      mode = TYPE_MODE (node);
+      mode = TYPE_MODE_RAW (node);
       fprintf (file, " %s", GET_MODE_NAME (mode));
 
       print_node (file, "size", TYPE_SIZE (node), indent + 4);


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