From be63d912063987c1f714c37b7dfd76ff06133960 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Sun, 4 Oct 1992 04:58:30 +0000 Subject: [PATCH] (readescape): No warning if digits in \x are all 0's. From-SVN: r2318 --- gcc/c-lex.c | 3 +++ 1 file changed, 3 insertions(+) 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)) -- 2.30.2