diff mbox series

[COMMITTED,24/38] ada: Display message on reproducer generation failure

Message ID 20241104161116.1431659-24-poulhies@adacore.com
State New
Headers show
Series [COMMITTED,01/38] ada: Fix asymmetry in resolution of unary intrinsic operators | expand

Commit Message

Marc Poulhiès Nov. 4, 2024, 4:10 p.m. UTC
From: Ronan Desplanques <desplanques@adacore.com>

Before this patch, nothing was reported to the user when an exception
was raised during generation of a minimal reproducer. This patch fixes
this.

gcc/ada/ChangeLog:

	* comperr.adb (Compiler_Abort): Display message in exception handler.

Tested on x86_64-pc-linux-gnu, committed on master.

---
 gcc/ada/comperr.adb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/gcc/ada/comperr.adb b/gcc/ada/comperr.adb
index e411ddb5d29..726f0ccadb0 100644
--- a/gcc/ada/comperr.adb
+++ b/gcc/ada/comperr.adb
@@ -409,7 +409,8 @@  package body Comperr is
                Generate_Minimal_Reproducer;
             end if;
          exception
-            when others => null;
+            when others =>
+               Write_Str ("failed to generate reproducer");
          end;
 
          Write_Eol;