[Ada] Remove warnings-as-errors about constraints error in dead code
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 9 Dec 2021 16:57:16 +0000 (17:57 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 11 Jan 2022 13:24:45 +0000 (13:24 +0000)
commite306ed45b58e7210021a8a74d453ee1b2a75ed30
tree3f8d2ebc2022ae9794443531d0d389da79712317
parent45742b619285f53db63153ad094d12dc98504e4b
[Ada] Remove warnings-as-errors about constraints error in dead code

gcc/ada/

* erroutc.ads, erroutc.adb (Is_Runtime_Raise): Global flag to
connect status of initial messages and their continuation; we
already have several flags like this.
(Error_Msg_Object): Add field Warn_Runtime_Raise to connect
error reporting (when problematic code is found) and removal
(when problematic code is determined to be dead).
* errout.adb (Error_Msg_Internal): Handle new field when
recording a continuation message; propagate status from
continuation to the preceding messages.
(To_Be_Removed): For dead code remove both simple warnings and
warnings about constraint errors that have been escalated to
hard errors.
(Set_Msg_Text): Recognize warnings about constraint errors that
are escalated to hard errors.
* errutil.adb (Error_Msg): Handle added field when recording a
new message.
gcc/ada/errout.adb
gcc/ada/erroutc.adb
gcc/ada/erroutc.ads
gcc/ada/errutil.adb