WHY? commit ac76bc1145dd7f4476e5d982ce8f355f71015713
- Reply: Dimitry Andric : "Re: WHY? commit ac76bc1145dd7f4476e5d982ce8f355f71015713"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 05 Nov 2021 20:13:23 UTC
Why was this committed?
commit ac76bc1145dd7f4476e5d982ce8f355f71015713
Author: Dimitry Andric <dim@FreeBSD.org>
Date: Tue Feb 9 22:06:51 2021 +0100
Fix lib/msun's ctrig_test/test_inf_inputs test case with clang >= 10
This sprinkles a few strategic volatiles in an attempt to defeat clang's
optimization interfering with the expected floating-point exception
flags.
There is nothing, and I mean, nothing strategic about "sprinkling"
volatile onto the declaration of "float x, y, h;" These variables
are referenced in all floating pointing operations in the file,
which means that there are needless reloading of x, y, and h
from memory.
--
Steve