BUG: Incorrect Calculations with Both /Og and /G5 (122265)
The information in this article applies to:
- Microsoft Visual C++ 1.0
- Microsoft Visual C++ 2.0
- Microsoft Visual C++ 2.1
- Microsoft C/C++ Compiler (CL.EXE)
This article was previously published under Q122265 SYMPTOMS
Code compiled with both /G5 and the /Og options generate incorrect
floating point results.
RESOLUTION
To work around the problem, do not use both the /G5 and the /Og compiler
switches together; use either /G5 or /Og. Alternatively, you can disable
the global optimization (provided by /Og) for the area of code generated
incorrectly with the #pragma optimize.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. We are researching this bug and will post
new information here in the Microsoft Knowledge Base as it becomes
available.
Modification Type: | Minor | Last Reviewed: | 7/5/2005 |
---|
Keywords: | KB122265 |
---|
|