Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id A35F584F89 for ; Fri, 23 Jun 2023 04:56:55 +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 EPRSzOYG5x0G for ; Fri, 23 Jun 2023 04:56:55 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 2929184EC3 for ; Fri, 23 Jun 2023 04:56:55 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 1A517FA89; Fri, 23 Jun 2023 04:56:55 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Fri, 23 Jun 2023 04:56:55 +0000 From: "Roland Illig" Subject: CVS commit: src/usr.bin/make To: source-changes@NetBSD.org Approved: for-source-only Reply-To: rillig@netbsd.org X-Mailer: log_accum Message-Id: <20230623045655.1A517FA89@cvs.NetBSD.org> Module Name: src Committed By: rillig Date: Fri Jun 23 04:56:54 UTC 2023 Modified Files: src/usr.bin/make: cond.c dir.c str.c str.h var.c src/usr.bin/make/unit-tests: cond-func-make.exp cond-func-make.mk varmod-match-escape.exp varmod-match-escape.mk varmod-match.exp varmod-match.mk Log Message: make: warn about malformed patterns in ':M', ':N' and '.if make(...)' These patterns shouldn't occur in practice, as their results are tricky to predict. Generate a warning for now, and maybe an error later. Reviewed by sjg@. To generate a diff of this commit: cvs rdiff -u -r1.351 -r1.352 src/usr.bin/make/cond.c cvs rdiff -u -r1.281 -r1.282 src/usr.bin/make/dir.c cvs rdiff -u -r1.97 -r1.98 src/usr.bin/make/str.c cvs rdiff -u -r1.16 -r1.17 src/usr.bin/make/str.h cvs rdiff -u -r1.1057 -r1.1058 src/usr.bin/make/var.c cvs rdiff -u -r1.2 -r1.3 src/usr.bin/make/unit-tests/cond-func-make.exp cvs rdiff -u -r1.4 -r1.5 src/usr.bin/make/unit-tests/cond-func-make.mk cvs rdiff -u -r1.17 -r1.18 \ src/usr.bin/make/unit-tests/varmod-match-escape.exp cvs rdiff -u -r1.9 -r1.10 src/usr.bin/make/unit-tests/varmod-match-escape.mk \ src/usr.bin/make/unit-tests/varmod-match.exp cvs rdiff -u -r1.14 -r1.15 src/usr.bin/make/unit-tests/varmod-match.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.