]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree: update address_space comment
authorJason Merrill <jason@redhat.com>
Mon, 23 Oct 2023 16:27:24 +0000 (12:27 -0400)
committerJason Merrill <jason@redhat.com>
Wed, 25 Oct 2023 19:24:30 +0000 (15:24 -0400)
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.

gcc/tree-core.h

index 4dc36827d32c163cee28ab5498533783ba0488f7..13435344401d76a08b704e36b2bb1fb34fe86c7a 100644 (file)
@@ -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;