* gdbtypes.c (make_pointer_type): Remove redundant setting of
authorDoug Evans <dje@google.com>
Tue, 14 Aug 2012 19:03:47 +0000 (19:03 +0000)
committerDoug Evans <dje@google.com>
Tue, 14 Aug 2012 19:03:47 +0000 (19:03 +0000)
TYPE_POINTER_TYPE (type).

gdb/ChangeLog
gdb/gdbtypes.c

index 0f4f278b026a6dfc5fa058a89e323042c1519c40..4a63796cd66b226d658884d2ecca9b08339de65e 100644 (file)
@@ -1,3 +1,8 @@
+2012-08-14  Doug Evans  <dje@google.com>
+
+       * gdbtypes.c (make_pointer_type): Remove redundant setting of
+       TYPE_POINTER_TYPE (type).
+
 2012-08-14  Gary Benson  <gbenson@redhat.com>
 
        * solib-svr4.c (svr4_free_library_list): Use free_so.
index 0ea4df1498216a13bde9377ed29d0d222873a6b0..b4d8a8c5966f7d76b39c4d8d08b06ac9866faade 100644 (file)
@@ -324,9 +324,6 @@ make_pointer_type (struct type *type, struct type **typeptr)
      gdbarch_address_to_pointer.  */
   TYPE_UNSIGNED (ntype) = 1;
 
-  if (!TYPE_POINTER_TYPE (type))       /* Remember it, if don't have one.  */
-    TYPE_POINTER_TYPE (type) = ntype;
-
   /* Update the length of all the other variants of this type.  */
   chain = TYPE_CHAIN (ntype);
   while (chain != ntype)