The information in this article applies to:
SYMPTOMSCompiling a function with the __declspec(naked) modifier, but without an __asm block for the epilog code, and using the /Og and /G5 switches, results in the following error:
RESOLUTIONImplement a epilog code block in your function. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem was fixed in Microsoft Visual C++, 32-bit Edition, version 4.0. MORE INFORMATION
If a function is declared with the __declspec(naked) modifier, the compiler
will not generate any prolog or epilog code. Users should implement their
own prolog and epilog code, using blocks of inline assembler code.
Sample Code
Additional query words: 2.00 9.00 buglist2.00
Keywords : |
Last Reviewed: January 20, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |