From 90f504df6f22c1a28831875b79783e0718330528 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Sun, 15 Dec 2024 16:37:57 +0100 Subject: [PATCH] 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) : Do not output the final "end". --- 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 => -- 2.47.2