summaryrefslogtreecommitdiffstats
path: root/gas/dwarf2dbg.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2006-02-28 00:38:19 +0000
committerAlan Modra <amodra@gmail.com>2006-02-28 00:38:19 +0000
commit10cd14b412f60d6d99ab6ce6c40b1c56c2a8195c (patch)
tree84cb9f990c025f0bb468b6664f3176b341b92cda /gas/dwarf2dbg.c
parent1ae97d1e616cea1f3844d6660b5e960c08f4b661 (diff)
downloadppe42-binutils-10cd14b412f60d6d99ab6ce6c40b1c56c2a8195c.tar.gz
ppe42-binutils-10cd14b412f60d6d99ab6ce6c40b1c56c2a8195c.zip
* dwarf2dbg.c (get_filenum): Don't inadvertently decrease files_in_use.
Diffstat (limited to 'gas/dwarf2dbg.c')
-rw-r--r--gas/dwarf2dbg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c
index c7d99c5997..81945280ae 100644
--- a/gas/dwarf2dbg.c
+++ b/gas/dwarf2dbg.c
@@ -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;
OpenPOWER on IntegriCloud