summaryrefslogtreecommitdiff
path: root/gcc/sdbout.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1993-10-12 21:06:37 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1993-10-12 21:06:37 +0000
commit083fba8587ffe5d89123a810d488f0c87ba2aa0c (patch)
tree2b9b4da2d9206a635dbf9a546f7bcef4c64db034 /gcc/sdbout.c
parent47cbb83b3cc986e928afeb526e338aa7d2d2d530 (diff)
downloadgcc-083fba8587ffe5d89123a810d488f0c87ba2aa0c.tar.gz
(KNOWN_TYPE_TAG, SET_KNOWN_TYPE_TAG): Refer to TYPE_SYMTAB_POINTER and remove
casts. (tag_of_ru_type): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5756 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sdbout.c')
-rw-r--r--gcc/sdbout.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/gcc/sdbout.c b/gcc/sdbout.c
index a9cecad141c..3c0b519def7 100644
--- a/gcc/sdbout.c
+++ b/gcc/sdbout.c
@@ -1,5 +1,5 @@
/* Output sdb-format symbol table information from GNU compiler.
- Copyright (C) 1988, 1992 Free Software Foundation, Inc.
+ Copyright (C) 1988, 1992, 1993 Free Software Foundation, Inc.
This file is part of GNU CC.
@@ -258,12 +258,12 @@ do { fprintf (asm_out_file, "\t.def\t"); \
/* Return the sdb tag identifier string for TYPE
if TYPE has already been defined; otherwise return a null pointer. */
-#define KNOWN_TYPE_TAG(type) (char *)(TYPE_SYMTAB_ADDRESS (type))
+#define KNOWN_TYPE_TAG(type) TYPE_SYMTAB_POINTER (type)
/* Set the sdb tag identifier string for TYPE to NAME. */
#define SET_KNOWN_TYPE_TAG(TYPE, NAME) \
- (TYPE_SYMTAB_ADDRESS (TYPE) = (int)(NAME))
+ TYPE_SYMTAB_POINTER (TYPE) = (NAME)
/* Return the name (a string) of the struct, union or enum tag
described by the TREE_LIST node LINK. This is 0 for an anonymous one. */
@@ -303,11 +303,10 @@ tag_of_ru_type (type,link)
tree type,link;
{
if (TYPE_SYMTAB_ADDRESS (type))
- return (char *)TYPE_SYMTAB_ADDRESS (type);
+ return TYPE_SYMTAB_ADDRESS (type);
if (link && TREE_PURPOSE (link)
&& IDENTIFIER_POINTER (TREE_PURPOSE (link)))
- TYPE_SYMTAB_ADDRESS (type)
- = (int)IDENTIFIER_POINTER (TREE_PURPOSE (link));
+ TYPE_SYMTAB_ADDRESS (type) = IDENTIFIER_POINTER (TREE_PURPOSE (link));
else
return (char *) TYPE_SYMTAB_ADDRESS (type);
}