]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Add Global contracts to Ada.Numerics.Generic_Elementary_Functions
authorJoffrey Huguet <huguet@adacore.com>
Mon, 15 Jan 2024 16:20:47 +0000 (17:20 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 7 May 2024 07:55:56 +0000 (09:55 +0200)
commit6e0494ecf00540b996014e3bc6db6a2d6529c6d7
treec8578fffe73590ae3a8475d3517e3ae24530d9d3
parentfabb69655b1eb4a58c2978a80d7a6fd5d67684fc
ada: Add Global contracts to Ada.Numerics.Generic_Elementary_Functions

GNATprove raised warnings about unspecified Global contracts when
using functions from an instance of
Ada.Numerics.Generic_Elementary_Functions. This patch adds null Global
contracts to all subprograms.

gcc/ada/

* libgnat/a-ngelfu.ads (Sqrt): Add Global contracts.
(Log): Likewise.
(Exp): Likewise.
("**"): Likewise.
(Sin): Likewise.
(Cos): Likewise.
(Tan): Likewise.
(Cot): Likewise.
(Arcsin): Likewise.
(Arccos): Likewise.
(Arctan): Likewise.
(Arccot): Likewise.
(Sinh): Likewise.
(Cosh): Likewise.
(Tanh): Likewise.
(Coth): Likewise.
(Arcsinh): Likewise.
(Arccosh): Likewise.
(Arctanh): Likewise.
(Arccoth): Likewise.
gcc/ada/libgnat/a-ngelfu.ads