From a5a12a83f92d2e7a74f17acdc32c6642efd159cd Mon Sep 17 00:00:00 2001 From: David Daney Date: Sat, 12 Jul 2008 16:23:00 +0000 Subject: [PATCH] driver-native.c (host_detect_local_cpu): Handle sb1 and r5000 cpus. * config/mips/driver-native.c (host_detect_local_cpu): Handle sb1 and r5000 cpus. From-SVN: r137747 --- gcc/ChangeLog | 5 +++++ gcc/config/mips/driver-native.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 895d6834cd1..0f9971d1c4f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-07-12 David Daney + + * config/mips/driver-native.c (host_detect_local_cpu): Handle + sb1 and r5000 cpus. + 2008-07-12 Richard Sandiford * doc/md.texi: Document the MIPS "v" constraint. diff --git a/gcc/config/mips/driver-native.c b/gcc/config/mips/driver-native.c index cc00389aa61..24831c654c8 100644 --- a/gcc/config/mips/driver-native.c +++ b/gcc/config/mips/driver-native.c @@ -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; } -- 2.30.2