aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSudakshina Das <sudi.das@arm.com>2019-12-02 17:21:35 +0000
committerSudakshina Das <sudi@gcc.gnu.org>2019-12-02 17:21:35 +0000
commitd6098f64819e729026df0ebf0e18ac5de713e36e (patch)
tree29f72fbec5f9db8d62a407040f3cb1c94c018646 /gcc
parentb789efeae8c0620b83f25e4a0757c4871e02ab5f (diff)
downloadgcc-d6098f64819e729026df0ebf0e18ac5de713e36e.zip
gcc-d6098f64819e729026df0ebf0e18ac5de713e36e.tar.gz
gcc-d6098f64819e729026df0ebf0e18ac5de713e36e.tar.bz2
[Committed][Arm][testsuite] Fix failure for arm-fp16-ops-*.C
Since r275022 which deprecates some uses of volatile, all arm-fp16-ops-*.C were failing with warnings of deprecated valatile uses on arm-none-eabi and arm-none-linux-gnueabihf. This patch removes the volatile declarations from the header. Since none of the tests are run with any high optimization levels, this should change should not prevent the real function of the tests. gcc/testsuite/ChangeLog: 2019-12-02 Sudakshina Das <sudi.das@arm.com> * g++.dg/ext/arm-fp16/arm-fp16-ops.h: Remove volatile keyword. From-SVN: r278905
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/g++.dg/ext/arm-fp16/arm-fp16-ops.h20
2 files changed, 14 insertions, 10 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index bc991e2..64f035f 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2019-12-02 Sudakshina Das <sudi.das@arm.com>
+
+ * g++.dg/ext/arm-fp16/arm-fp16-ops.h: Remove volatile keyword.
+
2019-12-02 Martin Liska <mliska@suse.cz>
* g++.dg/lto/odr-7_0.C: New test.
diff --git a/gcc/testsuite/g++.dg/ext/arm-fp16/arm-fp16-ops.h b/gcc/testsuite/g++.dg/ext/arm-fp16/arm-fp16-ops.h
index 320494e..a92e081 100644
--- a/gcc/testsuite/g++.dg/ext/arm-fp16/arm-fp16-ops.h
+++ b/gcc/testsuite/g++.dg/ext/arm-fp16/arm-fp16-ops.h
@@ -7,16 +7,16 @@
#define TEST(e) assert (e)
#define TESTNOT(e) assert (!(e))
-volatile __fp16 h0 = 0.0;
-volatile __fp16 h1 = 1.0;
-volatile __fp16 h42 = 42.0;
-volatile __fp16 hm2 = -2.0;
-volatile __fp16 temp;
-
-volatile float f0 = 0.0;
-volatile float f1 = 1.0;
-volatile float f42 = 42.0;
-volatile float fm2 = -2.0;
+__fp16 h0 = 0.0;
+__fp16 h1 = 1.0;
+__fp16 h42 = 42.0;
+__fp16 hm2 = -2.0;
+__fp16 temp;
+
+float f0 = 0.0;
+float f1 = 1.0;
+float f42 = 42.0;
+float fm2 = -2.0;
int main (void)
{