From 2668a71e316ec131a5b255eddebbdbb291c7c0ea Mon Sep 17 00:00:00 2001 From: bde Date: Thu, 8 Sep 1994 11:19:43 +0000 Subject: Declare huge and tiny as volatile so that gcc doesn't evaluate huge*huge and tiny*tiny at compile time. The evaluations are supposed to be done at run time to set the IEEE exception flags. Many other source files in libm and msun are missing this fix. Fixing them is not urgent since the default IEEE exception masks don't allow use of the overflow exception flag. --- lib/libm/common_source/pow.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/libm') diff --git a/lib/libm/common_source/pow.c b/lib/libm/common_source/pow.c index 5121f30..cb4fc50 100644 --- a/lib/libm/common_source/pow.c +++ b/lib/libm/common_source/pow.c @@ -174,7 +174,8 @@ pow_P(x, y) double x, y; #endif { struct Double s, t, __log__D(); - double __exp__D(), huge = 1e300, tiny = 1e-300; + double __exp__D(); + volatile double huge = 1e300, tiny = 1e-300; if (x == zero) if (y > zero) -- cgit v1.1