5.7.4.3 Rtti Option

The -frtti option enables generation of information about every class with virtual functions for use by the C++ Run Time Type Identification (RTTI) features, such as dynamic_cast and typeid operators.

The -fno-rtti form of this option disables generation of this information. If you don't use the RTTI features of the language, code size might be reduced by using this option. Note that exception handling uses the same information, but it will generate this information as needed. The dynamic_cast operator can still be used for casts that do not require RTTI, that is, casts to void * or to unambiguous base classes.

Ensure that the same form of this option is specified at compile time for all modules and at link time.