diff options
author | Alexandre Oliva <oliva@lsd.ic.unicamp.br> | 2000-02-16 08:40:32 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2000-02-16 08:40:32 +0000 |
commit | 4082292ada81523489887b54ec9795cdb1f19481 (patch) | |
tree | ee4d059e84c7ed87252a50231f601727f91398a2 /gcc | |
parent | 3ea8083fc9062ef5c6f2e97b563ce2e8b3f7a8c6 (diff) | |
download | gcc-4082292ada81523489887b54ec9795cdb1f19481.zip gcc-4082292ada81523489887b54ec9795cdb1f19481.tar.gz gcc-4082292ada81523489887b54ec9795cdb1f19481.tar.bz2 |
* c-lex.c (readescape): Warn about 'x', but do not reject it.
From-SVN: r32005
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/c-lex.c | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 62d5ec7..67e454b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2000-02-16 Alexandre Oliva <oliva@lsd.ic.unicamp.br> + + * c-lex.c (readescape): Warn about '\x', but do not reject it. + 2000-02-15 Jonathan Larmour <jlarmour@redhat.co.uk> * gcc.c (default_compilers): Add new __GNUC_PATCHLEVEL__ define diff --git a/gcc/c-lex.c b/gcc/c-lex.c index 1d271b0..7456659 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -942,7 +942,10 @@ readescape (ignore_ptr) nonnull = 1; } if (! nonnull) - error ("\\x used with no following hex digits"); + { + warning ("\\x used with no following hex digits"); + return 'x'; + } else if (count == 0) /* Digits are all 0's. Ok. */ ; |