diff options
author | Richard Stallman <rms@gnu.org> | 1992-11-06 08:08:51 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-11-06 08:08:51 +0000 |
commit | dad112cafdac7d9c611cae84a3de781d46b735b8 (patch) | |
tree | fac2abbf794468b650d2973a97ecead26d497582 /gcc | |
parent | cee850230f38b79a66b416b3f530a6524638e9ac (diff) | |
download | gcc-dad112cafdac7d9c611cae84a3de781d46b735b8.zip gcc-dad112cafdac7d9c611cae84a3de781d46b735b8.tar.gz gcc-dad112cafdac7d9c611cae84a3de781d46b735b8.tar.bz2 |
(readescape): Support \e like \E. Warn only if -pedantic.
From-SVN: r2697
Diffstat (limited to 'gcc')
-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 924a22c..4c773e1 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 '?': |