Commit c65fd410 by Jakub Jelinek Committed by Jakub Jelinek

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

From-SVN: r47461
parent b2ace8a4
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
macros for the supported debugging types.
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment