projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2ace8a
)
* c-lex.c (init_c_lex): Canonicalize "-" filename to "".
author
Jakub Jelinek
<jakub@redhat.com>
Thu, 29 Nov 2001 22:40:55 +0000
(23:40 +0100)
committer
Jakub Jelinek
<jakub@gcc.gnu.org>
Thu, 29 Nov 2001 22:40:55 +0000
(23:40 +0100)
From-SVN: r47461
gcc/ChangeLog
patch
|
blob
|
history
gcc/c-lex.c
patch
|
blob
|
history
diff --git
a/gcc/ChangeLog
b/gcc/ChangeLog
index 2d42c7c7e18c3207fad711cb3adafd79e693f199..8370ef9025d6af7da2b2c0a365e9dc95f3afee5a 100644
(file)
--- a/
gcc/ChangeLog
+++ b/
gcc/ChangeLog
@@
-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
diff --git
a/gcc/c-lex.c
b/gcc/c-lex.c
index ea824ec239e288ab0ac23af894c87c4f9b5f91d5..3867ef2069ee4c1a8a68364ff94a182193e6906a 100644
(file)
--- 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);