diff options
author | Huacai Chen <chenhc@lemote.com> | 2014-01-10 08:51:40 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2014-01-10 08:51:40 +0000 |
commit | 87ed883e4a811f0cf17c767603a3c66108544b52 (patch) | |
tree | 5a1aa7042c14571909c282b2588b850392dbf474 | |
parent | 6ddb62884fb6c35cabf02f665cd29376746e983e (diff) | |
download | gcc-87ed883e4a811f0cf17c767603a3c66108544b52.zip gcc-87ed883e4a811f0cf17c767603a3c66108544b52.tar.gz gcc-87ed883e4a811f0cf17c767603a3c66108544b52.tar.bz2 |
driver-native.c (host_detect_local_cpu): Handle new kernel strings for Loongson-2E/2F/3A.
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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/mips/driver-native.c | 10 |
2 files changed, 13 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ad1f55e..6a18852 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/mips/driver-native.c b/gcc/config/mips/driver-native.c index 3f1a8d0..4c2a658 100644 --- a/gcc/config/mips/driver-native.c +++ b/gcc/config/mips/driver-native.c @@ -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) |