[llvm-commits] Patch to build 64bit LLVM with MinGW64 compiler
Syoyo Fujita
syoyofujita at gmail.com
Wed Jan 26 08:30:50 PST 2011
Takumi,
> - 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!!!)
The number of leading underscore is another problem.
llc and mingw emits different number of leading scores for function
symbols, so I cannot link .s generated by llc on Windows with mingw.
We need to investigate and fix it in the next step.
TDM-gcc seems it does right way, I'll check it.
> - Please read http://llvm.org/docs/DeveloperPolicy.html#patches ;)
Okay, I understand it.
More information about the llvm-commits
mailing list