aboutsummaryrefslogtreecommitdiff
path: root/gcc/sdbout.c
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1999-03-28 00:50:47 +0000
committerJeff Law <law@gcc.gnu.org>1999-03-27 17:50:47 -0700
commita51a5234aabf169d5cd20b59a46f0935d2d9afb8 (patch)
tree263ec9eb60eb1acae05c9040636d39f1437fffa5 /gcc/sdbout.c
parentf89a74e46993de6af4597cd656e2d4189cb3ef3f (diff)
downloadgcc-a51a5234aabf169d5cd20b59a46f0935d2d9afb8.zip
gcc-a51a5234aabf169d5cd20b59a46f0935d2d9afb8.tar.gz
gcc-a51a5234aabf169d5cd20b59a46f0935d2d9afb8.tar.bz2
sdbout.c (sdbout_symbol): Do not call build_pointer_type, build one on the fly and do not cache the result.
* sdbout.c (sdbout_symbol): Do not call build_pointer_type, build one on the fly and do not cache the result. From-SVN: r26032
Diffstat (limited to 'gcc/sdbout.c')
-rw-r--r--gcc/sdbout.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/sdbout.c b/gcc/sdbout.c
index 470cca6..1f13899 100644
--- a/gcc/sdbout.c
+++ b/gcc/sdbout.c
@@ -929,7 +929,12 @@ sdbout_symbol (decl, local)
PUT_SDB_SCL (C_AUTO);
}
- type = build_pointer_type (TREE_TYPE (decl));
+ /* Effectively do build_pointer_type, but don't cache this type,
+ since it might be temporary whereas the type it points to
+ might have been saved for inlining. */
+ /* Don't use REFERENCE_TYPE because dbx can't handle that. */
+ type = make_node (POINTER_TYPE);
+ TREE_TYPE (type) = TREE_TYPE (decl);
}
else if (GET_CODE (value) == MEM
&& ((GET_CODE (XEXP (value, 0)) == PLUS