summaryrefslogtreecommitdiff
path: root/gcc/collect2.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-24 22:11:55 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-24 22:11:55 +0000
commit4367c81fb93bb9ab03b3fd009c5a5f2daf749d68 (patch)
tree1640c77c957668249b6d37b75f4d8ce1eca24af2 /gcc/collect2.c
parent880afb804d8c8dd903dacb8c3e1383a80eba225c (diff)
downloadgcc-4367c81fb93bb9ab03b3fd009c5a5f2daf749d68.tar.gz
* collect2.c (main): Unlock the stdio streams.
* gcc.c (main): Likewise. * gcov-dump.c (main): Likewise. * gcov.c (main): Likewise. * gen-protos.c (main): Likewise. * gensupport.c (init_md_reader_args_cb): Likewise. * protoize.c (main): Likewise. * toplev.c (general_init): Likewise. java: * gjavah.c (main): Unlock the stdio streams. * jcf-dump.c (main): Likewise. * jv-scan.c (main): Likewise. * jvgenmain.c (main): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98676 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r--gcc/collect2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index f95fe4dbbf4..9dfaf62c9ed 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -831,6 +831,11 @@ main (int argc, char **argv)
signal (SIGCHLD, SIG_DFL);
#endif
+ /* Unlock the stdio streams. */
+ unlock_stream (stdin);
+ unlock_stream (stdout);
+ unlock_stream (stderr);
+
gcc_init_libintl ();
/* Do not invoke xcalloc before this point, since locale needs to be