This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFTesting] New POINTER_DIFF_EXPR


On Fri, 17 Nov 2017, Joseph Myers wrote:

On Fri, 17 Nov 2017, DJ Delorie wrote:

Richard Biener <richard.guenther@gmail.com> writes:
The question is what ptrdiff_t is for a specific address space. Or
rather if that type may be dependent on the address space or if we can
always use that of the default address space.

Some targets have a "far" address space that's bigger than the default.
rl78 for example has a 16-bit default pointer and a 32-bit far pointer.

Well, that's outside the scope of how TR 18037 defines the address space
feature, if ptrdiff_t is 16-bit.  But it should still have nothing to do
with this patch as long as the patch keeps the result of the subtraction
having the same type it does at present.

Well, that's good then. Is the C front-end part of the patch ok for you?

--
Marc Glisse


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]