* dwarf2dbg.c (get_filenum): Don't inadvertently decrease files_in_use.
authorAlan Modra <amodra@gmail.com>
Tue, 28 Feb 2006 00:38:19 +0000 (00:38 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 28 Feb 2006 00:38:19 +0000 (00:38 +0000)
gas/ChangeLog
gas/dwarf2dbg.c

index 4a61eb1b056afe049b374539ca79a26a421dfb06..75d9edaad603ab905e965d439e4ea691910376f4 100644 (file)
@@ -1,3 +1,7 @@
+2006-02-28  Mat <mat@csail.mit.edu>
+
+       * dwarf2dbg.c (get_filenum): Don't inadvertently decrease files_in_use.
+
 2006-02-27  Jakub Jelinek  <jakub@redhat.com>
 
        * dw2gencfi.c (struct fde_entry, struct cie_entry): Add signal_frame
index c7d99c5997bdea090b4f761a23837b0d45c15a20..81945280aec130093e59f05d62e6ee43c6d14dbe 100644 (file)
@@ -1,5 +1,5 @@
 /* dwarf2dbg.c - DWARF2 debug support
-   Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005
+   Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
    Free Software Foundation, Inc.
    Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
 
@@ -484,7 +484,8 @@ get_filenum (const char *filename, unsigned int num)
 
   files[i].filename = num ? file : xstrdup (file);
   files[i].dir = dir;
-  files_in_use = i + 1;
+  if (files_in_use < i + 1)
+    files_in_use = i + 1;
   last_used = i;
   last_used_dir_len = dir_len;
 
This page took 0.025702 seconds and 4 git commands to generate.