This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[doc, committed] document restrictions on mixing -fno-rtti and -frtti
- From: Sandra Loosemore <sandra at codesourcery dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 11 Nov 2018 15:48:13 -0700
- Subject: [doc, committed] document restrictions on mixing -fno-rtti and -frtti
I've checked in this patch to fix another old but easy doc issue from
bugzilla, PR43105.
-Sandra
2018-11-11 Sandra Loosemore <sandra@codesourcery.com>
PR c++/43105
gcc/
* doc/invoke.texi (C++ Dialect Options): Add warning about mixing
-frtti and -fno-rtti code.
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