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.
Thanks for the pointer to an unusual target. I built cc1 for a
cross-compiler, and as far as I can see, the patch generates the same code
as before, both for regular and __far pointers, except in a few cases
where the patch simplifies more, but in a way that seems safe.
--
Marc Glisse