ada: Fix scope of semantic style_check pragmas
commit95b8d1b5b5507200724445a98d6c54e0f5bef7c5
authorViljar Indus <indus@adacore.com>
Fri, 6 Oct 2023 10:12:29 +0000 (6 13:12 +0300)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 7 Nov 2023 09:15:01 +0000 (7 10:15 +0100)
tree2371760749275a3df684a3dc2690894be0bdb180
parent5a2d82e04d394945087a1a3cdcaf2ed68be8a61b
ada: Fix scope of semantic style_check pragmas

Restore the original state of Style_Check pragmas before analyzing
each compilation unit to avoid Style_Check pragmas from unit affecting
the style checks of a different unit.

gcc/ada/

* sem_ch10.adb: (Analyze_Compilation_Unit): Restore the orignal
state of style check pragmas at the end of the analysis.
gcc/ada/sem_ch10.adb