On 07.05.20 09:25, Kyrylo Tkachov wrote:
Hi Andreas,
-Original Message-
From: Gcc-patches On Behalf Of
Andreas Tobler
Sent: 06 May 2020 21:17
To: GCC Patches
Subject: [PATCH] libgcc: aarch64: Get hwcap for FreeBSD
Hi all,
Since FreeBSD 12, FreeBSD has a sys/auxv.h header too but it
Hi Andreas,
> -Original Message-
> From: Gcc-patches On Behalf Of
> Andreas Tobler
> Sent: 06 May 2020 21:17
> To: GCC Patches
> Subject: [PATCH] libgcc: aarch64: Get hwcap for FreeBSD
>
> Hi all,
>
> Since FreeBSD 12, FreeBSD has a sys/auxv.h header to
On Wed, 6 May 2020, Andreas Tobler wrote:
> +#ifndef __FreeBSD__
>unsigned long hwcap = __getauxval (AT_HWCAP);
> +#else
> + unsigned long hwcap;
Would it make sense to change the logic to
#ifdef __FreeBSD__
..
#else
..
#endif
? I believe that makes it easier to potentially exten
Hi all,
Since FreeBSD 12, FreeBSD has a sys/auxv.h header too but it doesn't
provide the getauxval function. Instead it offers the elf_aux_info
function which provides a similar functionality.
This patch gets the hwcap for FreeBSD.
Is this ok for trunk?
TIA,
Andreas
+2020-05-05 Andreas Tobler