Module Name: src Committed By: rillig Date: Sat Nov 7 23:41:39 UTC 2020
Modified Files: src/usr.bin/make: parse.c Log Message: make(1): replace strstr in ParseMaybeSubMake with optimized code This code is called for each command that is parsed. Calling strstr with 4 strings that all start with the same character is unnecessary work. Therefore, replace strstr with manually optimized code. Neither GCC 5.5.0 nor GCC 10 inlines strncmp like this, otherwise I would have used that. Change in behavior: previously, a${MAKE}b would not be considered to be a sub-make command, which is probably correct but does not occur in practice. The check for non-alphanumeric characters around the found string was probably meant only for the plain word "make". To generate a diff of this commit: cvs rdiff -u -r1.431 -r1.432 src/usr.bin/make/parse.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.