[LLVMdev] Section specialization & COFF.

Michael Spencer bigcheesegs at gmail.com
Fri Oct 19 16:15:37 PDT 2012


On Fri, Oct 19, 2012 at 2:55 AM, r4start <r4start at gmail.com> wrote:
> Hi all.
>
> While compiling next code
> @A = weak unnamed_addr constant { i32, i32, i32 } { i32 0, i32 0, i32 0 },
> section ".data"
> was discovered that llc ignores weak linkage if we emit it in COFF object.
> Attached patch solves this problem, please review.
>
> I found some similar tests in test/Objects/Inputs. Should I do something
> like trivial.ll checking or there is a better way
> to check patch behaviour?
>
>  - Dmitry Sokolov.
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>

test/Object is not the right place for the test. It should probably go
in test/MC/COFF as a .ll file, although technically it's codegen...

Also, I'm pretty sure this is wrong for MinGW. What do msvc and
mingw-gcc produce for c code that generates this?

- Michael Spencer



More information about the llvm-dev mailing list