This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: ptrmem.C conflict with PSImode pointers
- To: Joern Rennecke <amylaar at cambridge dot redhat dot com>
- Subject: Re: ptrmem.C conflict with PSImode pointers
- From: Jason Merrill <jason at redhat dot com>
- Date: 03 Mar 2001 10:59:46 +0000
- Cc: gcc-patches at gcc dot gnu dot org
- References: <200103030236.f232aAr03438@phal.cambridge.redhat.com>
>>>>> "Joern" == Joern Rennecke <amylaar@cambridge.redhat.com> writes:
>> No. A pointer to data member is not a pointer; it is an offset, and should
>> have the same representation as ptrdiff_t.
> So should I change this bit in stor-layout.c:layout_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;
> break;
Yes, I suppose so. Though hopefully only the mode should be different.
Jason