From: Sandra Loosemore Date: Sun, 11 Nov 2018 22:46:00 +0000 (-0500) Subject: re PR c++/43105 (Document restrictions on mixing -fno-rtti and -frtti) X-Git-Tag: basepoints/gcc-10~3148 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2dda36f93d9a845ed8de394f7d83299cf4d63bab;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4a8293fa47c8..958cff19e894 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 a144ed62de5d..e016dceadf4f 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