From: Neil Booth Date: Fri, 6 Apr 2001 21:43:53 +0000 (+0000) Subject: * cpplib.c (cpp_push_buffer): Give stdin buffers the name . X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=62fce11f4521012120b124433bfa5a76c81917ee;p=gcc.git * cpplib.c (cpp_push_buffer): Give stdin buffers the name . From-SVN: r41166 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bb179c6733a..760778157fd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2001-04-06 Neil Booth + + * cpplib.c (cpp_push_buffer): Give stdin buffers the name . + 2001-04-06 Neil Booth * configure.in: Add check for lstat. diff --git a/gcc/cpplib.c b/gcc/cpplib.c index 56ffbb17bc7..be04d415925 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -1812,7 +1812,10 @@ cpp_push_buffer (pfile, buffer, len, type, filename) pfile->lexer_pos.output_line = 1; } - new->nominal_fname = filename; + if (*filename == '\0') + new->nominal_fname = _(""); + else + new->nominal_fname = filename; new->type = type; new->prev = pfile->buffer; new->pfile = pfile;