Description: MIPS preprocessing fixup
 .
 cbmc (5.9-6) unstable; urgency=low
 .
   * Fix mips 32-bit cross configuration
Author: Michael Tautschnig <mt@debian.org>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2018-07-05

--- cbmc-5.9.orig/src/ansi-c/c_preprocess.cpp
+++ cbmc-5.9/src/ansi-c/c_preprocess.cpp
@@ -557,7 +557,7 @@ bool c_preprocess_gcc_clang(
     else if(arch == "x32")
       command += " -mx32";
     else if(has_prefix(id2string(arch), "mips"))
-      command += " -mips32";
+      command += " -mabi=32";
     else if(arch == "powerpc" || arch == "ppc64" || arch == "ppc64le")
       command += " -m32";
     else if(arch == "s390" || arch == "s390x")
@@ -570,7 +570,7 @@ bool c_preprocess_gcc_clang(
     if(arch == "i386" || arch == "x86_64" || arch == "x32")
       command += " -m64";
     else if(has_prefix(id2string(arch), "mips"))
-      command += " -mips64";
+      command += " -mabi=64";
     else if(arch == "powerpc" || arch == "ppc64" || arch == "ppc64le")
       command += " -m64";
     else if(arch == "s390" || arch == "s390x")
