cp-tree.h (DECL_EXTERNAL_LINKAGE_P): New macro.
authorMark Mitchell <mark@codesourcery.com>
Tue, 31 Oct 2000 01:30:59 +0000 (01:30 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 31 Oct 2000 01:30:59 +0000 (01:30 +0000)
commitad50e811dc95387b52dddd7ab753db59512a3baf
tree62873128afbebb3b4075750f0c2dbc4160b90b4b
parent4bc950092b4a22757f6893f53c1d1ad8fd85381b
cp-tree.h (DECL_EXTERNAL_LINKAGE_P): New macro.

* cp-tree.h (DECL_EXTERNAL_LINKAGE_P): New macro.
(linkage_kind): New enumeration.
(decl_linkage): New function.
* decl2.c (comdat_linkage): Extend comment.
* error.c (dump_function_decl): Print the arguments used to
instantiate a template, even when not printing the type of the
function.
* pt.c (convert_nontype_argument): Use DECL_EXTERNAL_LINKAGE_P,
not TREE_PUBLIC, to test for external linkage.
* tree.c (decl_linkage): New function.

From-SVN: r37150
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl2.c
gcc/cp/error.c
gcc/cp/pt.c
gcc/cp/tree.c
gcc/testsuite/g++.old-deja/g++.other/linkage6.C [new file with mode: 0644]