Previously, the size of pointers was taken from the hosts pointer size. Now, it is a function of TARGET_PTR_BITS.

This commit is contained in:
John Metzler 1998-03-04 01:12:43 +00:00
parent 2425869cc2
commit 67359871bb
1 changed files with 2 additions and 4 deletions

View File

@ -1503,10 +1503,8 @@ read_tag_pointer_type (dip)
TYPE_POINTER_TYPE (type) = utype;
/* We assume the machine has only one representation for pointers! */
/* FIXME: This confuses host<->target data representations, and is a
poor assumption besides. */
TYPE_LENGTH (utype) = sizeof (char *);
/* FIXME: Possably a poor assumption */
TYPE_LENGTH (utype) = TARGET_PTR_BIT / TARGET_CHAR_BIT ;
TYPE_CODE (utype) = TYPE_CODE_PTR;
}
}