]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2018-11-11 Sandra Loosemore <sandra@codesourcery.com>
authorsandra <sandra@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 11 Nov 2018 22:46:00 +0000 (22:46 +0000)
committersandra <sandra@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 11 Nov 2018 22:46:00 +0000 (22:46 +0000)
PR c++/43105

gcc/
* doc/invoke.texi (C++ Dialect Options): Add warning about mixing
-frtti and -fno-rtti code.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@266020 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/doc/invoke.texi

index 4a8293fa47c8f292d13d0078648eb127e79d655f..958cff19e894f3ce3b8c85f463b11787c9456c58 100644 (file)
@@ -1,3 +1,9 @@
+2018-11-11  Sandra Loosemore  <sandra@codesourcery.com>
+
+       PR c++/43105
+       * doc/invoke.texi (C++ Dialect Options): Add warning about mixing
+       -frtti and -fno-rtti code.
+
 2018-11-11  Sandra Loosemore  <sandra@codesourcery.com>
 
        PR c/26366
index a144ed62de5ddfed44929ed93dea169a98a337c8..e016dceadf4fe263b1c73204949f4bd77fc1f2bf 100644 (file)
@@ -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