[PATCH] D14180: enable -fms-extensions by default on the mingw-w64 target

Martell Malone via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 29 10:19:50 PDT 2015


martell created this revision.
martell added a reviewer: rnk.
martell added subscribers: cfe-commits, yaron.keren, compnerd.

As of commit b8a164 mingw-w64 support clang with -fms-extensions.
We can built the mingw-w64 crt with clang now also.
As we are dropping support for mingw.org I think switching to this would be a good move
rather then using the gcc hacks we currently comply to

http://sourceforge.net/p/mingw-w64/mingw-w64/ci/b8a16418409d88215cce97727a42cc25eb011f3e/

http://reviews.llvm.org/D14180

Files:
  lib/Driver/Tools.cpp

Index: lib/Driver/Tools.cpp
===================================================================
--- lib/Driver/Tools.cpp
+++ lib/Driver/Tools.cpp
@@ -4654,7 +4654,7 @@

   // -fms-extensions=0 is default.
   if (Args.hasFlag(options::OPT_fms_extensions, options::OPT_fno_ms_extensions,
-                   IsWindowsMSVC))
+                   IsWindowsMSVC || IsWindowsGNU))
     CmdArgs.push_back("-fms-extensions");

   // -fno-use-line-directives is default.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14180.38746.patch
Type: text/x-patch
Size: 461 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151029/25c15c6a/attachment.bin>


More information about the cfe-commits mailing list