summaryrefslogtreecommitdiff
path: root/gcc/cp/dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/dump.c')
-rw-r--r--gcc/cp/dump.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cp/dump.c b/gcc/cp/dump.c
index 9b711062070..83c7db06058 100644
--- a/gcc/cp/dump.c
+++ b/gcc/cp/dump.c
@@ -555,6 +555,9 @@ dequeue_and_dump (di)
if (DECL_FIELD_OFFSET (t))
dump_child ("bpos", bit_position (t));
}
+ else if (TREE_CODE (t) == VAR_DECL
+ || TREE_CODE (t) == PARM_DECL)
+ dump_int (di, "used", TREE_USED (t));
break;
case FUNCTION_DECL: