aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-11-06 08:08:51 +0000
committerRichard Stallman <rms@gnu.org>1992-11-06 08:08:51 +0000
commitdad112cafdac7d9c611cae84a3de781d46b735b8 (patch)
treefac2abbf794468b650d2973a97ecead26d497582 /gcc
parentcee850230f38b79a66b416b3f530a6524638e9ac (diff)
downloadgcc-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.c4
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 '?':