From c9de07cd00c814c7147c24825b9bbe4fba18519a Mon Sep 17 00:00:00 2001 From: Piotr Trojanek Date: Mon, 30 Jan 2023 11:28:55 +0100 Subject: [PATCH] ada: Don't pretty-print DEL within expression images When printing expression images, e.g. for GNATprove counterexamples, it seems better to print DEL not directly but with its numeric code. gcc/ada/ * pprint.adb (Expr_Name): Exclude DEL from printable range. --- gcc/ada/pprint.adb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/ada/pprint.adb b/gcc/ada/pprint.adb index 8cc924450802..526b70f79962 100644 --- a/gcc/ada/pprint.adb +++ b/gcc/ada/pprint.adb @@ -195,7 +195,7 @@ package body Pprint is declare Char : constant Int := UI_To_Int (Char_Literal_Value (Expr)); begin - if Char in 32 .. 127 then + if Char in 32 .. 126 then return "'" & Character'Val (Char) & "'"; else UI_Image (Char_Literal_Value (Expr)); -- 2.47.2