This is the mail archive of the
mailing list for the GCC project.
Re: Will backend ever see an memory operand with address wrap around?
On Sun, May 13, 2012 at 10:24 PM, <firstname.lastname@example.org> wrote:
> Quoting "H.J. Lu" <email@example.com>:
>> What is the run-time result when overflow happens?
> Assuming you use a 32 bit unsigned base address, and the space beyond 4G
> is unmapped, you'll get a SEGV.
So, when used for load and store, "base + offset" with overflow/underflow
has unspecified behavior.