Intel® C++ Compiler 16.0 User and Reference Guide
Enables or disables the use of ANSI aliasing rules in optimizations.
Linux and OS X: | -ansi-alias -no-ansi-alias |
Windows: | /Qansi-alias /Qansi-alias- |
None
Windows* OS and OS X*: -no-ansi-alias or /Qansi-alias- |
ANSI aliasing rules are disabled in optimizations. |
Linux* OS: -ansi-alias |
ANSI aliasing rules are enabled in optimizations. |
This option tells the compiler to assume that the program adheres to ISO C Standard aliasability rules.
If your program adheres to the ANSI aliasability rules, this option allows the compiler to optimize more aggressively. If your program does not adhere to these rules, this option may cause the compiler to generate incorrect code.
If you are compiling on Linux* OS and your program does not adhere to the ANSI aliasability rules, you can specify -no-ansi-alias to ensure program correctness.
When you specify the [Q]ansi-alias option, the ansi-alias checker is enabled by default. To disable the ansi-alias checker, you must specify -no-ansi-alias-check (Linux* OS and OS X*) or /Qansi-alias-check- (Windows* OS).
Visual Studio: Language > Enable Use of ANSI Aliasing Rules in Optimizations
Eclipse: Language > Enable Use of ANSI Aliasing Rules in Optimizations
Xcode: Language > Enable ANSI Aliasing
Linux and OS X: -fstrict-aliasing
Windows: None