diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | math/test-tgmath.c | 12 |
2 files changed, 12 insertions, 6 deletions
@@ -1,3 +1,9 @@ +2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com> + + * math/test-tgmath.c (count_double, count_float, + count_ldouble, count_cdouble, count_cfloat, + count_cldouble): Use volatile int. + 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org> * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform] diff --git a/math/test-tgmath.c b/math/test-tgmath.c index 6d8e7fd..2b0787c 100644 --- a/math/test-tgmath.c +++ b/math/test-tgmath.c @@ -45,12 +45,12 @@ complex float fz; complex double dz; complex long double lz; -int count_double; -int count_float; -int count_ldouble; -int count_cdouble; -int count_cfloat; -int count_cldouble; +volatile int count_double; +volatile int count_float; +volatile int count_ldouble; +volatile int count_cdouble; +volatile int count_cfloat; +volatile int count_cldouble; #define NCALLS 134 #define NCALLS_INT 4 |