* [PATCH] c++/modules: stream TREE_UNAVAILABLE and LAMBDA_EXPR_REGEN_INFO
@ 2024-02-15 21:11 Patrick Palka
2024-02-15 21:15 ` Jason Merrill
0 siblings, 1 reply; 2+ messages in thread
From: Patrick Palka @ 2024-02-15 21:11 UTC (permalink / raw)
To: gcc-patches; +Cc: jason, nathan, Patrick Palka
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(+)
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);
--
2.44.0.rc1.15.g4fc51f00ef
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] c++/modules: stream TREE_UNAVAILABLE and LAMBDA_EXPR_REGEN_INFO
2024-02-15 21:11 [PATCH] c++/modules: stream TREE_UNAVAILABLE and LAMBDA_EXPR_REGEN_INFO Patrick Palka
@ 2024-02-15 21:15 ` Jason Merrill
0 siblings, 0 replies; 2+ messages in thread
From: Jason Merrill @ 2024-02-15 21:15 UTC (permalink / raw)
To: Patrick Palka, gcc-patches; +Cc: nathan
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);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-02-15 21:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-15 21:11 [PATCH] c++/modules: stream TREE_UNAVAILABLE and LAMBDA_EXPR_REGEN_INFO Patrick Palka
2024-02-15 21:15 ` Jason Merrill
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).