driver-native.c (host_detect_local_cpu): Handle sb1 and r5000 cpus.
authorDavid Daney <ddaney@avtrex.com>
Sat, 12 Jul 2008 16:23:00 +0000 (16:23 +0000)
committerDavid Daney <daney@gcc.gnu.org>
Sat, 12 Jul 2008 16:23:00 +0000 (16:23 +0000)
* config/mips/driver-native.c (host_detect_local_cpu): Handle
sb1 and r5000 cpus.

From-SVN: r137747

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

index 895d6834cd1eabe5c5a1bd425f6c4d7aa0665dff..0f9971d1c4f28533ad27530bf2f4218bd3bc30cc 100644 (file)
@@ -1,3 +1,8 @@
+2008-07-12  David Daney  <ddaney@avtrex.com>
+
+       * config/mips/driver-native.c (host_detect_local_cpu): Handle
+       sb1 and r5000 cpus.
+
 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
 
        * doc/md.texi: Document the MIPS "v" constraint.
index cc00389aa61895a442f04198a1eaf4ec29a33f05..24831c654c8774f840f58b5f7b1e980e3cde6bfb 100644 (file)
@@ -63,6 +63,10 @@ host_detect_local_cpu (int argc, const char **argv)
        else if (strstr (buf, "Godson2 V0.3") != NULL
                 || strstr (buf, "Loongson-2 V0.3") != NULL)
          cpu = "loongson2f";
+       else if (strstr (buf, "SiByte SB1") != NULL)
+         cpu = "sb1";
+       else if (strstr (buf, "R5000") != NULL)
+         cpu = "r5000";
        break;
       }