diff options
author | rms <rms@138bc75d-0d04-0410-961f-82ee72b054a4> | 1992-11-06 08:08:51 +0000 |
---|---|---|
committer | rms <rms@138bc75d-0d04-0410-961f-82ee72b054a4> | 1992-11-06 08:08:51 +0000 |
commit | c5067d45e318ab4a4ea9a20ea42c859ba7baf80a (patch) | |
tree | fac2abbf794468b650d2973a97ecead26d497582 /gcc/c-lex.c | |
parent | bc86d98c254e0bc900fc109796b93c5abefb13f9 (diff) | |
download | ppe42-gcc-c5067d45e318ab4a4ea9a20ea42c859ba7baf80a.tar.gz ppe42-gcc-c5067d45e318ab4a4ea9a20ea42c859ba7baf80a.zip |
(readescape): Support \e like \E. Warn only if -pedantic.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2697 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r-- | gcc/c-lex.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c index 924a22c3fdb..4c773e118d8 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -905,8 +905,10 @@ readescape (ignore_ptr) #endif return TARGET_VT; + case 'e': case 'E': - pedwarn ("non-ANSI-standard escape sequence, `\\E'"); + if (pedantic) + pedwarn ("non-ANSI-standard escape sequence, `\\%c'", c); return 033; case '?': |