* c-lex.c (readescape): Warn about 'x', but do not reject it.
authorAlexandre Oliva <oliva@lsd.ic.unicamp.br>
Wed, 16 Feb 2000 08:40:32 +0000 (08:40 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Wed, 16 Feb 2000 08:40:32 +0000 (08:40 +0000)
From-SVN: r32005

gcc/ChangeLog
gcc/c-lex.c

index 62d5ec7678808f94fa1a28fdbf06ba9232c8b3ce..67e454bed512ebdfe7435cf1cea5228b22e0ec71 100644 (file)
@@ -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
index 1d271b0e954e6f248ecb85f5ed06f51e5ad774e1..7456659ea0203fd0be4f62d88f0716e8cf78d6d3 100644 (file)
@@ -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.  */
        ;