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

Syoyo Fujita syoyofujita at gmail.com
Wed Jan 26 19:24:33 PST 2011


Takumi,

> 2011/1/27 Syoyo Fujita <syoyofujita at gmail.com>:
>> 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.
>
> I have checked on both mingw-w64-gcc(20101129) and llc(ToT).
> On Win64, symbols do not have a leading underscore.
> (Or, I could not build x64-clang! with mingw-w64's libs!)

I'm afraid it was happen in old llc.
I've tested with recent llc(r124350) and checked that it emits same
number of leading underscores with mingw 64bit.
I could emit .s by recent llc, then link it with gcc to emit .exe: YEY!

My environment is as follows.

LLVM: r124350
TDM mingw: tdm64-1 4.5.1
Mingw64: x86_64-w64-mingw32-gcc.exe (GCC) 4.5.2 20100804 (prerelease)



More information about the llvm-commits mailing list