[llvm-commits] [llvm] r111792 - in /llvm/trunk/lib: MC/MCAsmInfoCOFF.cpp Target/X86/X86ISelLowering.cpp

Michael Spencer bigcheesegs at gmail.com
Mon Aug 23 06:34:37 PDT 2010


On Mon, Aug 23, 2010 at 3:28 AM, Anton Korobeynikov
<anton at korobeynikov.info> wrote:
>> +  // FIXME: Jump tables are currently broken for 64 bit COFF.
>> +  // See PR7960.
> They are not. The problem is with coff emitter. Please revert.
>
> --
> With best regards, Anton Korobeynikov
> Faculty of Mathematics and Mechanics, Saint Petersburg State University

Posting the discussion we had on IRC for future reference.

[09:13] <Bigcheese> aKor: how is it the COFF emitter? x86-64 COFF
cannot represent any of the available jump table methods. It is a
limitation of the file format.
[09:13] <aKor> Bigcheese: given that you can compile stuff with gas...
[09:17] <Bigcheese> The alternative is to leave x86-64 COFF broken. I
don't agree that it is the responsibility of the COFF backend to take
invalid relocations and force them to work.
[09:17] <Bigcheese> I'll revert it because it affects mingw64
[09:18] <aKor> right, there should be proper fix
[09:18] <aKor> not just "disable all jump tables"
[09:19] <Bigcheese> gas is doing some weird crap with COFF.
[09:19] <aKor> given that coff emitter is wip it's not a problem to
have it not handle some cases
[09:19] <Bigcheese> the set directive shouldn't work either.




More information about the llvm-commits mailing list