diff mbox series

c++/modules: stream TREE_UNAVAILABLE and LAMBDA_EXPR_REGEN_INFO

Message ID 20240215211110.340624-1-ppalka@redhat.com
State New
Headers show
Series c++/modules: stream TREE_UNAVAILABLE and LAMBDA_EXPR_REGEN_INFO | expand

Commit Message

Patrick Palka Feb. 15, 2024, 9:11 p.m. UTC
Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for
trunk?

-- >8 --

gcc/cp/ChangeLog:

	* module.cc (trees_out::core_bools): Stream TREE_UNAVAILABLE.
	(trees_in::core_bools): Likewise.
	(trees_out::core_vals): Stream LAMBDA_EXPR_REGEN_INFO.
	(trees_in::core_vals): Likewise.
---
 gcc/cp/module.cc | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Jason Merrill Feb. 15, 2024, 9:15 p.m. UTC | #1
On 2/15/24 16:11, Patrick Palka wrote:
> Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for
> trunk?

OK.

> -- >8 --
> 
> gcc/cp/ChangeLog:
> 
> 	* module.cc (trees_out::core_bools): Stream TREE_UNAVAILABLE.
> 	(trees_in::core_bools): Likewise.
> 	(trees_out::core_vals): Stream LAMBDA_EXPR_REGEN_INFO.
> 	(trees_in::core_vals): Likewise.
> ---
>   gcc/cp/module.cc | 4 ++++
>   1 file changed, 4 insertions(+)
> 
> diff --git a/gcc/cp/module.cc b/gcc/cp/module.cc
> index f769b3737ed..bd7de3f9156 100644
> --- a/gcc/cp/module.cc
> +++ b/gcc/cp/module.cc
> @@ -5370,6 +5370,7 @@ trees_out::core_bools (tree t, bits_out& bits)
>         WB (t->base.u.bits.user_align);
>         WB (t->base.u.bits.nameless_flag);
>         WB (t->base.u.bits.atomic_flag);
> +      WB (t->base.u.bits.unavailable_flag);
>         break;
>       }
>   
> @@ -5560,6 +5561,7 @@ trees_in::core_bools (tree t, bits_in& bits)
>         RB (t->base.u.bits.user_align);
>         RB (t->base.u.bits.nameless_flag);
>         RB (t->base.u.bits.atomic_flag);
> +      RB (t->base.u.bits.unavailable_flag);
>         break;
>       }
>   
> @@ -6353,6 +6355,7 @@ trees_out::core_vals (tree t)
>         WT (((lang_tree_node *)t)->lambda_expression.capture_list);
>         WT (((lang_tree_node *)t)->lambda_expression.this_capture);
>         WT (((lang_tree_node *)t)->lambda_expression.extra_scope);
> +      WT (((lang_tree_node *)t)->lambda_expression.regen_info);
>         /* pending_proxies is a parse-time thing.  */
>         gcc_assert (!((lang_tree_node *)t)->lambda_expression.pending_proxies);
>         if (state)
> @@ -6854,6 +6857,7 @@ trees_in::core_vals (tree t)
>         RT (((lang_tree_node *)t)->lambda_expression.capture_list);
>         RT (((lang_tree_node *)t)->lambda_expression.this_capture);
>         RT (((lang_tree_node *)t)->lambda_expression.extra_scope);
> +      RT (((lang_tree_node *)t)->lambda_expression.regen_info);
>         /* lambda_expression.pending_proxies is NULL  */
>         ((lang_tree_node *)t)->lambda_expression.locus
>   	= state->read_location (*this);
diff mbox series

Patch

diff --git a/gcc/cp/module.cc b/gcc/cp/module.cc
index f769b3737ed..bd7de3f9156 100644
--- a/gcc/cp/module.cc
+++ b/gcc/cp/module.cc
@@ -5370,6 +5370,7 @@  trees_out::core_bools (tree t, bits_out& bits)
       WB (t->base.u.bits.user_align);
       WB (t->base.u.bits.nameless_flag);
       WB (t->base.u.bits.atomic_flag);
+      WB (t->base.u.bits.unavailable_flag);
       break;
     }
 
@@ -5560,6 +5561,7 @@  trees_in::core_bools (tree t, bits_in& bits)
       RB (t->base.u.bits.user_align);
       RB (t->base.u.bits.nameless_flag);
       RB (t->base.u.bits.atomic_flag);
+      RB (t->base.u.bits.unavailable_flag);
       break;
     }
 
@@ -6353,6 +6355,7 @@  trees_out::core_vals (tree t)
       WT (((lang_tree_node *)t)->lambda_expression.capture_list);
       WT (((lang_tree_node *)t)->lambda_expression.this_capture);
       WT (((lang_tree_node *)t)->lambda_expression.extra_scope);
+      WT (((lang_tree_node *)t)->lambda_expression.regen_info);
       /* pending_proxies is a parse-time thing.  */
       gcc_assert (!((lang_tree_node *)t)->lambda_expression.pending_proxies);
       if (state)
@@ -6854,6 +6857,7 @@  trees_in::core_vals (tree t)
       RT (((lang_tree_node *)t)->lambda_expression.capture_list);
       RT (((lang_tree_node *)t)->lambda_expression.this_capture);
       RT (((lang_tree_node *)t)->lambda_expression.extra_scope);
+      RT (((lang_tree_node *)t)->lambda_expression.regen_info);
       /* lambda_expression.pending_proxies is NULL  */
       ((lang_tree_node *)t)->lambda_expression.locus
 	= state->read_location (*this);