* c-lex.c (init_c_lex): Canonicalize "-" filename to "".

From-SVN: r47461
This commit is contained in:
Jakub Jelinek 2001-11-29 23:40:55 +01:00 committed by Jakub Jelinek
parent b2ace8a47b
commit c65fd410e9
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2001-11-29 Jakub Jelinek <jakub@redhat.com>
* c-lex.c (init_c_lex): Canonicalize "-" filename to "".
2001-11-29 Jakub Jelinek <jakub@redhat.com>
* gcc.c (ASM_DEBUG_SPEC): Only check HAVE_AS_G*_DEBUG_FLAG

View File

@ -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);