]> gcc.gnu.org Git - gcc.git/commit
ada: Incorrect constant folding in postcondition involving 'Old
authorJustin Squirek <squirek@adacore.com>
Thu, 9 Feb 2023 17:00:46 +0000 (17:00 +0000)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 22 May 2023 08:46:12 +0000 (10:46 +0200)
commit6675552bacd41361d8d445438cb6d978d44c1402
tree3e33ec4bc86ee4683ad8512202d4d72adcdde028
parenteb16654e44775841f82488311fcf08ef521756d9
ada: Incorrect constant folding in postcondition involving 'Old

The following patch fixes an issue in the compiler whereby certain flavors of
access comparisons may be incorrectly constant-folded out of contract
expressions - notably in postcondition expressions featuring a reference to
'Old.

gcc/ada/

* checks.adb (Install_Null_Excluding_Check): Avoid non-null
optimizations when assertions are enabled.
gcc/ada/checks.adb
This page took 0.060313 seconds and 6 git commands to generate.