]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
stress-ng: Robustify test-float test
authorKhem Raj <raj.khem@gmail.com>
Mon, 23 Jan 2023 17:41:56 +0000 (09:41 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 24 Jan 2023 22:06:48 +0000 (22:06 +0000)
commite9c4017982a5556580d24e72e74c4d5a879ff11c
tree7d7d22e013fb516c8276888f42a0e4bf9e0e0d6f
parentd5d787b44b102e3a69e28948326e39f83fc1d98d
stress-ng: Robustify test-float test

Latest compilers are able to figure out that whole code can be optmized
away when CFLAGS has -O2 or more agressive optimizations. In order to
ensure the test is doing the right thing, make the variables global so
compiler is not able to optimize it away.

This fixes build on x86 especially when using clang compiler

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/stress-ng/stress-ng/0001-test-float-Make-variables-global.patch [new file with mode: 0644]
meta/recipes-extended/stress-ng/stress-ng_0.15.02.bb