Fix error recovery in toplev::finalize.
authorMartin Liska <mliska@suse.cz>
Mon, 28 Feb 2022 10:58:01 +0000 (11:58 +0100)
committerMartin Liska <mliska@suse.cz>
Mon, 28 Feb 2022 12:58:41 +0000 (13:58 +0100)
commit1060d06b4df8836135ed15d020afbd3637dc625b
tree84d525726195996f7a1309527c83c5356ca00001
parent800b3191c7506259a7452bde26b0b5ca3810c0cd
Fix error recovery in toplev::finalize.

PR ipa/104648

gcc/ChangeLog:

* main.cc (main): Use flag_checking instead of CHECKING_P
and run toplev::finalize only if there is not error seen.

gcc/testsuite/ChangeLog:

* g++.dg/pr104648.C: New test.
gcc/main.cc
gcc/testsuite/g++.dg/pr104648.C [new file with mode: 0644]