[Ada] Skip postponed validation checks with compilation errors
authorPiotr Trojanek <trojanek@adacore.com>
Wed, 16 Feb 2022 12:01:36 +0000 (13:01 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 12 May 2022 12:38:42 +0000 (12:38 +0000)
commitc4471a4a3cd0923582f88249feb9fb1a2e37c32a
tree69dff45223f4e15b08fa9e874a4110dabee57f72
parent605095af6f7952717a39a4feecde1e2cca4bed58
[Ada] Skip postponed validation checks with compilation errors

If there are compilation errors then gigi doesn't backannotate the AST
with sizes, alignment, etc. The postponed compilation validation checks
can then easily crash or give spurious errors. We now just skip them.

gcc/ada/

* gnat1drv.adb (Gnat1drv): Skip postponed checks when there are
errors.
gcc/ada/gnat1drv.adb