Re: [cfe-dev] Disable fms-extensions?

2017-03-11 Thread Nico Weber via cfe-commits
In addition to that: If I remember correctly, -fms-extensions is only
enabled if your triple's OS is win32 and your triple's environment is MSVC.
It's not enabled when targeting MinGW for example. The reason it's enabled
with an foo-windows-msvc triple is that it's required to parse the system's
headers in that environment.

On Sat, Mar 11, 2017 at 2:32 PM, Andrey Bokhanko via cfe-dev <
cfe-...@lists.llvm.org> wrote:

> Hi Zahira,
>
> -fms-extensions can obviously be disabled with -fno-ms-extensions. This
> won't necessarily mirrors /Za exactly, though -- as according to MS, /Za
> disables *all* C++ extensions, not only MS-specific ones. I doubt anyone
> tried to implement a mode that mirrors /Za exactly.
>
> Yours,
> Andrey
> ---
> Compiler Architect
> NXP
>
> On Tue, Mar 7, 2017 at 9:10 PM, Ammarguellat, Zahira via cfe-commits <
> cfe-commits@lists.llvm.org> wrote:
>
>> Hello,
>>
>> Clang implements MS extensions when using -fms-extension. On windows this
>> option is enabled by default.
>> Is there any way of disabling it to mirror the behavior of the /Za
>> (-permissive-) option of CL?
>> Thanks,
>> -Zahira
>>
>>
>> ___
>> cfe-commits mailing list
>> cfe-commits@lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
>>
>>
>
> ___
> cfe-dev mailing list
> cfe-...@lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
>
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


Re: Disable fms-extensions?

2017-03-11 Thread Andrey Bokhanko via cfe-commits
Hi Zahira,

-fms-extensions can obviously be disabled with -fno-ms-extensions. This
won't necessarily mirrors /Za exactly, though -- as according to MS, /Za
disables *all* C++ extensions, not only MS-specific ones. I doubt anyone
tried to implement a mode that mirrors /Za exactly.

Yours,
Andrey
---
Compiler Architect
NXP

On Tue, Mar 7, 2017 at 9:10 PM, Ammarguellat, Zahira via cfe-commits <
cfe-commits@lists.llvm.org> wrote:

> Hello,
>
> Clang implements MS extensions when using -fms-extension. On windows this
> option is enabled by default.
> Is there any way of disabling it to mirror the behavior of the /Za
> (-permissive-) option of CL?
> Thanks,
> -Zahira
>
>
> ___
> cfe-commits mailing list
> cfe-commits@lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
>
>
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


Disable fms-extensions?

2017-03-07 Thread Ammarguellat, Zahira via cfe-commits
Hello,

Clang implements MS extensions when using -fms-extension. On windows this 
option is enabled by default.
Is there any way of disabling it to mirror the behavior of the /Za 
(-permissive-) option of CL?
Thanks,
-Zahira

___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits