* stor-layout.c (layout_type): Give OFFSET_TYPE a MODE_INT type.

From-SVN: r40781
This commit is contained in:
J"orn Rennecke 2001-03-23 16:59:56 +00:00 committed by Joern Rennecke
parent 4ff17c6a1a
commit 25caaba84b
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Fri Mar 23 16:59:08 2001 J"orn Rennecke <amylaar@redhat.com>
* stor-layout.c (layout_type): Give OFFSET_TYPE a MODE_INT type.
2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
* extend.texi: Document the "java_interface" attribute.

View File

@ -1341,7 +1341,9 @@ layout_type (type)
case OFFSET_TYPE:
TYPE_SIZE (type) = bitsize_int (POINTER_SIZE);
TYPE_SIZE_UNIT (type) = size_int (POINTER_SIZE / BITS_PER_UNIT);
TYPE_MODE (type) = ptr_mode;
/* A pointer might be MODE_PARTIAL_INT,
but ptrdiff_t must be integral. */
TYPE_MODE (type) = mode_for_size (POINTER_SIZE, MODE_INT, 0);
break;
case FUNCTION_TYPE: