diff options
Diffstat (limited to 'gcc/c-lex.c')
| -rw-r--r-- | gcc/c-lex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c index ea824ec..3867ef2 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); |
