This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[obv] (make_pointer_type): Remove redundant setting of TYPE_POINTER_TYPE (type)
- From: dje at google dot com
- To: gdb-patches at sourceware dot org
- Date: Tue, 14 Aug 2012 12:05:51 -0700
- Subject: [obv] (make_pointer_type): Remove redundant setting of TYPE_POINTER_TYPE (type)
Hi.
checked in as obvious.
TYPE_POINTER_TYPE (type) is unconditionally set a few lines up.
2012-08-14 Doug Evans <dje@google.com>
* gdbtypes.c (make_pointer_type): Remove redundant setting of
TYPE_POINTER_TYPE (type).
Index: gdbtypes.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtypes.c,v
retrieving revision 1.235
diff -u -p -r1.235 gdbtypes.c
--- gdbtypes.c 2 Aug 2012 09:36:39 -0000 1.235
+++ gdbtypes.c 14 Aug 2012 18:36:28 -0000
@@ -324,9 +324,6 @@ make_pointer_type (struct type *type, st
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)