From patchwork Wed Oct 25 19:24:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Merrill X-Patchwork-Id: 1855241 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=clajNRX2; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; 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 [IPv6:2620:52:3:1:0:246e:9693:128c]) (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 4SFzQX0wBvz202k for ; Thu, 26 Oct 2023 06:24:50 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D4FCA3857705 for ; Wed, 25 Oct 2023 19:24:48 +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 D339F3858D33 for ; Wed, 25 Oct 2023 19:24:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D339F3858D33 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 D339F3858D33 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=1698261877; cv=none; b=rljhgDgi2YgwVBCjICGHC7+3ozub63s7M4RXFbcDHj2fqY3exDs0N5wTj4gD0Z3BzYlLLSwFvaBI3cO1Yxepc+5EN9c1uueD7fgDwo9VWKZSICcnqh7rYKTa7YeInrrUkjkQUSWjNE4ZoonofydqtlLUAD/6jQ6U9AxYmYQktNQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698261877; c=relaxed/simple; bh=T52ceJWRWhAJr5hsWNMYZHBC8V5lgnYK5LW54A4zRFI=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=vxePvYvBmy23fmQmlYfwu6MS0YldR8aWI234e1ETaFbvzin7ewDqzwKuvi2B6ZJjLmaHMIo9Nmja75hoh+WOGQ8K78jKwrbBTuvOBgC5g3AhUmzRfWty+nttkMg/oeRqOeX3xef+4a90eimhJbXbB1MTTL5X+D7yWT1ftBLnWxs= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698261876; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Q0BoLqP9RxywFnmZ/LmcLuxFx+JJdPIe8XL7dK64qfo=; b=clajNRX2R/k0lnNRKqb6baNgZlGnUTlnfgyOiVXUSb+TOtkFbXiU7mBEvmmCvkjmlI/qWe MAqUgNDfnkETnC5yXrDd79mu5simMtLbnKEpmNsPDjBsTD4k9bk2Xd4FQ45WvyxtcZMhkw 0BqAjbA3nnerS4rS7ykUrQjCZYyfgP4= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-516-k5UvRbT-OuGkpdyCeurlYA-1; Wed, 25 Oct 2023 15:24:25 -0400 X-MC-Unique: k5UvRbT-OuGkpdyCeurlYA-1 Received: by mail-qv1-f70.google.com with SMTP id 6a1803df08f44-66d12b547e2so1699686d6.0 for ; Wed, 25 Oct 2023 12:24:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698261864; x=1698866664; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Q0BoLqP9RxywFnmZ/LmcLuxFx+JJdPIe8XL7dK64qfo=; b=RNIUBMCqcM2AmVi8xUjmMM+wXItacKxQfWtqziEPa8dvY6mF5EmihrDheoT/52a2Y7 7mu+7BIph0rAzvqUGmb/5zCnI1gvbfyOJLicxNTBYnvMVBvRX8zN0dlBKYPuYTGfYzAI 4iT2iNEVyIGbxqoXLA0IZKHIEWtOz6yv+1AIokilESSD06H4nUk8Ii/1xZv2zZ+bsm3E BWmYNkdNY3Oa4Lvuu9dbCPzwIkHgU1jtDP+mEx0ppnoFc99pNHZD6m0LTTS60RYqBOGA c+ICk+jLVfQRGTbWsSNaZ94Jw4d3DDn2EogxiqeSic3FoQg/MSpLVhEH2bDCXg3n2hYC jmXA== X-Gm-Message-State: AOJu0Yx9NRPTeOPYep2F6Rsds0yZAwIZ/xzOD1Ti7BkYLIkXPM+dM+8g I3MW/qIcxaAdkQ2tE9L84tsX+8JohObM30j72n6rQHDeX6yt7qXy/SdTGpTdln7UCTYNI54IkXK aHipwrA8vPNob6TfVxXiTrmnufXF/YWKqLulAnMOxOu03o/5VRCGv3F7FIovzF6vn4HjTMx6MCQ == X-Received: by 2002:ad4:5b8b:0:b0:66d:4df1:cb0b with SMTP id 11-20020ad45b8b000000b0066d4df1cb0bmr18825938qvp.50.1698261864528; Wed, 25 Oct 2023 12:24:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGgYruXaB4SHAS+Hl0YUp4cA65/4bcjpr2J+mbUe3TC3/vWpUuX45FWfJF8YdCnafj9y3avkw== X-Received: by 2002:ad4:5b8b:0:b0:66d:4df1:cb0b with SMTP id 11-20020ad45b8b000000b0066d4df1cb0bmr18825921qvp.50.1698261864163; Wed, 25 Oct 2023 12:24:24 -0700 (PDT) Received: from jason.cygnus.csb (130-44-146-16.s12558.c3-0.arl-cbr1.sbo-arl.ma.cable.rcncustomer.com. [130.44.146.16]) by smtp.gmail.com with ESMTPSA id lf18-20020a0562142cd200b0065b21b232bfsm4623230qvb.138.2023.10.25.12.24.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 12:24:23 -0700 (PDT) From: Jason Merrill To: gcc-patches@gcc.gnu.org Subject: [pushed] tree: update address_space comment Date: Wed, 25 Oct 2023 15:24:20 -0400 Message-Id: <20231025192420.3276488-1-jason@redhat.com> X-Mailer: git-send-email 2.39.3 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-12.4 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_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP 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 Pushing as obvious. -- 8< -- 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) base-commit: 406709b1c7b134a7a05445837f406e98c04f76f0 diff --git a/gcc/tree-core.h b/gcc/tree-core.h index 4dc36827d32..13435344401 100644 --- a/gcc/tree-core.h +++ b/gcc/tree-core.h @@ -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;