aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1996-10-26 11:37:57 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1996-10-26 11:37:57 -0400
commit1c84128d8900f4e059cd583e176ebcd055689faf (patch)
tree940871a929e24b1bf7c6c3cabdbc2b344e37352a
parentbe97d4755e1cece1f770aabb7251529aba1d66e8 (diff)
downloadgcc-1c84128d8900f4e059cd583e176ebcd055689faf.zip
gcc-1c84128d8900f4e059cd583e176ebcd055689faf.tar.gz
gcc-1c84128d8900f4e059cd583e176ebcd055689faf.tar.bz2
(dump_file): Call fclose() for opened files.
From-SVN: r13033
-rw-r--r--gcc/collect2.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index cd6f8f4..452ac99 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -1,7 +1,5 @@
-/* Collect static initialization info into data structures
- that can be traversed by C++ initialization and finalization
- routines.
-
+/* Collect static initialization info into data structures that can be
+ traversed by C++ initialization and finalization routines.
Copyright (C) 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
Contributed by Chris Smith (csmith@convex.com).
Heavily modified by Michael Meissner (meissner@cygnus.com),
@@ -551,6 +549,7 @@ dump_file (name)
break;
putc (c, stderr);
}
+ fclose (stream);
}
/* Decide whether the given symbol is: