From c65fd410e91c87f9dcc07a6486478dd5c0508aee Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 29 Nov 2001 23:40:55 +0100 Subject: [PATCH] * c-lex.c (init_c_lex): Canonicalize "-" filename to "". From-SVN: r47461 --- gcc/ChangeLog | 4 ++++ gcc/c-lex.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2d42c7c7e18..8370ef9025d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2001-11-29 Jakub Jelinek + + * c-lex.c (init_c_lex): Canonicalize "-" filename to "". + 2001-11-29 Jakub Jelinek * gcc.c (ASM_DEBUG_SPEC): Only check HAVE_AS_G*_DEBUG_FLAG diff --git a/gcc/c-lex.c b/gcc/c-lex.c index ea824ec239e..3867ef2069e 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -142,7 +142,7 @@ init_c_lex (filename) /* Start it at 0. */ lineno = 0; - if (filename == NULL) + if (filename == NULL || !strcmp (filename, "-")) filename = ""; return cpp_read_main_file (parse_in, filename, ident_hash); -- 2.30.2