Commit 87ed883e by Huacai Chen Committed by Richard Sandiford

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
parent 6ddb6288
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
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment