[PATCH] [clang][MIPS] Removing __SIZEOF_INT128__ macro for MIPS64

Sagar Thakur Sagar.Thakur at imgtec.com
Tue Dec 2 02:10:23 PST 2014


Comment at: lib/Frontend/InitPreprocessor.cpp:665
@@ -664,2 +664,3 @@
                    TI.getTypeWidth(TI.getWIntType()), TI, Builder);
-  if (TI.hasInt128Type())
+  if (TI.hasInt128Type() && !(TI.getTriple().getArch() == llvm::Triple::mips64el
+                   || TI.getTriple().getArch() == llvm::Triple::mips64))
atanasyan wrote:
> I would add a comment describes that it is a temporary workaround while MIPS has no fully supported 128-bit integers and we do not want to get an error from limit.h.
Hi @atanasyan,

Should I add a comment and submit a new patch ?


More information about the cfe-commits mailing list