mirror of
https://git.savannah.gnu.org/git/make.git
synced 2025-02-07 14:56:06 +00:00
Fri Mar 1 12:04:47 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
* remake.c (f_mtime): Move future modtime check before FILE is clobbered by :: loop.
This commit is contained in:
parent
32979e8122
commit
8eb20e9d92
1 changed files with 9 additions and 9 deletions
18
remake.c
18
remake.c
|
@ -979,15 +979,6 @@ f_mtime (file, search)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Store the mtime into all the entries for this file. */
|
|
||||||
if (file->double_colon)
|
|
||||||
file = file->double_colon;
|
|
||||||
do
|
|
||||||
{
|
|
||||||
file->last_mtime = mtime;
|
|
||||||
file = file->prev;
|
|
||||||
} while (file != 0);
|
|
||||||
|
|
||||||
{
|
{
|
||||||
/* Files can have bogus timestamps that nothing newly made will be
|
/* Files can have bogus timestamps that nothing newly made will be
|
||||||
"newer" than. Updating their dependents could just result in loops.
|
"newer" than. Updating their dependents could just result in loops.
|
||||||
|
@ -1009,6 +1000,15 @@ f_mtime (file, search)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Store the mtime into all the entries for this file. */
|
||||||
|
if (file->double_colon)
|
||||||
|
file = file->double_colon;
|
||||||
|
do
|
||||||
|
{
|
||||||
|
file->last_mtime = mtime;
|
||||||
|
file = file->prev;
|
||||||
|
} while (file != 0);
|
||||||
|
|
||||||
return mtime;
|
return mtime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue