[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.
This commit is contained in:
Piotr Trojanek 2022-02-16 13:01:36 +01:00 committed by Pierre-Marie de Rodat
parent 605095af6f
commit c4471a4a3c

View file

@ -1256,7 +1256,6 @@ begin
if Compilation_Errors then
Treepr.Tree_Dump;
Post_Compilation_Validation_Checks;
Errout.Finalize (Last_Call => True);
Errout.Output_Messages;
Namet.Finalize;