diff options
author | Mark Mitchell <mark@codesourcery.com> | 2000-02-17 20:45:49 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-02-17 20:45:49 +0000 |
commit | 2269eec3b9d677f5f42f2e025bf46bb615b4f969 (patch) | |
tree | 7ea5ddb44ff116bc34335b281f6d2aeb3b4504e7 | |
parent | 61d846051ae429fed1dff76cbb1db42f7b82bfdc (diff) | |
download | gcc-2269eec3b9d677f5f42f2e025bf46bb615b4f969.zip gcc-2269eec3b9d677f5f42f2e025bf46bb615b4f969.tar.gz gcc-2269eec3b9d677f5f42f2e025bf46bb615b4f969.tar.bz2 |
ir.texi: Document DECL_TEMPLATE_INSTANTIATIONS.
2000-02-17 Mark Mitchell <mark@codesourcery.com>
* ir.texi: Document DECL_TEMPLATE_INSTANTIATIONS.
From-SVN: r32042
-rw-r--r-- | gcc/cp/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/cp/dump.c | 1 | ||||
-rw-r--r-- | gcc/cp/ir.texi | 5 | ||||
-rw-r--r-- | gcc/cp/lex.c | 2 |
4 files changed, 10 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index c4869a1..6b0a240 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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. diff --git a/gcc/cp/dump.c b/gcc/cp/dump.c index d4c23fe..7d7fed3 100644 --- a/gcc/cp/dump.c +++ b/gcc/cp/dump.c @@ -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; diff --git a/gcc/cp/ir.texi b/gcc/cp/ir.texi index 97aa51a..6c4e335 100644 --- a/gcc/cp/ir.texi +++ b/gcc/cp/ir.texi @@ -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 diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index 7412598..b02b604 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -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 |