From c3f0d624e9bb869968e447e12ba75caf1a0726c9 Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Tue, 23 Jan 2018 08:28:31 -0800 Subject: Make zero volatile to defeat constant-folding of 0.0/0.0 --- sysdeps/ieee754/k_standard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/ieee754/k_standard.c b/sysdeps/ieee754/k_standard.c index 826f19785a..0bcae6e863 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 /* -- cgit v1.2.1