diff options
Diffstat (limited to 'gcc')
| -rw-r--r-- | gcc/ChangeLog | 4 | ||||
| -rw-r--r-- | gcc/c-lex.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2d42c7c..8370ef9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 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. 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); |
