[doc,committed] document restrictions on mixing -fno-rtti and -frtti

Message ID 1fd7b2b8-cbab-9e40-6d09-cb9dc828e31d@codesourcery.com
State New
Headers show
  • [doc,committed] document restrictions on mixing -fno-rtti and -frtti
Related show

Commit Message

Sandra Loosemore Nov. 11, 2018, 10:48 p.m.
I've checked in this patch to fix another old but easy doc issue from 
bugzilla, PR43105.



Index: gcc/doc/invoke.texi
--- gcc/doc/invoke.texi	(revision 266019)
+++ gcc/doc/invoke.texi	(working copy)
@@ -2679,6 +2679,11 @@  needed. The @code{dynamic_cast} operator
 do not require run-time type information, i.e.@: casts to @code{void *} or to
 unambiguous base classes.
+Mixing code compiled with @option{-frtti} with that compiled with
+@option{-fno-rtti} may not work.  For example, programs may
+fail to link if a class compiled with @option{-fno-rtti} is used as a base 
+for a class compiled with @option{-frtti}.  
 @item -fsized-deallocation
 @opindex fsized-deallocation
 Enable the built-in global declarations