ir.texi: Document DECL_TEMPLATE_INSTANTIATIONS.
authorMark Mitchell <mark@codesourcery.com>
Thu, 17 Feb 2000 20:45:49 +0000 (20:45 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 17 Feb 2000 20:45:49 +0000 (20:45 +0000)
2000-02-17  Mark Mitchell  <mark@codesourcery.com>

* ir.texi: Document DECL_TEMPLATE_INSTANTIATIONS.

From-SVN: r32042

gcc/cp/ChangeLog
gcc/cp/dump.c
gcc/cp/ir.texi
gcc/cp/lex.c

index c4869a1df247a00cd2b662801504dd08df2592f9..6b0a240c50a37d189297c1991ec401927718caed 100644 (file)
@@ -1,5 +1,7 @@
 2000-02-17  Mark Mitchell  <mark@codesourcery.com>
 
+       * ir.texi: Document DECL_TEMPLATE_INSTANTIATIONS.
+
        * decl2.c (lang_decode_option): Don't set default message length
        here.
        * lex.c (lang_init_options): Set it here.
index d4c23fe49af270146d0b2e93c9f56a100ec923f1..7d7fed33a8e31a9e0a1ab449140bafa7becbcf51 100644 (file)
@@ -609,6 +609,7 @@ dequeue_and_dump (di)
       break;
 
     case TEMPLATE_DECL:
+      dump_child ("inst", DECL_TEMPLATE_INSTANTIATIONS (t));
       dump_child ("spcs", DECL_TEMPLATE_SPECIALIZATIONS (t));
       break;
 
index 97aa51a72344faabf8ba5d84f59638594512b5e3..6c4e33514b05a25840b66eae8d77dd1a80b94312 100644 (file)
@@ -879,6 +879,11 @@ can safely ignore @code{TEMPLATE_DECL}s, but should examine
 @code{FUNCTION_DECL} nodes on the specializations list just as they
 would ordinary @code{FUNCTION_DECL} nodes.
 
+For a class template, the @code{DECL_TEMPLATE_INSTANTIATIONS} list
+contains the instantiations.  The @code{TREE_VALUE} of each node is an
+instantiation of the class.  The @code{DECL_TEMPLATE_SPECIALIZATIONS}
+contains partial specializations of the class.
+
 @item THUNK_DECL
 
 These nodes represent stub code that adjusts the @code{this} pointer and
index 74125986d97315604b9c3b6612282ce34f004afa..b02b60486918af865e4a0d7a3a5515936a763a8e 100644 (file)
@@ -446,6 +446,8 @@ lang_init_options ()
   flag_exceptions = 1;
   /* Mark as "unspecified".  */
   flag_bounds_check = -1;
+  /* By default wrap lines at 72 characters.  */
+  set_message_length (72);
 }
 
 void