From 10cd14b412f60d6d99ab6ce6c40b1c56c2a8195c Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 28 Feb 2006 00:38:19 +0000 Subject: * dwarf2dbg.c (get_filenum): Don't inadvertently decrease files_in_use. --- gas/ChangeLog | 4 ++++ gas/dwarf2dbg.c | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 4a61eb1..75d9eda 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2006-02-28 Mat + + * dwarf2dbg.c (get_filenum): Don't inadvertently decrease files_in_use. + 2006-02-27 Jakub Jelinek * dw2gencfi.c (struct fde_entry, struct cie_entry): Add signal_frame diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c index c7d99c5..8194528 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 @@ -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; -- cgit v1.1