aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2023-10-23 12:27:24 -0400
committerJason Merrill <jason@redhat.com>2023-10-25 15:24:30 -0400
commit1aa9f1cc9887cde12ff6502358258d0bcf0db175 (patch)
tree81fb493e08d16da4fb6ff32d84a7ab745dbafcc3 /gcc
parent668c4c3783970e7adf0591396b6d0d5286cc0541 (diff)
downloadgcc-1aa9f1cc9887cde12ff6502358258d0bcf0db175.zip
gcc-1aa9f1cc9887cde12ff6502358258d0bcf0db175.tar.gz
gcc-1aa9f1cc9887cde12ff6502358258d0bcf0db175.tar.bz2
tree: update address_space comment
Mention front-end uses of the address_space bit-field, and remove the inaccurate "only". gcc/ChangeLog: * tree-core.h (struct tree_base): Update address_space comment.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/tree-core.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/tree-core.h b/gcc/tree-core.h
index 4dc3682..1343534 100644
--- a/gcc/tree-core.h
+++ b/gcc/tree-core.h
@@ -1082,10 +1082,11 @@ struct GTY(()) tree_base {
unsigned spare1 : 8;
- /* This field is only used with TREE_TYPE nodes; the only reason it is
+ /* For _TYPE nodes, this is TYPE_ADDR_SPACE; the reason it is
present in tree_base instead of tree_type is to save space. The size
of the field must be large enough to hold addr_space_t values.
- For CONSTRUCTOR nodes this holds the clobber_kind enum. */
+ For CONSTRUCTOR nodes this holds the clobber_kind enum.
+ The C++ front-end uses this in IDENTIFIER_NODE and NAMESPACE_DECL. */
unsigned address_space : 8;
} bits;