https://gcc.gnu.org/g:7d6fc99bd0d963e3acfae6987db9ba4c3ca869ac
commit r16-4958-g7d6fc99bd0d963e3acfae6987db9ba4c3ca869ac Author: Alfie Richards <[email protected]> Date: Mon Oct 27 17:49:07 2025 +0000 AArch64: Fix mv-cmpu-features.C test that fails on older glibc's [PR 122405] Adds a definition of HWCAP_ATOMICS and HWCAP2_RNG in the test file for the case that the glibc is old enough to not include them. PR target/122405 gcc/testsuite/ChangeLog: * g++.target/aarch64/mv-cpu-features.C: Add HWCAP_ATOMICS and HWCAP2_RNG defines. Diff: --- gcc/testsuite/g++.target/aarch64/mv-cpu-features.C | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gcc/testsuite/g++.target/aarch64/mv-cpu-features.C b/gcc/testsuite/g++.target/aarch64/mv-cpu-features.C index ad6accd4c630..56e29163524d 100644 --- a/gcc/testsuite/g++.target/aarch64/mv-cpu-features.C +++ b/gcc/testsuite/g++.target/aarch64/mv-cpu-features.C @@ -41,6 +41,14 @@ int impl () #define _IFUNC_ARG_HWCAP (1ULL << 62) #endif +#ifndef HWCAP_ATOMICS +#define HWCAP_ATOMICS (1 << 8) +#endif + +#ifndef HWCAP2_RNG +#define HWCAP2_RNG (1 << 16) +#endif + extern "C" void __init_cpu_features_resolver (unsigned long hwcap, const ifunc_arg_t *arg);
