[Ada] Strengthen Locked flag
authorBob Duff <duff@adacore.com>
Wed, 14 Aug 2019 09:52:06 +0000 (09:52 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Wed, 14 Aug 2019 09:52:06 +0000 (09:52 +0000)
commitae3a2b54d1a19f9ca4941645f71dddf675fbd19c
treea554b76fa2c23e4a5845dcbc2356eb24d1d1e554
parent27af94e7b9a4702ea93348f917fd2ad82adb6853
[Ada] Strengthen Locked flag

This patch strengthens the Locked flag, by Asserting that it is False on
operations that might cause reallocation.

No change in behavior (except in the presence of compiler bugs), so no
test.

2019-08-14  Bob Duff  <duff@adacore.com>

gcc/ada/

* table.adb: Assert that the table is not locked when increasing
Last, even if it doesn't cause reallocation.  In other words,
assert that on operations that MIGHT cause reallocation.
* table.ads: Fix comment accordingly.

From-SVN: r274463
gcc/ada/ChangeLog
gcc/ada/table.adb
gcc/ada/table.ads