public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-4667] [Ada] Fix deleted Compile_Time warnings causing crashes
@ 2021-10-25 15:07 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2021-10-25 15:07 UTC (permalink / raw)
  To: gcc-cvs

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

commit r12-4667-gea5f7f3962a0781cfd36016776adf79986929bfa
Author: Ghjuvan Lacambre <lacambre@adacore.com>
Date:   Mon Oct 18 15:34:42 2021 +0200

    [Ada] Fix deleted Compile_Time warnings causing crashes
    
    gcc/ada/
    
            * erroutc.adb (Count_Compile_Time_Pragma_Warnings): Don't count
            deleted warnings.

Diff:
---
 gcc/ada/erroutc.adb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gcc/ada/erroutc.adb b/gcc/ada/erroutc.adb
index 9e67b929cb7..8d362de6657 100644
--- a/gcc/ada/erroutc.adb
+++ b/gcc/ada/erroutc.adb
@@ -277,7 +277,9 @@ package body Erroutc is
    begin
       for J in 1 .. Errors.Last loop
          begin
-            if Errors.Table (J).Warn and Errors.Table (J).Compile_Time_Pragma
+            if Errors.Table (J).Warn
+               and then Errors.Table (J).Compile_Time_Pragma
+               and then not Errors.Table (J).Deleted
             then
                Result := Result + 1;
             end if;


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

only message in thread, other threads:[~2021-10-25 15:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-25 15:07 [gcc r12-4667] [Ada] Fix deleted Compile_Time warnings causing crashes 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).