public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-1034] ada: Don't pretty-print DEL within expression images
@ 2023-05-22  8:48 Marc Poulhi?s
  0 siblings, 0 replies; only message in thread
From: Marc Poulhi?s @ 2023-05-22  8:48 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:c9de07cd00c814c7147c24825b9bbe4fba18519a

commit r14-1034-gc9de07cd00c814c7147c24825b9bbe4fba18519a
Author: Piotr Trojanek <trojanek@adacore.com>
Date:   Mon Jan 30 11:28:55 2023 +0100

    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.

Diff:
---
 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 8cc92445080..526b70f7996 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));

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-05-22  8:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-22  8:48 [gcc r14-1034] ada: Don't pretty-print DEL within expression images Marc Poulhi?s

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).