aboutsummaryrefslogtreecommitdiff
path: root/gcc/dumpfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/dumpfile.c')
-rw-r--r--gcc/dumpfile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/dumpfile.c b/gcc/dumpfile.c
index 75e2a7d..0f16d4f 100644
--- a/gcc/dumpfile.c
+++ b/gcc/dumpfile.c
@@ -323,7 +323,8 @@ dump_open (const char *filename, bool trunc)
if (strcmp ("stderr", filename) == 0)
return stderr;
- if (strcmp ("stdout", filename) == 0)
+ if (strcmp ("stdout", filename) == 0
+ || strcmp ("-", filename) == 0)
return stdout;
FILE *stream = fopen (filename, trunc ? "w" : "a");