From 2dda36f93d9a845ed8de394f7d83299cf4d63bab Mon Sep 17 00:00:00 2001 From: Sandra Loosemore Date: Sun, 11 Nov 2018 17:46:00 -0500 Subject: [PATCH] re PR c++/43105 (Document restrictions on mixing -fno-rtti and -frtti) 2018-11-11 Sandra Loosemore PR c++/43105 gcc/ * doc/invoke.texi (C++ Dialect Options): Add warning about mixing -frtti and -fno-rtti code. From-SVN: r266020 --- gcc/ChangeLog | 6 ++++++ gcc/doc/invoke.texi | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4a8293fa47c..958cff19e89 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-11-11 Sandra Loosemore + + PR c++/43105 + * doc/invoke.texi (C++ Dialect Options): Add warning about mixing + -frtti and -fno-rtti code. + 2018-11-11 Sandra Loosemore PR c/26366 diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index a144ed62de5..e016dceadf4 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -2679,6 +2679,11 @@ needed. The @code{dynamic_cast} operator can still be used for casts that 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 -- 2.30.2