From: Jim Wilson Date: Sat, 18 Jun 1994 20:48:02 +0000 (-0700) Subject: (sdbout_one_type): Use DECL_ASSEMBLER_NAME not X-Git-Tag: misc/cutover-egcs-0~6425 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee3e2d3de0491993101f0b9b097cf815034034bc;p=thirdparty%2Fgcc.git (sdbout_one_type): Use DECL_ASSEMBLER_NAME not DECL_NAME for child_type that is a template type. From-SVN: r7518 --- diff --git a/gcc/sdbout.c b/gcc/sdbout.c index df0163b0562d..583dda0f86ed 100644 --- a/gcc/sdbout.c +++ b/gcc/sdbout.c @@ -1110,7 +1110,12 @@ sdbout_one_type (type) if (TREE_CODE (TYPE_NAME (child_type)) == IDENTIFIER_NODE) child_type_name = TYPE_NAME (child_type); else if (TREE_CODE (TYPE_NAME (child_type)) == TYPE_DECL) - child_type_name = DECL_NAME (TYPE_NAME (child_type)); + { + child_type_name = DECL_NAME (TYPE_NAME (child_type)); + if (child_type_name && template_name_p (child_type_name)) + child_type_name + = DECL_ASSEMBLER_NAME (TYPE_NAME (child_type)); + } else continue;