summaryrefslogtreecommitdiff
path: root/gcc/gen-protos.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gen-protos.c')
-rw-r--r--gcc/gen-protos.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/gen-protos.c b/gcc/gen-protos.c
index b8fa31bfe1c..d60a2098d06 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");