Hi Ben,

Thank you very much for your quick response!

On 2020/10/21 7:55, Ben Elliston wrote:
Hi Rin

On Tue, Oct 20, 2020 at 10:13:50PM +0000, Rin Okuyama wrote:

Recently, NetBSD added working kernel and userland for aarch64 in
big-endian mode, aarch64eb in our naming convention.

+           aarch64eb) machine=aarch64_be-unknown ;;

In no other GNU triplet is an underscore used before "be". There are
two digits preceding the "be", so it's quite readable without an
underscore. An underscore is also not used in your uname -p output. I
propose to instead make the change:

   +         aarch64eb) machine=aarch64be-unknown ;;

OK?

We chose aarch64_be, since Linux already uses it:

---
% cat -n config.guess
...
   922      aarch64_be:Linux:*:*)
   923          UNAME_MACHINE=aarch64_be
   924          echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
   925          exit ;;
...
---

You can see aarch64_be in gcc/config.gcc in GCC's master branch:

https://github.com/gcc-mirror/gcc/blob/master/gcc/config.gcc#L1096

Therefore, it will break at least GCC if underscore is removed.

Thanks,
rin

Reply via email to