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

Martell Malone via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 3 09:55:23 PST 2015


martell added a comment.

In http://reviews.llvm.org/D14180#280184, @rnk wrote:

> You're mostly interested in the non-builtin parts of -fms-extensions, like declspec and UUID, right?


Yes that would be one of the main reasons, gcc is very lacking in this department :)

> You can then change the mingw headers to use `__has_builtin(_InterlockedCompareExchange)` to provide compatibility with either mode.


Yes I could do this but this still won't work with the the existing mingw toolchains that don't have this in their headers right?
I can update head to support both though yes


http://reviews.llvm.org/D14180





More information about the cfe-commits mailing list