qYieldCpu(): use Q_CC_GNU_ONLY

Simplifies the expression.

Change-Id: Ia0524d10126bf77980711c83b45fc974d9f0ae1f
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Marc Mutz 2023-07-05 08:57:31 +02:00
parent a9dccebf1e
commit a4125f421b

View File

@ -407,8 +407,7 @@ static inline void qYieldCpu()
#elif defined(Q_PROCESSOR_ARM) && Q_PROCESSOR_ARM >= 7 /* yield was added in ARMv7 */
# if __has_builtin(__builtin_arm_yield) /* e.g. Clang */
__builtin_arm_yield();
# elif defined(Q_OS_INTEGRITY) || \
(defined(Q_CC_GNU) && !defined(Q_CC_CLANG))
# elif defined(Q_OS_INTEGRITY) || defined(Q_CC_GNU_ONLY)
/*
- Integrity is missing the arm_acle.h header
- GCC doesn't have __yield() in arm_acle.h