Ignore:
Timestamp:
Sep 8, 2004, 4:43:30 AM (21 years ago)
Author:
bird
Message:

GNU Make 3.81beta1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/gmake/implicit.c

    r54 r153  
    106106  /* This buffer records all the dependencies actually found for a rule.  */
    107107  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));
    108110  /* Number of dep names now in FOUND_FILES.  */
    109111  unsigned int deps_found = 0;
     
    400402                  || ((!dep->changed || check_lastslash) && file_exists_p (p)))
    401403                {
     404                  found_files_im[deps_found] = dep->ignore_mtime;
    402405                  found_files[deps_found++] = xstrdup (p);
    403406                  continue;
     
    411414                       (_("Found prerequisite `%s' as VPATH `%s'\n"), p, vp));
    412415                  strcpy (vp, p);
     416                  found_files_im[deps_found] = dep->ignore_mtime;
    413417                  found_files[deps_found++] = vp;
    414418                  continue;
     
    440444                      intermediate_files[deps_found] = intermediate_file;
    441445                      intermediate_file = 0;
     446                      found_files_im[deps_found] = dep->ignore_mtime;
    442447                      /* Allocate an extra copy to go in FOUND_FILES,
    443448                         because every elt of FOUND_FILES is consumed
    444449                         or freed later.  */
    445                       found_files[deps_found] = xstrdup (p);
    446                       ++deps_found;
     450                      found_files[deps_found++] = xstrdup (p);
    447451                      continue;
    448452                    }
     
    544548
    545549      dep = (struct dep *) xmalloc (sizeof (struct dep));
    546       dep->ignore_mtime = 0;
     550      dep->ignore_mtime = found_files_im[deps_found];
    547551      s = found_files[deps_found];
    548552      if (recursions == 0)
Note: See TracChangeset for help on using the changeset viewer.