Changeset 153 for branches/GNU/src/gmake/implicit.c
- Timestamp:
- Sep 8, 2004, 4:43:30 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gmake/implicit.c
r54 r153 106 106 /* This buffer records all the dependencies actually found for a rule. */ 107 107 char **found_files = (char **) alloca (max_pattern_deps * sizeof (char *)); 108 /* Remember whether the associated dep has an "ignore_mtime" flag set. */ 109 unsigned char *found_files_im = (unsigned char *) alloca (max_pattern_deps * sizeof (unsigned char)); 108 110 /* Number of dep names now in FOUND_FILES. */ 109 111 unsigned int deps_found = 0; … … 400 402 || ((!dep->changed || check_lastslash) && file_exists_p (p))) 401 403 { 404 found_files_im[deps_found] = dep->ignore_mtime; 402 405 found_files[deps_found++] = xstrdup (p); 403 406 continue; … … 411 414 (_("Found prerequisite `%s' as VPATH `%s'\n"), p, vp)); 412 415 strcpy (vp, p); 416 found_files_im[deps_found] = dep->ignore_mtime; 413 417 found_files[deps_found++] = vp; 414 418 continue; … … 440 444 intermediate_files[deps_found] = intermediate_file; 441 445 intermediate_file = 0; 446 found_files_im[deps_found] = dep->ignore_mtime; 442 447 /* Allocate an extra copy to go in FOUND_FILES, 443 448 because every elt of FOUND_FILES is consumed 444 449 or freed later. */ 445 found_files[deps_found] = xstrdup (p); 446 ++deps_found; 450 found_files[deps_found++] = xstrdup (p); 447 451 continue; 448 452 } … … 544 548 545 549 dep = (struct dep *) xmalloc (sizeof (struct dep)); 546 dep->ignore_mtime = 0;550 dep->ignore_mtime = found_files_im[deps_found]; 547 551 s = found_files[deps_found]; 548 552 if (recursions == 0)
Note:
See TracChangeset
for help on using the changeset viewer.