Fix a bug introduced in r261437 that failed to honor "optional

profiling-routine" to work, since profiling-routine is not really an
option or a device, but a special case elsewhere in the code.
This commit is contained in:
Warner Losh 2014-02-03 19:10:33 +00:00
parent 2ae93551bd
commit 6554680b51
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=261445

View File

@ -477,18 +477,19 @@ read_file(char *fname)
filetype = NODEPEND;
goto nextparam;
}
if (eq(wd, "profiling-routine")) {
filetype = PROFILING;
goto nextparam;
}
if (eq(wd, "nowerror")) {
nowerror = 1;
goto nextparam;
}
nreqs++;
/* Hack to allow "optional profiling-routine" to work */
if (eq(wd, "profiling-routine")) {
filetype = PROFILING;
goto nextparam;
}
if (std)
errout("standard entry %s has optional inclusion specifier %s!\n",
this, wd);
nreqs++;
STAILQ_FOREACH(dp, &dtab, d_next)
if (eq(dp->d_name, wd)) {
dp->d_done |= DEVDONE;