From 62fce11f4521012120b124433bfa5a76c81917ee Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Fri, 6 Apr 2001 21:43:53 +0000 Subject: [PATCH] * cpplib.c (cpp_push_buffer): Give stdin buffers the name . From-SVN: r41166 --- gcc/ChangeLog | 4 ++++ gcc/cpplib.c | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) 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; -- 2.30.2