[PATCH] PR 10339: Remove unsafe memcmp optimizations

Richard Henderson rth@redhat.com
Wed Apr 23 00:23:00 GMT 2003

On Sat, Apr 19, 2003 at 11:54:32AM -0400, Kaveh R. Ghazi wrote:
> +byte by byte in lexicographic order starting at the beginning of each
> +string.  The instruction is not allowed to prefetch more than one word
> +at a time since either string may end in the first word and reading past
> +that may access an invalid page or segment and cause a fault.

Not "word", byte.

If the target allows unaligned loads, we can't allow cmpstrsi
to load an SImode value from (page + pagesize - 3).


More information about the Gcc-patches mailing list