[llvm-commits] Patch to build 64bit LLVM with MinGW64 compiler

NAKAMURA Takumi geek4civic at gmail.com
Wed Jan 26 08:01:59 PST 2011


Anton and Syoyo, こんばんは.

IMO, I consider autoconf might detect libgcc's symbols on mingw.

I assume mingw-w64 would be on the way in progress.
I am using mingw-w64(20101129).

Random notes for syoyo's proposal;

  - mingw-w64 defines _WIN32 _WIN64 __MINGW32__ __MINGW64__.
  - You may describe (__MINGW32__) && !(__MINGW64__) to detect
i*86-mingw32 explicitly.
  - I propose not to use _alloca nor __alloca, but ___chkstk on w64.
  - I heard to you, you would use TDM-gcc for w64. It seems
incompatible to FSF version of gcc.
    (esp. __alloca vs _alloca, and ___chkstk vs __chkstk!!!)

Generic issues for patch proposal;

  - Please read http://llvm.org/docs/DeveloperPolicy.html#patches
  - Your patch is not applied in Top of Trunk.
    lib/System/Win32 has moved to lib/Support/Windows.
  - Please don't include patches to message body by inline. multipart
would be preferred.
  - Please read http://llvm.org/docs/DeveloperPolicy.html#patches ;)

ps.
I have never built clang and llvm with mingw-w64! I can build with
clang selfhost bootstrapping with mingw32.

おやすみなさい...Takumi / 中村 巧



More information about the llvm-commits mailing list