* c-lex.c (init_c_lex): Canonicalize "-" filename to "".
From-SVN: r47461
This commit is contained in:
parent
b2ace8a47b
commit
c65fd410e9
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue