mips.py: replace -mips* with new -march=mips*
authorMatt Turner <mattst88@gmail.com>
Sat, 3 Sep 2011 01:19:19 +0000 (21:19 -0400)
committerMatt Turner <mattst88@gmail.com>
Sat, 3 Sep 2011 01:19:50 +0000 (21:19 -0400)
modules/catalyst/arch/mips.py

index 9296069acd227f879d3a01b42c58c702076858b4..46fafa8ebcd611a226ad5613afe159a25473996b 100644 (file)
@@ -33,7 +33,7 @@ class arch_mips1(generic_mips):
        "Builder class for MIPS I [Big-endian]"
        def __init__(self,myspec):
                generic_mips.__init__(self,myspec)
-               self.settings["CFLAGS"]="-O2 -mips1 -mabi=32 -pipe"
+               self.settings["CFLAGS"]="-O2 -march=mips1 -mabi=32 -pipe"
 
 class arch_mips32(generic_mips):
        "Builder class for MIPS 32 [Big-endian]"
@@ -51,49 +51,49 @@ class arch_mips3(generic_mips):
        "Builder class for MIPS III [Big-endian]"
        def __init__(self,myspec):
                generic_mips.__init__(self,myspec)
-               self.settings["CFLAGS"]="-O2 -mips3 -mabi=32 -mfix-r4000 -mfix-r4400 -pipe"
+               self.settings["CFLAGS"]="-O2 -march=mips3 -mabi=32 -mfix-r4000 -mfix-r4400 -pipe"
 
 class arch_mips3_n32(generic_mips64):
        "Builder class for MIPS III [Big-endian N32]"
        def __init__(self,myspec):
                generic_mips64.__init__(self,myspec)
-               self.settings["CFLAGS"]="-O2 -mips3 -mabi=n32 -mfix-r4000 -mfix-r4400 -pipe"
+               self.settings["CFLAGS"]="-O2 -march=mips3 -mabi=n32 -mfix-r4000 -mfix-r4400 -pipe"
 
 class arch_mips3_n64(generic_mips64):
        "Builder class for MIPS III [Big-endian N64]"
        def __init__(self,myspec):
                generic_mips64.__init__(self,myspec)
-               self.settings["CFLAGS"]="-O2 -mips3 -mabi=64 -mfix-r4000 -mfix-r4400 -pipe"
+               self.settings["CFLAGS"]="-O2 -march=mips3 -mabi=64 -mfix-r4000 -mfix-r4400 -pipe"
 
 class arch_mips3_multilib(generic_mips64):
        "Builder class for MIPS III [Big-endian multilib]"
        def __init__(self,myspec):
                generic_mips64.__init__(self,myspec)
-               self.settings["CFLAGS"]="-O2 -mips3 -mfix-r4000 -mfix-r4400 -pipe"
+               self.settings["CFLAGS"]="-O2 -march=mips3 -mfix-r4000 -mfix-r4400 -pipe"
 
 class arch_mips4(generic_mips):
        "Builder class for MIPS IV [Big-endian]"
        def __init__(self,myspec):
                generic_mips.__init__(self,myspec)
-               self.settings["CFLAGS"]="-O2 -mips4 -mabi=32 -pipe"
+               self.settings["CFLAGS"]="-O2 -march=mips4 -mabi=32 -pipe"
 
 class arch_mips4_n32(generic_mips64):
        "Builder class for MIPS IV [Big-endian N32]"
        def __init__(self,myspec):
                generic_mips64.__init__(self,myspec)
-               self.settings["CFLAGS"]="-O2 -mips4 -mabi=n32 -pipe"
+               self.settings["CFLAGS"]="-O2 -march=mips4 -mabi=n32 -pipe"
 
 class arch_mips4_n64(generic_mips64):
        "Builder class for MIPS IV [Big-endian N64]"
        def __init__(self,myspec):
                generic_mips64.__init__(self,myspec)
-               self.settings["CFLAGS"]="-O2 -mips4 -mabi=64 -pipe"
+               self.settings["CFLAGS"]="-O2 -march=mips4 -mabi=64 -pipe"
 
 class arch_mips4_multilib(generic_mips64):
        "Builder class for MIPS IV [Big-endian multilib]"
        def __init__(self,myspec):
                generic_mips64.__init__(self,myspec)
-               self.settings["CFLAGS"]="-O2 -mips4 -pipe"
+               self.settings["CFLAGS"]="-O2 -march=mips4 -pipe"
 
 class arch_mips4_r10k(generic_mips):
        "Builder class for MIPS IV R10k [Big-endian]"
