<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Jan 1, 2017 at 11:35 PM, kyra via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
3. I believe, we should pay more attention to support self-hosted mingw-w64 clang, I maintain a couple of patches which allow me to build it, but I never tried to publish them, because I saw no interest. Btw, that recent LLVM patch introducing big-obj switch (<a href="https://github.com/llvm-mirror/llvm/commit/e1c9f504c6810be782714b8b39f11579e50fa5c7" rel="noreferrer" target="_blank">https://github.com/llvm-mirro<wbr>r/llvm/commit/e1c9f504c6810be7<wbr>82714b8b39f11579e50fa5c7</a>) also breaks self-hosted clang because gnu clang driver doesn't understand -Wa,-mbig-obj option. AFAIUI, LLVM handles COFF format automatically, selecting bigobj format if necessary, and msvc clang driver simply ignores '/bigobj' flag. I have a patch fixing gnu driver too.<br></blockquote><div><br></div><div>I'm happy to review these kinds of patches if you want to CC me on them. I don't have a lot of time to dedicate to mingw support in clang, so I mostly apply other people's patches and confirm that things seem to work.</div><div><br></div><div>Accepting and ignoring the -mbig-obj flag in clang seems totally reasonable to me. Our assembler should implicitly do the right thing, as you described.</div></div></div></div>