This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Use TYPE_MODE_RAW in print_node for vector_type.
- From: Christian Bruel <christian dot bruel at st dot com>
- To: <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 21 Dec 2015 11:13:29 +0100
- Subject: [PATCH] Use TYPE_MODE_RAW in print_node for vector_type.
- Authentication-results: sourceware.org; auth=none
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);