[cfe-commits] [PATCH 1/3] Add Freescale cpu names

Tobias von Koch tobias.von.koch at gmail.com
Tue Aug 28 09:53:57 PDT 2012


Dear all,

This is part of a sequence of three (trivial) patches to allow Clang to 
be used as a drop-in replacement for GCC with the Freescale SDK.
Support for Freescale processors has just been added to the PowerPC backend.

Please review and commit if this is OK - I don't have commit access.

Thanks!
Tobias

Description of patch:

Add e500mc and e5500 to cpu names recognized by -mcpu=... for PPC.

-------------- next part --------------
--- a/lib/Basic/Targets.cpp
+++ b/lib/Basic/Targets.cpp
@@ -641,6 +641,8 @@ public:
       .Case("970", true)
       .Case("g5", true)
       .Case("a2", true)
+      .Case("e500mc", true)
+      .Case("e5500", true)
       .Case("pwr6", true)
       .Case("pwr7", true)
       .Case("ppc", true)
--- a/lib/Driver/Tools.cpp
+++ b/lib/Driver/Tools.cpp
@@ -978,6 +978,8 @@ static std::string getPPCTargetCPU(const ArgList &Args) {
       .Case("970", "970")
       .Case("G5", "g5")
       .Case("a2", "a2")
+      .Case("e500mc", "e500mc")
+      .Case("e5500", "e5500")
       .Case("power6", "pwr6")
       .Case("power7", "pwr7")
       .Case("powerpc", "ppc")



More information about the cfe-commits mailing list