diff options
author | Jason Merrill <jason@redhat.com> | 2019-06-11 08:40:08 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2019-06-11 08:40:08 -0400 |
commit | 92812757648109dc6cd35a52374ab3f6e9f44f78 (patch) | |
tree | b10ff4fbd325eb277a8c2342eb2f325d56b91b60 /gcc/tree.c | |
parent | de6abd8514fa7a2bed078935fd950f8cb8dee45c (diff) | |
download | gcc-92812757648109dc6cd35a52374ab3f6e9f44f78.zip gcc-92812757648109dc6cd35a52374ab3f6e9f44f78.tar.gz gcc-92812757648109dc6cd35a52374ab3f6e9f44f78.tar.bz2 |
gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
* gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
* tree.c (get_tree_code_name): Likewise.
* print-tree.c (print_node): Only briefly print a node with an
invalid code.
From-SVN: r272150
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -13450,7 +13450,11 @@ get_tree_code_name (enum tree_code code) const char *invalid = "<invalid tree code>"; if (code >= MAX_TREE_CODES) - return invalid; + { + if (code == 0xa5a5) + return "ggc_freed"; + return invalid; + } return tree_code_name[code]; } |