diff options
Diffstat (limited to 'gcc/cpperror.c')
-rw-r--r-- | gcc/cpperror.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cpperror.c b/gcc/cpperror.c index 0ba2561..0e8afc4 100644 --- a/gcc/cpperror.c +++ b/gcc/cpperror.c @@ -440,5 +440,7 @@ cpp_notice_from_errno (pfile, name) cpp_reader *pfile; const char *name; { + if (name[0] == '\0') + name = "stdout"; cpp_notice (pfile, "%s: %s", name, xstrerror (errno)); } |