The debug_tree() function doesn't print the DECL_READ_P flag for a VAR_DECL or PARM_DECL. The attached two like patch makes it do so.
Martin
gcc/ChangeLog: * print-tree.c (print_node): Print DECL_READ_P flag. /* Bit masks to control dumping. Not all values are applicable to all diff --git a/gcc/print-tree.c b/gcc/print-tree.c index fb58be6..388c694 100644 --- a/gcc/print-tree.c +++ b/gcc/print-tree.c @@ -400,6 +400,8 @@ print_node (FILE *file, const char *prefix, tree node, int indent, fputs (" in-constant-pool", file); if (code == VAR_DECL && DECL_COMMON (node)) fputs (" common", file); + if ((code == VAR_DECL || code == PARM_DECL) && DECL_READ_P (node)) + fputs (" read", file); if (code == VAR_DECL && DECL_THREAD_LOCAL_P (node)) { fputs (" ", file);