- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
`/Gw` switch (optimize global data) is used by MSFT VC++ compiler to package global data in individual COMDAT sections. This switch is not supported by ICL 16.0.
However, `/Gw` can force ICL not to warn about possible issues. For example:
icl /Qstd=c++11 /Qstd=c++14 sample.cpp
causes the following warning:
icl: command line warning #10121: overriding '/Qstd=c++11' with '/Qstd=c++14'
(code in ‘sample.cpp’ doesn’t matter)
But this command:
icl /Gw /Qstd=c++11 /Qstd=c++14 sample.cpp
causes no warnings at all – compilation completes successfully. There's even no message that `/Gw` ain't supported by ICL.
Position of `/Gw` in command line doesn’t matter:
icl /Qstd=c++11 /Qstd=c++14 /Gw sample.cpp
also shows no error.
- Tags:
- CC++
- Development Tools
- Intel® C++ Compiler
- Intel® Parallel Studio XE
- Intel® System Studio
- Optimization
- Parallel Computing
- Vectorization
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have submitted a bug in our internal bugs database (DPD200408254) for our driver team to fix this problem. Thank you for bringing it to our attention.
Judy
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That is weird... It is as if /Gw is acting like /w (suppress warnings).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I believe you were right: `/Gw` works just like `/w`. Moreover I can use any character instead of `G` in `/Gw`: `A`, `B` or even `#` -- I get the same result -- ICL emits no warnings at all:
icl /Qstd=c++11 /Qstd=c++14 /@w sample.cpp icl /Qstd=c++11 /Qstd=c++14 /Cw sample.cpp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have submitted a bug in our internal bugs database (DPD200408254) for our driver team to fix this problem. Thank you for bringing it to our attention.
Judy
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page