[Bug middle-end/110399] pointer substraction causes coredump with ftrapv on edge case
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110399 --- Comment #3 from Chan Lewis --- (In reply to Andrew Pinski from comment #2) > Dup of bug 13421. > > *** This bug has been marked as a duplicate of bug 13421 *** I see. I wonder why gcc consider pointer signed and need to abort in this case, whereas clang still works as expected. If we change pointer to unsigned in our codebase, that will be lots of work.
[Bug middle-end/110399] pointer substraction causes coredump with ftrapv on edge case
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110399 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRMED |RESOLVED --- Comment #2 from Andrew Pinski --- Dup of bug 13421. *** This bug has been marked as a duplicate of bug 13421 ***
[Bug middle-end/110399] pointer substraction causes coredump with ftrapv on edge case
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110399 --- Comment #1 from Andrew Pinski --- 32 bit, w1=2 w2=2 w3=2 w4=0 w5=2 Program received signal SIGABRT, Aborted.