mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-10 03:06:45 +08:00
* stor-layout.c (layout_type): Give OFFSET_TYPE a MODE_INT type.
From-SVN: r40781
This commit is contained in:
parent
4ff17c6a1a
commit
25caaba84b
@ -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.
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user