Re: [PATCH] C undefined behavior fix

From: Momchil Velikov (
Date: Wed Jan 02 2002 - 18:27:42 EST

>>>>> "Paul" == Paul Mackerras <> writes:
Paul> As I said in another email, if the gcc maintainers want to change gcc
Paul> so that pointer arithmetic can do anything other than an ordinary 2's
Paul> complement addition operation,

Nobody changes pointer arithmetic. The problem is that this
optimization gives _negative_ length, because the resulting pointer
does not point inside or one past the end of the array, which in turn
is explicitly mentioned in the standard as undefined behavior.

Paul> ... then we will stop using gcc.

Specifically separated this part to state that I don't even care to
comment on this. Doh, I did. Anyway ..


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Jan 07 2002 - 21:00:19 EST