public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] libgcc/aarch64: also provide AT_HWCAP2 fallback
@ 2024-05-29  9:51 Jan Beulich
  2024-06-05 10:37 ` Richard Sandiford
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Beulich @ 2024-05-29  9:51 UTC (permalink / raw)
  To: gcc-patches
  Cc: Richard Earnshaw, Richard Sandiford, Marcus Shawcroft, Kyrylo Tkachov

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.

--- 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] libgcc/aarch64: also provide AT_HWCAP2 fallback
  2024-05-29  9:51 [PATCH] libgcc/aarch64: also provide AT_HWCAP2 fallback Jan Beulich
@ 2024-06-05 10:37 ` Richard Sandiford
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Sandiford @ 2024-06-05 10:37 UTC (permalink / raw)
  To: Jan Beulich
  Cc: gcc-patches, Richard Earnshaw, Marcus Shawcroft, Kyrylo Tkachov

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-06-05 10:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-29  9:51 [PATCH] libgcc/aarch64: also provide AT_HWCAP2 fallback Jan Beulich
2024-06-05 10:37 ` Richard Sandiford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).