On Wed, Sep 19, 2012 at 10:53:00AM +0200, Richard Guenther wrote: > + extern void abort (void); > + void foo(char *p, int n) > + { > + int i; > + for (i = 1; i < n; i++) > + p[i] = p[i - 1];
You could turn this into if (n > 1) memset (p + 1, p[0], n - 1); if you wanted, though of course that is quite a special case and won't work with pointers to larger types than char, or if the dependency is different from -1 bytes. Jakub