public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-2209] [Ada] Add source file name to gnat bug box
@ 2021-07-09 12:39 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2021-07-09 12:39 UTC (permalink / raw)
  To: gcc-cvs

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

commit r12-2209-gfbc72d0b4ac841fdf7d3ea15851f3be39361a86c
Author: Bob Duff <duff@adacore.com>
Date:   Mon Jun 14 09:37:24 2021 -0400

    [Ada] Add source file name to gnat bug box
    
    gcc/ada/
    
            * comperr.adb (Compiler_Abort): Print source file name.

Diff:
---
 gcc/ada/comperr.adb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gcc/ada/comperr.adb b/gcc/ada/comperr.adb
index 300b523213a..064fae062b8 100644
--- a/gcc/ada/comperr.adb
+++ b/gcc/ada/comperr.adb
@@ -244,12 +244,17 @@ package body Comperr is
             end if;
 
             End_Line;
+
          else
             Write_Str ("| Error detected at ");
             Write_Location (Sloc (Current_Error_Node));
             End_Line;
          end if;
 
+         Write_Str ("| Compiling ");
+         Write_Str (Get_First_Main_File_Name);
+         End_Line;
+
          --  There are two cases now. If the file gnat_bug.box exists,
          --  we use the contents of this file at this point.


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

only message in thread, other threads:[~2021-07-09 12:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-09 12:39 [gcc r12-2209] [Ada] Add source file name to gnat bug box Pierre-Marie de Rodat

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).