Date: Fri, 5 Nov 2021 13:13:23 -0700 From: Steve Kargl <sgk@troutmask.apl.washington.edu> To: freebsd-current@freebsd.org, lwhsu@freebsd.org, dim@freebsd.org Subject: WHY? commit ac76bc1145dd7f4476e5d982ce8f355f71015713 Message-ID: <20211105201323.GA26765@troutmask.apl.washington.edu>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20211105201323.GA26765>
