Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified)) by mollari.NetBSD.org (Postfix) with ESMTPS id 8652F1A9239 for ; Tue, 2 Feb 2021 15:41:16 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 9137184DAD; Tue, 2 Feb 2021 15:41:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id B8BAC84DAB for ; Tue, 2 Feb 2021 15:41:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id 8ThToQQCSf5X for ; Tue, 2 Feb 2021 15:41:14 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 4D4D984CDB for ; Tue, 2 Feb 2021 15:41:14 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 3BA21FA91; Tue, 2 Feb 2021 15:41:14 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Tue, 2 Feb 2021 15:41:14 +0000 From: "Roland Illig" Subject: CVS commit: src/usr.bin/make To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20210202154114.3BA21FA91@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Roland Illig" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: rillig Date: Tue Feb 2 15:41:14 UTC 2021 Modified Files: src/usr.bin/make: var.c Log Message: make: replace enum bit-set with bit-field No functional change. The generated code from GCC 5.5 is very similar. On x86_64, memory access is no longer in 32-bit units but in 8-bit units since only the first few bits are actually used. The bit patterns are the same as before, so if there is any difference in performance, GCC should have chosen the more efficient variant all along. In a previous experiment, the code size increased a lot, surprisingly. To generate a diff of this commit: cvs rdiff -u -r1.787 -r1.788 src/usr.bin/make/var.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.