-qeh (C++ only)
Category
Pragma equivalent
None.
Purpose
Controls whether exception handling is enabled in the module being compiled.
Defaults
-qeh
Usage
When -qeh is in effect, exception handling is enabled. If your program does not use C++ structured exception handling, you can compile with -qnoeh to prevent generation of code that is not needed by your application.
Specifying -qeh also implies -qrtti. If -qeh is specified together with -qnortti, RTTI information will still be generated as needed.
Predefined macros
__EXCEPTIONS is predefined to 1 when -qeh is in effect; otherwise, it is undefined.
Related information
- -qrtti, -fno-rtti (-qnortti) (C++ only)
- The -fexceptions option that GCC provides. For details, see the GCC online documentation at http://gcc.gnu.org/onlinedocs/.