[Ada] Annotate Ada.Synchronous_Barriers with SPARK_Mode => Off

Pierre-Marie de Rodat derodat@adacore.com
Tue Jun 9 08:10:06 GMT 2020


Synchronous barriers are currently not supported by GNATprove (i.e. it
doesn't recognize that they are initialized by synchronous). They are
specifically detected and rejected as not-in-SPARK, but it is more
elegant to annotate the Ada.Synchronous runtime library unit with
SPARK_Mode => Off.

Compilation is not affected by this annotation.

Tested on x86_64-pc-linux-gnu, committed on trunk

2020-06-09  Piotr Trojanek  <trojanek@adacore.com>

gcc/ada/

	* libgnarl/a-synbar.ads, libgnarl/a-synbar.adb,
	libgnarl/a-synbar__posix.ads, libgnarl/a-synbar__posix.adb
	(Ada.Synchronous_Barriers): Annotate with SPARK_Mode => Off.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 1551 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200609/9991a29c/attachment-0001.bin>


More information about the Gcc-patches mailing list