ruiu accepted this revision. ruiu added a comment. LGTM Martin, if the new behavior is not desirable for MinGW, please pass flags from the MinGW driver to the COFF driver so that you'll get desired results, as pcc suggested. https://reviews.llvm.org/D39885