r199209 - Rename language option MicrosoftMode to MSVCCompat

Dmitri Gribenko gribozavr at gmail.com
Tue Jan 14 08:54:01 PST 2014


On Tue, Jan 14, 2014 at 2:51 PM, Alp Toker <alp at nuanti.com> wrote:
> Author: alp
> Date: Tue Jan 14 06:51:41 2014
> New Revision: 199209
>
> URL: http://llvm.org/viewvc/llvm-project?rev=199209&view=rev
> Log:
> Rename language option MicrosoftMode to MSVCCompat
>
> There's been long-standing confusion over the role of these two options. This
> commit makes the necessary changes to differentiate them clearly, following up
> from r198936.
>
> MicrosoftExt (aka. fms-extensions):
>  Enable largely unobjectionable Microsoft language extensions to ease
>  portability. This mode, also supported by gcc, is used for building software
>  like FreeBSD and Linux kernel extensions that share code with Windows drivers.
>
> MSVCCompat (aka. -fms-compatibility, formerly MicrosoftMode):
>  Turn on a special mode supporting 'heinous' extensions for drop-in
>  compatibility with the Microsoft Visual C++ product. Standards-compilant C and
>  C++ code isn't guaranteed to work in this mode. Implies MicrosoftExt.
>
> Note that full -fms-compatibility mode is currently enabled by default on the
> Windows target, which may need tuning to serve as a reasonable default.
>
> See cfe-commits for the full discourse, thread 'r198497 - Move MS predefined
> type_info out of InitializePredefinedMacros'

Hi Alp,

Could you put this summary somewhere in the LanguageExtensions.rst or
in the manpage?

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the cfe-commits mailing list