From: Mark Mitchell Date: Thu, 17 Feb 2000 20:45:49 +0000 (+0000) Subject: ir.texi: Document DECL_TEMPLATE_INSTANTIATIONS. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2269eec3b9d677f5f42f2e025bf46bb615b4f969;p=gcc.git ir.texi: Document DECL_TEMPLATE_INSTANTIATIONS. 2000-02-17 Mark Mitchell * ir.texi: Document DECL_TEMPLATE_INSTANTIATIONS. From-SVN: r32042 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index c4869a1df24..6b0a240c50a 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,7 @@ 2000-02-17 Mark Mitchell + * 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 d4c23fe49af..7d7fed33a8e 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 97aa51a7234..6c4e33514b0 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 74125986d97..b02b6048691 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