]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: reduce unnecessary tree_common
authorJason Merrill <jason@redhat.com>
Tue, 5 Nov 2024 15:27:39 +0000 (10:27 -0500)
committerJason Merrill <jason@redhat.com>
Mon, 11 Nov 2024 16:32:51 +0000 (11:32 -0500)
commit416a8b375589d4c2891b437d0991296ef32bde98
treec43d6b7148e834f3ac5a1eac9acb2da4733ea288
parent51147890383b89947c673ffd8d7c2cbd675261bd
c++: reduce unnecessary tree_common

Lewis' r15-5067 fixing the marking of TRAIT_EXPR led me to compare some
other front-end type definitions to their marking in cp_common_init_ts; it
seems we can change tree_common to something smaller in several cases, to
match how they are marked.

gcc/cp/ChangeLog:

* cp-tree.h (struct ptrmem_cst): Change tree_common to tree_typed.
(struct tree_trait_expr): Likewise.
(struct tree_static_assert): Change tree_common to tree_base.
(struct tree_argument_pack_select): Likewise.
gcc/cp/cp-tree.h