From: Sudakshina Das Date: Mon, 2 Dec 2019 17:21:35 +0000 (+0000) Subject: [Committed][Arm][testsuite] Fix failure for arm-fp16-ops-*.C X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d6098f64819e729026df0ebf0e18ac5de713e36e;p=gcc.git [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 * g++.dg/ext/arm-fp16/arm-fp16-ops.h: Remove volatile keyword. From-SVN: r278905 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index bc991e229e9..64f035f63d4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2019-12-02 Sudakshina Das + + * g++.dg/ext/arm-fp16/arm-fp16-ops.h: Remove volatile keyword. + 2019-12-02 Martin Liska * 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 320494ee71c..a92e081dae0 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) {