@@ -171,7 +171,7 @@ class arch_mipsel1(generic_mipsel):
        "Builder class for MIPS I [Little-endian]"
        def __init__(self,myspec):
                generic_mipsel.__init__(self,myspec)
-               self.settings["CFLAGS"]="-O2 -mips1 -mabi=32 -pipe"
+               self.settings["CFLAGS"]="-O2 -march=mips1 -mabi=32 -pipe"
 
 class arch_mips32el(generic_mipsel):
        "Builder class for MIPS 32 [Little-endian]"
@@ -189,25 +189,25 @@ class arch_mipsel3(generic_mipsel):
        "Builder class for MIPS III [Little-endian]"
        def __init__(self,myspec):
                generic_mipsel.__init__(self,myspec)
-               self.settings["CFLAGS"]="-O2 -mips3 -mabi=32 -Wa,-mfix-loongson2f-nop -pipe"
+               self.settings["CFLAGS"]="-O2 -march=mips3 -mabi=32 -Wa,-mfix-loongson2f-nop -pipe"
 
 class arch_mipsel3_n32(generic_mips64el):
        "Builder class for MIPS III [Little-endian N32]"
        def __init__(self,myspec):
                generic_mips64el.__init__(self,myspec)
-               self.settings["CFLAGS"]="-O2 -mips3 -mabi=n32 -Wa,-mfix-loongson2f-nop -pipe"
+               self.settings["CFLAGS"]="-O2 -march=mips3 -mabi=n32 -Wa,-mfix-loongson2f-nop -pipe"
 
 class arch_mipsel3_n64(generic_mips64el):
        "Builder class for MIPS III [Little-endian N64]"
        def __init__(self,myspec):
                generic_mips64el.__init__(self,myspec)
-               self.settings["CFLAGS"]="-O2 -mips3 -mabi=64 -Wa,-mfix-loongson2f-nop -pipe"
+               self.settings["CFLAGS"]="-O2 -march=mips3 -mabi=64 -Wa,-mfix-loongson2f-nop -pipe"
 
 class arch_mipsel3_multilib(generic_mips64el):
        "Builder class for MIPS III [Little-endian multilib]"
        def __init__(self,myspec):
                generic_mips64el.__init__(self,myspec)
-               self.settings["CFLAGS"]="-O2 -mips3 -Wa,-mfix-loongson2f-nop -pipe"
+               self.settings["CFLAGS"]="-O2 -march=mips3 -Wa,-mfix-loongson2f-nop -pipe"
 
 class arch_loongson2e(generic_mipsel):
        "Builder class for Loongson 2E [Little-endian]"
@@ -237,25 +237,25 @@ class arch_mipsel4(generic_mipsel):
        "Builder class for MIPS IV [Little-endian]"
        def __init__(self,myspec):
                generic_mipsel.__init__(self,myspec)
-               self.settings["CFLAGS"]="-O2 -mips4 -mabi=32 -pipe"
+               self.settings["CFLAGS"]="-O2 -march=mips4 -mabi=32 -pipe"
 
 class arch_mipsel4_n32(generic_mips64el):
        "Builder class for MIPS IV [Little-endian N32]"
        def __init__(self,myspec):
                generic_mips64el.__init__(self,myspec)
-               self.settings["CFLAGS"]="-O2 -mips4 -mabi=n32 -pipe"
+               self.settings["CFLAGS"]="-O2 -march=mips4 -mabi=n32 -pipe"
 
 class arch_mipsel4_n64(generic_mips64el):
        "Builder class for MIPS IV [Little-endian N64]"
        def __init__(self,myspec):
                generic_mips64el.__init__(self,myspec)
-               self.settings["CFLAGS"]="-O2 -mips4 -mabi=64 -pipe"
+               self.settings["CFLAGS"]="-O2 -march=mips4 -mabi=64 -pipe"
 
 class arch_mipsel4_multilib(generic_mips64el):
        "Builder class for MIPS IV [Little-endian multilib]"
        def __init__(self,myspec):
                generic_mips64el.__init__(self,myspec)
-               self.settings["CFLAGS"]="-O2 -mips4 -pipe"
+               self.settings["CFLAGS"]="-O2 -march=mips4 -pipe"
 
 class arch_mips64el(generic_mipsel):
        "Builder class for MIPS 64 [Little-endian]"