aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2005-04-24 22:11:55 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2005-04-24 22:11:55 +0000
commit98a3dad4119055bb5be8e66372b4fcf89235e660 (patch)
tree1640c77c957668249b6d37b75f4d8ce1eca24af2 /gcc
parent8634c649cb1ea6d85a53f1fab3bd28af869b934f (diff)
downloadgcc-98a3dad4119055bb5be8e66372b4fcf89235e660.zip
gcc-98a3dad4119055bb5be8e66372b4fcf89235e660.tar.gz
gcc-98a3dad4119055bb5be8e66372b4fcf89235e660.tar.bz2
collect2.c (main): Unlock the stdio streams.
* 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. From-SVN: r98676
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog11
-rw-r--r--gcc/collect2.c5
-rw-r--r--gcc/gcc.c5
-rw-r--r--gcc/gcov-dump.c5
-rw-r--r--gcc/gcov.c5
-rw-r--r--gcc/gen-protos.c5
-rw-r--r--gcc/gensupport.c5
-rw-r--r--gcc/java/ChangeLog7
-rw-r--r--gcc/java/gjavah.c5
-rw-r--r--gcc/java/jcf-dump.c5
-rw-r--r--gcc/java/jv-scan.c5
-rw-r--r--gcc/java/jvgenmain.c5
-rw-r--r--gcc/protoize.c5
-rw-r--r--gcc/toplev.c5
14 files changed, 78 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b392d66..0c4c36f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,14 @@
+2005-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * 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.
+
2005-04-24 Jakub Jelinek <jakub@redhat.com>
PR middle-end/20991
diff --git a/gcc/collect2.c b/gcc/collect2.c
index f95fe4d..9dfaf62 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
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 373b617..d3a0ecf 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -5995,6 +5995,11 @@ main (int argc, const char **argv)
GCC_DRIVER_HOST_INITIALIZATION;
#endif
+ /* Unlock the stdio streams. */
+ unlock_stream (stdin);
+ unlock_stream (stdout);
+ unlock_stream (stderr);
+
gcc_init_libintl ();
if (signal (SIGINT, SIG_IGN) != SIG_IGN)
diff --git a/gcc/gcov-dump.c b/gcc/gcov-dump.c
index 859fdb7..514004e 100644
--- a/gcc/gcov-dump.c
+++ b/gcc/gcov-dump.c
@@ -77,6 +77,11 @@ main (int argc ATTRIBUTE_UNUSED, char **argv)
{
int opt;
+ /* Unlock the stdio streams. */
+ unlock_stream (stdin);
+ unlock_stream (stdout);
+ unlock_stream (stderr);
+
while ((opt = getopt_long (argc, argv, "hlpv", options, NULL)) != -1)
{
switch (opt)
diff --git a/gcc/gcov.c b/gcc/gcov.c
index 66aa742..6b8f337 100644
--- a/gcc/gcov.c
+++ b/gcc/gcov.c
@@ -347,6 +347,11 @@ main (int argc, char **argv)
{
int argno;
+ /* Unlock the stdio streams. */
+ unlock_stream (stdin);
+ unlock_stream (stdout);
+ unlock_stream (stderr);
+
gcc_init_libintl ();
argno = process_args (argc, argv);
diff --git a/gcc/gen-protos.c b/gcc/gen-protos.c
index b8fa31b..d60a209 100644
--- a/gcc/gen-protos.c
+++ b/gcc/gen-protos.c
@@ -139,6 +139,11 @@ main (int argc ATTRIBUTE_UNUSED, char **argv)
while (i > 0 && argv[0][i-1] != '/') --i;
progname = &argv[0][i];
+ /* Unlock the stdio streams. */
+ unlock_stream (stdin);
+ unlock_stream (stdout);
+ unlock_stream (stderr);
+
INIT_SSTRING (&linebuf);
fprintf (outf, "struct fn_decl std_protos[] = {\n");
diff --git a/gcc/gensupport.c b/gcc/gensupport.c
index dbf0aab..8c65a3e 100644
--- a/gcc/gensupport.c
+++ b/gcc/gensupport.c
@@ -906,6 +906,11 @@ init_md_reader_args_cb (int argc, char **argv, bool (*parse_opt)(const char *))
char *lastsl;
rtx desc;
+ /* Unlock the stdio streams. */
+ unlock_stream (stdin);
+ unlock_stream (stdout);
+ unlock_stream (stderr);
+
for (i = 1; i < argc; i++)
{
if (argv[i][0] != '-')
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 251b8b5..6a719d4 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,10 @@
+2005-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * gjavah.c (main): Unlock the stdio streams.
+ * jcf-dump.c (main): Likewise.
+ * jv-scan.c (main): Likewise.
+ * jvgenmain.c (main): Likewise.
+
2005-04-23 DJ Delorie <dj@redhat.com>
* class.c, decl.c, expr.c, jcf-io.c, jcf-parse.c, jv-scan.c,
diff --git a/gcc/java/gjavah.c b/gcc/java/gjavah.c
index ca38b9e..98d2035 100644
--- a/gcc/java/gjavah.c
+++ b/gcc/java/gjavah.c
@@ -2388,6 +2388,11 @@ main (int argc, char** argv)
int emit_dependencies = 0, suppress_output = 0;
int opt;
+ /* Unlock the stdio streams. */
+ unlock_stream (stdin);
+ unlock_stream (stdout);
+ unlock_stream (stderr);
+
gcc_init_libintl ();
if (argc <= 1)
diff --git a/gcc/java/jcf-dump.c b/gcc/java/jcf-dump.c
index 9bd7650..cd6f709f 100644
--- a/gcc/java/jcf-dump.c
+++ b/gcc/java/jcf-dump.c
@@ -940,6 +940,11 @@ main (int argc, char** argv)
JCF jcf[1];
int argi, opt;
+ /* Unlock the stdio streams. */
+ unlock_stream (stdin);
+ unlock_stream (stdout);
+ unlock_stream (stderr);
+
gcc_init_libintl ();
if (argc <= 1)
diff --git a/gcc/java/jv-scan.c b/gcc/java/jv-scan.c
index fa02c59..a752284 100644
--- a/gcc/java/jv-scan.c
+++ b/gcc/java/jv-scan.c
@@ -147,6 +147,11 @@ main (int argc, char **argv)
/* Default for output */
out = stdout;
+ /* Unlock the stdio streams. */
+ unlock_stream (stdin);
+ unlock_stream (stdout);
+ unlock_stream (stderr);
+
gcc_init_libintl ();
/* Process options first. We use getopt_long and not
diff --git a/gcc/java/jvgenmain.c b/gcc/java/jvgenmain.c
index 1e228a1..5c651b4 100644
--- a/gcc/java/jvgenmain.c
+++ b/gcc/java/jvgenmain.c
@@ -58,6 +58,11 @@ main (int argc, char **argv)
const char *mangled_classname;
int i, last_arg;
+ /* Unlock the stdio streams. */
+ unlock_stream (stdin);
+ unlock_stream (stdout);
+ unlock_stream (stderr);
+
gcc_init_libintl ();
if (argc < 2)
diff --git a/gcc/protoize.c b/gcc/protoize.c
index b9e100c..bb04201 100644
--- a/gcc/protoize.c
+++ b/gcc/protoize.c
@@ -4391,6 +4391,11 @@ main (int argc, char **const argv)
signal (SIGCHLD, SIG_DFL);
#endif
+ /* Unlock the stdio streams. */
+ unlock_stream (stdin);
+ unlock_stream (stdout);
+ unlock_stream (stderr);
+
gcc_init_libintl ();
cwd_buffer = getpwd ();
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 19411e1..cea3bb4 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -1618,6 +1618,11 @@ general_init (const char *argv0)
hex_init ();
+ /* Unlock the stdio streams. */
+ unlock_stream (stdin);
+ unlock_stream (stdout);
+ unlock_stream (stderr);
+
gcc_init_libintl ();
/* Initialize the diagnostics reporting machinery, so option parsing