[cfe-commits] [PATCH] include/clang/Basic/BuiltinsX86.def: __builtin_ia32_crc32*() may be defined as unsigned arg.

NAKAMURA Takumi geek4civic at gmail.com
Mon Feb 28 02:17:58 PST 2011

 include/clang/Basic/BuiltinsX86.def |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

It is issue on mingw-w64. Its header /mingw/intrin.h defines as below;

#if defined(__GNUC__) && \
   (defined(__i386__) || defined(__x86_64__))
  extern unsigned int __builtin_ia32_crc32qi (unsigned int, unsigned char);
  extern unsigned int __builtin_ia32_crc32hi (unsigned int, unsigned short);
  extern unsigned int __builtin_ia32_crc32si (unsigned int, unsigned int);

This issue can be avoided with my patch.
I am still dubious what I do.

Guys, could you please give me comments?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-include-clang-Basic-BuiltinsX86.def-mingw64-gcc-.patch.txt
Type: text/x-patch
Size: 803 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110228/6522f51d/attachment.bin>

More information about the cfe-commits mailing list