From 4082292ada81523489887b54ec9795cdb1f19481 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Wed, 16 Feb 2000 08:40:32 +0000 Subject: [PATCH] * c-lex.c (readescape): Warn about 'x', but do not reject it. From-SVN: r32005 --- gcc/ChangeLog | 4 ++++ gcc/c-lex.c | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 62d5ec76788..67e454bed51 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2000-02-16 Alexandre Oliva + + * c-lex.c (readescape): Warn about '\x', but do not reject it. + 2000-02-15 Jonathan Larmour * gcc.c (default_compilers): Add new __GNUC_PATCHLEVEL__ define diff --git a/gcc/c-lex.c b/gcc/c-lex.c index 1d271b0e954..7456659ea02 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. */ ; -- 2.30.2