stress-ng: backport immintrin.h header detection for GCC 13
authorAlexandru Ardelean <alex@shruggie.ro>
Sat, 14 Oct 2023 06:03:52 +0000 (09:03 +0300)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Mon, 23 Oct 2023 08:01:20 +0000 (10:01 +0200)
commit1350b323b596c0703be78c99ee8c3cbad7fc1248
tree247efb7b29fc19df62f39cd378318b07e8cb5101
parent6d52a247601681f6a17e87f101fc2e611a6ea82f
stress-ng: backport immintrin.h header detection for GCC 13

Backport patch from:
   https://github.com/ColinIanKing/stress-ng/commit/cd84c46ce780242879e8aaa7d698b9cd87996dbd

With GCC 12 there is no issue.
With GCC 13, there is a compilation issue on x86_64.
Fixes https://github.com/openwrt/packages/issues/22373

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
(cherry picked from commit 98bcb56eb3de7ae1ffc1ed66287168750a72a059)
utils/stress-ng/Makefile
utils/stress-ng/patches/002-core-stress-Add-musl-gcc-detection-and-HAVE_COMPILER.patch [new file with mode: 0644]
utils/stress-ng/test.sh [new file with mode: 0644]