sdbout.c (sdbout_symbol): Do not call build_pointer_type, build one on the fly and...
authorJeffrey A Law <law@cygnus.com>
Sun, 28 Mar 1999 00:50:47 +0000 (00:50 +0000)
committerJeff Law <law@gcc.gnu.org>
Sun, 28 Mar 1999 00:50:47 +0000 (17:50 -0700)
        * sdbout.c (sdbout_symbol): Do not call build_pointer_type, build
        one on the fly and do not cache the result.

From-SVN: r26032

gcc/ChangeLog
gcc/sdbout.c

index e1a13f9..a7de149 100644 (file)
@@ -1,5 +1,8 @@
 Sun Mar 28 00:44:27 1999  Jeffrey A Law  (law@cygnus.com)
 
+       * sdbout.c (sdbout_symbol): Do not call build_pointer_type, build
+       one on the fly and do not cache the result.
+
        * gcc.cps, cpp.cps: Delete unwanted files.
 
 Sat Mar 27 23:37:40 EST 1999  John Wehle  (john@feith.com)
index 470cca6..1f13899 100644 (file)
@@ -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