Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference
A newer version of this document is available. Customers should click here to go to the newest version.
mconditional-branch, Qconditional-branch
Lets you identify and fix code that may be vulnerable to speculative execution side-channel attacks, which can leak your secure data as a result of bad speculation of a conditional branch direction. This feature is only available for ifort.
Linux:  |  
      -mconditional-branch=keyword  |  
     
macOS:  |  
      -mconditional-branch=keyword  |  
     
Windows:  |  
      /Qconditional-branch:keyword  |  
     
keyword  |  
      Tells the compiler the action to take. Possible values are: 
  |  
     
-mconditional-branch=keep and /Qconditional-branch:keep  |  
      The compiler does not attempt any vulnerable code detection or fixing.  |  
     
This option lets you identify code that may be vulnerable to speculative execution side-channel attacks, which can leak your secure data as a result of bad speculation of a conditional branch direction. Depending on the setting you choose, vulnerabilities may be detected and code may be generated to attempt to mitigate the security risk.
Visual Studio: Code Generation > Spectre Variant 1 Mitigation
None