https://gcc.gnu.org/g:90f504df6f22c1a28831875b79783e0718330528

commit r15-6621-g90f504df6f22c1a28831875b79783e0718330528
Author: Eric Botcazou <ebotca...@adacore.com>
Date:   Sun Dec 15 16:37:57 2024 +0100

    ada: Use the syntax of Ada 2012 if-expression in -gnatR3 output
    
    This uses the syntax of Ada 2012 if-expression in the output produced by the
    -gnatR3 switch for dynamic expressions.
    
    gcc/ada/ChangeLog:
    
            * repinfo.adb (List_GCC_Expression.Print_Expr) <Cond_Expr>: Do not
            output the final "end".

Diff:
---
 gcc/ada/repinfo.adb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/ada/repinfo.adb b/gcc/ada/repinfo.adb
index c08a232a3ab0..969aa63c6980 100644
--- a/gcc/ada/repinfo.adb
+++ b/gcc/ada/repinfo.adb
@@ -683,7 +683,7 @@ package body Repinfo is
                         Print_Expr (Node.Op2);
                         Write_Str (" else ");
                         Print_Expr (Node.Op3);
-                        Write_Str (" end)");
+                        Write_Str (")");
                      end if;
 
                   when Plus_Expr =>

Reply via email to