mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-10 22:20:12 +08:00
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:
parent
8ade151969
commit
f5880dbeb0
@ -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.
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user