From 0d44e251d9b1392076953e533329450d79e5ecad Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 22 Feb 2018 16:37:26 +0100 Subject: ada/sp04: Fix test failure due to compiler opti The SPTEST.RUN_COUNT must be volatile since it is changed outside of the procedure scope by the thread switch extension. --- testsuites/ada/sptests/sp04/sptest.ads | 1 + 1 file changed, 1 insertion(+) diff --git a/testsuites/ada/sptests/sp04/sptest.ads b/testsuites/ada/sptests/sp04/sptest.ads index 36f1202118..7033eb5006 100644 --- a/testsuites/ada/sptests/sp04/sptest.ads +++ b/testsuites/ada/sptests/sp04/sptest.ads @@ -45,6 +45,7 @@ package SPTEST is -- RUN_COUNT : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.UNSIGNED32; + pragma Volatile (RUN_COUNT); -- -- INIT -- cgit v1.2.3