Received: by mail.netbsd.org (Postfix, from userid 605) id EDAEC84D58; Sat, 20 Mar 2021 20:39:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 2359384D53 for ; Sat, 20 Mar 2021 20:39:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id nIbzdHjfsgQf for ; Sat, 20 Mar 2021 20:39:35 +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 AA84884CE1 for ; Sat, 20 Mar 2021 20:39:35 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id A4296FA95; Sat, 20 Mar 2021 20:39:35 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sat, 20 Mar 2021 20:39:35 +0000 From: "Roland Illig" Subject: CVS commit: src/usr.bin/xlint/lint1 To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20210320203935.A4296FA95@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: Sat Mar 20 20:39:35 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: main1.c op.h oper.c ops.def tree.c Log Message: lint: remove redundant operator properties table It's enough to have modtab, which describes the properties of the various operators. There is no need to have a second table imods that holds the same content. Rather make modtab constant as well. The only possible functional change is that the names of the internal operators 'no-op', '++', '--', 'real', 'imag' and 'case' may appear in diagnostics, where previously lint invoked undefined behavior by passing a null pointer for a '%s' conversion specifier. To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 src/usr.bin/xlint/lint1/main1.c cvs rdiff -u -r1.14 -r1.15 src/usr.bin/xlint/lint1/op.h cvs rdiff -u -r1.7 -r1.8 src/usr.bin/xlint/lint1/oper.c cvs rdiff -u -r1.18 -r1.19 src/usr.bin/xlint/lint1/ops.def cvs rdiff -u -r1.239 -r1.240 src/usr.bin/xlint/lint1/tree.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.