[patch, gprofng, riscv64] Fix build on Linux riscv64

Sergio Had vital.had@gmail.com
Mon Sep 23 19:48:35 GMT 2024


If it is supported by all compilers, yes. (I have no idea if it is.)
On Sep 24, 2024 at 00:26 +0800, Andreas Schwab <schwab@suse.de>, wrote:
> On Sep 23 2024, Sergey Fedorov wrote:
>
> > @@ -46,8 +50,11 @@ __get_cpuid (unsigned int op ATTRIBUTE_UNUSED, unsigned int *eax,
> > #include <sched.h>
> > #include <sys/syscall.h>
> > #include <unistd.h>
> > +// This header does not exist in earlier versions.
> > +#if defined(__linux__) && LINUX_VERSION_CODE >= KERNEL_VERSION(6,4,0)
> > #include <asm/hwprobe.h>
> > #endif
> > +#endif
>
> This could also use __has_include.
>
> --
> Andreas Schwab, SUSE Labs, schwab@suse.de
> GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
> "And now for something completely different."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/binutils/attachments/20240924/5b0ea599/attachment-0001.htm>


More information about the Binutils mailing list