On Fri, 17 Nov 2017, DJ Delorie wrote: > Richard Biener <richard.guent...@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. -- Joseph S. Myers jos...@codesourcery.com