Re: [PATCH] sparc/build: Make all compiler flags also clang-compatible
From: John Paul Adrian Glaubitz
Date: Sun Jun 23 2024 - 12:53:59 EST
Hi Koakuma,
On Thu, 2024-06-20 at 22:56 +0700, Koakuma via B4 Relay wrote:
> - More trivial is to change `-mv8plus` -> `-mcpu=v9`.
> This should be safe too since the kernel seems to require a V9
> processor to run anyway, so I'm changing the flag to one that is
> portable between GCC and clang.
I just looked up what the exact difference between V8plus and 32-bit
V9 is and it turns out it's not exactly the same [1].
V8plus does not use VIS instructions and also has a different ELF machine
type, namely EM_SPARC32PLUS instead of EM_SPARCV9 if I understand correctly.
So, we should make sure that the above change will not affect the ELF machine
type.
Adrian
> [1] https://stackoverflow.com/questions/23506538/what-is-em-sparc32plus-for
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913