[PATCH] D33852: Enable __declspec(selectany) on linux

Davide Italiano via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Jun 3 16:32:53 PDT 2017


davide added a comment.

In https://reviews.llvm.org/D33852#772230, @martell wrote:

> @Prazek it was not disabled by mistake.
>  This was a MS extension and it appeared as though the test case should have been for windows.
>  I updated it and made the extension available to windows only. (MSVC, Cygwin, Mingw etc)
>  It didn't expect anyone would want a MS extension for a linux target.


This assumption is not quite right. Also GCC, when targeting Linux, provides a `-fms-extensions` flag.
There's a bunch of software out there that unfortunately has to target ELF and build with `-fms-extensions` on, e.g. PS4.


https://reviews.llvm.org/D33852





More information about the cfe-commits mailing list