diff options
author | Stan Shebs <stanshebs@google.com> | 2018-01-23 08:28:31 -0800 |
---|---|---|
committer | Stan Shebs <stanshebs@google.com> | 2019-04-30 17:34:38 -0700 |
commit | c3f0d624e9bb869968e447e12ba75caf1a0726c9 (patch) | |
tree | ca69a27fa15fb05726d19894de8bca7a699eca88 | |
parent | 96ba247eed270757b8ddd2ccb06760393af3e6ea (diff) | |
download | glibc-c3f0d624e9bb869968e447e12ba75caf1a0726c9.zip glibc-c3f0d624e9bb869968e447e12ba75caf1a0726c9.tar.gz glibc-c3f0d624e9bb869968e447e12ba75caf1a0726c9.tar.bz2 |
Make zero volatile to defeat constant-folding of 0.0/0.0
-rw-r--r-- | sysdeps/ieee754/k_standard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/ieee754/k_standard.c b/sysdeps/ieee754/k_standard.c index 826f197..0bcae6e 100644 --- a/sysdeps/ieee754/k_standard.c +++ b/sysdeps/ieee754/k_standard.c @@ -38,7 +38,7 @@ static char rcsid[] = "$NetBSD: k_standard.c,v 1.6 1995/05/10 20:46:35 jtc Exp $ # if 0 static const double zero = 0.0; /* used as const */ # else -static double zero = 0.0; /* used as const */ +volatile static double zero = 0.0; /* used as const */ # endif /* |