]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
driver-native.c (host_detect_local_cpu): Handle new kernel strings for Loongson-2E...
authorHuacai Chen <chenhc@lemote.com>
Fri, 10 Jan 2014 08:51:40 +0000 (08:51 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 10 Jan 2014 08:51:40 +0000 (08:51 +0000)
gcc/
2014-01-10  Huacai Chen  <chenhc@lemote.com>

* config/mips/driver-native.c (host_detect_local_cpu): Handle new
kernel strings for Loongson-2E/2F/3A.

From-SVN: r206512

gcc/ChangeLog
gcc/config/mips/driver-native.c

index ad1f55e10dac172cce4682e9cfec53d72195ec68..6a18852cd347829ce7fb1c1239aeecc971d3bd8f 100644 (file)
@@ -1,3 +1,8 @@
+2014-01-10  Huacai Chen  <chenhc@lemote.com>
+
+       * config/mips/driver-native.c (host_detect_local_cpu): Handle new
+       kernel strings for Loongson-2E/2F/3A.
+
 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
 
        PR middle-end/59670
index 3f1a8d0151d20d4f288dfbde4eb1b48d3a098455..4c2a658c77a7a2cf778e196af858619b7de69bea 100644 (file)
@@ -58,11 +58,17 @@ host_detect_local_cpu (int argc, const char **argv)
     if (strncmp (buf, "cpu model", sizeof ("cpu model") - 1) == 0)
       {
        if (strstr (buf, "Godson2 V0.2") != NULL
-           || strstr (buf, "Loongson-2 V0.2") != NULL)
+           || strstr (buf, "Loongson-2 V0.2") != NULL
+           || strstr (buf, "Loongson-2E") != NULL)
          cpu = "loongson2e";
        else if (strstr (buf, "Godson2 V0.3") != NULL
-                || strstr (buf, "Loongson-2 V0.3") != NULL)
+                || strstr (buf, "Loongson-2 V0.3") != NULL
+                || strstr (buf, "Loongson-2F") != NULL)
          cpu = "loongson2f";
+       else if (strstr (buf, "Godson3 V0.5") != NULL
+                || strstr (buf, "Loongson-3 V0.5") != NULL
+                || strstr (buf, "Loongson-3A") != NULL)
+         cpu = "loongson3a";
        else if (strstr (buf, "SiByte SB1") != NULL)
          cpu = "sb1";
        else if (strstr (buf, "R5000") != NULL)