diff options
author | Julian Brown <julian@codesourcery.com> | 2021-03-06 19:07:26 +0000 |
---|---|---|
committer | Julian Brown <julian@codesourcery.com> | 2021-03-06 19:09:39 +0000 |
commit | 0cc54a68e309df89fb47bc1fa6c23662c45eeacc (patch) | |
tree | 4b6dc2215bb99f5d69eb73ea1dd8fe7fa0b88b55 | |
parent | 5b41f1c5af8bdba7ec7b7265c4ed000674310122 (diff) | |
download | gcc-0cc54a68e309df89fb47bc1fa6c23662c45eeacc.zip gcc-0cc54a68e309df89fb47bc1fa6c23662c45eeacc.tar.gz gcc-0cc54a68e309df89fb47bc1fa6c23662c45eeacc.tar.bz2 |
middle-end: Pretty-print address space of aggregates
This patch adds printing of "<address-space-N>" markers for aggregates
in non-default address spaces.
gcc/
* tree-pretty-print.c (dump_generic_node): Emit non-generic
address space info for aggregates.
-rw-r--r-- | gcc/tree-pretty-print.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c index 62899df..0a575eb 100644 --- a/gcc/tree-pretty-print.c +++ b/gcc/tree-pretty-print.c @@ -1968,6 +1968,13 @@ dump_generic_node (pretty_printer *pp, tree node, int spc, dump_flags_t flags, if (quals & TYPE_QUAL_VOLATILE) pp_string (pp, "volatile "); + if (!ADDR_SPACE_GENERIC_P (TYPE_ADDR_SPACE (node))) + { + pp_string (pp, "<address-space-"); + pp_decimal_int (pp, TYPE_ADDR_SPACE (node)); + pp_string (pp, "> "); + } + /* Print the name of the structure. */ if (TREE_CODE (node) == RECORD_TYPE) pp_string (pp, "struct "); |