ada: Fix -fdiagnostics-format=json not printing all messages
commit3404e481d09d49311ef74a8de15d8a72ed240cce
authorGhjuvan Lacambre <lacambre@adacore.com>
Fri, 26 May 2023 11:26:21 +0000 (26 13:26 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 20 Jun 2023 07:30:49 +0000 (20 09:30 +0200)
treef184393216374442a759498e78e6bbc2eef5a1b6
parent298a486c58180adddd99c81217b394f7e4d4bd35
ada: Fix -fdiagnostics-format=json not printing all messages

The previous version of this code stopped printing messages as soon as
it encountered a deleted or continuation message. This was wrong,
continuation and deleted messages can be followed by live messages that
do need to be printed.

gcc/ada/

* errout.adb (Output_Messages): Fix loop termination condition.
gcc/ada/errout.adb