]> xenbits.xensource.com Git - unikraft/libs/intel-intrinsics.git/commit
Add compatibility with GCC <= 11.2
authorAndrei Tatar <andrei@unikraft.io>
Mon, 14 Aug 2023 18:19:45 +0000 (20:19 +0200)
committerUnikraft <monkey@unikraft.io>
Tue, 15 Aug 2023 18:35:41 +0000 (18:35 +0000)
commita125e4044be64906a9782d0960517cfa19cc2e7b
treea34416c033d15076ad132b3dffded0b3a2b31f63
parent23be8263cd7498e3bf0d4bee81347ab911286487
Add compatibility with GCC <= 11.2

GCC versions prior to 11.3 do not support the "mwait" target attribute.
This change adds compiler version checks to the pragmas using this
attribute, enabling builds with GCC 11.1 & 11.2.

Signed-off-by: Andrei Tatar <andrei@unikraft.io>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Reviewed-by: Maria Sfiraiala <maria.sfiraiala@gmail.com>
Reviewed-by: Radu Nichita <radunichita99@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #4
include-gcc/mwaitintrin.h