Commit f5880dbe by Jim Wilson Committed by Jim Wilson

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
parent 8ade1519
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.
......
......@@ -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
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment