OSDN Git Service

2000-02-17 Mark Mitchell <mark@codesourcery.com>
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Feb 2000 20:45:49 +0000 (20:45 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Feb 2000 20:45:49 +0000 (20:45 +0000)
* ir.texi: Document DECL_TEMPLATE_INSTANTIATIONS.

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

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

index c4869a1..6b0a240 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 d4c23fe..7d7fed3 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 97aa51a..6c4e335 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 7412598..b02b604 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