* c-aux-info.c (gen_type): Use DECL_NAME only for TYPE_DECL.
From-SVN: r19389
+1998-04-23 Jim Wilson <wilson@cygnus.com>
+
+ * c-aux-info.c (gen_type): Use DECL_NAME only for TYPE_DECL.
+
Thu Apr 23 19:09:33 1998 Jim Wilson <wilson@cygnus.com>
* profile.c (tablejump_entry_p): New function.
{
tree chain_p;
- if (TYPE_NAME (t) && DECL_NAME (TYPE_NAME (t)))
+ /* If there is a typedef name for this type, use it. */
+ if (TYPE_NAME (t) && TREE_CODE (TYPE_NAME (t)) == TYPE_DECL)
data_type = IDENTIFIER_POINTER (DECL_NAME (TYPE_NAME (t)));
else
{