From patchwork Thu Feb 15 21:11:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Palka X-Patchwork-Id: 1899749 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=DEj22e/A; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TbSRd2r23z23hy for ; Fri, 16 Feb 2024 08:11:41 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 878B9386D633 for ; Thu, 15 Feb 2024 21:11:38 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 673C2386D601 for ; Thu, 15 Feb 2024 21:11:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 673C2386D601 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 673C2386D601 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708031476; cv=none; b=HIxn5nUqjubqMjeSh5sBOGNr7z+0E+bmLpEF8NFNJD9RW+1tywFfKEZu0l+cEibYVufvXYjXc7JA/LJM2OQ5yzD1xBT1NoQCF3MvsaYE0q0Tb4ScsFvIz/wUJ5vsfJyFQq1JZvi+OXMscyyStMxSAeDmr6nD8Y5+sLYH0PBNq2Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708031476; c=relaxed/simple; bh=pzjcSq/1vH3G2jo7Jq1T5Os5/G6CqPeMn0hjgP9Dlkk=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=rJubQ6cEEVcbSrAsCaFrSEKsXux99Qj4Ht1hFvclLRCorZcDpFVUMJNXzbKCZrMw/wyAAYi0UORXof7dZjcLOsJdekA5LLPVwMkwJ8rH5iQbRV8b1N5OaYA/g5JVlIcDCfOyW1GCNOObT7836bOHc3K0XIl6OLSx2eVUkA1UPiI= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1708031475; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dxqCu/k0d/PGsibqaB77ira9wsAy0k7yPA2qDbxYfsA=; b=DEj22e/AL3l4R4WKjSv2Zka2C2qoYkirs3fGC81WioBqGinzPJYL4i3WauUkqWx6fk42t0 pUJw3Nj+q2t3h2TAYlEwL0HGeIDlEXBcST9iVVaXvQqapBS/SPpNRKcyvusDHCE5s9eG7H 30sY6hzjzgrgKgGftzsBL7H8UlJuMrE= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-146-QH1s-SPzNcWhpgS-y2MAFg-1; Thu, 15 Feb 2024 16:11:13 -0500 X-MC-Unique: QH1s-SPzNcWhpgS-y2MAFg-1 Received: by mail-qv1-f69.google.com with SMTP id 6a1803df08f44-68c53f2816dso224646d6.0 for ; Thu, 15 Feb 2024 13:11:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708031472; x=1708636272; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dxqCu/k0d/PGsibqaB77ira9wsAy0k7yPA2qDbxYfsA=; b=IMyw28mC6MBUrgOLV80Vdu21T/Aw+oB9pyQAMq4lxK58Q6nFjLAyX4sJJm+083fa6t TlUy2PlnkyiV08KS0HvYILflPiE9Qgjj/oKbOqLHAPVBsq4vAcTZqSDZnm6ekzFmI4ZN CbJSpEg/9zAPcjLJXrlSxJjh0xYu4Enkj7J/Ll3KURRFNN8IYlc74NEoa1e55soiW7jx Z6LSrv/SNZ/0JKYHXyhQSm6pivCez84A23O0f52Ks0rCSOIWGA3lQVXYGLFHd2R2CRJi 7c1L2y40LXbY09TleoJUM7xGfm3XddcZHLAZFpYupPCich+65PgcZxTw4boqGiqvsFtw p3qg== X-Gm-Message-State: AOJu0Ywe0I6aGzHo4UurHf9bl33KFw+Om5VQodP+jUd9xtQ0/4i+52JR hau4ialgb1FNcNEiBcug5JCYQeDTWoSA0AtKPLCTfrGEbjGyS4YTo37e4umFyyft5j/2ltLolUf 1Az6lxAH2oZV+C3e8bCCPt0Ylb/IqnX4JxB18zVurj59jDxu2KFoCjWvbd6J2wVl5+3QWZ+PtoF aL8rJNYde1ZPNIVyPk2n1JKj8/z2vtH+QDjruD X-Received: by 2002:a0c:e211:0:b0:68f:929:7bfa with SMTP id q17-20020a0ce211000000b0068f09297bfamr2975964qvl.19.1708031472604; Thu, 15 Feb 2024 13:11:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IFMmRwPLPSGfz1LsXyvejzGJYEfGL63ezUqyQ2jZzIhli+O45nIonA9wQQUoVQAmxogHqpY/Q== X-Received: by 2002:a0c:e211:0:b0:68f:929:7bfa with SMTP id q17-20020a0ce211000000b0068f09297bfamr2975949qvl.19.1708031472363; Thu, 15 Feb 2024 13:11:12 -0800 (PST) Received: from localhost.localdomain (ool-457670bb.dyn.optonline.net. [69.118.112.187]) by smtp.gmail.com with ESMTPSA id pc8-20020a056214488800b00686965d4be0sm1045188qvb.90.2024.02.15.13.11.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 13:11:12 -0800 (PST) From: Patrick Palka To: gcc-patches@gcc.gnu.org Cc: jason@redhat.com, nathan@acm.org, Patrick Palka Subject: [PATCH] c++/modules: stream TREE_UNAVAILABLE and LAMBDA_EXPR_REGEN_INFO Date: Thu, 15 Feb 2024 16:11:10 -0500 Message-ID: <20240215211110.340624-1-ppalka@redhat.com> X-Mailer: git-send-email 2.44.0.rc1.15.g4fc51f00ef MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_WEB, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE, URIBL_BLACK autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org 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);