aboutsummaryrefslogtreecommitdiff
path: root/gcc/print-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/print-tree.c')
-rw-r--r--gcc/print-tree.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/print-tree.c b/gcc/print-tree.c
index aa6593f28f4..b0b2ad22cee 100644
--- a/gcc/print-tree.c
+++ b/gcc/print-tree.c
@@ -299,6 +299,8 @@ print_node (FILE *file, const char *prefix, tree node, int indent)
fputs (" readonly", file);
if (TYPE_P (node) && TYPE_ATOMIC (node))
fputs (" atomic", file);
+ if (TREE_SHARED (node))
+ fputs (" shared", file);
if (!TYPE_P (node) && TREE_CONSTANT (node))
fputs (" constant", file);
else if (TYPE_P (node) && TYPE_SIZES_GIMPLIFIED (node))
@@ -607,6 +609,14 @@ print_node (FILE *file, const char *prefix, tree node, int indent)
print_node (file, "size", TYPE_SIZE (node), indent + 4);
print_node (file, "unit size", TYPE_SIZE_UNIT (node), indent + 4);
+ if (TYPE_SHARED (node))
+ {
+ if (TYPE_HAS_THREADS_FACTOR(node))
+ fputs (" THREADS factor", file);
+ if (TYPE_HAS_BLOCK_FACTOR (node))
+ print_node (file, "block factor",
+ TYPE_BLOCK_FACTOR (node), indent + 4);
+ }
indent_to (file, indent + 3);
if (TYPE_USER_ALIGN (node))