Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/dist/gcc/config/aarch64 fix build on netbs...



details:   https://anonhg.NetBSD.org/src/rev/87a0f0d243a2
branches:  trunk
changeset: 933029:87a0f0d243a2
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon May 18 21:28:10 2020 +0000

description:
fix build on netbsd-9 hosts.

diffstat:

 external/gpl3/gcc/dist/gcc/config/aarch64/driver-aarch64.c |  6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diffs (48 lines):

diff -r ed686ad212d5 -r 87a0f0d243a2 external/gpl3/gcc/dist/gcc/config/aarch64/driver-aarch64.c
--- a/external/gpl3/gcc/dist/gcc/config/aarch64/driver-aarch64.c        Mon May 18 21:19:34 2020 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/aarch64/driver-aarch64.c        Mon May 18 21:28:10 2020 +0000
@@ -365,6 +365,7 @@
            {
              exts += "asimd ";
            }
+#ifdef ID_AA64ISAR0_EL1_RDM
           if (__SHIFTOUT(id.ac_aa64isar0, ID_AA64ISAR0_EL1_RDM) == ID_AA64ISAR0_EL1_RDM_SQRDML)
            {
              exts += "asimdrdm ";
@@ -377,6 +378,7 @@
            {
              exts += "asimdfml ";
            }
+#endif
           if (__SHIFTOUT(id.ac_aa64isar0, ID_AA64ISAR0_EL1_AES) == ID_AA64ISAR0_EL1_AES_AES)
            {
              exts += "aes ";
@@ -389,10 +391,12 @@
            {
              exts += "crc32 ";
            }
+#ifdef ID_AA64ISAR0_EL1_ATOMIC
           if (__SHIFTOUT(id.ac_aa64isar0, ID_AA64ISAR0_EL1_ATOMIC) == ID_AA64ISAR0_EL1_ATOMIC_SWP)
            {
              exts += "atomics ";
            }
+#endif
           if ((__SHIFTOUT(id.ac_aa64isar0, ID_AA64ISAR0_EL1_SHA1) & ID_AA64ISAR0_EL1_SHA1_SHA1CPMHSU) != 0)
            {
              exts += "sha1 ";
@@ -401,6 +405,7 @@
            {
              exts += "sha2 ";
            }
+#ifdef ID_AA64ISAR0_EL1_SHA2_SHA512HSU
           if ((__SHIFTOUT(id.ac_aa64isar0, ID_AA64ISAR0_EL1_SHA2) & ID_AA64ISAR0_EL1_SHA2_SHA512HSU) != 0)
            {
              exts += "sha512 ";
@@ -425,6 +430,7 @@
            {
              exts += "lrcpc ";
            }
+#endif
 
          strncpy(buf, exts.c_str(), sizeof(buf) - 1);
          buf[sizeof(buf) - 1] = '\0';



Home | Main Index | Thread Index | Old Index