Ignore:
Timestamp:
Oct 13, 2008, 5:58:07 AM (17 years ago)
Author:
bird
Message:

kmk: improved the hashing of file table entries by making the strcache cache their hash values along with the string length.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/remake.c

    r1110 r1857  
    386386  if (file->multi_head != NULL && file->multi_head != file)
    387387    {
    388       DBS (DB_VERBOSE, (_("Considering target file `%s' -> multi head `%s'.\n"), 
     388      DBS (DB_VERBOSE, (_("Considering target file `%s' -> multi head `%s'.\n"),
    389389                          file->name, file->multi_head->name));
    390390      file = file->multi_head;
     
    505505
    506506  /* Update all non-intermediate files we depend on, if necessary,
    507      and see whether any of them is more recent than this file. 
     507     and see whether any of them is more recent than this file.
    508508     For explicit multitarget rules we must iterate all the output
    509509     files to get the correct picture. */
     
    523523          int maybe_make;
    524524          int dontcare = 0;
    525    
     525
    526526          check_renamed (d->file);
    527    
     527
    528528          mtime = file_mtime (d->file);
    529529          check_renamed (d->file);
    530    
     530
    531531          if (is_updating (d->file))
    532532            {
     
    561561              continue;
    562562            }
    563    
     563
    564564#ifdef CONFIG_WITH_EXPLICIT_MULTITARGET
    565565          d->file->parent = f2;
     
    568568#endif
    569569          maybe_make = must_make;
    570    
     570
    571571          /* Inherit dontcare flag from our parent. */
    572572          if (rebuilding_makefiles)
     
    575575              d->file->dontcare = file->dontcare;
    576576            }
    577    
    578    
     577
     578
    579579          dep_status |= check_dep (d->file, depth, this_mtime, &maybe_make);
    580    
     580
    581581          /* Restore original dontcare flag. */
    582582          if (rebuilding_makefiles)
    583583            d->file->dontcare = dontcare;
    584    
     584
    585585          if (! d->ignore_mtime)
    586586            must_make = maybe_make;
    587    
     587
    588588          check_renamed (d->file);
    589    
     589
    590590          {
    591591            register struct file *f = d->file;
     
    600600            while (f != 0);
    601601          }
    602    
     602
    603603          if (dep_status != 0 && !keep_going_flag)
    604604            break;
    605    
     605
    606606          if (!running)
    607607            /* The prereq is considered changed if the timestamp has changed while
     
    609609            d->changed = ((file_mtime (d->file) != mtime)
    610610                          || (mtime == NONEXISTENT_MTIME));
    611    
     611
    612612          lastd = d;
    613613          d = d->next;
     
    633633            {
    634634              int dontcare = 0;
    635    
     635
    636636              FILE_TIMESTAMP mtime = file_mtime (d->file);
    637637              check_renamed (d->file);
     
    641641              d->file->parent = file;
    642642#endif
    643    
     643
    644644              /* Inherit dontcare flag from our parent. */
    645645              if (rebuilding_makefiles)
     
    648648                  d->file->dontcare = file->dontcare;
    649649                }
    650    
    651    
     650
     651
    652652              dep_status |= update_file (d->file, depth);
    653    
     653
    654654              /* Restore original dontcare flag. */
    655655              if (rebuilding_makefiles)
    656656                d->file->dontcare = dontcare;
    657    
     657
    658658              check_renamed (d->file);
    659                  
     659
    660660              {
    661661                register struct file *f = d->file;
     
    670670                while (f != 0);
    671671              }
    672    
     672
    673673              if (dep_status != 0 && !keep_going_flag)
    674674                break;
    675    
     675
    676676              if (!running)
    677677#ifdef CONFIG_WITH_EXPLICIT_MULTITARGET
     
    741741#endif
    742742        check_renamed (d->file);
    743  
     743
    744744        if (! d->ignore_mtime)
    745745          {
     
    753753              must_make = 1;
    754754#endif
    755  
     755
    756756            /* Set DEPS_CHANGED if this dep actually changed.  */
    757757            deps_changed |= d->changed;
    758758          }
    759  
     759
    760760        /* Set D->changed if either this dep actually changed,
    761761           or its dependent, FILE, is older or does not exist.  */
    762762        d->changed |= noexist || d_mtime > this_mtime;
    763  
     763
    764764        if (!noexist && ISDB (DB_BASIC|DB_VERBOSE))
    765765          {
    766766            const char *fmt = 0;
    767  
     767
    768768            if (d->ignore_mtime)
    769769              {
     
    783783            else if (ISDB (DB_VERBOSE))
    784784              fmt = _("Prerequisite `%s' is older than target `%s'.\n");
    785  
     785
    786786            if (fmt)
    787787              {
Note: See TracChangeset for help on using the changeset viewer.