From: Richard Stallman Date: Sun, 4 Oct 1992 04:58:30 +0000 (+0000) Subject: (readescape): No warning if digits in \x are all 0's. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=be63d912063987c1f714c37b7dfd76ff06133960;p=gcc.git (readescape): No warning if digits in \x are all 0's. From-SVN: r2318 --- diff --git a/gcc/c-lex.c b/gcc/c-lex.c index 0e07781b4bb..bfbc92027f4 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -845,6 +845,9 @@ readescape (ignore_ptr) } if (! nonnull) error ("\\x used with no following hex digits"); + else if (count == 0) + /* Digits are all 0's. Ok. */ + ; else if ((count - 1) * 4 >= TYPE_PRECISION (integer_type_node) || (count > 1 && ((1 << (TYPE_PRECISION (integer_type_node) - (count - 1) * 4))