summaryrefslogtreecommitdiff
path: root/remake.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1996-03-01 19:14:35 +0000
committerRoland McGrath <roland@redhat.com>1996-03-01 19:14:35 +0000
commit8eb20e9d92cafa381040643bb1f6db67d9416a63 (patch)
treeedf0c50f3cc6fa1c22c316e8a744109fd0c5b7c1 /remake.c
parent32979e812294610614330f8c35b87d064315d945 (diff)
downloadgunmake-8eb20e9d92cafa381040643bb1f6db67d9416a63.tar.gz
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.
Diffstat (limited to 'remake.c')
-rw-r--r--remake.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/remake.c b/remake.c
index 0ba53c0..3812aa3 100644
--- a/remake.c
+++ b/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
"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;
}