aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/init.c
diff options
context:
space:
mode:
authorMike Stump <mrs@gcc.gnu.org>1996-12-18 02:46:25 +0000
committerMike Stump <mrs@gcc.gnu.org>1996-12-18 02:46:25 +0000
commitd2e5ee5c704b81a8857f6068a785a4e056b8eafa (patch)
tree8756793fee8ba11b6c6e2195d2a9521061792978 /gcc/cp/init.c
parentf442f7234e0059d1273207752894ef364cd6078c (diff)
downloadgcc-d2e5ee5c704b81a8857f6068a785a4e056b8eafa.zip
gcc-d2e5ee5c704b81a8857f6068a785a4e056b8eafa.tar.gz
gcc-d2e5ee5c704b81a8857f6068a785a4e056b8eafa.tar.bz2
90th Cygnus<->FSF quick merge
From-SVN: r13321
Diffstat (limited to 'gcc/cp/init.c')
-rw-r--r--gcc/cp/init.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/gcc/cp/init.c b/gcc/cp/init.c
index 154ab80..006e13f 100644
--- a/gcc/cp/init.c
+++ b/gcc/cp/init.c
@@ -2227,7 +2227,7 @@ is_friend (type, supplicant)
if (declp)
/* It's a function decl. */
{
- tree list = DECL_FRIENDLIST (TYPE_NAME (type));
+ tree list = DECL_FRIENDLIST (TYPE_MAIN_DECL (type));
tree name = DECL_NAME (supplicant);
tree ctype;
@@ -2259,7 +2259,7 @@ is_friend (type, supplicant)
if (type == supplicant)
return 1;
- list = CLASSTYPE_FRIEND_CLASSES (TREE_TYPE (TYPE_NAME (type)));
+ list = CLASSTYPE_FRIEND_CLASSES (TREE_TYPE (TYPE_MAIN_DECL (type)));
for (; list ; list = TREE_CHAIN (list))
if (supplicant == TREE_VALUE (list))
return 1;
@@ -2275,7 +2275,7 @@ is_friend (type, supplicant)
if (IS_AGGR_TYPE (supplicant))
context = NULL_TREE;
else
- context = DECL_CONTEXT (TYPE_NAME (supplicant));
+ context = DECL_CONTEXT (TYPE_MAIN_DECL (supplicant));
}
else if (DECL_FUNCTION_MEMBER_P (supplicant))
context = DECL_CLASS_CONTEXT (supplicant);
@@ -2296,7 +2296,7 @@ static void
add_friend (type, decl)
tree type, decl;
{
- tree typedecl = TYPE_NAME (type);
+ tree typedecl = TYPE_MAIN_DECL (type);
tree list = DECL_FRIENDLIST (typedecl);
tree name = DECL_NAME (decl);
@@ -2346,7 +2346,7 @@ static void
add_friends (type, name, friend_type)
tree type, name, friend_type;
{
- tree typedecl = TYPE_NAME (type);
+ tree typedecl = TYPE_MAIN_DECL (type);
tree list = DECL_FRIENDLIST (typedecl);
while (list)
@@ -2409,7 +2409,7 @@ make_friend_class (type, friend_type)
if (IS_SIGNATURE (friend_type))
{
error ("signature type `%s' declared `friend'",
- IDENTIFIER_POINTER (DECL_NAME (TYPE_NAME (friend_type))));
+ IDENTIFIER_POINTER (TYPE_IDENTIFIER (friend_type)));
return;
}
if (type == friend_type)
@@ -2561,7 +2561,7 @@ do_friend (ctype, declarator, decl, parmdecls, flags, quals, funcdef_flag)
warning ("implicitly declaring `%s' as struct",
IDENTIFIER_POINTER (declarator));
decl = xref_tag (record_type_node, declarator, NULL_TREE, 1);
- decl = TYPE_NAME (decl);
+ decl = TYPE_MAIN_DECL (decl);
}
/* Allow abbreviated declarations of overloaded functions,
@@ -2735,7 +2735,7 @@ build_new (placement, decl, init, use_global_new)
{
/* An aggregate type. */
type = IDENTIFIER_TYPE_VALUE (decl);
- decl = TYPE_NAME (type);
+ decl = TYPE_MAIN_DECL (type);
}
else
{
@@ -2755,7 +2755,7 @@ build_new (placement, decl, init, use_global_new)
{
type = decl;
true_type = type;
- decl = TYPE_NAME (type);
+ decl = TYPE_MAIN_DECL (type);
}
if (processing_template_decl)