From mboxrd@z Thu Jan 1 00:00:00 1970 From: dewar@gnat.com (Robert Dewar) To: aoliva@redhat.com, kenner@vlsi1.ultra.nyu.edu Cc: gcc@gcc.gnu.org Subject: Re: Bug in loop optimize (invalid postinc to preinc transformation) Date: Thu, 28 Dec 2000 05:40:00 -0000 Message-id: <20001228134026.EC58D34D93@nile.gnat.com> X-SW-Source: 2000-12/msg00799.html <> Once again, this is confused. If you increment a pointer p++; then this is defined only if the resulting pointer remains within the same object, or in the csae of arrays it can go just past the end. Overflow per se does not arise with pointers because of this stricter rule. No optimization of pointer arithmetic can possibly be correct if it does not preserve this fundamental semantic appearence.