]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix pragma Warnings and -gnatD interaction
authorRonan Desplanques <desplanques@adacore.com>
Thu, 15 Feb 2024 14:02:10 +0000 (15:02 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 14 May 2024 08:19:58 +0000 (10:19 +0200)
commit13d8374188eea21d56603135b6af254599c9e4b3
tree4b1c6f750f1859ed8dca24cabf4cad84bc0d3d36
parent151d1533f2b5d1742ab08f99fcc67affae9587f5
ada: Fix pragma Warnings and -gnatD interaction

A recent change broke pragma Warnings when -gnatD is enabled in some
cases. This patch fixes this by caching more slocs at times when it's
known that they haven't been modified by -gnatD.

gcc/ada/

* errout.adb (Validate_Specific_Warnings): Adapt to record
definition change.
* erroutc.adb (Set_Specific_Warning_On, Set_Specific_Warning_Off,
Warning_Specifically_Suppressed): Likewise.
* erroutc.ads: Change record definition.
gcc/ada/errout.adb
gcc/ada/erroutc.adb
gcc/ada/erroutc.ads