From a5f15ed90a9e5dac66aca6a10087ac5169e6d5c6 Mon Sep 17 00:00:00 2001 From: Martin Sebor Date: Mon, 22 May 2017 16:17:59 +0000 Subject: [PATCH] print-tree.c (print_node): Print DECL_READ_P flag. gcc/ChangeLog: * print-tree.c (print_node): Print DECL_READ_P flag. From-SVN: r248339 --- gcc/ChangeLog | 4 ++++ gcc/print-tree.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2efcf7e96bb..3dac2253052 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-05-19 Martin Sebor + + * print-tree.c (print_node): Print DECL_READ_P flag. + 2017-05-22 Jan Hubicka * Makefile.in: Add ipa-fnsummary.o and ipa-fnsummary.h diff --git a/gcc/print-tree.c b/gcc/print-tree.c index fb58be6c073..388c694b255 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); -- 2.30.2