aboutsummaryrefslogtreecommitdiff
path: root/gcc/cexp.y
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-02-02 22:14:40 +0000
committerRichard Stallman <rms@gnu.org>1993-02-02 22:14:40 +0000
commitb670485b6a73554456655d6881ddd17ba017d51c (patch)
treee0eb3833dfc6cdd0b3c5bcc86236725618f3e3d0 /gcc/cexp.y
parent585ec9386cc539f04cf45ffcb6146baa75f4f620 (diff)
downloadgcc-b670485b6a73554456655d6881ddd17ba017d51c.zip
gcc-b670485b6a73554456655d6881ddd17ba017d51c.tar.gz
gcc-b670485b6a73554456655d6881ddd17ba017d51c.tar.bz2
(parse_escape): Support \E and \e like cc1:
they mean \033, and they generate a warning if pedantic. From-SVN: r3410
Diffstat (limited to 'gcc/cexp.y')
-rw-r--r--gcc/cexp.y3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cexp.y b/gcc/cexp.y
index 5e1c635..e2608e6 100644
--- a/gcc/cexp.y
+++ b/gcc/cexp.y
@@ -748,6 +748,9 @@ parse_escape (string_ptr)
case 'b':
return TARGET_BS;
case 'e':
+ case 'E':
+ if (pedantic)
+ pedwarn ("non-ANSI-standard escape sequence, `\\%c'", c);
return 033;
case 'f':
return TARGET_FF;