aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-lex.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2001-11-29 23:40:55 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2001-11-29 23:40:55 +0100
commitc65fd410e91c87f9dcc07a6486478dd5c0508aee (patch)
treebfc2210bfe809594f6690e9f9c9a1b6e5b77ab38 /gcc/c-lex.c
parentb2ace8a47bdaeab851edd3239691b4bd9a6e94ce (diff)
downloadgcc-c65fd410e91c87f9dcc07a6486478dd5c0508aee.zip
gcc-c65fd410e91c87f9dcc07a6486478dd5c0508aee.tar.gz
gcc-c65fd410e91c87f9dcc07a6486478dd5c0508aee.tar.bz2
* c-lex.c (init_c_lex): Canonicalize "-" filename to "".
From-SVN: r47461
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r--gcc/c-lex.c2
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);