diff mbox

[cxx-conversion] Support garbage-collected C++ templates

Message ID CAD_=9DR-40Mi--FYST43COWz2ua9LrVZ0VA0E=sMjBF4QvmYEw@mail.gmail.com
State New
Headers show

Commit Message

Diego Novillo Aug. 13, 2012, 1:40 p.m. UTC
On Sun, Aug 12, 2012 at 11:28 PM, Laurynas Biveinis
<laurynas.biveinis@gmail.com> wrote:

> I'm referring to the very first part of gty.texi, section 22 before
> the subsection table of contents:
> http://gcc.gnu.org/onlinedocs/gccint/Type-Information.html#Type-Information.
> It talks about C, structs and unions and it will need updating about
> C++ support in gengtype.

Ah, thanks.  I've added this patch to the merge image.  I will update
the documentation to include 'class' when I update gengtype later on.


Diego.

 @smallexample
diff mbox

Patch

diff --git a/gcc/doc/gty.texi b/gcc/doc/gty.texi
index 3754b75..614dae3 100644
--- a/gcc/doc/gty.texi
+++ b/gcc/doc/gty.texi
@@ -13,17 +13,17 @@  involve determining information about GCC's data
structures from GCC's
 source code and using this information to perform garbage collection and
 implement precompiled headers.

-A full C parser would be too complicated for this task, so a limited
-subset of C is interpreted and special markers are used to determine
-what parts of the source to look at.  All @code{struct} and
-@code{union} declarations that define data structures that are
-allocated under control of the garbage collector must be marked.  All
-global variables that hold pointers to garbage-collected memory must
-also be marked.  Finally, all global variables that need to be saved
-and restored by a precompiled header must be marked.  (The precompiled
-header mechanism can only save static variables if they're scalar.
-Complex data structures must be allocated in garbage-collected memory
-to be saved in a precompiled header.)
+A full C++ parser would be too complicated for this task, so a limited
+subset of C++ is interpreted and special markers are used to determine
+what parts of the source to look at.  All @code{struct}, @code{union}
+and @code{template} structure declarations that define data structures
+that are allocated under control of the garbage collector must be
+marked.  All global variables that hold pointers to garbage-collected
+memory must also be marked.  Finally, all global variables that need
+to be saved and restored by a precompiled header must be marked.  (The
+precompiled header mechanism can only save static variables if they're
+scalar. Complex data structures must be allocated in garbage-collected
+memory to be saved in a precompiled header.)

 The full format of a marker is