aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/debug.adb
diff options
context:
space:
mode:
authorYannick Moy <moy@adacore.com>2023-03-23 15:45:09 +0100
committerMarc Poulhiès <poulhies@adacore.com>2023-05-26 09:29:19 +0200
commit81c360bd932b38e91b82b7a98f88e61c764b56ff (patch)
tree8c9d560ec899b5b2590168b0bac628e267cf062d /gcc/ada/debug.adb
parent53d45e492ebb88a84d6440e7db089d5f78610274 (diff)
downloadgcc-81c360bd932b38e91b82b7a98f88e61c764b56ff.zip
gcc-81c360bd932b38e91b82b7a98f88e61c764b56ff.tar.gz
gcc-81c360bd932b38e91b82b7a98f88e61c764b56ff.tar.bz2
ada: Complete contracts of SPARK units
SPARK units in the standard library (both Ada and GNAT ones) should have subprograms correctly annotated with contracts, so that a SPARK subprogram should always return (not fail or raise an exception) under the conditions expressed in its precondition, unless it is a procedure annotated with Might_Not_Return. gcc/ada/ * libgnat/a-calend.ads: Mark with SPARK_Mode=>Off the functions which may raise Time_Error. * libgnat/a-ngelfu.ads: Mark with SPARK_Mode=>Off the functions which may lead to an overflow (which is not the case of Tan with one parameter for example, or Arctanh or Arcoth, despite their mathematical range covering the reals). * libgnat/a-textio.ads: Remove Always_Return annotation from functions, as this is now compulsory for functions to always return in SPARK. * libgnat/i-cstrin.ads: Add Might_Not_Return annotation to Update procedure which may not return.
Diffstat (limited to 'gcc/ada/debug.adb')
0 files changed, 0 insertions, 0 deletions