diff mbox series

libgcc/aarch64: also provide AT_HWCAP2 fallback

Message ID 0a07df75-c4b9-4521-b465-bac6d056c8d5@suse.com
State New
Headers show
Series libgcc/aarch64: also provide AT_HWCAP2 fallback | expand

Commit Message

Jan Beulich May 29, 2024, 9:51 a.m. UTC
Much like AT_HWCAP is already provided in case the platform headers
don't have the value (yet).

libgcc/

	* config/aarch64/cpuinfo.c: Provide AT_HWCAP2.
---
Observed as build failure with 14.1.0, so may want backporting there.

Comments

Richard Sandiford June 5, 2024, 10:37 a.m. UTC | #1
Jan Beulich <jbeulich@suse.com> writes:
> Much like AT_HWCAP is already provided in case the platform headers
> don't have the value (yet).
>
> libgcc/
>
> 	* config/aarch64/cpuinfo.c: Provide AT_HWCAP2.

OK for trunk and GCC 14.

Thanks,
Richard

> ---
> Observed as build failure with 14.1.0, so may want backporting there.
>
> --- a/libgcc/config/aarch64/cpuinfo.c
> +++ b/libgcc/config/aarch64/cpuinfo.c
> @@ -146,6 +146,9 @@ struct {
>  #define HWCAP_PACG (1UL << 31)
>  #endif
>  
> +#ifndef AT_HWCAP2
> +#define AT_HWCAP2 26
> +#endif
>  #ifndef HWCAP2_DCPODP
>  #define HWCAP2_DCPODP (1 << 0)
>  #endif
diff mbox series

Patch

--- a/libgcc/config/aarch64/cpuinfo.c
+++ b/libgcc/config/aarch64/cpuinfo.c
@@ -146,6 +146,9 @@  struct {
 #define HWCAP_PACG (1UL << 31)
 #endif
 
+#ifndef AT_HWCAP2
+#define AT_HWCAP2 26
+#endif
 #ifndef HWCAP2_DCPODP
 #define HWCAP2_DCPODP (1 << 0)
 #endif