aboutsummaryrefslogtreecommitdiff
path: root/gcc/c
diff options
context:
space:
mode:
authorYannick Moy <moy@adacore.com>2022-04-19 14:37:58 +0200
committerPierre-Marie de Rodat <derodat@adacore.com>2022-05-30 08:29:01 +0000
commit5b7630f2f266346173eb2172a9a96e925010afc5 (patch)
tree889dbf90ca325cfd1b07387625fb105d5a5fd02c /gcc/c
parent55c19dda8c6c5fd40f1ec7ea4dd2f0c12d8c309f (diff)
downloadgcc-5b7630f2f266346173eb2172a9a96e925010afc5.zip
gcc-5b7630f2f266346173eb2172a9a96e925010afc5.tar.gz
gcc-5b7630f2f266346173eb2172a9a96e925010afc5.tar.bz2
[Ada] PR ada/105303 Fix use of Assertion_Policy in internal generics unit
The internal unit System.Generic_Array_Operations defines only generic subprograms. Thus, pragma Assertion_Policy inside the spec has no effect, as each instantiation is only subject to the assertion policy at the program point of the instantiation. Remove this confusing pragma, and add the pragma inside each generic body making use of additional assertions or ghost code, so that running time of instantiations is not impacted by assertions meant for formal verification. gcc/ada/ PR ada/105303 * libgnat/s-gearop.adb: Add pragma Assertion_Policy in generic bodies making use of additional assertions or ghost code. * libgnat/s-gearop.ads: Remove confusing Assertion_Policy.
Diffstat (limited to 'gcc/c')
0 files changed, 0 insertions, 0 deletions