Fix macro usage error found by Martin von Loewis's checking patch.

* c-aux-info.c (gen_type): Use DECL_NAME only for TYPE_DECL.

From-SVN: r19389
This commit is contained in:
Jim Wilson 1998-04-23 19:52:46 +00:00 committed by Jim Wilson
parent 8ade151969
commit f5880dbeb0
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
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.

View File

@ -361,7 +361,8 @@ gen_type (ret_val, t, style)
{
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
{